This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: C++: __java_double expressions promote to float
I told you in person this was OK, but reading over the function again, I
see that we don't need to add explicit __java_double support, we just need
to stop assuming that any REAL_TYPE not long double or double must be
float. The 'else' should be an 'if' like the others, as specified in the
standard. The default should be to arbitrarily choose one of the two
types. Or perhaps use type_for_mode.
Also, the function should check for the types actually being the same up
where it tests for different precisions; no need to get fancy in that case.
Jason