[Patch, libgomp, testsuite] add libgfortran.spec.

IainS developer@sandoe-acoustics.co.uk
Thu Nov 25 13:20:00 GMT 2010


This will allow fortran  libgomp tests to use libquadmath when  
required (I'm told none do yet).
.. but it will also ensure that, if the libgfortran.spec includes  
substitutions, they are available in the testsuite.

checked (in conjunction with http://gcc.gnu.org/ml/fortran/2010-11/msg00348.html) 
  that the static lib substitution occurs properly for i686-darwin9.

OK for trunk (with a proper Changelog, of course)?
Iain

Index: libgomp/testsuite/libgomp.fortran/fortran.exp
===================================================================
--- libgomp/testsuite/libgomp.fortran/fortran.exp	(revision 167142)
+++ libgomp/testsuite/libgomp.fortran/fortran.exp	(working copy)
@@ -8,6 +8,7 @@ set lang_library_path	"../libgfortran/.libs"
  set lang_link_flags	"-lgfortran"
  set lang_test_file_found 0
  set quadmath_library_path "../libquadmath/.libs"
+set lang_spec_path "../libgfortran"


  # Initialize dg.
@@ -44,6 +45,8 @@ if { $lang_test_file_found } {
  	lappend ALWAYS_CFLAGS "ldflags=-L${blddir}/${quadmath_library_path}/"
  	# Allow for spec subsitution.
  	lappend ALWAYS_CFLAGS "additional_flags=-B${blddir}/$ 
{quadmath_library_path}/"
+	# use the libgfortran spec.
+	lappend ALWAYS_CFLAGS "additional_flags=-specs=${blddir}/$ 
{lang_spec_path}/libgfortran.spec"
  	set ld_library_path "$always_ld_library_path:${blddir}/$ 
{lang_library_path}:${blddir}/${quadmath_library_path}"
      } else {
          set ld_library_path "$always_ld_library_path"


===



More information about the Gcc-patches mailing list