This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [4.3,committed] PR fortran/39791 - backport dwarf2out.c patch for character strings
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 7 May 2009 15:31:06 +0200 (CEST)
- Subject: Re: [4.3,committed] PR fortran/39791 - backport dwarf2out.c patch for character strings
Hi Tobias,
> 2009-04-24 Tobias Burnus <burnus@net-b.de>
>
> PR fortran/39791
> Backport from mainline:
>
> 2008-08-22 Jakub Jelinek <jakub@redhat.com>
>
> * dwarf2out.c (add_subscript_info): Stop on Fortran TYPE_STRING_FLAG
> types.
> (gen_array_type_die): Emit DW_TAG_string_type for Fortran character
> types.
I'm afraid this breaks the bootstrap on FreeBSD 6.4-STABLE/alpha as follows:
gmake[3]: Entering directory `/usr/ports/lang/gcc43/work/build/gcc'
gcc43 -c -g -fkeep-inline-functions -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I.././..//gcc-4.3-20090503/gcc -I.././..//gcc-4.3-20090503/gcc/. -I.././..//gcc-4.3-20090503/gcc/../include -I.././..//gcc-4.3-20090503/gcc/../libcpp/include -I/usr/local/include -I.././..//gcc-4.3-20090503/gcc/../libdecnumber -I.././..//gcc-4.3-20090503/gcc/../libdecnumber/dpd -I../libdecnumber -I/usr/local/include .././..//gcc-4.3-20090503/gcc/dwarf2out.c -o dwarf2out.o
.././..//gcc-4.3-20090503/gcc/dwarf2out.c: In function 'add_subscript_info':
.././..//gcc-4.3-20090503/gcc/dwarf2out.c:11327: error: 'dimension_number' undeclared (first use in this function)
.././..//gcc-4.3-20090503/gcc/dwarf2out.c:11327: error: (Each undeclared identifier is reported only once
.././..//gcc-4.3-20090503/gcc/dwarf2out.c:11327: error: for each function it appears in.)
.././..//gcc-4.3-20090503/gcc/dwarf2out.c:11328: error: break statement not within loop or switch
gmake[3]: *** [dwarf2out.o] Error 1
gmake[3]: Leaving directory `/usr/ports/lang/gcc43/work/build/gcc'
gmake[2]: *** [all-stage1-gcc] Error 2
gmake[2]: Leaving directory `/usr/ports/lang/gcc43/work/build'
I filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40061 to track this.
Gerald