2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-04-13 13:21:12 +08:00

20030123-1.c: Add -fno-omit-frame-pointer option.

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

From-SVN: r76317
This commit is contained in:
Ulrich Weigand 2004-01-22 00:05:36 +00:00 committed by Ulrich Weigand
parent 3c2426b97b
commit f59dcd4bcc
2 changed files with 7 additions and 2 deletions
gcc/testsuite

@ -1,3 +1,8 @@
2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
* gcc.dg/20030123-1.c: Add -fno-omit-frame-pointer option. Do not
clobber frame pointer register in asm statement.
2004-01-21 Falk Hueffner <falk@debian.org>
* gcc.c-torture/compile/20040121-1.c: New test.

@ -1,7 +1,7 @@
/* This used to ICE due to a reload bug on s390*. */
/* { dg-do compile { target s390*-*-* } } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -fno-omit-frame-pointer" } */
void func (char *p);
@ -10,7 +10,7 @@ void test (void)
char *p = alloca (4096);
long idx;
asm ("" : "=r" (idx) : : "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12");
asm ("" : "=r" (idx) : : "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "12");
func (p + idx + 1);
}