* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
@ 2003-09-04 22:44 ` ro at techfak dot uni-bielefeld dot de
2003-09-04 22:48 ` ro at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2003-09-04 22:44 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2003-09-04 22:44 -------
Subject: Re: New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
Neil Booth writes:
> What's the real problem? I think the above, in isolation, is
> an improvement. I can't tell from your post what is really
> wrong.
The problem is that gcc -g -E on targets without debugging support produced
no warning before, but does now, which breaks bootstrap for all of them.
It may be possible to avoid passing -g for this case, but given that
configure regularly defaults to -g -O2, this may be hard, both for gcc or
in the general case.
Rainer
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
2003-09-04 22:44 ` [Bug bootstrap/12173] " ro at techfak dot uni-bielefeld dot de
@ 2003-09-04 22:48 ` ro at gcc dot gnu dot org
2003-09-11 21:43 ` ro at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ro at gcc dot gnu dot org @ 2003-09-04 22:48 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
ro at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |neil at daikokuya dot co dot
| |uk
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
2003-09-04 22:44 ` [Bug bootstrap/12173] " ro at techfak dot uni-bielefeld dot de
2003-09-04 22:48 ` ro at gcc dot gnu dot org
@ 2003-09-11 21:43 ` ro at gcc dot gnu dot org
2003-09-11 21:46 ` ro at techfak dot uni-bielefeld dot de
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ro at gcc dot gnu dot org @ 2003-09-11 21:43 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
ro at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aoliva at redhat dot com
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-09-11 21:43 ` ro at gcc dot gnu dot org
@ 2003-09-11 21:46 ` ro at techfak dot uni-bielefeld dot de
2003-09-12 5:26 ` neil at daikokuya dot co dot uk
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2003-09-11 21:46 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2003-09-11 21:46 -------
Subject: Re: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
Alexandre,
I just found out that this patch of yours
http://gcc.gnu.org/ml/gcc-patches/2003-08/msg00360.html
introduced this bug by passing -g options to cc1 vi cpp_options. This
breaks bootstrap on mips-sgi-irix6.5o32 and mips-sgi-irix5.3 (i.e. any
platform where -g isn't supported). While the warning issued is fine for
compilation, preprocessor output is identical whether or not -g is given,
so there should be now warning.
Any idea for a proper fix?
Rainer
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-09-11 21:46 ` ro at techfak dot uni-bielefeld dot de
@ 2003-09-12 5:26 ` neil at daikokuya dot co dot uk
2003-09-12 15:10 ` aoliva at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: neil at daikokuya dot co dot uk @ 2003-09-12 5:26 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From neil at daikokuya dot co dot uk 2003-09-12 05:26 -------
Subject: Re: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
ro at techfak dot uni-bielefeld dot de wrote:-
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
>
>
>
> ------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2003-09-11 21:46 -------
> Subject: Re: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
>
> Alexandre,
>
> I just found out that this patch of yours
>
> http://gcc.gnu.org/ml/gcc-patches/2003-08/msg00360.html
>
> introduced this bug by passing -g options to cc1 vi cpp_options. This
> breaks bootstrap on mips-sgi-irix6.5o32 and mips-sgi-irix5.3 (i.e. any
> platform where -g isn't supported). While the warning issued is fine for
> compilation, preprocessor output is identical whether or not -g is given,
> so there should be now warning.
>
> Any idea for a proper fix?
I think the -E should be independent of -g, and should not be in
cpp_options. I was reluctant to accept this at the time Alexandre
did it.
Neil.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (4 preceding siblings ...)
2003-09-12 5:26 ` neil at daikokuya dot co dot uk
@ 2003-09-12 15:10 ` aoliva at gcc dot gnu dot org
2003-09-15 20:36 ` ro at techfak dot uni-bielefeld dot de
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2003-09-12 15:10 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From aoliva at gcc dot gnu dot org 2003-09-12 15:08 -------
This could be construed as a bug in autoconf. It's already fixed in autoconf
2.5x, that knows to ignore warning messages from the preprocessor when testing
for header files. Anyway, if -g is not supported, it shouldn't be passed down
to target library configuration, right?
As for why we have to pass -g to the preprocessor, I might instead pass
-fworking-directory if there's any -g* in the command line and no
-fno-working-directory. This would solve the immediate problem. The
alternative would be to have -fworking-directory enabled by default, which would
(slightly) impact those who don't need entirely-accurate debug information (or
error mesasges, FWIW).
Which one would be preferrable?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (5 preceding siblings ...)
2003-09-12 15:10 ` aoliva at gcc dot gnu dot org
@ 2003-09-15 20:36 ` ro at techfak dot uni-bielefeld dot de
2003-09-15 21:02 ` ro at techfak dot uni-bielefeld dot de
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2003-09-15 20:36 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2003-09-15 20:07 -------
Subject: Re: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
> I think the -E should be independent of -g, and should not be in
> cpp_options. I was reluctant to accept this at the time Alexandre
> did it.
I tend to agree: even if -g is not supported, the preprocessor output
should be identical in both cases, so -g is irrelevant. And even on
platforms without debugging support, -g3 -E is still a very useful tool to
investigate macro expansion problems (though this is handled by passing -dD
to cc1).
Rainer
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (6 preceding siblings ...)
2003-09-15 20:36 ` ro at techfak dot uni-bielefeld dot de
@ 2003-09-15 21:02 ` ro at techfak dot uni-bielefeld dot de
2003-09-25 18:43 ` ro at techfak dot uni-bielefeld dot de
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2003-09-15 21:02 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2003-09-15 20:15 -------
Subject: Re: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
> This could be construed as a bug in autoconf. It's already fixed in autoconf
> 2.5x, that knows to ignore warning messages from the preprocessor when testing
... which seems to cause other problems: this way, e.g. deprecation
warnings from headers are ignored as well. And even if autoconf 2.5x get
this right (or at least can cope with this case), this neither helps for
the current bootstrap problem nor for building other packages which come
with configure from older autoconf versions.
> for header files. Anyway, if -g is not supported, it shouldn't be passed down
> to target library configuration, right?
True in principle, though -g isn't passed explicitly, but automatically
added by configure if no {C,CXX,FC,JC}FLAGS (or however they are called for
the language in question) are given. Thus it might become quite messy to
bootstrap for targets without -g support.
> As for why we have to pass -g to the preprocessor, I might instead pass
> -fworking-directory if there's any -g* in the command line and no
> -fno-working-directory. This would solve the immediate problem. The
> alternative would be to have -fworking-directory enabled by default, which would
> (slightly) impact those who don't need entirely-accurate debug information (or
> error mesasges, FWIW).
>
> Which one would be preferrable?
Since getcwd may be expensive in some environments, I prefer the former.
Rainer
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (7 preceding siblings ...)
2003-09-15 21:02 ` ro at techfak dot uni-bielefeld dot de
@ 2003-09-25 18:43 ` ro at techfak dot uni-bielefeld dot de
2003-09-29 17:48 ` aoliva at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2003-09-25 18:43 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2003-09-25 17:38 -------
Subject: Re: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
Alexandre,
any progress on a patch for this problem? As is, this currently breaks
bootstrap on IRIX 5 and will block integration of my IRIX 6 O32 patches
since that configuration doesn't bootstrap while this bug is unfixed.
Alternatively, one could apply the following stop-gap patch until you've
provided a real fix
Rainer
Fri Sep 12 00:12:52 2003 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* gcc.c (cpp_options): Don't pass -g*.
Index: gcc/gcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.393
diff -u -p -r1.393 gcc.c
--- gcc/gcc.c 4 Sep 2003 06:30:02 -0000 1.393
+++ gcc/gcc.c 23 Sep 2003 21:40:34 -0000
@@ -755,7 +755,7 @@ static const char *cpp_unique_options =
in turn cause preprocessor symbols to be defined specially. */
static const char *cpp_options =
"%(cpp_unique_options) %1 %{m*} %{std*} %{ansi} %{W*&pedantic*} %{w} %{f*}\
- %{g*} %{O*} %{undef}";
+ %{O*} %{undef}";
/* This contains cpp options which are not passed when the preprocessor
output will be used by another program. */
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (8 preceding siblings ...)
2003-09-25 18:43 ` ro at techfak dot uni-bielefeld dot de
@ 2003-09-29 17:48 ` aoliva at gcc dot gnu dot org
2003-09-29 19:45 ` ro at techfak dot uni-bielefeld dot de
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: aoliva at gcc dot gnu dot org @ 2003-09-29 17:48 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From aoliva at gcc dot gnu dot org 2003-09-29 17:30 -------
No progress. I'm still waiting for Neil's answer to my question.
Personally, I'd go with:
- %{g*} %{O*} %{undef}";
+ %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef}";
Would you give it a try and formally propose it if it fixes the problem for you?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (9 preceding siblings ...)
2003-09-29 17:48 ` aoliva at gcc dot gnu dot org
@ 2003-09-29 19:45 ` ro at techfak dot uni-bielefeld dot de
2003-10-02 0:21 ` ro at techfak dot uni-bielefeld dot de
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2003-09-29 19:45 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2003-09-29 17:36 -------
Subject: Re: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
Will do, thanks.
I'm just running fresh bootstraps with the current version of my IRIX 6
cleanup/O32 integration patches anyway.
Thanks.
Rainer
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (10 preceding siblings ...)
2003-09-29 19:45 ` ro at techfak dot uni-bielefeld dot de
@ 2003-10-02 0:21 ` ro at techfak dot uni-bielefeld dot de
2003-10-07 21:14 ` cvs-commit at gcc dot gnu dot org
2003-10-07 21:16 ` ro at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2003-10-02 0:21 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2003-10-02 00:21 -------
Subject: Re: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
Done:
http://gcc.gnu.org/ml/gcc-patches/2003-10/msg00086.html
Rainer
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (11 preceding siblings ...)
2003-10-02 0:21 ` ro at techfak dot uni-bielefeld dot de
@ 2003-10-07 21:14 ` cvs-commit at gcc dot gnu dot org
2003-10-07 21:16 ` ro at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-07 21:14 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-10-07 21:14 -------
Subject: Bug 12173
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: ro@gcc.gnu.org 2003-10-07 21:14:15
Modified files:
gcc : ChangeLog gcc.c
Log message:
2003-10-07 Alexandre Oliva <aoliva@redhat.com>
* gcc.c (cpp_options): Only pass -fworking-directory for -g* if
not overridden.
Fixes PR bootstrap/12173.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.1328&r2=2.1329
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&r1=1.393&r2=1.394
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug bootstrap/12173] IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning
2003-09-04 22:36 [Bug bootstrap/12173] New: IRIX 6 O32 (with as) bootstrap failure due to gcc -g -E warning gcc-bugzilla at gcc dot gnu dot org
` (12 preceding siblings ...)
2003-10-07 21:14 ` cvs-commit at gcc dot gnu dot org
@ 2003-10-07 21:16 ` ro at gcc dot gnu dot org
13 siblings, 0 replies; 15+ messages in thread
From: ro at gcc dot gnu dot org @ 2003-10-07 21:16 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12173
ro at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4
------- Additional Comments From ro at gcc dot gnu dot org 2003-10-07 21:16 -------
Fixed for 3.4.
^ permalink raw reply [flat|nested] 15+ messages in thread