Thanks Herman,

Thank
And is there an option to change that behaviour?

I think I found the problem. The typedef type was used twice.
The first time ord2kw set the type to size 3.
Then ord3kw overflowed because the size was now 3.
(It also works when you remove the 2 extern lines)

the given code was just an example, the externs were in a header
file and the number of keyword variables was not just two.

So I unshared the type with attached patch.
I am not sure I did this at the rigth place but it works
for the testsuite and some other code.

Right now, I'm using tcc as an arch package, which surprisingly
claims that it is version 0.9.28rc while the package itself says
its version 0.9.27

$ tcc -version
tcc version 0.9.28rc 2024-09-14 makepkg@b8b6a5fd (x86_64 Linux)

$ pacman -Q |grep tcc
tcc 0.9.27.r1151.gb8b6a5fd-1

To patch anything, I would have to download the correct sources
for that. Can you give me a link where the patchable sources
are (apparently, the sources on https://bellard.org/tcc/ seem
to be outdated, even they say they were version 0.9.27)

Regards,
Thomas




    Herman


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to