Re: PATCH: PR testsuite/12040: GDB Fortran tests use g77 instead of gfortran

H.J. Lu
2011-06-29T17:52:33Z

On Wed, Jun 29, 2011 at 10:50 AM, Tom Tromey <tromey@redhat.com> wrote:
> H.J.> Did we get gfortran when searching for F77/f77 compiler?
>
> Tom> No, I forgot the most crucial bit :)
> Tom> I will write a follow-up patch to make our tests use gfortran.
> Tom> I don't think supporting g77 is all that worthwhile any more.
>
> Here is the follow-up.  I am checking it in.
>
> This patch switches all the gdb.fortran tests to use the new gfortran
> support.
>
> Built and regested both locally and by the buildbot.
>
> Note that this introduces new FAILs:
>
> FAIL: gdb.fortran/array-element.exp: continue to breakpoint once again (the program exited)
> FAIL: gdb.fortran/array-element.exp: print the second element of array a
>
>
> These tests were previously not run, at least not on the machines I use.
> This is really just a single failure; I looked at it briefly and it is
> either a gfortran bug, or a bad assumption on the part of the testcase
> writer.  I don't actually know Fortran so it is hard to say.
>
> Tom
>
> 2011-06-29  Tom Tromey  <tromey@redhat.com>
>
>        PR testsuite/12040:
>        * gdb.fortran/array-element.exp: Use f90, not f77.
>        * gdb.fortran/complex.exp: Use f90, not f77.
>        * gdb.fortran/derived-type.exp: Use f90, not f77.
>        * gdb.fortran/library-module.exp: Use f90, not f77.
>        * gdb.fortran/logical.exp: Use f90, not f77.
>        * gdb.fortran/module.exp: Use f90, not f77.
>        * gdb.fortran/multi-dim.exp: Use f90, not f77.
>        * gdb.fortran/subarray.exp: Use f90, not f77.
>

gfortran can be used as F77 compiler. Why not just return gfortran
for f77?

--
H.J.