This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: 3.3.1/3.4 PATCH: Don't pass --gstabs to Solaris 2/Intel native as


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


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