From mboxrd@z Thu Jan 1 00:00:00 1970 From: "John David Anglin" To: dave@hiauly1.hia.nrc.ca (John David Anglin) Cc: gcc-bugs@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Patches: Re: libio testsuite: timeout compiling tFile.cc Date: Wed, 30 Aug 2000 18:03:00 -0000 Message-id: <200008310103.VAA19481@hiauly1.hia.nrc.ca> References: X-SW-Source: 2000-08/msg01382.html 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 * 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 * 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 +extern void exit (); #else #ifdef __cplusplus #include +extern "C" { + extern void exit (int); +} #else #include +#include /* for exit */ #endif #endif /* !TEST_LIBIO */ -#include /* for exit */ - /* Tests taken from Cygnus C library. */ typedef struct