From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24001 invoked by alias); 3 Dec 2002 15:50:50 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 23978 invoked from network); 3 Dec 2002 15:50:45 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sources.redhat.com with SMTP; 3 Dec 2002 15:50:45 -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 gB3FoDot024342; Tue, 3 Dec 2002 10:50:13 -0500 (EST) Received: (from dave@localhost) by hiauly1.hia.nrc.ca (8.12.0.Beta16/8.12.0.Beta16) id gB3FoCl9024341; Tue, 3 Dec 2002 10:50:12 -0500 (EST) Message-Id: <200212031550.gB3FoCl9024341@hiauly1.hia.nrc.ca> Subject: Re: Patch to config.guess (2002-07-03) to detect 64bit HPUX compiler To: bje@redhat.com (Ben Elliston) Date: Tue, 03 Dec 2002 07:50:00 -0000 From: "John David Anglin" Cc: ross.alexander@uk.neceur.com, law@redhat.com, binutils@sources.redhat.com In-Reply-To: from "Ben Elliston" at Nov 30, 2002 05:04:50 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2002-12/txt/msg00073.txt.bz2 I applied the patch to config.guess in gcc-3.3. I had to apply it manually because of minor formatting differences. It didn't work correctly. The following appeared in the gcc build log. I was using a 64-bit gcc as the build compiler. ../gcc/config.guess[631]: tmpdir=${TMPDIR-/tmp}/config-guess-$$: not found. ../gcc/config.guess[632]: -E: not found. Configuring for a hppa64-hp-hpux11.11 host. ... >From the second message, it would appear that CC_FOR_BUILD was an empty string. I'm not sure what is causing the first message. Dave > Is everyone agreeable to this patch? Can someone with the right HP > systems test the patch? Thanks. > > Ben > > > 2002-11-30 Ben Elliston > > From : > * config.guess (*:HP-UX:*:*): Detect 64-bit compiler. > > Index: config.guess > =================================================================== > RCS file: /cvsroot/config/config/config.guess,v > retrieving revision 1.258 > diff -u -r1.258 config.guess > --- config.guess 30 Nov 2002 05:05:28 -0000 1.258 > +++ config.guess 30 Nov 2002 05:59:38 -0000 > @@ -635,10 +635,21 @@ > } > EOF > (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` > - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi > + test -z "$HP_ARCH" && HP_ARCH=hppa > rm -f $dummy.c $dummy && rmdir $tmpdir > fi ;; > esac > + if [ ${HP_ARCH} = "hppa2.0w" ] > + then > + # avoid double evaluation of $set_cc_for_build > + test -n "$CC_FOR_BUILD" || $set_cc_for_build > + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ > + then > + HP_ARCH="hppa2.0w" > + else > + HP_ARCH="hppa64" > + fi > + fi > echo ${HP_ARCH}-hp-hpux${HPUX_REV} > exit 0 ;; > ia64:HP-UX:*:*) > -- J. David Anglin dave.anglin@nrc.ca National Research Council of Canada (613) 990-0752 (FAX: 952-6605)