aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2021-09-20 07:36:09 +0200
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2021-09-20 07:36:09 +0200
commit9861bfb0838fb9fed84a32de67a4c983692b4dcf (patch)
tree82535c066b768a08d9f5295a342e2122d299eb4e /test
parent012e76c21d78212f5456611ebb319d39846186c1 (diff)
downloadcompcert-kvx-9861bfb0838fb9fed84a32de67a4c983692b4dcf.tar.gz
compcert-kvx-9861bfb0838fb9fed84a32de67a4c983692b4dcf.zip
use clang, better error reporting
Diffstat (limited to 'test')
-rwxr-xr-xtest/monniaux/csmith/reduce/reduce_wrt_host.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/monniaux/csmith/reduce/reduce_wrt_host.sh b/test/monniaux/csmith/reduce/reduce_wrt_host.sh
index a37eb51b..698d078d 100755
--- a/test/monniaux/csmith/reduce/reduce_wrt_host.sh
+++ b/test/monniaux/csmith/reduce/reduce_wrt_host.sh
@@ -1,10 +1,10 @@
#!/bin/bash
INCLUDE=-I$COMPCERT/test/monniaux/csmith/csmith/include/csmith-2.3.0
-if gcc $INCLUDE -Werror=uninitialized -Werror=implicit source.c -o source.gcc.host && valgrind --exit-on-first-error=yes --error-exitcode=120 --log-file=valgrind.out ./source.gcc.host > source.gcc.host.out ;
+if /usr/bin/clang $INCLUDE -O -Werror=uninitialized -Werror=implicit -Werror=return-type source.c -o source.clang.host && valgrind --exit-on-first-error=yes --error-exitcode=120 --log-file=valgrind.out ./source.clang.host > source.clang.host.out ;
then
- if gcc $INCLUDE -Werror=uninitialized -Werror=implicit -fsanitize=undefined -fsanitize=address source.c -o source.gcc+san.host && ./source.gcc+san.host > source.gcc+san.host.out ;
+ if gcc $INCLUDE -Werror=uninitialized -Werror=implicit -Werror=return-type -fsanitize=undefined -fsanitize=address source.c -o source.gcc+san.host && ./source.gcc+san.host > source.gcc+san.host.out ;
then
- if riscv64-linux-gnu-gcc $INCLUDE -Werror=uninitialized -Werror=implicit source.c -o source.gcc.target && qemu-riscv64 -L /usr/riscv64-linux-gnu source.gcc.target >& source.gcc.target.out && diff source.gcc.host.out source.gcc.target.out
+ if cmp source.clang.host.out source.gcc+san.host.out && riscv64-linux-gnu-gcc $INCLUDE -Werror=uninitialized -Werror=implicit source.c -Werror=return-type -o source.gcc.target && qemu-riscv64 -L /usr/riscv64-linux-gnu source.gcc.target >& source.gcc.target.out && diff source.clang.host.out source.gcc.target.out
then
if $COMPCERT/ccomp $INCLUDE -fall -fno-cse -fno-cse2 -fno-cse3 source.c -o source.ccomp.target
then