[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Recent changes segfault on Linux ARM
From: |
Daniel Glöckner |
Subject: |
Re: [Tinycc-devel] Recent changes segfault on Linux ARM |
Date: |
Fri, 26 Apr 2013 22:58:39 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Fri, Apr 26, 2013 at 08:27:25PM +0100, James Lyon wrote:
> I think that ARM should use a hidden pointer to return
> the data in ret_2float_test, but reading the ARM EABI spec a
> structure with 2 floats in might count as a "64-bit containerized
> vector" and thus would be returned in r0 and r1. In that case I
> think the thing to do is modify gfunc_sret to detect this.
GCC with hard float ABI returns the structure in s0 and s1.
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.
And I am not happy that is_fconst() apparently does not work.
Daniel
- [Tinycc-devel] Recent changes segfault on Linux ARM, Christian Jullien, 2013/04/26
- Re: [Tinycc-devel] Recent changes segfault on Linux ARM, James Lyon, 2013/04/26
- [Tinycc-devel] Do we want a BSD license for tinycc?, grischka, 2013/04/30
- Re: [Tinycc-devel] Do we want a BSD license for tinycc?, Daniel Glöckner, 2013/04/30
- Re: [Tinycc-devel] Do we want a BSD license for tinycc?, Sean Conner, 2013/04/30
- Re: [Tinycc-devel] Do we want a BSD license for tinycc?, Stan Steel, 2013/04/30
- Re: [Tinycc-devel] Do we want a BSD license for tinycc?, Thomas Preud'homme, 2013/04/30