This is the mail archive of the 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]


On Thursday, May 2, 2002, at 03:59 , Richard Henderson wrote:

> On Thu, May 02, 2002 at 11:44:35AM -0700, David S. Miller wrote:
>> It caught other buglets too, defining WIDEST_HARDWARE_FP_SIZE in
>> sol2.h is absolutely rediculious.
> It's only used by the ada front end, and like so:
> #endif

I'd like to give some backgrounds on the issue here. Some platforms
define a "long double" which is wider than the widest type supported
by hardware.

The Ada standard requires GNAT to define a type that corresponds
to the widest floating-point type supported by the hardware.
Whether this type corresponds to a particular C type or not is
not important.

You're probably right that the current mechanism for selecting
target types is not ideal, but we need some way to define a type
corresponding to the widest hardware supported type.
(Of course for targets without floating-point hardware, this is
not applicable and we should use type same type as used for Long_Float,
which is usually equal to the C "double" type.)


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