PowerPC32 .gnu.attributes in crt files

Carlos O'Donell carlos@codesourcery.com
Fri Feb 18 12:45:00 GMT 2011


On 2/18/2011 2:58 AM, Alan Modra wrote:
> On Thu, Feb 17, 2011 at 08:31:54PM -0500, Carlos O'Donell wrote:
>> Is anyone working on adding don't-care attributes or working on
>> suppressing attributes if they don't apply?
> 
> I was going to poke at it.  If I understand correctly, the three
> existing powerpc attributes are all about parameter passing and
> function return values.  Tag_GNU_Power_ABI_FP says how floating point
> parameters are passed and returned, Tag_GNU_Power_ABI_Vector does the
> same for vectors, and Tag_GNU_Power_ABI_Struct_Return says how <= 8
> byte structures are returned.  Am I missing anything, Joseph?
> 

Alan,

No need to guess, they are documented in the gas docs:
http://sourceware.org/binutils/docs-2.21/as/GNU-Object-Attributes.html#GNU-Object-Attributes

I don't see the struct return attribute documented (bug?).

Cheers,
Carlos.
-- 
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos@codesourcery.com
+1 (650) 331-3385 x716



More information about the Libc-alpha mailing list