Skip to content

Commit f14f0ce

Browse files
committed
Enable all runtime checks when DEBUG=true in gfortran build target
The gfortran build target previously included just the -fbounds-check flag for debug builds. This commit replaces -fbounds-check with -fcheck=all, which enables various other runtime checks, including checks for pointers, array temporaries, and recursion in routines not marked as recursive.
1 parent c0ddd4d commit f14f0ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ gfortran:
223223
"CFLAGS_OPT = -O3" \
224224
"CXXFLAGS_OPT = -O3" \
225225
"LDFLAGS_OPT = -O3" \
226-
"FFLAGS_DEBUG = -g -ffree-line-length-none -fconvert=big-endian -ffree-form -fbounds-check -fbacktrace -ffpe-trap=invalid,zero,overflow" \
226+
"FFLAGS_DEBUG = -g -ffree-line-length-none -fconvert=big-endian -ffree-form -fcheck=all -fbacktrace -ffpe-trap=invalid,zero,overflow" \
227227
"CFLAGS_DEBUG = -g" \
228228
"CXXFLAGS_DEBUG = -g" \
229229
"LDFLAGS_DEBUG = -g" \

0 commit comments

Comments
 (0)