This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

S/390: Fix broken test case


Hello,

this fixes a s390-specific test case that clobbered the frame
pointer register in an inline asm statement.

Tested on s390-ibm-linux and s390x-ibm-linux.
Applied to 3.4 branch and head.

Bye,
Ulrich


ChangeLog:

	* gcc.dg/20030123-1.c: Add -fno-omit-frame-pointer option.  Do not
	clobber frame pointer register in asm statement.


Index: gcc/testsuite/gcc.dg/20030123-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/20030123-1.c,v
retrieving revision 1.1
diff -c -p -r1.1 20030123-1.c
*** gcc/testsuite/gcc.dg/20030123-1.c	25 Jan 2003 23:57:30 -0000	1.1
--- gcc/testsuite/gcc.dg/20030123-1.c	21 Jan 2004 22:33:36 -0000
***************
*** 1,7 ****
  /* This used to ICE due to a reload bug on s390*.  */
  
  /* { dg-do compile { target s390*-*-* } } */
! /* { dg-options "-O2" } */
  
  void func (char *p);
  
--- 1,7 ----
  /* This used to ICE due to a reload bug on s390*.  */
  
  /* { dg-do compile { target s390*-*-* } } */
! /* { dg-options "-O2 -fno-omit-frame-pointer" } */
  
  void func (char *p);
  
*************** void test (void)
*** 10,16 ****
     char *p = alloca (4096);
     long idx;
  
!    asm ("" : "=r" (idx) : : "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12");
  
     func (p + idx + 1);
  }
--- 10,16 ----
     char *p = alloca (4096);
     long idx;
  
!    asm ("" : "=r" (idx) : : "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "12");
  
     func (p + idx + 1);
  }
-- 
  Dr. Ulrich Weigand
  weigand@informatik.uni-erlangen.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]