diff mbox

[testsuite] XFAIL gcc.c-torture/compile/pr28865.c on Solaris 9/SPARC (PR target/60602)

Message ID ydd8urg1420.fsf@lokon.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth April 8, 2014, 10:57 a.m. UTC
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  <ro@CeBiTec.Uni-Bielefeld.DE>

	PR target/60602
	* gcc.c-torture/compile/pr28865.c: XFAIL on sparc*-*-solaris2.9*
	with as at -O0.

Comments

Rainer Orth April 8, 2014, 11:03 a.m. UTC | #1
> 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 */

I didn't actually commit this part, but noticed that it had crept into
the patch pre-commit.

	Rainer
diff mbox

Patch

# 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 */