This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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 to config.guess (2002-07-03) to detect 64bit HPUX compiler


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  <bje@redhat.com>
> 
>         From <ross.alexander@uk.neceur.com>:
>         * 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)


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