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]

useful debug flags?


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>


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