+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
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;
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