Commit 0d17a080 by Nick Clifton Committed by Jeff Law

jcf-parse.c (get_constant): Place braces around code to compute 'd' when…

jcf-parse.c (get_constant): Place braces around code to compute 'd' when REAL_ARITHMETIC is not defined.

Mon Oct 26 12:17:23 1998  Nick Clifton  <nickc@cygnus.com>
        * jcf-parse.c (get_constant): Place braces around code to compute
        'd' when REAL_ARITHMETIC is not defined.

From-SVN: r23600
parent 5e942c50
......@@ -343,6 +343,11 @@ Wed Oct 28 00:46:15 1998 Jeffrey A Law (law@cygnus.com)
* jcf-write.c (emit_load_or_store): Avoid implicit int arguments.
* mangle.c (emit_unicode_mangled_name): Similarly.
Mon Oct 26 12:17:23 1998 Nick Clifton <nickc@cygnus.com>
* jcf-parse.c (get_constant): Place braces around code to compute
'd' when REAL_ARITHMETIC is not defined.
Sun Oct 25 14:58:05 1998 H.J. Lu (hjl@gnu.org)
* Make-lang.in (jv-scan$(exeext)): Add stamp-objlist to
......
......@@ -259,10 +259,12 @@ get_constant (jcf, index)
#ifdef REAL_ARITHMETIC
d = REAL_VALUE_FROM_TARGET_DOUBLE (num);
#else
union { double d; jint i[2]; } u;
u.i[0] = (jint) num[0];
u.i[1] = (jint) num[1];
d = u.d;
{
union { double d; jint i[2]; } u;
u.i[0] = (jint) num[0];
u.i[1] = (jint) num[1];
d = u.d;
}
#endif
value = build_real (double_type_node, d);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment