From: Tobias Burnus Date: Tue, 12 May 2009 19:26:46 +0000 (+0200) Subject: re PR bootstrap/40061 (Bootstrap failure in dwarf2out.c, function add_subscript_info... X-Git-Tag: releases/gcc-4.3.4~180 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3837698dd1a75d0b776893e32cd85f9a0c65acc9;p=thirdparty%2Fgcc.git re PR bootstrap/40061 (Bootstrap failure in dwarf2out.c, function add_subscript_info: 'dimension_number' undefined) 2009-05-12 Tobias Burnus PR bootstrap/40061 * dwarf2.out.c (add_subscript_info): Initialize dimension for MIPS_DEBUGGING_INFO. From-SVN: r147445 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f6e9f9cca66e..7ba212b80e87 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-05-12 Tobias Burnus + + PR bootstrap/40061 + * dwarf2.out.c (add_subscript_info): Initialize dimension for + MIPS_DEBUGGING_INFO. + 2009-05-08 Richard Guenther PR tree-optimization/40062 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index b8654bafe336..f34910aff1f0 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -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