useful debug flags?

Tom Roche Tom_Roche@pobox.com
Wed Mar 14 02:36:00 GMT 2012


The fortran guru in my group (which seems quite ifort-oriented) proposed
the following flags as being "generally useful" when debugging. 
(gcc flags would probably be useful too, but were not proposed.) I'm
wondering if any were missed (conversely, if any listed are deprecated):

gfort: -fimplicit-none -frange-check -Wall -Wunderflow -Werror -ffpe-trap=invalid,zero,overflow,underflow,precision,denormal -fbounds-check -g

and, for completeness,

ifort: -check all -traceback -fp-stack-check -fpe0 -ftrapuv -g
pgf90: -C -Mchkptr -Mdclchk -Mnodaz -Mnoflushz -g

Pointers to doc also appreciated.

TIA, Tom "fortran newbie" Roche <Tom_Roche@pobox.com>



More information about the Fortran mailing list