From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 317 invoked by alias); 13 Aug 2002 20:07:35 -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 32754 invoked from network); 13 Aug 2002 20:07:33 -0000 Received: from unknown (HELO hiauly1.hia.nrc.ca) (132.246.100.193) by sources.redhat.com with SMTP; 13 Aug 2002 20:07:33 -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 g7DK4g00028646; Tue, 13 Aug 2002 16:04:43 -0400 (EDT) Message-ID: <3D596659.B42A4732@hiauly1.hia.nrc.ca> Date: Tue, 13 Aug 2002 13:07:00 -0000 From: John David Anglin Reply-To: dave.anglin@nrc.ca Organization: National Research Council of Canada X-Accept-Language: en MIME-Version: 1.0 To: law@redhat.com CC: ross.alexander@uk.neceur.com, aoliva@redhat.com, binutils@sources.redhat.com, binutils-owner@sources.redhat.com, gcc-patches@gcc.gnu.org, libtool@sources.redhat.com, sje@cup.hp.com, config-patches@gnu.org Subject: Re: Add hppa*64* support to libtool in binutils References: <200208131739.g7DHdbH09309@porcupine.slc.redhat.com> Content-Type: multipart/mixed; boundary="------------222E189B1DF30B244D89ADE1" X-SW-Source: 2002-08/txt/msg00232.txt.bz2 This is a multi-part message in MIME format. --------------222E189B1DF30B244D89ADE1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-length: 899 Jeff Law wrote: > In message <200208131637.g7DGbYKR027710@hiauly1.hia.nrc.ca>, "John David Anglin > > >That would certainly seem convenient. Also, libtool runs configure > >in its testsuite. When I build it for hppa64, the testsuite unfortunately > >ignores the options used configuring it and as a result configures > >for hppa2.0w even though it is using 64bit tools :-( > Hmm, I hadn't thought of this case. It probably makes sense though. > > ie, if I've done something like > > CC= > configure > > Then, shouldn't that build a 64bit toolchain? We have (in effect) explicitly > asked for 64bit tools by the setting of CC. It should probably also return > hppa64-whatever as the "guessed" system. I believe that the attached patch will do the trick. Tested with a couple of configurations of libtool in hppa2.0w-hp-hpux11.00 and hppa64-hp-hpux11.00 modes. Dave --------------222E189B1DF30B244D89ADE1 Content-Type: text/plain; charset=us-ascii; name="config.guess.d" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="config.guess.d" Content-length: 804 2002-08-13 John David Anglin * config.guess (9000/[34678]??:HP-UX:*:*): For 64-bit kernels, set HP_ARCH to hppa64 if the code level of CC_FOR_BUILD is 2.0w or 2.0W. --- config.guess.orig Mon Jan 7 17:09:42 2002 +++ config.guess Tue Aug 13 15:20:07 2002 @@ -603,6 +603,20 @@ rm -f $dummy.c $dummy fi ;; esac + if [ "${HP_ARCH}" = "hppa2.0w" ]; then + # Check if the arch should be hppa2.0w or hppa64. + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + int main () {} +EOF + (CCOPTS= $CC_FOR_BUILD $dummy.c -S) && HP_LEVEL=`awk '{if (NR==1) print $2}' $dummy.s` + rm -f $dummy.c $dummy.s + case ${HP_LEVEL} in + 2.0w | 2.0W) + HP_ARCH=hppa64 + ;; + esac + fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit 0 ;; ia64:HP-UX:*:*) --------------222E189B1DF30B244D89ADE1--