This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [6/6] Fortran dynamic arrays #2: Fortran array testcase


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]