This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/46674] [4.6 Regression] Weak alias is mistakenly optimized away
- From: "davek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 15 Dec 2010 16:18:17 +0000
- Subject: [Bug middle-end/46674] [4.6 Regression] Weak alias is mistakenly optimized away
- Auto-submitted: auto-generated
- References: <bug-46674-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46674
--- Comment #11 from Dave Korn <davek at gcc dot gnu.org> 2010-12-15 16:17:54 UTC ---
Created attachment 22765
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22765
Lower all C identifiers to actual assembler symbols for comparison.
This should resolve the problem by ensuring that aliases and decls are lowered
to the canonical assembler form before doing any comparisons or testing if they
are used.