From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23388 invoked by alias); 10 Jan 2002 23:03:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 23336 invoked from network); 10 Jan 2002 23:03:37 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sources.redhat.com with SMTP; 10 Jan 2002 23:03:37 -0000 Received: from hiauly1.hia.nrc.ca (localhost [127.0.0.1]) by hiauly1.hia.nrc.ca (8.12.0.Beta16/8.12.0.Beta16) with ESMTP id g0AN3ZFN020312; Thu, 10 Jan 2002 18:03:35 -0500 (EST) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.0.Beta16/8.12.0.Beta16) id g0AN3Z6w020311; Thu, 10 Jan 2002 18:03:35 -0500 (EST) Message-Id: <200201102303.g0AN3Z6w020311@hiauly1.hia.nrc.ca> Subject: Re: PATCH: more portable way to fix g77.f-torture/execute/io1.f (was Re: [PATCH] alias.c find_base_value fix) To: dave@hiauly1.hia.nrc.ca (John David Anglin) Date: Thu, 10 Jan 2002 16:38:00 -0000 From: "John David Anglin" Cc: rittle@labs.mot.com, gcc-patches@gcc.gnu.org, toon@moene.indiv.nluug.nl In-Reply-To: <200201101733.g0AHXEWD018641@hiauly1.hia.nrc.ca> from "John David Anglin" at Jan 10, 2002 12:33:14 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00779.txt.bz2 > > 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 * 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.