Commit b481444e by Jakub Jelinek Committed by Jakub Jelinek

re PR driver/30460 (asm_debug is not initialized in gcc.c when using a "default" specs file)

	PR driver/30460
	* gcc.c (init_spec): Don't initialize asm_debug here...
	(main): ... but here.

From-SVN: r130219
parent 428a53ab
2007-11-16 Jakub Jelinek <jakub@redhat.com>
PR driver/30460
* gcc.c (init_spec): Don't initialize asm_debug here...
(main): ... but here.
2007-11-07 Tom Tromey <tromey@redhat.com> 2007-11-07 Tom Tromey <tromey@redhat.com>
* tree-ssa-structalias.c (ipa_pta_execute): Rename 'cfun' to * tree-ssa-structalias.c (ipa_pta_execute): Rename 'cfun' to
...@@ -1719,10 +1719,6 @@ init_spec (void) ...@@ -1719,10 +1719,6 @@ init_spec (void)
} }
#endif #endif
/* Initialize here, not in definition. The IRIX 6 O32 cc sometimes chokes
on ?: in file-scope variable initializations. */
asm_debug = ASM_DEBUG_SPEC;
for (i = ARRAY_SIZE (static_specs) - 1; i >= 0; i--) for (i = ARRAY_SIZE (static_specs) - 1; i >= 0; i--)
{ {
sl = &static_specs[i]; sl = &static_specs[i];
...@@ -6134,6 +6130,10 @@ main (int argc, char **argv) ...@@ -6134,6 +6130,10 @@ main (int argc, char **argv)
struct user_specs *uptr; struct user_specs *uptr;
char **old_argv = argv; char **old_argv = argv;
/* Initialize here, not in definition. The IRIX 6 O32 cc sometimes chokes
on ?: in file-scope variable initializations. */
asm_debug = ASM_DEBUG_SPEC;
p = argv[0] + strlen (argv[0]); p = argv[0] + strlen (argv[0]);
while (p != argv[0] && !IS_DIR_SEPARATOR (p[-1])) while (p != argv[0] && !IS_DIR_SEPARATOR (p[-1]))
--p; --p;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment