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

            Bug ID: 66399
           Summary: g++.dg/abi/anon4.C FAILs with PIE
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: hjl at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
            Target: x86_64-unknown-linux-gnu, i386-pc-solaris2.12
             Build: x86_64-unknown-linux-gnu, i386-pc-solaris2.12

With --enable-default-pie, g++.dg/abi/anon4.C FAILs on both Linux/x86_64 and
Solaris 12/x86 with -m32:

+FAIL: g++.dg/abi/anon4.C  -std=c++11  scan-assembler-not comdat
+FAIL: g++.dg/abi/anon4.C  -std=c++14  scan-assembler-not comdat
+FAIL: g++.dg/abi/anon4.C  -std=c++98  scan-assembler-not comdat

On Linux, anon4.s contains

        .section       
.text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat

  Rainer

Reply via email to