tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] x86_64 ABI: mixed structs


From: Pip Cet
Subject: Re: [Tinycc-devel] x86_64 ABI: mixed structs
Date: Mon, 27 Apr 2015 04:22:11 +0000

Thanks for testing! You're right on both counts; I should have said
that I haven't been able to test PE and the other architectures, and I
didn't know about --enable-cross—that's a really handy option for
testing.

So this version should fix both the issues you report and the 7
doubles - two-double struct - 2 doubles bug. It's not quite ready for
pushing yet, as it currently has O(n^2) behavior in gfunc_call (though
in my defense, so did the original version).

In looking over it, I see that it needs optimization at least (and
possibly fixing) for zero-length structs, too.

On Mon, Apr 27, 2015 at 3:56 AM, Sergey Korshunoff <address@hidden> wrote:
> Hi!
>
> ./configure --enable-cross
> make
> ...
> cc -o x86_64-win-tcc tcc.c -DONE_SOURCE -DTCC_TARGET_X86_64
> -DTCC_TARGET_PE -DCONFIG_TCCDIR="\"/usr/local/lib/tcc/win32\""
> In file included from libtcc.c:55,
>                  from tcc.c:22:
> x86_64-gen.c:769: error: conflicting types for 'gfunc_sret'
> tcc.h:1338: error: previous declaration of 'gfunc_sret' was here
> x86_64-gen.c:769: error: conflicting types for 'gfunc_sret'
> tcc.h:1338: error: previous declaration of 'gfunc_sret' was here
> tcc.h:1337: warning: 'regargs_nregs' used but never defined
> tcc.h:1338: warning: 'gfunc_sret' used but never defined
> x86_64-gen.c:769: warning: 'gfunc_sret' defined but not used
>
> And your patch can't be applied to the current mob.
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>

Attachment: tcc-fix-mixed-structs-002.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]