This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Testglue patch needed to test recent gcc versions
- From: Daniel Jacobowitz <drow at false dot org>
- To: dejagnu at gnu dot org
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 19 Aug 2004 16:14:23 -0400
- Subject: Testglue patch needed to test recent gcc versions
GCC now warns about missing prototypes for builtin functions it knows about.
This broke both the GDB testsuite [being fixed], and the GCC testsuite,
because testglue.c no longer compiles without warnings. This patch silences
the warnings.
--
Daniel Jacobowitz
2004-08-19 Daniel Jacobowitz <dan@debian.org>
* testglue.c: Prototype abort and exit.
--- testglue.c.orig 2004-08-19 16:09:19.000000000 -0400
+++ testglue.c 2004-08-19 16:10:36.000000000 -0400
@@ -40,6 +40,10 @@
#define ORIG_ABORT __wrap_abort
#define ORIG_MAIN __wrap_main
#endif
+
+extern void abort (void);
+extern void exit (int);
+
#endif
#ifdef REAL_MAIN