This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: split_complex_* flaw


On Sat, Jan 31, 2004 at 10:43:45PM -0500, David Edelsohn wrote:
> 	A pointer to a complex float is a pointer to a pair of packed,
> adjacent floats occupying a doubleword, but the stack image is two
> doublewords. 

This is where things go wrong.  va_list on powerpc64-linux is just
a simple pointer.  va_arg(ap, _Complex float) is looking for a pair
of adjacent floats in a doubleword, but as you say, the stack image
is two doublewords with the split_complex_* code.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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