larmel / lacc

A simple, self-hosting C compiler
MIT License
872 stars 64 forks source link

Segmentation Fault when trying to compile tcc #4

Closed rain-1 closed 6 years ago

rain-1 commented 6 years ago

Hello.

On my system I built lacc and make test and amke test-selfhost are working.

I tried lacc tcc.c and it got me a segmentation fault..

http://repo.or.cz/tinycc.git

larmel commented 6 years ago

Hi. Thank you for reporting this issue. There was an error in how include paths were constructed, which should be fixed in d5c7d09badb66349879d97a52e64c33cb8f5175d.

I see that tcc depends on some extensions that are currently not supported by lacc, such as zero-length arrays and short bitfields, so it will still not compile. I will work on adding these features.

rain-1 commented 6 years ago

That's great to hear, thank you!