[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
hubicka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 24 23:28:00 GMT 2011
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
More information about the Gcc-bugs
mailing list