]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Link libquadmath in Fortran libgomp tests
authorAndrew Jenner <andrew@codesourcery.com>
Wed, 30 Jan 2019 17:38:46 +0000 (09:38 -0800)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:18:17 +0000 (12:18 +0100)
When invoking gcc to compile fortran code, fortran.exp is currently adding the
options -lgfortran -foffload=-lgfortran to the gcc command line. libgfortran
statically links to libquadmath and the gfortran driver invokes the linker
with -lquadmath as well as -lgfortran so fortran.exp should do so too.

     libgomp/
     * testsuite/libgomp.fortan/fortran.exp (lang_link_flags): Add
     -lquadmath.
     * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Add
     -lquadmath.

(cherry picked from openacc-gcc-9-branch commit
bb65425bb284f3efc08bff4d94661123cdc27b41)

libgomp/ChangeLog.omp
libgomp/testsuite/libgomp.fortran/fortran.exp
libgomp/testsuite/libgomp.oacc-fortran/fortran.exp

index 88d432b97755dfebfa280b07871b9ee4cb8ad166..8f9cd6116c7e87e92e447c8fede4733b91d06ed6 100644 (file)
@@ -1,3 +1,10 @@
+2019-01-30  Andrew Jenner  <andrew@codesourcery.com>
+
+       * testsuite/libgomp.fortan/fortran.exp (lang_link_flags): Add
+       -lquadmath.
+       * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Add
+       -lquadmath.
+
 2019-05-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
 
        * libgomp_g.h: Include stdint.h instead of gstdint.h.
index d848ed4d47feb5b531c57282b033d4e774374046..f6b6c590df581fc6ff19a44859174fbd3bb4fe46 100644 (file)
@@ -7,7 +7,7 @@ global ALWAYS_CFLAGS
 
 set shlib_ext [get_shlib_extension]
 set lang_library_path  "../libgfortran/.libs"
-set lang_link_flags    "-lgfortran -foffload=-lgfortran"
+set lang_link_flags    "-lgfortran -foffload=-lgfortran -lquadmath"
 if [info exists lang_include_flags] then {
     unset lang_include_flags
 }
index fb54e486c87bb9f9d6140258fd317ca70da07cb2..56694a6eef55de34a8952986ef3c79cef5300fc0 100644 (file)
@@ -9,7 +9,7 @@ global ALWAYS_CFLAGS
 
 set shlib_ext [get_shlib_extension]
 set lang_library_path  "../libgfortran/.libs"
-set lang_link_flags    "-lgfortran -foffload=-lgfortran"
+set lang_link_flags    "-lgfortran -foffload=-lgfortran -lquadmath"
 if [info exists lang_include_flags] then {
     unset lang_include_flags
 }