This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[4.3 patch] fix build failure if MIPS_DEBUGGING_INFO is defined
- From: Matthias Klose <doko at ubuntu dot com>
- To: fortran at gcc dot gnu dot org, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 11 May 2009 09:45:42 +0200
- Subject: [4.3 patch] fix build failure if MIPS_DEBUGGING_INFO is defined
The backport for PR39791 breaks the build on mips*-linux and alpha-linux. Of for
the fix on the 4.3 branch?
Matthias
../../src/gcc/dwarf2out.c: In function 'add_subscript_info':
../../src/gcc/dwarf2out.c:11327: error: 'dimension_number' undeclared (first use
in this function)
../../src/gcc/dwarf2out.c:11327: error: (Each undeclared identifier is reported
only once
../../src/gcc/dwarf2out.c:11327: error: for each function it appears in.)
../../src/gcc/dwarf2out.c:11328: error: break statement not within loop or switch
make[5]: *** [dwarf2out.o] Error 1
make[5]: *** Waiting for unfinished jobs....
2009-05-11 Matthias Klose <doko@ubuntu.com>
* dwarf2out.c (add_subscript_info): Don't use dimension_number
if MIPS_DEBUGGING_INFO is defined.
--- gcc/dwarf2out.c~ 2009-05-10 14:41:22.000000000 +0200
+++ gcc/dwarf2out.c 2009-05-11 09:22:25.000000000 +0200
@@ -11324,7 +11324,11 @@
{
tree domain = TYPE_DOMAIN (type);
- if (TYPE_STRING_FLAG (type) && is_fortran () && dimension_number > 0)
+ if (TYPE_STRING_FLAG (type) && is_fortran ()
+#ifndef MIPS_DEBUGGING_INFO
+ && dimension_number > 0
+#endif
+ )
break;
/* Arrays come in three flavors: Unspecified bounds, fixed bounds,