Hello Liam,

On Wed, Jul 08, 2026 at 11:06:59AM +0100, Liam Wilson wrote:
> Going back to the original thread subject. I did try compiling tcc
> with gcc in ansi mode. This fails because of the single line //
> comments and (iirc) a couple of other gnuisms in the codebase. I think
> the reality is the current codebase is implemented in a subset gnu89.

This corresponds to my experience of building tcc with TenDRA
(c89-compiler). The largest needed changes were to the comments.

The patch to tinycc-20a1ebf is there, e.g. at
https://codeberg.org/keciav/vsobfs/raw/branch/main/pub/PATCHES/patch.tinycc_tendrify

> Having said that I found that I could not get gcc-2.95 to build mob.
> Would it maybe be worth tightening up the codebase to be valid ANSI C
> code, or at least the subset of ANSI C that is also valid C99, C11,

Would the developers be willing to abstain from the //-comments inside
tinycc code?

I can think of refreshing the patch so that it will apply to the
latest mob. Any voices for or against?

> That would increase the number of compilers that can build tcc.

Yes.

Cheers
/tccm

_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to