Send Tinycc-devel mailing list submissions to
address@hiddenTo subscribe or unsubscribe via the World Wide Web, visit
https://lists.nongnu.org/mailman/listinfo/tinycc-develor, via email, send a message with subject or body 'help' to
address@hiddenYou can reach the person managing the list at
address@hiddenWhen replying, please edit your Subject line so it is more specific
than "Re: Contents of Tinycc-devel digest..."
Today's Topics:
1. Testing with ASan and Valgrind (Edmund Grimley Evans)
----------------------------------------------------------------------
Message: 1
Date: Thu, 5 Nov 2015 09:15:10 +0000
From: Edmund Grimley Evans <
address@hidden>
To:
address@hiddenSubject: [Tinycc-devel] Testing with ASan and Valgrind
Message-ID:
<
address@hidden>
Content-Type: text/plain; charset=UTF-8
Last night I pushed a few commits to fix bugs uncovered by ASan and
Valgrind. Comments and criticisms are welcome.
Here's how you can repeat the tests:
# ASan:
make clean
./configure
make
cp libtcc.a libtcc.a.hide
make clean
./configure --extra-cflags="-fsanitize=address -g"
make
cp libtcc.a.hide libtcc.a
make test
# Valgrind:
make clean
./configure
make
# This is because Valgrind does floating-point arithmetic differently:
( cd tests && gcc -I.. tcctest.c && valgrind -q ./a.out > test.ref )
make test TCC="valgrind -q --leak-check=full `pwd`/tcc -B`pwd` -I`pwd`"
------------------------------
_______________________________________________
Tinycc-devel mailing list
address@hiddenhttps://lists.nongnu.org/mailman/listinfo/tinycc-develEnd of Tinycc-devel Digest, Vol 151, Issue 7
********************************************