From 0d17a080d6f40680d65183015a36682f712a43e1 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 10 Nov 1998 23:42:22 +0000 Subject: [PATCH] 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 * jcf-parse.c (get_constant): Place braces around code to compute 'd' when REAL_ARITHMETIC is not defined. From-SVN: r23600 --- gcc/java/ChangeLog | 5 +++++ gcc/java/jcf-parse.c | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index c225fdf7f32..6296bdc19ad 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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 + + * 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 diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c index df4881d31cd..dd411b376f6 100644 --- a/gcc/java/jcf-parse.c +++ b/gcc/java/jcf-parse.c @@ -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; -- 2.30.2