This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/21659] [4.3/4.4/4.5/4.6 Regression] [unit-at-a-time] "weak declaration must precede definition" error missing at >= O1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21659

--- Comment #11 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-24 23:07:29 UTC ---
Author: hubicka
Date: Mon Jan 24 23:07:25 2011
New Revision: 169184

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169184
Log:

    PR c/21659
    * doc/extend.texi (weak pragma): Drop claim that it must
    appear before definition.
    * varasm.c (merge_weak, declare_weak): Only sanity check
    that DECL is not output at a time it is declared weak.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/doc/extend.texi
    trunk/gcc/varasm.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]