]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
gdb/testsuite: only add -J option when compiling with gfortran
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 2 Jun 2021 08:50:29 +0000 (09:50 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 2 Jun 2021 09:22:11 +0000 (10:22 +0100)
commitf2d4211150abba189c4fcd2f7cf0290161474631
tree7d2bdcdf2c3c7f7324615a8468e2f212968ece9c
parent8a222a6b0ffd3b70b511fb067557b9a57a958315
gdb/testsuite: only add -J option when compiling with gfortran

We currently make use of the -J option to gfortran in order that
compiled modules should be placed in the correct output directory.
Obviously different compilers, e.g. flang, will have different options
to achieve the same result.

This commit makes it so we only add the -J flag when using a gcc
based (i.e. gfortran) compiler.

I had a look through the flang help page and tried a few likely
looking options, but couldn't find anything that seemed to do the same
thing, so, for now, I'm only adding an extra option when compiling
with gfortran.

This does mean that any compiler other than gfortran might run into
problems if running the testsuite in parallel due to modules of the
same name all being written to the same directory, and so possibly
overwriting each other.

gdb/testsuite/ChangeLog:

* lib/gdb.exp (gdb_compile): Only add the -J option when using a
gcc based Fortran compiler, for example, flang does not support
this option.
gdb/testsuite/ChangeLog
gdb/testsuite/lib/gdb.exp