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
This commit is contained in:
Jakub Jelinek 2007-11-16 08:02:49 +01:00 committed by Jakub Jelinek
parent 428a53ab73
commit b481444e66
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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>
* tree-ssa-structalias.c (ipa_pta_execute): Rename 'cfun' to

View File

@ -1719,10 +1719,6 @@ init_spec (void)
}
#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--)
{
sl = &static_specs[i];
@ -6134,6 +6130,10 @@ main (int argc, char **argv)
struct user_specs *uptr;
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]);
while (p != argv[0] && !IS_DIR_SEPARATOR (p[-1]))
--p;