[Bug c/48487] New: Multiple Definition of Labels in Inlining Assembler

changpeng.fang at amd dot com gcc-bugzilla@gcc.gnu.org
Wed Apr 6 22:56:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48487

           Summary: Multiple Definition of Labels in Inlining Assembler
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: changpeng.fang@amd.com


Created attachment 23904
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23904
labels.c

For the attached test case labels.c
gcc -O2 -c labels.c

labels.c: Assembler messages:
labels.c:9: Error: symbol `done' is already defined

The compilation is good with -O0 or -O1.

Apparently, after inlining, the label should be rebamed.

Note that this is not a regression since it occurred in gcc4, 5, 6, 7



More information about the Gcc-bugs mailing list