Hi, I was checking the test cases from: https://github.com/c-testsuite/c-testsuite/tree/master/tests/single-exec and found out TCC is failing to compile and pass one of them: https://github.com/c-testsuite/c-testsuite/blob/5c7275656d751de0e68b2d340a95b5681858ed07/tests/single-exec/00152.c
Minimal reproduction is as follows: $ cat test.c #define MY_MACRO 1 #line MY_MACRO int main() { return 0; } $ tcc test.c test.c:2: error: wrong #line format $ tcc --version tcc version 0.9.28rc 2024-12-15 mob@34b7b2ce (x86_64 Linux) This issue is not present on master branch with tcc 0.9.27 It also isn't occurring on gcc/clang/msvc https://godbolt.org/z/W8hGv4eM4 After bisecting a bit, git showed me this commit: commit 6b78e561c8bf312fefdb4fda692494edd5da01ea Author: grischka <grischka> Date: Tue Jun 11 13:57:22 2024 +0200 div fixes It's way to big to post it in the mail. Here's the link: https://repo.or.cz/tinycc.git/commitdiff/6b78e561c8bf312fefdb4fda692494edd5da01ea Here's script I used for bisecting if anyone wishes to check it locally: https://gist.github.com/sleeptightAnsiC/74efacdd7643af668cd80f7c123507b3 I hope this is enough and helpful. Best regards, Kornel
_______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel