From de256a451d349eb04c8ada33d063e3edb3a1c878 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 23 Sep 2004 00:07:15 +0000 Subject: [PATCH] 20001012-1.c: Add prototypes for builtin functions. * gcc.dg/20001012-1.c: Add prototypes for builtin functions. * gcc.dg/20001012-2.c: Likewise. * gcc.dg/20001013-1.c: Likewise. * gcc.dg/20001101-1.c: Likewise. * gcc.dg/20001102-1.c: Likewise. * gcc.dg/bf-spl1.c: Likewise. * gcc.dg/titype-1.c: Remove special-casing for SPARC. * gcc.dg/20040813-1.c: Add missing "." to the regexp. From-SVN: r87902 --- gcc/testsuite/gcc.dg/20001012-1.c | 3 +++ gcc/testsuite/gcc.dg/20001012-2.c | 3 +++ gcc/testsuite/gcc.dg/20001013-1.c | 3 +++ gcc/testsuite/gcc.dg/20001101-1.c | 3 +++ gcc/testsuite/gcc.dg/20001102-1.c | 3 +++ gcc/testsuite/gcc.dg/20040813-1.c | 2 +- gcc/testsuite/gcc.dg/bf-spl1.c | 2 ++ gcc/testsuite/gcc.dg/titype-1.c | 4 ++-- 8 files changed, 20 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/20001012-1.c b/gcc/testsuite/gcc.dg/20001012-1.c index 2fa7d76b0cc..061840e602b 100644 --- a/gcc/testsuite/gcc.dg/20001012-1.c +++ b/gcc/testsuite/gcc.dg/20001012-1.c @@ -1,6 +1,9 @@ /* { dg-do run { target sparc*-*-* } } */ /* { dg-options "-O2 -fpic" } */ +extern void abort (void); +extern void exit (int); + double foo (void) { diff --git a/gcc/testsuite/gcc.dg/20001012-2.c b/gcc/testsuite/gcc.dg/20001012-2.c index b92c4a049f5..df6130d4f0a 100644 --- a/gcc/testsuite/gcc.dg/20001012-2.c +++ b/gcc/testsuite/gcc.dg/20001012-2.c @@ -1,6 +1,9 @@ /* { dg-do run { target sparc*-*-* } } */ /* { dg-options "-O2 -fpic" } */ +extern void abort (void); +extern void exit (int); + void foo (char *x, const char *y, ...) { } diff --git a/gcc/testsuite/gcc.dg/20001013-1.c b/gcc/testsuite/gcc.dg/20001013-1.c index 87126fc4a81..371672cab75 100644 --- a/gcc/testsuite/gcc.dg/20001013-1.c +++ b/gcc/testsuite/gcc.dg/20001013-1.c @@ -1,6 +1,9 @@ /* { dg-do run { target sparc*-*-* } } */ /* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */ +extern void abort (void); +extern void exit (int); + int l; int baz (double x) diff --git a/gcc/testsuite/gcc.dg/20001101-1.c b/gcc/testsuite/gcc.dg/20001101-1.c index 723901c4090..d0eb6e23ce0 100644 --- a/gcc/testsuite/gcc.dg/20001101-1.c +++ b/gcc/testsuite/gcc.dg/20001101-1.c @@ -1,6 +1,9 @@ /* { dg-do run { target sparc*-*-* } } */ /* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */ +extern void abort (void); +extern void exit (int); + int foo(double a, int b, int c, double *d, int h) { int f, g; diff --git a/gcc/testsuite/gcc.dg/20001102-1.c b/gcc/testsuite/gcc.dg/20001102-1.c index d062353c680..c976dad45b2 100644 --- a/gcc/testsuite/gcc.dg/20001102-1.c +++ b/gcc/testsuite/gcc.dg/20001102-1.c @@ -1,6 +1,9 @@ /* { dg-do run { target sparc*-*-* } } */ /* { dg-options "-O2 -mcpu=ultrasparc -mvis" } */ +extern void abort (void); +extern void exit (int); + int foo(double a, int b, int c, double *d, int h) { int f, g; diff --git a/gcc/testsuite/gcc.dg/20040813-1.c b/gcc/testsuite/gcc.dg/20040813-1.c index c866d4cfeb0..ab09fec10e1 100644 --- a/gcc/testsuite/gcc.dg/20040813-1.c +++ b/gcc/testsuite/gcc.dg/20040813-1.c @@ -10,5 +10,5 @@ main () return 0; } -/* { dg-final { scan-assembler ".stabs*100,0,2" } } */ +/* { dg-final { scan-assembler ".stabs.*100,0,2" } } */ diff --git a/gcc/testsuite/gcc.dg/bf-spl1.c b/gcc/testsuite/gcc.dg/bf-spl1.c index df3f4817043..134193e54cc 100644 --- a/gcc/testsuite/gcc.dg/bf-spl1.c +++ b/gcc/testsuite/gcc.dg/bf-spl1.c @@ -2,6 +2,8 @@ /* { dg-options { -m68000 -O2 } { target m68k-*-* } } */ /* { dg-options { -O2 } { target sparc-*-* } } */ +extern void abort (void); + typedef SFtype __attribute__ ((mode (SF))); typedef DFtype __attribute__ ((mode (DF))); diff --git a/gcc/testsuite/gcc.dg/titype-1.c b/gcc/testsuite/gcc.dg/titype-1.c index ee41db9778a..d9f9da90756 100644 --- a/gcc/testsuite/gcc.dg/titype-1.c +++ b/gcc/testsuite/gcc.dg/titype-1.c @@ -1,8 +1,8 @@ /* { dg-do run } */ /* Not all platforms support TImode integers. */ -#if defined(__LP64__) || defined(__sparc__) -typedef int TItype __attribute__ ((mode (TI))); /* { dg-error "no data type for mode" "TI" { target sparc-sun-solaris2.[0-6]* } } */ +#if defined(__LP64__) +typedef int TItype __attribute__ ((mode (TI))); #else typedef long TItype; #endif -- 2.30.2