Re: [Tinycc-devel] main does not returns 0 by default (at least on Windows)

2017-11-22 Thread Christian Jullien
After checking again, this section actually comes from ISO/IEC 9899:1999 (E). ISO/IEC 9899:1990 (E) only says that result is unspecified. So tcc is compatible with C90, i.e. undefined. Which is correct since it pretends itself tcc_define_symbol(s, "__STDC_VERSION__", "199901L");) Three reasons

[Tinycc-devel] main does not returns 0 by default (at least on Windows)

2017-10-12 Thread Christian Jullien
Hi all, Testing mob on Windows, I see that tcc is not C90 compliant on default return type : >From C90 : 5.1.2.2.3 Program termination [#1] If the return type of the main function is a type compatible with int, a return from the initial call to the