This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: more portable way to fix g77.f-torture/execute/io1.f (was Re: [PATCH] alias.c find_base_value fix)
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Cc: rittle at labs dot mot dot com, gcc-patches at gcc dot gnu dot org, toon at moene dot indiv dot nluug dot nl
- Date: Thu, 10 Jan 2002 18:03:34 -0500 (EST)
- Subject: 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.