https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81344
Michael Osipov <michael.osipov at siemens dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michael.osipov at siemens dot com --- Comment #7 from Michael Osipov <michael.osipov at siemens dot com> --- I'd like to request to seriously reconsider this ticket. We are currently porting several 100 000 of LoC (electrical engineering) from HP Fortran F90 on HP-UX to GFortran 9-11. The HP Fortran compiler convienently provides (for the last 15 years): > +FPOZVD and +FPo Uppercase means enable and lowercase disable. I have the exact same situation as Ignacio. CMake default config is +FPOZVD which translates to -ffpe-trap=overflow,zero,invalid,denormal. A small amount of applications disable a few flags to be runnable at all. Properly applied with CMake * Compile time: ./CMakeFiles/di1308.dir/flags.make:Fortran_FLAGS = +DSnative +save -minshared +check=all +noppu +FPOZVD -w +FPo -g * Link time: ./CMakeFiles/di1308.dir/link.txt:/opt/fortran90/bin/f90 -Wl,+s,+nodefaultrpath -Wl,-a,shared_archive -Wl,+n -Wl,+noobjdebug -Wl,+dbgfile,di1308.dbg +DSnative +save -minshared +check=all +noppu +FPOZVD -w +FPo -g <objects> There must be a way to have the same in GCC.