From: Richard Sandiford Date: Wed, 4 Aug 2004 19:12:58 +0000 (+0000) Subject: mips-args-[23].c: Declare abort() and exit(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54f2f9a648affb8af04adc48146dda68cb0de7a6;p=gcc.git mips-args-[23].c: Declare abort() and exit(). * gcc.dg/mips-args-[23].c: Declare abort() and exit(). * gcc.dg/torture/mips-hilo-[12].c: Likewise. From-SVN: r85567 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2edfebb63f0..54484ff66fb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-08-03 Richard Sandiford + + * gcc.dg/mips-args-[23].c: Declare abort() and exit(). + * gcc.dg/torture/mips-hilo-[12].c: Likewise. + 2004-08-03 David Edelsohn * gcc.dg/compat/struct-layout-1.exp: Fix error message typo. diff --git a/gcc/testsuite/gcc.dg/mips-args-2.c b/gcc/testsuite/gcc.dg/mips-args-2.c index f53bfb2cde5..c34751c1c51 100644 --- a/gcc/testsuite/gcc.dg/mips-args-2.c +++ b/gcc/testsuite/gcc.dg/mips-args-2.c @@ -1,5 +1,8 @@ /* Check the _MIPSEB and _MIPSEL macros are accurate. */ /* { dg-do run { target mips*-*-* } } */ +extern void abort (void); +extern void exit (int); + short foo = 1; int main () { diff --git a/gcc/testsuite/gcc.dg/mips-args-3.c b/gcc/testsuite/gcc.dg/mips-args-3.c index 9ce3553fa94..e1fde8646df 100644 --- a/gcc/testsuite/gcc.dg/mips-args-3.c +++ b/gcc/testsuite/gcc.dg/mips-args-3.c @@ -1,6 +1,9 @@ /* __mips, and related defines, guarantee that certain assembly instructions can be used. Check a few examples. */ /* { dg-do run { target mips*-*-* } } */ +extern void abort (void); +extern void exit (int); + typedef int int32 __attribute__ ((mode (SI))); typedef int int64 __attribute__ ((mode (DI))); int foo (float inf, int64 in64, int32 in32) diff --git a/gcc/testsuite/gcc.dg/torture/mips-hilo-1.c b/gcc/testsuite/gcc.dg/torture/mips-hilo-1.c index 2b0d668fc69..8f8805139cf 100644 --- a/gcc/testsuite/gcc.dg/torture/mips-hilo-1.c +++ b/gcc/testsuite/gcc.dg/torture/mips-hilo-1.c @@ -3,6 +3,9 @@ /* { dg-do run { target mips*-*-* } } */ /* { dg-options "-mtune=rm7000" } */ +extern void abort (void); +extern void exit (int); + #if !defined(__mips16) #define DECLARE(TYPE) \ diff --git a/gcc/testsuite/gcc.dg/torture/mips-hilo-2.c b/gcc/testsuite/gcc.dg/torture/mips-hilo-2.c index 0bdff6cd32c..3d23a8da3c0 100644 --- a/gcc/testsuite/gcc.dg/torture/mips-hilo-2.c +++ b/gcc/testsuite/gcc.dg/torture/mips-hilo-2.c @@ -2,6 +2,9 @@ the low part of u.ll on little-endian 32-bit targets. */ /* { dg-do run { target mips*-*-* } } */ +extern void abort (void); +extern void exit (int); + #if !defined(__mips16) unsigned int g;