* [Bug driver/30460] asm_debug is not initialized in gcc.c
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
@ 2007-01-14 1:56 ` rschiele at uni-mannheim dot de
2007-01-14 2:10 ` pinskia at gcc dot gnu dot org
` (15 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rschiele at uni-mannheim dot de @ 2007-01-14 1:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rschiele at uni-mannheim dot de 2007-01-14 01:56 -------
Created an attachment (id=12903)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12903&action=view)
Fix for the problem.
BTW: This is also true for 4.2.x and 4.1.x. I have not looked into older
releases.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] asm_debug is not initialized in gcc.c
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
2007-01-14 1:56 ` [Bug driver/30460] " rschiele at uni-mannheim dot de
@ 2007-01-14 2:10 ` pinskia at gcc dot gnu dot org
2007-01-14 2:22 ` rschiele at gmail dot com
` (14 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-14 2:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-01-14 02:10 -------
actually asm_debug is initialized in init_spec, with the following comment:
/* Initialize here, not in definition. The IRIX 6 O32 cc sometimes chokes
on ?: in file-scope variable initializations. */
asm_debug = ASM_DEBUG_SPEC;
Oh, init_spec is not called because you read in the spec so there is no need to
call the initializer:
/* Read the specs file unless it is a default one. */
if (specs_file != 0 && strcmp (specs_file, "specs"))
read_specs (specs_file, TRUE);
else
init_spec ();
so your patch is incorrect as it might cause a bootstrap failure (unless IRIX 6
support has been removed).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Keywords|patch |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] asm_debug is not initialized in gcc.c
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
2007-01-14 1:56 ` [Bug driver/30460] " rschiele at uni-mannheim dot de
2007-01-14 2:10 ` pinskia at gcc dot gnu dot org
@ 2007-01-14 2:22 ` rschiele at gmail dot com
2007-01-14 2:49 ` [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a specs file pinskia at gcc dot gnu dot org
` (13 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rschiele at gmail dot com @ 2007-01-14 2:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rschiele at gmail dot com 2007-01-14 02:21 -------
Andrew, it does not help to initialize in init_spec() because init_spec() is
only called when there is _no_ spec file found.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (2 preceding siblings ...)
2007-01-14 2:22 ` rschiele at gmail dot com
@ 2007-01-14 2:49 ` pinskia at gcc dot gnu dot org
2007-01-14 3:12 ` rschiele at gmail dot com
` (12 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-14 2:49 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.3.3 3.4.0 4.0.0 4.1.0
| |4.2.0 4.0.4 4.1.2 4.1.1
| |4.1.0 4.0.3 4.0.2 4.0.1
Known to work| |3.0.4
Summary|asm_debug is not initialized|[4.0/4.1/4.2/4.3 Regression]
|in gcc.c |asm_debug is not initialized
| |in gcc.c when using a specs
| |file
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (3 preceding siblings ...)
2007-01-14 2:49 ` [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a specs file pinskia at gcc dot gnu dot org
@ 2007-01-14 3:12 ` rschiele at gmail dot com
2007-01-14 6:16 ` [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" " pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rschiele at gmail dot com @ 2007-01-14 3:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rschiele at gmail dot com 2007-01-14 03:12 -------
What about just calling init_spec() _allways_ _before_ reading the default
specs file instead of calling it only when there is no default specs file?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (4 preceding siblings ...)
2007-01-14 3:12 ` rschiele at gmail dot com
@ 2007-01-14 6:16 ` pinskia at gcc dot gnu dot org
2007-01-14 8:03 ` rschiele at gmail dot com
` (10 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-14 6:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-01-14 06:16 -------
In my mind this is a minor issue because the way you are using the specs file
is wrong, you are using the defaults spec file and not using the overriding
one.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-01-14 06:16:27
date| |
Summary|[4.0/4.1/4.2/4.3 Regression]|[4.0/4.1/4.2/4.3 Regression]
|asm_debug is not initialized|asm_debug is not initialized
|in gcc.c when using a specs |in gcc.c when using a
|file |"default" specs file
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (5 preceding siblings ...)
2007-01-14 6:16 ` [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" " pinskia at gcc dot gnu dot org
@ 2007-01-14 8:03 ` rschiele at gmail dot com
2007-01-14 13:52 ` rschiele at gmail dot com
` (9 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rschiele at gmail dot com @ 2007-01-14 8:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rschiele at gmail dot com 2007-01-14 08:03 -------
Agreed, but why shouldn't we change the special handling of the default specs
file as suggested in comment #4? I can't see why we should enforce people to
specify _full_ information in the default specs file if they only want to
change _one_ thing from the compiled-in values. Is there any reason?
As far as I can see my suggestion in comment #4 would solve this issue and make
usage of a default specs file more convenient.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (6 preceding siblings ...)
2007-01-14 8:03 ` rschiele at gmail dot com
@ 2007-01-14 13:52 ` rschiele at gmail dot com
2007-02-03 21:24 ` gdr at gcc dot gnu dot org
` (8 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rschiele at gmail dot com @ 2007-01-14 13:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rschiele at gmail dot com 2007-01-14 13:52 -------
Created an attachment (id=12904)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12904&action=view)
new version of the fix
This implements my new suggestion on how to fix this. Any comments?
--
rschiele at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #12903|0 |1
is obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (7 preceding siblings ...)
2007-01-14 13:52 ` rschiele at gmail dot com
@ 2007-02-03 21:24 ` gdr at gcc dot gnu dot org
2007-02-03 21:25 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 21:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from gdr at gcc dot gnu dot org 2007-02-03 21:24 -------
won't fix in GCC-4.0.x. Adjusting milestone.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.4 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (8 preceding siblings ...)
2007-02-03 21:24 ` gdr at gcc dot gnu dot org
@ 2007-02-03 21:25 ` pinskia at gcc dot gnu dot org
2007-02-05 5:52 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-02-03 21:25 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.3 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (9 preceding siblings ...)
2007-02-03 21:25 ` pinskia at gcc dot gnu dot org
@ 2007-02-05 5:52 ` mmitchel at gcc dot gnu dot org
2007-02-14 9:26 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-05 5:52 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (10 preceding siblings ...)
2007-02-05 5:52 ` mmitchel at gcc dot gnu dot org
@ 2007-02-14 9:26 ` mmitchel at gcc dot gnu dot org
2007-10-27 21:07 ` aldyh at gcc dot gnu dot org
` (4 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:26 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.2 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (11 preceding siblings ...)
2007-02-14 9:26 ` mmitchel at gcc dot gnu dot org
@ 2007-10-27 21:07 ` aldyh at gcc dot gnu dot org
2007-11-16 7:03 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2007-10-27 21:07 UTC (permalink / raw)
To: gcc-bugs
--
aldyh at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aldyh at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2/4.3 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (12 preceding siblings ...)
2007-10-27 21:07 ` aldyh at gcc dot gnu dot org
@ 2007-11-16 7:03 ` jakub at gcc dot gnu dot org
2007-11-16 7:11 ` [Bug driver/30460] [4.0/4.1/4.2 " jakub at gcc dot gnu dot org
` (2 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-16 7:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jakub at gcc dot gnu dot org 2007-11-16 07:03 -------
Subject: Bug 30460
Author: jakub
Date: Fri Nov 16 07:02:49 2007
New Revision: 130219
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130219
Log:
PR driver/30460
* gcc.c (init_spec): Don't initialize asm_debug here...
(main): ... but here.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gcc.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.0/4.1/4.2 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (13 preceding siblings ...)
2007-11-16 7:03 ` jakub at gcc dot gnu dot org
@ 2007-11-16 7:11 ` jakub at gcc dot gnu dot org
2008-07-04 21:49 ` [Bug driver/30460] [4.2 " jsm28 at gcc dot gnu dot org
2009-03-30 20:22 ` jsm28 at gcc dot gnu dot org
16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-11-16 7:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jakub at gcc dot gnu dot org 2007-11-16 07:10 -------
Fixed on the trunk.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2/4.3 Regression]|[4.0/4.1/4.2 Regression]
|asm_debug is not initialized|asm_debug is not initialized
|in gcc.c when using a |in gcc.c when using a
|"default" specs file |"default" specs file
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.2 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (14 preceding siblings ...)
2007-11-16 7:11 ` [Bug driver/30460] [4.0/4.1/4.2 " jakub at gcc dot gnu dot org
@ 2008-07-04 21:49 ` jsm28 at gcc dot gnu dot org
2009-03-30 20:22 ` jsm28 at gcc dot gnu dot org
16 siblings, 0 replies; 18+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 21:49 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from jsm28 at gcc dot gnu dot org 2008-07-04 21:48 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2 Regression] |[4.2 Regression] asm_debug
|asm_debug is not initialized|is not initialized in gcc.c
|in gcc.c when using a |when using a "default" specs
|"default" specs file |file
Target Milestone|4.1.3 |4.2.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug driver/30460] [4.2 Regression] asm_debug is not initialized in gcc.c when using a "default" specs file
2007-01-14 1:52 [Bug driver/30460] New: asm_debug is not initialized in gcc.c rschiele at uni-mannheim dot de
` (15 preceding siblings ...)
2008-07-04 21:49 ` [Bug driver/30460] [4.2 " jsm28 at gcc dot gnu dot org
@ 2009-03-30 20:22 ` jsm28 at gcc dot gnu dot org
16 siblings, 0 replies; 18+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-30 20:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from jsm28 at gcc dot gnu dot org 2009-03-30 20:22 -------
Closing 4.2 branch, fixed in 4.3.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|3.3.3 3.4.0 4.0.0 4.1.0 |3.3.3 3.4.0 4.0.0 4.1.0
|4.2.0 4.0.4 4.1.2 4.1.1 |4.2.0 4.0.4 4.1.2 4.1.1
|4.1.0 4.0.4 4.0.3 4.0.2 |4.1.0 4.0.4 4.0.3 4.0.2
|4.0.1 |4.0.1 4.2.5
Known to work|3.0.4 |3.0.4 4.3.0
Resolution| |FIXED
Target Milestone|4.2.5 |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30460
^ permalink raw reply [flat|nested] 18+ messages in thread