This is the mail archive of the gcc-bugs@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]

Patches: Re: libio testsuite: timeout compiling tFile.cc


Here are patches that allow the libio testsuite to run successfully under
hpux 10.20 on a slow machine.  Please review.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

2000-08-30  J. David Anglin  <dave@hiauly1.hia.nrc.ca>

	* lib/libio.exp: Don't inline functions to allow libio tests to work
	in a reasonable time on machines that are slow or have small memories.

--- lib/libio.exp.orig	Wed Jun 23 08:10:00 1999
+++ lib/libio.exp	Wed Aug 30 19:55:23 2000
@@ -57,7 +57,7 @@
 
     set args ""
     set ld_library_path ""
-    lappend args "additional_flags=-O3";
+    lappend args "additional_flags=-O3 -fno-inline";
     lappend args "additional_flags=-I.. -I$srcdir/.."
     lappend args "additional_flags=$wrap_compile_flags";
     lappend args "libs=$wrapper_file";

2000-08-30  J. David Anglin  <dave@hiauly1.hia.nrc.ca>

	* tfformat.c: Don't include stdlib.h for exit if TEST_LIBIO or
	__cplusplus are defined.

--- tfformat.c.orig	Tue May 23 17:33:18 2000
+++ tfformat.c	Wed Aug 30 20:23:16 2000
@@ -1,15 +1,18 @@
 #ifdef TEST_LIBIO
 #include <iostdio.h>
+extern void exit ();
 #else
 #ifdef __cplusplus
 #include <strstream.h>
+extern "C" {
+  extern void exit (int);
+}
 #else
 #include <stdio.h>
+#include <stdlib.h>	/* for exit */
 #endif
 #endif /* !TEST_LIBIO */
 
-#include <stdlib.h>	/* for exit */
-
 /* Tests taken from Cygnus C library. */
 
 typedef struct

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