]> code.ossystems Code Review - openembedded-core.git/blob
89b5f7dd8211e6997a8f327c3460f820727158b2
[openembedded-core.git] /
1 Upstream-Status: Inappropriate [Backport]
2 From 5430ea55f853566272279cbd5bb20a2dd5bd7a51 Mon Sep 17 00:00:00 2001
3 From: mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4>
4 Date: Thu, 7 Apr 2011 21:33:47 +0000
5 Subject: [PATCH 082/200]        * gcc.dg/torture/stackalign/non-local-goto-5.c: Fix for targets
6         with no trampolines.
7
8 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_6-branch@172135 138bc75d-0d04-0410-961f-82ee72b054a4
9
10 index 08ca95d..d198c9a 100644
11 --- a/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c
12 +++ b/gcc/testsuite/gcc.dg/torture/stackalign/non-local-goto-5.c
13 @@ -1,8 +1,8 @@
14  /* { dg-do run } */
15  
16 +extern void exit (int);
17  #if !defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES)
18  extern void abort (void);
19 -extern void exit (int);
20  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;}
21  int x(){return s(0)==1&&s(1)==0&&s(2)==1;}
22  int main(){if(x()!=1)abort();exit(0);}
23 -- 
24 1.7.0.4
25