[commit] Add BE/LE floating-point type & format tables

Andrew Cagney cagney@gnu.org
Mon Aug 9 13:58:00 GMT 2004


> You'd better do that because right now I don't see where this is
> heading.

My original post gave one example, here's another:

static struct type *
mips_float_register_type (void)
{
   if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG)
     return builtin_type_ieee_single_big;
   else
     return builtin_type_ieee_single_little;
}

Is all over the place.  This:

	builtin_type_ieee_single[gdbarch_byte_order (gdbarch)]

is shorter and correct.

> Anyway, could we rename floatformat_ia64_quad to
> floatformat_ieee_quad.  There are quite a few systems out there that
> use or will be using the same format, and I believe i will be in a new
> revision of the official IEEE standard for it.
> 

local to gdb?

Andrew



More information about the Gdb-patches mailing list