This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/41611] [4.5 Regression] guard variable is emitted even when the guarded symbol isn't
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2009 10:10:57 -0000
- Subject: [Bug middle-end/41611] [4.5 Regression] guard variable is emitted even when the guarded symbol isn't
- References: <bug-41611-14164@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from hjl dot tools at gmail dot com 2009-11-25 10:10 -------
Gcc 4.5 generates:
---
.file "pr41611.cc"
.weak _ZGVZN1A4InitEvE1i
.section
.bss._ZGVZN1A4InitEvE1i,"awG",@nobits,_ZZN1A4InitEvE1i,comdat
.align 8
.type _ZGVZN1A4InitEvE1i, @object
.size _ZGVZN1A4InitEvE1i, 8
_ZGVZN1A4InitEvE1i:
.zero 8
----
It uses "_ZZN1A4InitEvE1i" for signature. Gcc should
1. Use _ZGVZN1A4InitEvE1i for signature. Or
2. Generate in the same assembly file where _ZZN1A4InitEvE1i is defined.
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl dot tools at gmail dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41611