[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Recent changes segfault on Linux ARM
From: |
Christian Jullien |
Subject: |
Re: [Tinycc-devel] Recent changes segfault on Linux ARM |
Date: |
Wed, 1 May 2013 16:44:09 +0200 |
Hi Daniel
ARM hardfloat: fix struct return with float/double args
Fixes the case where the structure is not returned in registers.
I thought it was related to ret_2float_test
At least on Rpi I still have:
ret_2float_test... Segmentation fault
C.
P.S. Compiled from a fresh git
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Daniel Glöckner
Sent: mercredi 1 mai 2013 16:40
To: address@hidden
Subject: Re: [Tinycc-devel] Recent changes segfault on Linux ARM
On Fri, Apr 26, 2013 at 10:58:39PM +0200, Daniel Glöckner wrote:
> There are two things broken in the code generated by TCC:
> First of all TCC thinks it has to return the structure in memory
> pointed to by r0 and second it gets confused about where it stored r0
> and instead reads the first float from the stack and interpretes that
> as a pointer.
The latter should be fixed by the one-liner I just committed.
Daniel
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel