]> 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>
Thu, 18 Jun 2009 20:06:04 +0000 (22:06 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Thu, 18 Jun 2009 20:06:04 +0000 (22:06 +0200)
2009-06-18  Tobias Burnus  <burnus@net-b.de>
            Mikael Pettersson  <mikpe@it.uu.se>

        PR debug/40061
        * dwarf2out.c (add_subscript_info): Fix build for
        MIPS_DEBUGGING_INFO.

Co-Authored-By: Mikael Pettersson <mikpe@it.uu.se>
From-SVN: r148668

gcc/ChangeLog
gcc/dwarf2out.c

index 63cbce188ea213bdb2e69cd4c95f0f8cc76c2b8c..d0cfb4925d9127545e3793ebcca059f518fbecc2 100644 (file)
@@ -1,3 +1,10 @@
+2009-06-18  Tobias Burnus  <burnus@net-b.de>
+           Mikael Pettersson  <mikpe@it.uu.se>
+
+       PR debug/40061
+       * dwarf2out.c (add_subscript_info): Fix build for
+       MIPS_DEBUGGING_INFO.
+
 2009-06-17  Richard Guenther  <rguenther@suse.de>
 
        Backport from mainline
index 63d93a24b0138d24d8d3677c9bf4120b275fbdcb..f8944e4e0f8f4c079a5cd1a662ad0276d65924d5 100644 (file)
@@ -11297,7 +11297,9 @@ 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;
 
@@ -11315,17 +11317,18 @@ add_subscript_info (dw_die_ref type_die, tree type)
      We work around this by disabling this feature.  See also
      gen_array_type_die.  */
 
-  dimension_number = 0;
 #ifndef MIPS_DEBUGGING_INFO
-  for ( 
+  for (dimension_number = 0
        TREE_CODE (type) == ARRAY_TYPE;
        type = TREE_TYPE (type), dimension_number++)
 #endif
     {
       tree domain = TYPE_DOMAIN (type);
 
+#ifndef MIPS_DEBUGGING_INFO
       if (TYPE_STRING_FLAG (type) && is_fortran () && dimension_number > 0)
        break;
+#endif
 
       /* Arrays come in three flavors: Unspecified bounds, fixed bounds,
         and (in GNU C only) variable bounds.  Handle all three forms