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

Tom Tromey
2011-06-30T13:29:09Z

>>>>> "H.J." == H J Lu <hjl.tools@gmail.com> writes:

CC'ing the dejagnu list.

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

Tom> No particular reason.
Tom> I can implement it that way if you feel strongly about it.

H.J.> That is fine with gdb testsuite. But in general, dejagnu should try
H.J.> gfortran first when F77 compiler is requested.

I agree, this would make the most sense.

However, I don't see how to reasonably modify find_g77 to do this. I
could add a check for [which gfortran] to the not-remote-host case, but
I don't know how to search $PATH on a remote host.

I'm also not sure if searching $PATH is ok here at all.

Tom