[RFC] Support alternate 'long double' size.

Andrew Cagney ac131313@redhat.com
Tue Feb 18 19:46:00 GMT 2003


> Index: doublest.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/doublest.c,v
> retrieving revision 1.11
> diff -u -p -r1.11 doublest.c
> --- doublest.c	4 Dec 2002 05:40:40 -0000	1.11
> +++ doublest.c	17 Feb 2003 16:07:19 -0000
> @@ -633,6 +633,8 @@ floatformat_from_length (int len)
>      return TARGET_DOUBLE_FORMAT;
>    else if (len * TARGET_CHAR_BIT == TARGET_LONG_DOUBLE_BIT)
>      return TARGET_LONG_DOUBLE_FORMAT;
> +  else if (len * TARGET_CHAR_BIT == TARGET_LONG_DOUBLE_BIT_ALTERNATE)
> +    return TARGET_LONG_DOUBLE_FORMAT;
>  
>    return NULL;
>  }

Would simply adding:

else if (TARGET_LONG_DOUBLE_FORMAT != NULL
     && len * TARGET_CHAR_BIT == TARGET_LONG_DOUBLE_FORMAT->totalsize)
   ..

to the end of that if() chain work? (and the other alternatives as well 
of course).

Otherwize, yes, I can't see any other way of handling this problem :-(

Andrew




More information about the Gdb-patches mailing list