Commit fce731b5 by Andrew Pinski Committed by Andrew Pinski

20020118-1.c: Declare abort.

2004-08-04  Andrew Pinski  <pinskia@physics.uc.edu>

        * 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
parent 0e6df31e
2004-08-04 Andrew Pinski <pinskia@physics.uc.edu>
* 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 <geoffk@apple.com> 2004-08-04 Geoffrey Keating <geoffk@apple.com>
* g++.dg/ext/altivec_check.h: Declare exit as extern "C". * g++.dg/ext/altivec_check.h: Declare exit as extern "C".
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
/* Test local alignment. Test new target macro STARTING_FRAME_PHASE. */ /* Test local alignment. Test new target macro STARTING_FRAME_PHASE. */
/* Origin: Aldy Hernandez <aldyh@redhat.com>. */ /* Origin: Aldy Hernandez <aldyh@redhat.com>. */
extern void abort(void);
int main () int main ()
{ {
int darisa[4] __attribute__((aligned(16))) ; int darisa[4] __attribute__((aligned(16))) ;
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
#include <signal.h> #include <signal.h>
extern void exit (int); extern void exit (int);
extern void abort (void);
void void
sig_ill_handler (int sig) sig_ill_handler (int sig)
......
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
/* { dg-do compile { target rs6000-*-* powerpc-*-* sparc*-*-* ia64-*-* } } */ /* { dg-do compile { target rs6000-*-* powerpc-*-* sparc*-*-* ia64-*-* } } */
/* { dg-final { scan-assembler-not "^\t(trap|ta|break)\[ \t\]" } } */ /* { dg-final { scan-assembler-not "^\t(trap|ta|break)\[ \t\]" } } */
extern void abort(void);
void f1(int p) void f1(int p)
{ {
if (p) if (p)
......
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
/* The mark pragma is to help decorate IDEs. */ /* The mark pragma is to help decorate IDEs. */
extern void abort(void);
#pragma mark hey hey ho #pragma mark hey hey ho
/* The options pragma used to do a lot, now it's only for emulating /* The options pragma used to do a lot, now it's only for emulating
......
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
/* Check that long double values are rounded correctly when being converted /* 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. */ 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) int main(void)
{ {
long double l1 = 1.9999999999999999991326382620115964527941L; long double l1 = 1.9999999999999999991326382620115964527941L;
......
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