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

Re: PATCH: more portable way to fix g77.f-torture/execute/io1.f (was Re: [PATCH] alias.c find_base_value fix)


> > No, I don't think this is it.  I have looked at the preprocessed output
> > from backspace.c.  There isn't a prototype at all for fseeko in the
> > output.  This appears to be because _LARGEFILE_SOURCE is not defined.
> 
> I added a define for _LARGEFILE_SOURCE in libI77/config.h.  Rebuilding
> the library and rerunning the g77 testsuite, I find that this fixes the
> io0.f, io1.f and u77-test.f FAILS.  This only leaves the FAIL of
> 20001201.f on hppa2.0w-hp-hpux11.11.

Here is a patch.  Fixes the above with no regressions.  Toon would
you apply if ok so that configure and config.in are rebuilt with your
favorite versions of autoconf and autoheader?

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

2002-01-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>

	* libI77/configure.in (_LARGEFILE_SOURCE): AC_DEFINE.
	* libI77/configure: Rebuilt.
	* libI77/config.h.in: Rebuilt.

--- libI77/configure.in.orig	Sun Sep 30 18:06:22 2001
+++ libI77/configure.in	Thu Jan 10 14:40:28 2002
@@ -31,6 +31,7 @@
 # The following is needed by Solaris2.5.1 so that struct timeval is declared.
 AC_DEFINE(__EXTENSIONS__, 1, [Solaris extensions])
 AC_DEFINE(_FILE_OFFSET_BITS, 64, [Get 64-bit file size support])
+AC_DEFINE(_LARGEFILE_SOURCE, 1, [Define for HP-UX ftello and fseeko extension.])
 
 dnl Checks for programs.
 


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