This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
useful debug flags?
- From: Tom Roche <Tom_Roche at pobox dot com>
- To: fortran at gcc dot gnu dot org,
- Date: Tue, 13 Mar 2012 22:41:02 -0400
- Subject: useful debug flags?
- Reply-to: fortran at gcc dot gnu dot org, Tom Roche <Tom_Roche at pobox dot com>
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>