re PR driver/30460 (asm_debug is not initialized in gcc.c when using a "default"...
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Nov 2007 07:02:49 +0000 (08:02 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Nov 2007 07:02:49 +0000 (08:02 +0100)
PR driver/30460
* gcc.c (init_spec): Don't initialize asm_debug here...
(main): ... but here.

From-SVN: r130219

gcc/ChangeLog
gcc/gcc.c

index 7c00d0b5f394a4a642e0758841d605b96776b9e8..6db268ff8695edbebab5775c6e33d4f0a2b51d18 100644 (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
index bd266496ac791dbbbd987f5d837a36174f2aa651..86e0df532a85624e85c72fa86e394495e2a634cd 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -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;