[PATCH, arm] Fix XFAIL in gcc.c-torture/execute/941014-1.x

Adam Nemet anemet@Lnxw.COM
Tue Oct 29 21:17:00 GMT 2002


Hi,

This testcase used to be an XFAIL for thumb-*-elf.  Now that thumb-elf
has been deprecated, this fix modifies the testcase, so that now we
XFAIL for arm-*-elf/-mthumb with -O0.  (With -O1 and above the
testcase passes since addr2 is eliminated and is replaced with addr1.)

This patch was reg-tested together with my previous patch on
arm-sim/-mthumb: gcc.c-torture/execute/941014-1.c -O0 execution is now
an XFAIL.

Please apply if OK.

Adam

testsuite/ChangeLog:

2002-10-29  Adam Nemet  <anemet@lnxw.com>

	* gcc.c-torture/execute/941014-1.x: thumb-elf was deprecated, use
	-mthumb.  Only xfail with -O0.

Index: 941014-1.x
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/941014-1.x,v
retrieving revision 1.2
diff -c -r1.2 941014-1.x
*** 941014-1.x	16 Dec 1998 22:13:15 -0000	1.2
--- 941014-1.x	30 Oct 2002 04:08:51 -0000
***************
*** 1,6 ****
! # This doesn't work for thumb-elf
   
! if { [istarget "thumb-*-elf"] } {
!         set torture_execute_xfail "thumb-*-elf"
  }
  return 0
--- 1,15 ----
! # This doesn't always work for Thumb.
   
! if { [istarget arm-*-elf] } {
!     set torture_eval_before_execute {
! 	global compiler_conditional_xfail_data
! 	set compiler_conditional_xfail_data {
! 	    "Thumb sets the last bit of function relocations" \
! 		    "arm-*-elf" \
! 		    { { "-mthumb" "-O0" } } \
! 		    { "" }
! 	}
!     }
  }
+ 
  return 0



More information about the Gcc-patches mailing list