This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PowerPC32 .gnu.attributes in crt files


On Fri, 18 Feb 2011, 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?

One thing to note is that it's not just all objects containing a 
definition of or a call to a function with a floating-point argument or 
return value (including compiler-generated libcalls to libgcc functions, 
not just calls written in the source code) that care about how 
floating-point parameters are passed and returned; because of the 
complexities of the ABI for variadic functions, it would be safest also to 
say that any object containing a call to va_arg, a definition of a 
variadic function or a call to a variadic function also cares.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]