Hi there!
Some GCC ASan developers may want to run all spec2006, to do so they
need gfortran also. Attached patch enable this by setting up fortran
compiler from non-empty $FC variable. With this patch applied all tests
were passed excluding 481.wrf (linker fail) and 454.calculix (ASan
positive: heap overflow).
--Marat
--
You received this message because you are subscribed to the Google Groups
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
Index: spec/run_spec_clang_asan.sh
===================================================================
--- spec/run_spec_clang_asan.sh (revision 2226)
+++ spec/run_spec_clang_asan.sh (working copy)
@@ -57,9 +57,14 @@
fi
rm -rf config/$name.*
+if test -z "$FC"; then
+ FC=echo
+fi
+
COMMON_FLAGS="$F_ASAN -m$BIT -g"
CC="$CLANG -std=gnu89 $COMMON_FLAGS"
CXX="$CLANGXX $COMMON_FLAGS"
+FC="$FC $COMMON_FLAGS"
cat << EOF > config/$name.cfg
monitor_wrapper = $SPEC_WRAPPER \$command
@@ -77,7 +82,7 @@
CC = $CC
CXX = $CXX
EXTRA_LIBS = $EXTRA_LIBS
-FC = echo
+FC = $FC
default=base=default=default:
COPTIMIZE = $OPT_LEVEL