From df9292840d1a59a7eee79d70fb38bafabd6049fa Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Thu, 7 Apr 2011 20:55:01 +0000 Subject: [PATCH] non-local-goto-5.c: Fix for targets with no trampolines. * gcc.dg/torture/stackalign/non-local-goto-5.c: Fix for targets with no trampolines. From-SVN: r172127 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 01b95ae6454..1e572c7f776 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2011-04-07 Mike Stump + + * gcc.dg/torture/stackalign/non-local-goto-5.c: Fix for targets + with no trampolines. + 2011-04-07 Jakub Jelinek PR fortran/48117 diff --git a/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c b/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c index 08ca95d765c..d198c9a97f9 100644 --- a/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c +++ b/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c @@ -1,8 +1,8 @@ /* { dg-do run } */ +extern void exit (int); #if !defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES) extern void abort (void); -extern void exit (int); int s(i){if(i>0){__label__ l1;int f(int i){if(i==2)goto l1;return 0;}return f(i);l1:;}return 1;} int x(){return s(0)==1&&s(1)==0&&s(2)==1;} int main(){if(x()!=1)abort();exit(0);} -- 2.30.2