This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Jan 2011 23:07:43 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-21659-4@http.gcc.gnu.org/bugzilla/>
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