This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [6/6] Fortran dynamic arrays #2: Fortran array testcase
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Markus Deuling <deuling at de dot ibm dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 11 Mar 2008 10:38:49 +0100
- Subject: Re: [6/6] Fortran dynamic arrays #2: Fortran array testcase
- References: <20071123234439.GG23460@host0.dyn.jankratochvil.net> <47D6478B.9000605@de.ibm.com>
On Tue, 11 Mar 2008 09:49:15 +0100, Markus Deuling wrote:
...
> I also saw cases when gfortran emitted wrong or incomplete debug data but it gets
> better with 4.3.
The Fortran dynamic arrays debug info fix got committed for 4.3 by Jakub Jelink:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22244
> Just a small comment to your testcase:
>
> +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug f77 quiet}] != "" } {
> + untested "Couldn't compile ${srcfile}"
> + return -1
> +}
>
> I'm not able to compile your .f90 testcase with f77. What I did is to invoke gfortran instead, hoping
> 4.3 gets better :-)
>
> +if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug compiler=gfortran quiet}] != "" } {
> + untested "Couldn't compile ${srcfile}"
> + return -1
> +}
While it is correct it is in fact more a general problem of all of the upstream
Fortran testcases as AFAIK `g77' binary/link is just no longer present in GCC.
Using now a workaround in:
http://cvs.fedora.redhat.com/viewcvs/*checkout*/rpms/gdb/devel/gdb.spec
cd $the_build_tree_root
# g77 executable is no longer present in Fedora gcc-4.x+.
g77="`which gfortran 2>/dev/null || true`"
test -z "$g77" || ln -s "$g77" ./g77
Also the whole Fortran dynamic arrays patchset no longer applies well so it was
forward-ported for 6.8pre in between. But only in its merged form:
http://cvs.fedora.redhat.com/viewcvs/*checkout*/rpms/gdb/devel/gdb-6.8-bz377541-fortran-dynamic-arrays.patch
Regards,
Jan