As described in the PR, gcc.c-torture/compile/pr28865.c FAILs on Solaris 9/SPARC with /bin/as at -O0. Given that Solaris 9 support will be removed post-4.9, we agreed to just XFAIL the test, which this patch does.
Tested with the approprite runtest invocations on sparc-sun-solaris2.9 (both as and gas), and x86_64-unknown-linux-gnu, installed on mainline. Rainer 2014-04-08 Rainer Orth <r...@cebitec.uni-bielefeld.de> PR target/60602 * gcc.c-torture/compile/pr28865.c: XFAIL on sparc*-*-solaris2.9* with as at -O0.
# HG changeset patch # Parent e17640a7d95c3adb1df90271afefc67d1ee83976 XFAIL gcc.c-torture/compile/pr28865.c on Solaris 9/SPARC (PR target/60602) diff --git a/gcc/testsuite/gcc.c-torture/compile/pr28865.c b/gcc/testsuite/gcc.c-torture/compile/pr28865.c --- a/gcc/testsuite/gcc.c-torture/compile/pr28865.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr28865.c @@ -1,3 +1,5 @@ +/* { dg-xfail-if "PR target/60602" { sparc*-*-solaris2.9* && { ! gas } } { "-O0" } } */ + struct var_len { int field1; diff --git a/libitm/config/generic/asmcfi.h b/libitm/config/generic/asmcfi.h --- a/libitm/config/generic/asmcfi.h +++ b/libitm/config/generic/asmcfi.h @@ -24,7 +24,7 @@ #include "config.h" -#ifdef HAVE_AS_CFI_PSEUDO_OP +#if defined(HAVE_AS_CFI_PSEUDO_OP) && defined(__GCC_HAVE_DWARF2_CFI_ASM) #define cfi_startproc .cfi_startproc #define cfi_endproc .cfi_endproc @@ -50,4 +50,4 @@ #define cfi_restore(r) #define cfi_undefined(r) -#endif /* HAVE_AS_CFI_PSEUDO_OP */ +#endif /* HAVE_AS_CFI_PSEUDO_OP && __GCC_HAVE_DWARF2_CFI_ASM */
-- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University