Commit eb9461fb by Catherine Moore

920501-7.c: Check for NO_TRAMPOLINES.

        * gcc.c-torture/execute/920501-7.c: Check for NO_TRAMPOLINES.
        * gcc.c-torture/execute/920612-2.c: Likewise.
        * gcc.c-torture/execute/920428-2.c: Likewise.
        * gcc-c-torture/execute/va-arg-11.c: Call exit.
        * gcc.c-torture/execute/va-arg-21.c: Likewise.

From-SVN: r38251
parent 0c3a231d
2000-12-14 Catherine Moore <clm@redhat.com>
* gcc.c-torture/execute/920501-7.c: Check for NO_TRAMPOLINES.
* gcc.c-torture/execute/920612-2.c: Likewise.
* gcc.c-torture/execute/920428-2.c: Likewise.
* gcc-c-torture/execute/va-arg-11.c: Call exit.
* gcc.c-torture/execute/va-arg-21.c: Likewise.
2000-12-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> 2000-12-13 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* gcc.dg/pack-test-1.c: Compile on powerpc*-*-eabi* too. * gcc.dg/pack-test-1.c: Compile on powerpc*-*-eabi* too.
...@@ -33,6 +41,7 @@ ...@@ -33,6 +41,7 @@
* gcc.dg/cpp/redef2.c: Update. * gcc.dg/cpp/redef2.c: Update.
* gcc.dg/cpp/skipping.c: New test. * gcc.dg/cpp/skipping.c: New test.
>>>>>>> 1.929
2000-12-07 Geoffrey Keating <geoffk@redhat.com> 2000-12-07 Geoffrey Keating <geoffk@redhat.com>
* g++.old-deja/g++.other/eh3.C: New testcase. * g++.old-deja/g++.other/eh3.C: New testcase.
......
#ifndef NO_LABEL_VALUES #if !defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES)
s(i){if(i>0){__label__ l1;int f(int i){if(i==2)goto l1;return 0;}return f(i);l1:;}return 1;} s(i){if(i>0){__label__ l1;int f(int i){if(i==2)goto l1;return 0;}return f(i);l1:;}return 1;}
x(){return s(0)==1&&s(1)==0&&s(2)==1;} x(){return s(0)==1&&s(1)==0&&s(2)==1;}
main(){if(x()!=1)abort();exit(0);} main(){if(x()!=1)abort();exit(0);}
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#define DEPTH 1000 #define DEPTH 1000
#endif #endif
#ifndef NO_LABEL_VALUES #if ! defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES)
x(a) x(a)
{ {
__label__ xlab; __label__ xlab;
...@@ -22,7 +22,7 @@ x(a) ...@@ -22,7 +22,7 @@ x(a)
main () main ()
{ {
#ifndef NO_LABEL_VALUES #if ! defined (NO_LABEL_VALUES) && !defined (NO_TRAMPOLINES)
if (x (DEPTH) != DEPTH) if (x (DEPTH) != DEPTH)
abort (); abort ();
#endif #endif
......
...@@ -7,6 +7,9 @@ main () ...@@ -7,6 +7,9 @@ main ()
i++, x--; i++, x--;
return x; return x;
} }
a (2); #ifndef NO_TRAMPOLINES
if (a (2) != 0)
abort ();
#endif
exit (0); exit (0);
} }
...@@ -25,5 +25,5 @@ main (void) ...@@ -25,5 +25,5 @@ main (void)
{ {
if (foo (5, 4, 3, 2, 1, 0)) if (foo (5, 4, 3, 2, 1, 0))
abort (); abort ();
return 0; exit (0);
} }
...@@ -44,5 +44,5 @@ doit (const char *s, ...) ...@@ -44,5 +44,5 @@ doit (const char *s, ...)
int main() int main()
{ {
doit ("%s", "hello world\n"); doit ("%s", "hello world\n");
return 0; exit (0);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment