tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] Pass structures through ?:, test for fp too (grischka-200


From: David A. Wheeler
Subject: [Tinycc-devel] Pass structures through ?:, test for fp too (grischka-2005-09-25 case_1)
Date: Thu, 03 May 2007 13:50:29 -0400 (EDT)

Here's another patch, grischka-2005-09-25 case_1.
This one passes structures through ?:, and adds a test for test for function 
pointers too (grischka-2005-09-25 case_1).  I suspect that this will fix the 
problem compiling Lua just mentioned today.

This patch was originally posted in grischka's 2005-09-25 email as
required fix case_1 to compile gcc 2.95.  This adds tests to ensure
that both structures and function pointers can pass through the conditional
operator ?:. The tests were tweaked by David A. Wheeler to merge the test cases
into the standard tcc test suite.  This patch also modifies tcc so that
structures can be passed through conditional operators.
Note that this patch does NOT modify tcc to permit function pointers to pass
through ?:, because although such a patch WAS in grischka's patch, an
equivalent change was already in tcc by the time this version of the patch
was created.

Oh, the structure passing works b/c it converts to passing addresses.  If 
someone wants to optimize that further (esp. for small structures that fit in 
registers), feel free to do so, but changing "not working" to "working" is WAY 
more important than absolute maximum speed.  If you want to optimize, this is 
not where I'd spend my time :-).

Also, I'm "cc"ing this email to Rob and veritosproject, so that they'll have 
this patch in their inbox immediately.  Well, assuming that it's not labelled 
as spam :-).

--- David A. Wheeler 

Attachment: grischka1.patch
Description: Text Data


reply via email to

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