This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Reversal of -fcheck options?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]