diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-11-16 08:02:49 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2007-11-16 08:02:49 +0100 |
commit | b481444e66204a942f7c98db79183150b11f858b (patch) | |
tree | 3bee0e08a9064734e0c3efb081a30dcc8160b069 /gcc | |
parent | 428a53ab73b09cce92ab2674344a2be6b91ee725 (diff) | |
download | gcc-b481444e66204a942f7c98db79183150b11f858b.zip gcc-b481444e66204a942f7c98db79183150b11f858b.tar.gz gcc-b481444e66204a942f7c98db79183150b11f858b.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/gcc.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7c00d0b..6db268f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 @@ -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; |