This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Ada vs WIDEST_HARDWARE_FP_SIZE
Richard Henderson <rth@redhat.com> writes:
> 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?
This is one of those broken targtyps.o functions. The underlying
problem is that gnatpsta appears to make assumptions about the sizes
of types that it shouldn't (for instance, that they are constant under
all multilibs).
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>