This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc-2.95.3, but not gcc-2.95.2, requires gas on hppa2.0-hp-hpux10.20
- To: Martin Buchholz <martin at xemacs dot org>
- Subject: Re: gcc-2.95.3, but not gcc-2.95.2, requires gas on hppa2.0-hp-hpux10.20
- From: Jeffrey A Law <law at redhat dot com>
- Date: Tue, 23 Jan 2001 09:34:35 -0700
- cc: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>, gcc-bugs at gcc dot gnu dot org, bernds at redhat dot com
- Reply-To: law at redhat dot com
In message <14957.7716.184344.679629@mule.m17n.org>you write:
> I reran the build. Here is what I get this time:
>
> make[3]: Entering directory `/usr/local/xemacs/gcc-2.95.3/gcc'
> ./xgcc -B/usr/local/hppa2.0-hp-hpux10.20/bin/ -B./ -I/usr/local/hppa2.0-hp-
> hpux10.20/include -O2 -DIN_GCC -DHAIFA -O2 -O2 -I./include -fPIC -g1
> -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -O2 -I. -I/project/xemacs/import/g
> cc-2.95.3.test2/gcc -I/project/xemacs/import/gcc-2.95.3.test2/gcc/config -I
> /project/xemacs/import/gcc-2.95.3.test2/gcc/../include \
> -c /project/xemacs/import/gcc-2.95.3.test2/gcc/cp/tinfo.cc
> cc1plus: warning: -g is only supported when using GAS on this processor,
> cc1plus: warning: -g option disabled.
> as: error 7403: undefined label - L$0175 (7403)
>
> It does seem like a gasism has infected the generated assembler code.
>
> To test this hypothesis, I built a binutils-2.10 for my
> hppa2.0-hp-hpux10.20 system, and then retried bootstrapping
> gcc-2.95.3.test2 again, adding --with-as=/path/to/as to the
> configure command.
>
> This time, tinfo.cc built just fine.
It's entirely possible the EH code isn't compatible with HP's assembler.
My recommendation, don't use HP's assembler. It has many significant
problems, including some which make it impossible for GCC to emit correct
code for certain programs.
GAS (of course) doesn't have these problems, in addition is supports debugging.
jeff