This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

Re: [RFC] Support alternate 'long double' size.



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



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