]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR bootstrap/40061 (Bootstrap failure in dwarf2out.c, function add_subscript_info...
authorTobias Burnus <burnus@net-b.de>
Tue, 12 May 2009 19:26:46 +0000 (21:26 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 12 May 2009 19:26:46 +0000 (21:26 +0200)
2009-05-12  Tobias Burnus  <burnus@net-b.de>

        PR bootstrap/40061
        * dwarf2.out.c (add_subscript_info): Initialize dimension for
        MIPS_DEBUGGING_INFO.

From-SVN: r147445

gcc/ChangeLog
gcc/dwarf2out.c

index f6e9f9cca66ea399ee5da1b39db60850730f911f..7ba212b80e87d0732073aed49ed7955713a41f2e 100644 (file)
@@ -1,3 +1,9 @@
+2009-05-12  Tobias Burnus  <burnus@net-b.de>
+
+       PR bootstrap/40061
+       * dwarf2.out.c (add_subscript_info): Initialize dimension for
+       MIPS_DEBUGGING_INFO.
+
 2009-05-08  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/40062
index b8654bafe336ddfa86c2e7dc2040ff3afec38182..f34910aff1f06f6ed1c911c05e4aa15d76d93bbe 100644 (file)
@@ -11297,9 +11297,7 @@ add_bound_info (dw_die_ref subrange_die, enum dwarf_attribute bound_attr, tree b
 static void
 add_subscript_info (dw_die_ref type_die, tree type)
 {
-#ifndef MIPS_DEBUGGING_INFO
   unsigned dimension_number;
-#endif
   tree lower, upper;
   dw_die_ref subrange_die;
 
@@ -11316,8 +11314,10 @@ add_subscript_info (dw_die_ref type_die, tree type)
      const enum type.  E.g. const enum machine_mode insn_operand_mode[2][10].
      We work around this by disabling this feature.  See also
      gen_array_type_die.  */
+
+  dimension_number = 0;
 #ifndef MIPS_DEBUGGING_INFO
-  for (dimension_number = 0;
+  for ( ; 
        TREE_CODE (type) == ARRAY_TYPE;
        type = TREE_TYPE (type), dimension_number++)
 #endif