Re: [Tinycc-devel] POSIX compliance; spaces not supported with -l for libs

2020-07-04 Thread avih via Tinycc-devel
For me, with current tcc mob (but also with version at least 6 months old) this does work: tcc hello.c -l c Which version did you try? As for -O, it seems that the option-argument is optional - in both tcc and gcc. The posix syntax for optional arguments is that the value must follow at the same

Re: [Tinycc-devel] POSIX compliance; spaces not supported with -l for libs

2020-07-04 Thread Christian Jullien
An alternate and maybe easier solution is to add a c99 (POSIX) shell script in tcc repository that handles all c99 option and forward them to tcc supported syntax (e.g. "-O2" => -O2 but also "-O 2" => -O2) -Original Message- From: Tinycc-devel [mailto:tinycc-devel-bounces+eligis=orange..

Re: [Tinycc-devel] POSIX compliance; spaces not supported with -l for libs

2020-07-04 Thread Christian Jullien
Hello John, I like very much the idea to make tcc POSIX compliant. I still work on C/C++ normalization in AFNOR group and worked on different groups including ISLISP and POSIX, so standards matter for me :). Please, also consider that neither gcc nor clang support space after -O: $ clang -O 3

[Tinycc-devel] POSIX compliance; spaces not supported with -l for libs

2020-07-04 Thread John Scott
Hi, I was checking if tcc conforms to the POSIX standard for a C99 compiler [1], particularly to make the case for implementing a generic POSIX C compiler backend in Meson [2]. In the meantime, tcc can't be used for building. There is concern that small compilers all have their own caveats, and