gcc.c (asm_debug): Move initialization ...
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Fri, 5 Jul 2002 12:33:52 +0000 (12:33 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Fri, 5 Jul 2002 12:33:52 +0000 (12:33 +0000)
* gcc/gcc.c (asm_debug): Move initialization ...
(init_spec): ... here.

From-SVN: r55259

gcc/ChangeLog
gcc/gcc.c

index 2b412cda2367a7e1dc95d4de710db3ab81599294..6c2b06e5ea6c2a8dd44500a29697b5993562e7fa 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
+
+       * gcc/gcc.c (asm_debug): Move initialization ...
+       (init_spec): ... here.
+
 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
 
        * c-parse.in (extdef): Append ';'.
index c980fc0bb4e813c15164db59628700f1285f0f5a..d0f0ea3e138fdf061b5b62ea5041400fa78e7818 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -646,7 +646,7 @@ proper position among the other output files.  */
 # define STARTFILE_PREFIX_SPEC ""
 #endif
 
-static const char *asm_debug = ASM_DEBUG_SPEC;
+static const char *asm_debug;
 static const char *cpp_spec = CPP_SPEC;
 static const char *cpp_predefines = CPP_PREDEFINES;
 static const char *cc1_spec = CC1_SPEC;
@@ -1483,6 +1483,10 @@ init_spec ()
     }
 #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];