From f59dcd4bcc335513b346401d58b8095319868eba Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 22 Jan 2004 00:05:36 +0000 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/20030123-1.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 35f795306b65..7ebdb67715e0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-01-22 Ulrich Weigand + + * 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 * gcc.c-torture/compile/20040121-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/20030123-1.c b/gcc/testsuite/gcc.dg/20030123-1.c index 1f5858808c42..e4e49ab0916b 100644 --- a/gcc/testsuite/gcc.dg/20030123-1.c +++ b/gcc/testsuite/gcc.dg/20030123-1.c @@ -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); }