Re: i686 elf return values

2013-08-12 Thread Nathan Sidwell
On 08/12/13 08:07, Maciej W. Rozycki wrote: My conclusion therefore is i386/ELF was not maintained, as far as the return convention is concerned, beyond r34721 and it looks to me like it should have been converted with r45726 to make use of ix86_return_in_memory just like generic i386, perhaps

Re: i686 elf return values

2013-08-12 Thread Maciej W. Rozycki
On Tue, 6 Aug 2013, Gabriel Dos Reis wrote: > On Tue, Aug 6, 2013 at 1:46 PM, Nathan Sidwell wrote: > > Hi, > > i386elf.h defines: > > > > /* The ELF ABI for the i386 says that records and unions are returned > >in memory. */ > > > > #define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \ > >

Re: i686 elf return values

2013-08-06 Thread Gabriel Dos Reis
On Tue, Aug 6, 2013 at 1:46 PM, Nathan Sidwell wrote: > Hi, > i386elf.h defines: > > /* The ELF ABI for the i386 says that records and unions are returned >in memory. */ > > #define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \ > (TYPE_MODE (TYPE) == BLKmode \ > || (VECTOR_MODE_

i686 elf return values

2013-08-06 Thread Nathan Sidwell
Hi, i386elf.h defines: /* The ELF ABI for the i386 says that records and unions are returned in memory. */ #define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \ (TYPE_MODE (TYPE) == BLKmode \ || (VECTOR_MODE_P (TYPE_MODE (TYPE)) && int_size_in_bytes (TYPE) == 8)) and as such d