]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite, Fortran] Consistently set 'DEFAULT_FFLAGS'
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 21 Mar 2019 18:57:56 +0000 (19:57 +0100)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Thu, 21 Mar 2019 18:57:56 +0000 (19:57 +0100)
In the same 'runtest' instance, 'global' variables persist from one '*.exp'
file to another.

All other '*.exp' files are using " -pedantic-errors" instead of the empty
string as the default for 'DEFAULT_FFLAGS'.  Thus this setting of
'DEFAULT_FFLAGS' is not idempotent, depends on whether
'gfortran.dg/ieee/ieee.exp', or an other defining '*.exp' file is executed
first.

gcc/testsuite/
PR fortran/29383
* gfortran.dg/ieee/ieee.exp (DEFAULT_FFLAGS): Set the same as in
other '*.exp' files.

trunk r269845

From-SVN: r269847

gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/ieee/ieee.exp

index 28756b1f6beed27b77ee92c59c722a5830f34519..ca849083d7f406fb85b80eee2d3f9ed3ce84ab22 100644 (file)
@@ -1,3 +1,9 @@
+2019-03-21  Thomas Schwinge  <thomas@codesourcery.com>
+
+       PR fortran/29383
+       * gfortran.dg/ieee/ieee.exp (DEFAULT_FFLAGS): Set the same as in
+       other '*.exp' files.
+
 2019-03-21  Matthias Klose  <doko@ubuntu.com>
 
        Backport from mainline
index 14741b768c530084eeca7bcf9661210e795cede7..1d6eab18e140a32c260a343dc76eadb00a1b2629 100644 (file)
 load_lib gfortran-dg.exp
 load_lib target-supports.exp
 
-# Initialize `dg'.
-dg-init
-
-# Flags specified in each test
+# If a testcase doesn't have special options, use these.
 global DEFAULT_FFLAGS
 if ![info exists DEFAULT_FFLAGS] then {
-    set DEFAULT_FFLAGS ""
+    set DEFAULT_FFLAGS " -pedantic-errors"
 }
 
+# Initialize `dg'.
+dg-init
+
 # Flags for finding the IEEE modules
 if [info exists TOOL_OPTIONS] {
    set specpath [get_multilibs ${TOOL_OPTIONS}]