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: unassig...@gcc.gnu.org
        ReportedBy: changpeng.f...@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

Reply via email to