[Tinycc-devel] Static Link SegFault Investigation for tcc-0.9.27 (tcc27)

2019-01-03 Thread Kurt Nalty
Greetings, I have spent some time investigating static link problems with tcc-0.9.27 (hereafter called tcc27), and wanted to report my findings. My test system is x86_64-uClibc-linux-gnu, uClibc 0.9.30.1, with shared and static libraries. I have three release versions of tcc, statically

Re: [Tinycc-devel] x86_64, musl: generation of mixed C/C++ fails: undefined reference to `__va_start'

2019-01-03 Thread Steffen Nurpmeso
Good evening Michael, everybody. Michael Matz wrote in : |On Thu, 3 Jan 2019, Steffen Nurpmeso wrote: |> Regardless of whether i use the AlpineLinux default tcc package, |> or my version with the little path-resistancy patch, i cannot |> create a binary from several C files which become

Re: [Tinycc-devel] Add gcc cleanup attribute support

2019-01-03 Thread Michael Matz
Hi, On Thu, 3 Jan 2019, uso ewin wrote: * your way of dealing with the "goto forward" problem is to read and remember all tokens after the goto until you find the label (and if so do the cleanups), rereading all these tokens afterwards. This feels ugly and against the one-pass nature

Re: [Tinycc-devel] x86_64, musl: generation of mixed C/C++ fails: undefined reference to `__va_start'

2019-01-03 Thread Michael Matz
Hello, On Thu, 3 Jan 2019, Steffen Nurpmeso wrote: Regardless of whether i use the AlpineLinux default tcc package, or my version with the little path-resistancy patch, i cannot create a binary from several C files which become compiled with tcc -static and linked to an -ar chive, and some C++

[Tinycc-devel] x86_64, musl: generation of mixed C/C++ fails: undefined reference to `__va_start'

2019-01-03 Thread Steffen Nurpmeso
Hello. Regardless of whether i use the AlpineLinux default tcc package, or my version with the little path-resistancy patch, i cannot create a binary from several C files which become compiled with tcc -static and linked to an -ar chive, and some C++ files: ... clang -Dsu_USECASE_SU

Re: [Tinycc-devel] Add gcc cleanup attribute support

2019-01-03 Thread uso ewin
On Thu, Jan 3, 2019 at 11:04 AM uso ewin wrote: > > On Wed, Jan 2, 2019 at 7:48 PM Michael Matz wrote: > > > > Hi, > > > > On Wed, 2 Jan 2019, uso ewin wrote: > > > > > I've try to add support to cleanup attribute to TCC: > > > https://github.com/cosmo-ray/tcc/tree/cleanup > > > > > > Are you

Re: [Tinycc-devel] Add gcc cleanup attribute support

2019-01-03 Thread uso ewin
On Wed, Jan 2, 2019 at 7:48 PM Michael Matz wrote: > > Hi, > > On Wed, 2 Jan 2019, uso ewin wrote: > > > I've try to add support to cleanup attribute to TCC: > > https://github.com/cosmo-ray/tcc/tree/cleanup > > > > Are you interested in having this feature merge in mob ? > > If yes it would be