Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-28 Thread Michael Karcher
at it fits has precedence in ghc history (and thus ghc either needs to stop lying or find a new lie that just happens to work), I strongly disagree. In that case, ghc developers not "replace a lie with a different lie", but replaced a lie "(empty parameter list)" with the truth "(unknown parameter list)". Regards, Michael Karcher

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-27 Thread Michael Karcher
On 27.01.2016 11:33, Richard Biener wrote: > On Tue, Jan 26, 2016 at 9:54 PM, Michael Karcher > wrote: >> On 26.01.2016 21:47, Richard Biener wrote: >> >>> I would still prefer the more obvious approach of using the target hook >>> transition. >> I in

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-27 Thread Michael Karcher
rameter "valtype" to determine the register used by the currently selected ABI for the return value on caller side, but keep using the function declaration for that, I will nevertheless propose this change to ghc. > Thanks, > Andrew Regards, Michael Karcher

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-27 Thread Michael Karcher
I posted is reducing the effect of the "return pointer in both a0 and d0" hack, which interferes with the usual decision of the return value register. We do agree that the way the patch achieves this result is ugly and a better way has been proposed. Regards, Michael Karcher

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-27 Thread Michael Karcher
hc is broken, not gcc. ghc does not fetch anything from any register. ghc generates C code that is known to be non-conforming, and gcc decides what register to fetch from. Regards, Michael Karcher

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-26 Thread Michael Karcher
here is consensus that this patch can be accepted. I do not want the current patch committed as-is, I just posted it to get the idea across and start discussion. Regards, Michael Karcher

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-26 Thread Michael Karcher
if (outgoing && POINTER_TYPE_P (TREE_TYPE (TREE_TYPE (func > ... > else if (POINTER_TYPE_P (valtype)) >... > else > ... Looks good and clean to me, but I expect my patch to have the same effect. Regards, Michael Karcher

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-26 Thread Michael Karcher
ed return type), I expect ghc develepors to happily use it. Regards, Michael Karcher

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-26 Thread Michael Karcher
On 26.01.2016 10:42, Andreas Schwab wrote: > Michael Karcher writes: >> ghc does not have the information yet when it writes the >> declaration. > It knows it when it calls the function, so that's a lame excuse. The excuse is not as lame as it sounds at the first sight

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-25 Thread Michael Karcher
n if the called function is known and declared as returning a pointer. Regards, Michael Karcher

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-25 Thread Michael Karcher
On 26.01.2016 00:39, Andreas Schwab wrote: > Michael Karcher writes: > >> *can't* (forward-)declare a function without fixing the return type. > What does "fixing the return type" mean in the context of lying to the > compiler? OK, now I get your question. I don&#

Re: RFC: Support non-standard extension (call via casted function pointer)

2016-01-25 Thread Michael Karcher
On 25.01.2016 23:07, Andreas Schwab wrote: > Michael Karcher writes: >> but it fixes the return type to some pointer type. > Why does it do that? Please help me understand why the sentence before the sentence you quoted is not an answer to your question: | This is because its inter

RFC: Support non-standard extension (call via casted function pointer)

2016-01-25 Thread Michael Karcher
taking the actual return type in the call expression into account, even if the function declaration to be called is known. Please comment whether such a patch has any chance to be applied to either gcc upstream or gcc in Debian. Regards, Michael Karcher >From 50c0af571f829e54cb3274c05d7be3da411

Re: [PATCH 0/8] Amiga XSurf100 patch series, to be submitted to linux-net

2015-11-17 Thread Michael Karcher
/X-Surf-100 and http://wiki.icomp.de/wiki/RapidRoad. Regards, Michael Karcher

Re: [PATCH 7/8] ax88796: Add X-Surf 100 zorro driver providing an ax88796 platform device

2015-11-17 Thread Michael Karcher
d" approach, *like* you are using for other drivers, I got your point and you are likely right. >> +static struct zorro_device_id xsurf100_zorro_tbl[] = { > const Of course. Thanks for pointing it out. BTW: for me, the patch-set was trivially forward-ported by git rebasing to 4.4-rc1 Kind regards, Michael Karcher

Re: schroot does work on 3.2.0-4-amiga

2012-12-17 Thread Michael Karcher
r the problem at hand. "m68k: Make sys_atomic_cmpxchg_32 work on classic m68k" It has been introduced between Linux 3.2.26 and 3.2.27 into the stable series, and between 3.5-rc1 and 3.5-rc2 into the development kernel. Regards, Michael Karcher signature.asc Description: This is a digitally signed message part