drh / lcc

The lcc retargetable ANSI C compiler
https://drh.github.io/lcc/
2.03k stars 441 forks source link

Some fixes for modern Arch Linux, bison and gcc 14 #51

Open andi8086 opened 6 months ago

andi8086 commented 6 months ago

Here are some suggestions to make it work on modern Linux with:

There are two fixes regarding gcc 14.1.1:

I included an example build script for linux since this was not so straight forward for me to understand, how to compile it. It also takes care of using "bison" instead of "bison -y" because "bison -y" gives warnings about not supporting "%term".

Furthermore, gram.c is generated and should hence not be in the git.