This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]