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

            Bug ID: 88104
           Summary: sparc-solaris2.11 testsuite failures due to
                    unrecognized as option -m32
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: msebor at gcc dot gnu.org
  Target Milestone: ---

A number of compile-only tests fail with the sparc-solaris2.11 cross-compiler
on an x86_64-linux host due to what seems to be an incorrect assembler option. 
For example:

$ make -C /ssd/build/sparc-solaris2.11/gcc-svn/gcc check-c
RUNTESTFLAGS="dg.exp=Wbuiltin-declaration-mismatch-4.c
...
Running /ssd/src/gcc/svn/gcc/testsuite/gcc.dg/dg.exp ...
FAIL: gcc.dg/Wbuiltin-declaration-mismatch-4.c (test for excess errors)

                === gcc Summary ===

# of expected passes            21
# of unexpected failures        1
# of expected failures          1
/ssd/build/sparc-solaris2.11/gcc-svn/gcc/xgcc  version 9.0.0 20181117
(experimental) (GCC) 

I think the test fails because the harness incorrectly configures the
large_long_double variable (the target has support for large long double but
the harness variable is set to false).  The relevant snippet from gcc.log is:

Executing on host: /ssd/build/sparc-solaris2.11/gcc-svn/gcc/xgcc
-B/ssd/build/sparc-solaris2.11/gcc-svn/gcc/    -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-color=never  -c -o
large_long_double9364.o large_long_double9364.c    (timeout = 300)
spawn -ignore SIGHUP /ssd/build/sparc-solaris2.11/gcc-svn/gcc/xgcc
-B/ssd/build/sparc-solaris2.11/gcc-svn/gcc/ -fno-diagnostics-show-caret
-fno-diagnostics-show-line-numbers -fdiagnostics-color=never -c -o
large_long_double9364.o large_long_double9364.c
/ssd/build/sysroot/sparc-solaris2.11/sparc-solaris2.11/bin/as: unrecognized
option '-m32'
compiler exited with status 1

Reply via email to