[Bug c/21659] [4.3/4.4/4.5 Regression] [unit-at-a-time] "weak declaration must precede definition" error missing at >= O1
dnovillo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 2 17:42:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21659
--- Comment #12 from Diego Novillo <dnovillo at gcc dot gnu.org> 2011-02-02 17:42:07 UTC ---
Author: dnovillo
Date: Wed Feb 2 17:42:05 2011
New Revision: 169542
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169542
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:
branches/google/integration/gcc/ChangeLog
branches/google/integration/gcc/doc/extend.texi
branches/google/integration/gcc/varasm.c
More information about the Gcc-bugs
mailing list