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

Ada vs WIDEST_HARDWARE_FP_SIZE


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:

#ifndef WIDEST_HARDWARE_FP_SIZE
#define WIDEST_HARDWARE_FP_SIZE LONG_DOUBLE_TYPE_SIZE
#endif

Pos
get_target_long_double_size ()
{
  return WIDEST_HARDWARE_FP_SIZE;
}

"get_target_long_double_size"?  Did you or did you not want 
what corresponds to the C "long double" type?

What if the hardware supports _no_ fp?  Should we return 0?

Ergo any definition of WIDEST_HARDWARE_FP_SIZE is broken.


r~


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