[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

Re: [Tinycc-devel] plans to 0.9.27

2017-10-12 Thread Christian Jullien
Hi Grischka, Here are some news from OLD Christian :o) First of all, with your explanations on how to build a native tcc, I'm very close to be totally happy. I'm building tcc using Cygwin64 with native gcc Cygwin x64: /cygdrive/f/tinycc$ uname -a CYGWIN_NT-10.0 coltrane 2.9.0(0.318/5/3) 2017-09

[Tinycc-devel] Include path bug (Was: Re: plans to 0.9.27)

2017-10-12 Thread Steffen Nurpmeso
Hi. grischka wrote: |grischka wrote: |Now, I fixed that, plus the ARM signed char test, plus some other |stuff. | |Also, I removed the win32/Makefile (thanks to Christian's OK), |and the VIP patch (it is just not how it should work), and the |-iwithprefix option (what was the point without

[Tinycc-devel] Compilation under Cygwin broken :(

2017-10-12 Thread Tony Papadimitriou
Can you please bring back Cygwin compilation as it had been for a long time until broken by recent commits? I can only assume this was an intentional change based on someone’s personal whim to use a different setup. (Why remove compatibility from already working setups and potentially upset lo

Re: [Tinycc-devel] plans to 0.9.27

2017-10-12 Thread Chris Marshall
On Thu, Oct 12, 2017 at 3:31 AM, grischka wrote: > Christian Jullien wrote: >> >> Chris, >> >> This is precisely why I wrote win32/Makefile which, with only >> Cygwin+native Cygwin gcc, was able to bootstrap a native Windows tcc for x86 >> and x86_64 and check that all tests work. >> Grischka disl

Re: [Tinycc-devel] Introduce tcc_args

2017-10-12 Thread grischka
uso ewin wrote: Hello, I'm using tcc, as a JIT compiler for this project: https://github.com/cosmo-ray/yirl, on which I need to use -nostdlib but, libtcc.h doesn't allow to do that, only the command line does. tcc_set_options(s, "-nostdlib"); From 2/2013: http://repo.or.cz/tinycc.git/commitdif

[Tinycc-devel] Introduce tcc_args

2017-10-12 Thread uso ewin
Hello, I'm using tcc, as a JIT compiler for this project: https://github.com/cosmo-ray/yirl, on which I need to use -nostdlib but, libtcc.h doesn't allow to do that, only the command line does. So I've made a new function: tcc_args The function is exactly what tcc_parse_args was in tcc0.9.26, exc

Re: [Tinycc-devel] plans to 0.9.27

2017-10-12 Thread Christian JULLIEN
Grischka, Thank you for your patience with me! I hope to be not too OLD :o) to test exactly what you propose. I will test it using Cygwin64 and the default gcc (for Cygwin64). I'll be glad to inform you if it works as expected (i.e. if it produces a working tcc that can generate both -m32

Re: [Tinycc-devel] plans to 0.9.27

2017-10-12 Thread grischka
Christian Jullien wrote: Chris, This is precisely why I wrote win32/Makefile which, with only Cygwin+native Cygwin gcc, was able to bootstrap a native Windows tcc for x86 and x86_64 and check that all tests work. Grischka disliked to have this Makefile and insisted to remove it. HIMO, we now