This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Declare abort() and exit() in MIPS tests
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: pme at devphil dot com
- Date: Wed, 04 Aug 2004 20:14:34 +0100
- Subject: [committed] Declare abort() and exit() in MIPS tests
These tests started failing after the new builtin warning. Patch tested
on mips-elf, committed as obvious.
Richard
* gcc.dg/mips-args-[23].c: Declare abort() and exit().
* gcc.dg/torture/mips-hilo-[12].c: Likewise.
Index: testsuite/gcc.dg/mips-args-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/mips-args-2.c,v
retrieving revision 1.1
diff -c -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.1 mips-args-2.c
*** testsuite/gcc.dg/mips-args-2.c 25 Jul 2002 10:16:00 -0000 1.1
--- testsuite/gcc.dg/mips-args-2.c 4 Aug 2004 19:10:09 -0000
***************
*** 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 ()
{
Index: testsuite/gcc.dg/mips-args-3.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/mips-args-3.c,v
retrieving revision 1.1
diff -c -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.1 mips-args-3.c
*** testsuite/gcc.dg/mips-args-3.c 25 Jul 2002 10:16:00 -0000 1.1
--- testsuite/gcc.dg/mips-args-3.c 4 Aug 2004 19:10:09 -0000
***************
*** 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)
Index: testsuite/gcc.dg/torture/mips-hilo-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/torture/mips-hilo-1.c,v
retrieving revision 1.1
diff -c -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.1 mips-hilo-1.c
*** testsuite/gcc.dg/torture/mips-hilo-1.c 20 Apr 2004 06:10:13 -0000 1.1
--- testsuite/gcc.dg/torture/mips-hilo-1.c 4 Aug 2004 19:10:09 -0000
***************
*** 3,8 ****
--- 3,11 ----
/* { dg-do run { target mips*-*-* } } */
/* { dg-options "-mtune=rm7000" } */
+ extern void abort (void);
+ extern void exit (int);
+
#if !defined(__mips16)
#define DECLARE(TYPE) \
Index: testsuite/gcc.dg/torture/mips-hilo-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/torture/mips-hilo-2.c,v
retrieving revision 1.2
diff -c -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.2 mips-hilo-2.c
*** testsuite/gcc.dg/torture/mips-hilo-2.c 5 May 2004 07:41:24 -0000 1.2
--- testsuite/gcc.dg/torture/mips-hilo-2.c 4 Aug 2004 19:10:09 -0000
***************
*** 2,7 ****
--- 2,10 ----
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;