This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/41611] [4.5 Regression] guard variable is emitted even when the guarded symbol isn't



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]