Mon Oct 26 12:17:23 1998 Nick Clifton <nickc@cygnus.com>
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Nov 1998 23:42:22 +0000 (23:42 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Nov 1998 23:42:22 +0000 (23:42 +0000)
        * jcf-parse.c (get_constant): Place braces around code to compute
        'd' when REAL_ARITHMETIC is not defined.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23600 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/jcf-parse.c

index c225fdf..6296bdc 100644 (file)
@@ -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
index df4881d..dd411b3 100644 (file)
@@ -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;