Last active
December 17, 2024 22:57
-
-
Save sleeptightAnsiC/74efacdd7643af668cd80f7c123507b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
set -e | |
git clone https://repo.or.cz/tinycc.git /tmp/tinycc | |
cd /tmp/tinycc | |
wget https://raw.githubusercontent.com/c-testsuite/c-testsuite/refs/heads/master/tests/single-exec/00152.c | |
git bisect reset | |
git bisect start | |
git bisect bad 34b7b2cef59191fb6fa3c853bccfa53de6090362 | |
git bisect good d348a9a51d32cece842b7885d27a411436d7887b | |
while : ; do | |
if make clean > /dev/null && ./configure --debug > /dev/null && make -j$(nproc) > /dev/null ; then | |
if ./tcc 00152.c ; then | |
echo "GOOD" && git bisect good | |
else | |
echo "BAD" && git bisect bad | |
fi | |
else | |
echo "SKIPPED" && git bisect skip | |
fi | |
if git bisect log | grep 'first bad commit' > /dev/null ; then | |
break | |
fi | |
done | |
rm -fr /tmp/tinycc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference:
https://lists.nongnu.org/archive/html/tinycc-devel/2024-12/msg00017.html