diff options
author | Francois-Xavier Coudert <fxcoudert@gmail.com> | 2022-01-12 11:19:37 +0100 |
---|---|---|
committer | Francois-Xavier Coudert <fxcoudert@gmail.com> | 2022-01-12 11:19:37 +0100 |
commit | 6b14100b9504800768da726dcb81f1857db3b493 (patch) | |
tree | 98b3a5492aeb824318628f72c8e273dccf5a27d5 /gcc | |
parent | 6bba184ccbf47368eaea27ee2c1e7b850526640b (diff) | |
download | gcc-6b14100b9504800768da726dcb81f1857db3b493.zip gcc-6b14100b9504800768da726dcb81f1857db3b493.tar.gz gcc-6b14100b9504800768da726dcb81f1857db3b493.tar.bz2 |
Fortran: fix testcase compiler flags
-fsignaling-nans is already passed by ieee.exp, so it's not needed.
We must use dg-additional-options instead of dg-options, otherwise we
override flags passed from ieee.exp. And we need to use -w because
some options only make sense for the Fortran source.
gcc/testsuite/ChangeLog:
* gfortran.dg/ieee/signaling_1.f90: Adjust flags.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gfortran.dg/ieee/signaling_1.f90 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/gfortran.dg/ieee/signaling_1.f90 b/gcc/testsuite/gfortran.dg/ieee/signaling_1.f90 index a1403e6..3d846fc 100644 --- a/gcc/testsuite/gfortran.dg/ieee/signaling_1.f90 +++ b/gcc/testsuite/gfortran.dg/ieee/signaling_1.f90 @@ -1,7 +1,9 @@ ! { dg-do run } ! { dg-require-effective-target issignaling } */ ! { dg-additional-sources signaling_1_c.c } -! { dg-options "-fsignaling-nans" } +! { dg-additional-options "-w" } +! the -w option is needed to make f951 not report a warning for +! the -fintrinsic-modules-path option passed by ieee.exp ! program test use, intrinsic :: iso_c_binding |