]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/testsuite/lib/gfortran.exp
Makefile.in (SYSROOT_CFLAGS_FOR_TARGET): Define from @SYSROOT_CFLAGS_FOR_TARGET@.
[thirdparty/gcc.git] / gcc / testsuite / lib / gfortran.exp
index 4a1a636bb931c432a57a0c10486b9d175fe6d954..d9934fc07ab4f6ee93c074ede32eb1349d158211 100644 (file)
@@ -144,6 +144,7 @@ proc gfortran_init { args } {
     global TESTING_IN_BUILD_TREE
     global gcc_warning_prefix
     global gcc_error_prefix
+    global TEST_ALWAYS_FLAGS
 
     # We set LC_ALL and LANG to C so that we get the same error messages as expected.
     setenv LC_ALL C
@@ -194,6 +195,13 @@ proc gfortran_init { args } {
 
     set ALWAYS_GFORTRANFLAGS ""
 
+    # TEST_ALWAYS_FLAGS are flags that should be passed to every
+    # compilation.  They are passed first to allow individual
+    # tests to override them.
+    if [info exists TEST_ALWAYS_FLAGS] {
+       lappend ALWAYS_GFORTRANFLAGS "additional_flags=$TEST_ALWAYS_FLAGS"
+    }
+
     if ![is_remote host] {
        if [info exists TOOL_OPTIONS] {
            lappend ALWAYS_GFORTRANFLAGS "ldflags=[gfortran_link_flags [get_multilibs ${TOOL_OPTIONS}] ]"