This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Reversal of -fcheck options?
- From: Harald Anlauf <anlauf at gmx dot de>
- To: fortran at gcc dot gnu dot org
- Date: Tue, 26 Jan 2016 22:06:12 +0100
- Subject: Reversal of -fcheck options?
- Authentication-results: sourceware.org; auth=none
Hello,
is there a way to revert a -fcheck=... option later in the command line?
The "old-style" variants allow e.g.
gfortran ... -fbounds-check ... -fno-bounds-check ...
but the documentation
https://gcc.gnu.org/onlinedocs/gfortran/Code-Gen-Options.html#Code-Gen-Options
does not explain how to do this for -fcheck=bounds etc.
(-fcheck=nobounds or -fcheck=no-bounds is not accepted).
So it's probably not supported (yet).
Rationale: I'd like to use this in Makefiles to turn off
checking options for individual files, e.g. because of PR69385.
Cheers,
Harald