[Bug c++/90853] -O3 complains already defined symbol

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 12 02:11:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90853

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
inline-asm is duplicated via doing inlining.  THIS IS NOT A GCC BUG.  If you
want to define a symbol like this, use either top level inline-asm or the .s
file.  

ALSO THIS IS DOCUMENTED:
Under certain circumstances, GCC may duplicate (or remove duplicates of) your
assembly code when optimizing. This can lead to unexpected duplicate symbol
errors during compilation if your assembly code defines symbols or labels.

--- CUT ---
>From https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/Basic-Asm.html#Basic-Asm .


More information about the Gcc-bugs mailing list