This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: 3.3.1/3.4 PATCH: Don't pass --gstabs to Solaris 2/Intel native as
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 13 Jun 2003 08:27:18 -0400
- Subject: Re: 3.3.1/3.4 PATCH: Don't pass --gstabs to Solaris 2/Intel native as
- References: <16105.49591.805809.319711@xayide.TechFak.Uni-Bielefeld.DE>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Jun 13, 2003 at 02:21:11PM +0200, Rainer Orth wrote:
> While investigating the Solaris 9/Intel bootstrap failure fixed by
>
> http://gcc.gnu.org/ml/gcc-patches/2003-06/msg01125.html
>
> I noticed that gcc passes --gstabs to the native assembler. This problem
> has already been reported as PR driver/9362, where it causes as to crash.
> gcc/configure fails to detect this lack of --gstabs support due to a bug in
> Solaris 9 as:
>
> > as --gstabs -c os_SunOS_x86.s
> Assembler:
> "", line 1 : Warning: Illegal flag (-) - ignored
> "", line 1 : Warning: Illegal flag (g) - ignored
> "", line 1 : Warning: Illegal flag (t) - ignored
> "", line 1 : Warning: Illegal flag (a) - ignored
> "", line 1 : Warning: Illegal flag (c) - ignored
> > echo $?
> 0
>
> Until Sun fixes this bug, we need to work around this in gcc/configure.in.
> This patch does this, and bootstrapped on mainline without regressions.
>
> This is a regression from gcc 3.0, so I'd like to apply the patch both to
> mainline and the 3.3 branch once fully regtested there.
Wouldn't it be much better to scan as's stdout/stderr for any warnings
in addition to checking error flag.
Jakub