This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


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

Re: [rfc/rfa] Almost eliminate HOST_{FLOAT,DOUBLE,...}_FORMAT


> On Jun 29,  1:23pm, Andrew Cagney wrote:
> 
> 
>> This patch changes GDB so that, if the host configury didn't specify the 
>> floating point format, it will fall back immediatly to floatformat_*(). 
>> Previously, GDB would assume that the HOST had IEEE FP and try to use 
>> that.
>> 
>> For hosts that don't specify a HOST_*_FORMAT, this will mean a loss of 
>> FP precision when using GDB :-/
> 
> 
> Are you suggesting that hosts should define HOST_*_FORMAT?  Or should
> we attempt to eliminate the HOST_*_FORMAT macros entirely?


I think we should eliminate HOST_*_FORMAT entirely.  GDB should always 
use something like ``sim/common/sim-fpu.[hc]'' to do its FP emulation. 
that way, no matter what the host/target, GDB provides both consistent 
and exact FP behavour.


	Andrew



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