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

            Bug ID: 124289
           Summary: gcc.dg/lto/toplevel-extended-asm-2 FAILs
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: mjires at gcc dot gnu.org
  Target Milestone: ---
            Target: *-*-solaris2.11

One case of the gcc.dg/lto/toplevel-extended-asm-2 test FAILs on Solaris (both
SPARC and x86) with the native assembler:

FAIL: gcc.dg/lto/toplevel-extended-asm-2
c_lto_toplevel-extended-asm-2_0.o-c_lto_toplevel-extended-asm-2_1.o link, -O2
-flto -flto-partition=cache

as complains:

Assembler: <artificial> 
        "/var/tmp//ccvAcbfb.s", line 10 : Multiply defined label: "a"
make[4]: *** [/var/tmp//ccaSPXYd.mk:2: /var/tmp//ccj_FhJc.ltrans0.ltrans.o]
Error 1
make[4]: Target 'all' not remade because of errors.
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.

which is correct: with -save-temps,
gcc-dg-lto-toplevel-extended-asm-2-21.ltrans0.ltrans.s
contains

        .file   "<artificial>"
        .text
/APP
        .local a
 a:
        static_asm_fn:
        static_asm_var:
        asm_var:
        .local a
 a:
/NO_APP

which makes as chokes while gas silently accepts it.

This only happens with -O2 -flto -flto-partition=cache, the other cases are
fine.

Reply via email to