[Bug target/59407] New: gcc.target/i386/pr58218.c FAILs with Sun as

ro at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Dec 6 13:39:00 GMT 2013


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

            Bug ID: 59407
           Summary: gcc.target/i386/pr58218.c FAILs with Sun as
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: ubizjak at gmail dot com
              Host: i386-pc-solaris2.1[01]
            Target: i386-pc-solaris2.1[01]
             Build: i386-pc-solaris2.1[01]

The new gcc.target/i386/pr58218.c testcase FAILs on Solaris 10 and 11/x86 with
Sun as:

FAIL: gcc.target/i386/pr58218.c (test for excess errors)

Excess errors:
Assembler: pr58218.c
        "/var/tmp//cciHFIO7.s", line 3 : Section attributes do not match

as chokes on

        .section        .lbss,"aw",@nobits

It turns out that as needs an explicit 'h' (for huge or large) flag here to set
SHF_AMD64_LARGE.

gas doesn't need that (sets SHF_AMD64_LARGE implicitly for the .l* sections
prescribed by the AMD64 ABI to have that), but accepts an 'l' flag with the
same semantics as 'h' here.

Will look into how to get this into gcc.

  Rainer



More information about the Gcc-bugs mailing list