aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2019-03-21 19:54:50 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2019-03-21 19:54:50 +0100
commitbcb68daa54aeb40d2ec0d7c48633e2dc83870670 (patch)
tree40546d70f9efcb448a870e602f6b5a67b0951b74 /gcc
parentcae1a424cdc285e8d75d4362476e2482841a19fd (diff)
downloadgcc-bcb68daa54aeb40d2ec0d7c48633e2dc83870670.zip
gcc-bcb68daa54aeb40d2ec0d7c48633e2dc83870670.tar.gz
gcc-bcb68daa54aeb40d2ec0d7c48633e2dc83870670.tar.bz2
[testsuite, Fortran] Consistently set 'DEFAULT_FFLAGS'
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. From-SVN: r269845
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gfortran.dg/ieee/ieee.exp10
2 files changed, 11 insertions, 5 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c8f9492..914ba72 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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 Richard Biener <rguenther@suse.de>
PR tree-optimization/89779
diff --git a/gcc/testsuite/gfortran.dg/ieee/ieee.exp b/gcc/testsuite/gfortran.dg/ieee/ieee.exp
index 05383ce..68d4b78 100644
--- a/gcc/testsuite/gfortran.dg/ieee/ieee.exp
+++ b/gcc/testsuite/gfortran.dg/ieee/ieee.exp
@@ -22,15 +22,15 @@
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}]