Re: [Tinycc-devel] Use TCC with GSL under Windows

2016-10-17 Thread Chen, Xianwen
Dear Michael, Thank you. I'm using the latest release, but not the latest version as of the source code. Are you suggesting me to compile tcc itself from source codes? Warm regards, Xianwen On 14.10.2016 17:56, Michael Matz wrote: > Hi, > > On Tue, 11 Oct 2016, Chen, Xianwen wrote: > >> In f

Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues

2016-10-17 Thread grischka
Christian JULLIEN wrote: tcc: error: file 'crt1.o' not found Can you look where your file is? $ find /usr/lib -name crt1.o -- gr ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues

2016-10-17 Thread Christian Jullien
Hi, $ find /usr/lib -name crt1.o /usr/lib/crt1.o -Original Message- From: grischka [mailto:gris...@gmx.de] Sent: lundi 17 octobre 2016 18:32 To: Christian JULLIEN; tinycc-devel@nongnu.org Subject: Re: [Tinycc-devel] [FreeBSD support] __aligned(n) + __pure issues Christian JULLIEN wrote:

[Tinycc-devel] Weird bitfield size handling, discrepancy with gcc

2016-10-17 Thread David Mertens
Hello everyone, I recently uncovered some segfaulting code when compiling code with macros that manipulate certain Perl structs on 64-bit Linux. I boiled the problem down to a discrepancy between how tcc and gcc determine the size needed by a series of bit fields. The tcc-compiled function would g

Re: [Tinycc-devel] Weird bitfield size handling, discrepancy with gcc

2016-10-17 Thread Richard Brett
Hello Is this really a problem for tcc? An old version of VC produces the same sizes as tcc. The spec seems to say (not sure I'm reading this right, first time I've read the spec) "An implementation may allocate any addressable storage unit large enough to hold a bitfield.snip. th

[Tinycc-devel] core dump on FreeBSD with last commit "configure: --triplet= option, Makefile: cleanup"

2016-10-17 Thread Christian Jullien
Hi Grischka, This one tccpp_new/delete and other cleanups commit 0be098929a062d706057d7beb78666daa52bac49 still works on FreeBSD with of course C library not found as previously reported But next commit configure: --triplet= option, Makefile: cleanupmob commit 02919cd27506e25dacdbe72dad1ae2718eb7

Re: [Tinycc-devel] Weird bitfield size handling, discrepancy with gcc

2016-10-17 Thread Christian Jullien
Hi all, VC++ 32 and 64 both return: t1 struct size: 2 t2 struct size: 8 t3 struct size: 8 Which IMHO is correct. I really don’t understand why gcc returns t1 struct size: 2 t2 struct size: 4 t3 struct size: 4 To me, struct t2 { uint32_t op_type:1; uint8_t op_flags; }; op_type uses a plai