* jcf-write.c (generate_bytecode_insns): Only write const_0 if not
negative zero.
From-SVN: r52427
+2002-04-16 Mark Wielaard <mark@klomp.org>
+
+ * jcf-write.c (generate_bytecode_insns): Only write const_0 if not
+ negative zero.
+
2002-04-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
Fix for PR java/6294:
#include "system.h"
#include "jcf.h"
#include "tree.h"
+#include "real.h"
#include "java-tree.h"
#include "obstack.h"
#undef AND
{
int prec = TYPE_PRECISION (type) >> 5;
RESERVE(1);
- if (real_zerop (exp))
+ if (real_zerop (exp) && ! REAL_VALUE_MINUS_ZERO (TREE_REAL_CST (exp)))
OP1 (prec == 1 ? OPCODE_fconst_0 : OPCODE_dconst_0);
else if (real_onep (exp))
OP1 (prec == 1 ? OPCODE_fconst_1 : OPCODE_dconst_1);