From fce731b52f63132ac56268b256b11acc4f652cbd Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 5 Aug 2004 06:06:49 +0000 Subject: [PATCH] 20020118-1.c: Declare abort. 2004-08-04 Andrew Pinski * gcc.dg/20020118-1.c: Declare abort. * gcc.dg/altivec_check.h: Likewise. * gcc.dg/iftrap-2.c: Likewise. * gcc.dg/pragma-darwin.c: Likewise. * gcc.dg/rs6000-ldouble-1.c: Declare abort and exit. From-SVN: r85594 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/gcc.dg/20020118-1.c | 2 ++ gcc/testsuite/gcc.dg/altivec_check.h | 1 + gcc/testsuite/gcc.dg/iftrap-2.c | 2 ++ gcc/testsuite/gcc.dg/pragma-darwin.c | 2 ++ gcc/testsuite/gcc.dg/rs6000-ldouble-1.c | 3 +++ 6 files changed, 18 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 82562f9edeb..94e6a7903f4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2004-08-04 Andrew Pinski + + * gcc.dg/20020118-1.c: Declare abort. + * gcc.dg/altivec_check.h: Likewise. + * gcc.dg/iftrap-2.c: Likewise. + * gcc.dg/pragma-darwin.c: Likewise. + * gcc.dg/rs6000-ldouble-1.c: Declare abort and exit. + 2004-08-04 Geoffrey Keating * g++.dg/ext/altivec_check.h: Declare exit as extern "C". diff --git a/gcc/testsuite/gcc.dg/20020118-1.c b/gcc/testsuite/gcc.dg/20020118-1.c index f00db689cc2..393f3c2aa5b 100644 --- a/gcc/testsuite/gcc.dg/20020118-1.c +++ b/gcc/testsuite/gcc.dg/20020118-1.c @@ -3,6 +3,8 @@ /* Test local alignment. Test new target macro STARTING_FRAME_PHASE. */ /* Origin: Aldy Hernandez . */ +extern void abort(void); + int main () { int darisa[4] __attribute__((aligned(16))) ; diff --git a/gcc/testsuite/gcc.dg/altivec_check.h b/gcc/testsuite/gcc.dg/altivec_check.h index c64d918c9d5..736054821f1 100644 --- a/gcc/testsuite/gcc.dg/altivec_check.h +++ b/gcc/testsuite/gcc.dg/altivec_check.h @@ -3,6 +3,7 @@ #include extern void exit (int); +extern void abort (void); void sig_ill_handler (int sig) diff --git a/gcc/testsuite/gcc.dg/iftrap-2.c b/gcc/testsuite/gcc.dg/iftrap-2.c index 909a85fcef8..4aa8ee7d62c 100644 --- a/gcc/testsuite/gcc.dg/iftrap-2.c +++ b/gcc/testsuite/gcc.dg/iftrap-2.c @@ -3,6 +3,8 @@ /* { dg-do compile { target rs6000-*-* powerpc-*-* sparc*-*-* ia64-*-* } } */ /* { dg-final { scan-assembler-not "^\t(trap|ta|break)\[ \t\]" } } */ +extern void abort(void); + void f1(int p) { if (p) diff --git a/gcc/testsuite/gcc.dg/pragma-darwin.c b/gcc/testsuite/gcc.dg/pragma-darwin.c index e3bcfb958a8..da70c8918a0 100644 --- a/gcc/testsuite/gcc.dg/pragma-darwin.c +++ b/gcc/testsuite/gcc.dg/pragma-darwin.c @@ -5,6 +5,8 @@ /* The mark pragma is to help decorate IDEs. */ +extern void abort(void); + #pragma mark hey hey ho /* The options pragma used to do a lot, now it's only for emulating diff --git a/gcc/testsuite/gcc.dg/rs6000-ldouble-1.c b/gcc/testsuite/gcc.dg/rs6000-ldouble-1.c index 52d2da802aa..0c11a271a80 100644 --- a/gcc/testsuite/gcc.dg/rs6000-ldouble-1.c +++ b/gcc/testsuite/gcc.dg/rs6000-ldouble-1.c @@ -4,6 +4,9 @@ /* Check that long double values are rounded correctly when being converted to 32-bit integers. All these values are of the form +/- 2 +/- 2^-60. */ +extern void abort(void); +extern void exit(int); + int main(void) { long double l1 = 1.9999999999999999991326382620115964527941L; -- 2.30.2