[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] PowerPC64 Support finished

From: David Mosberger-Tang
Subject: Re: [Libunwind-devel] PowerPC64 Support finished
Date: Tue, 24 Jul 2007 11:48:12 -0600

On 7/24/07, Andrew Cagney <address@hidden> wrote:
David Mosberger-Tang wrote:
>> This needs to work cross-platform; can you assume that a _host's_ <<long
>> double>> is a 128-bit type?
> Eh?  If "long double" doesn't match the host's format, you're screwed
> anyhow.  That's why I'd suggest to declare fpreg_t based on
> "unw_word_t" or something like that, like we do on ia64, for example.
>  --david

Ah, but i386 and x86-64 do not:

libunwind-i386/include/libunwind.h:typedef long double unw_tdep_fpreg_t;
libunwind/include/libunwind.h:typedef long double unw_tdep_fpreg_t;
libunwind-ppc64/include/libunwind.h:typedef long double unw_tdep_fpreg_t;
libunwind-x86_64/include/libunwind.h:typedef long double unw_tdep_fpreg_t;

where to the SSE registers fit in to this?

Yes, I noticed that too.  Me thinks it would be safer to remove "long
double" and declare fpreg_t only in terms of (known-size) integer
types.  Arun, what do you think?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]