aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog7
-rw-r--r--gcc/java/expr.c4
-rw-r--r--gcc/java/jcf-parse.c15
-rw-r--r--gcc/java/lex.c4
4 files changed, 7 insertions, 23 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 6cd8b5f..b1b01b9 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,10 @@
+2002-03-03 Zack Weinberg <zack@codesourcery.com>
+
+ * java/expr.c, java/jcf-parse.c, java/lex.c:
+ Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
+ REAL_ARITHMETIC blocks unconditional. Delete some further
+ #ifdef blocks predicated on REAL_ARITHMETIC.
+
2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* class.c (init_class_processing): Use ARRAY_SIZE in lieu of
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index ecfabe5..b6a0106 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1099,11 +1099,7 @@ expand_java_pushc (ival, type)
else if (type == float_type_node || type == double_type_node)
{
REAL_VALUE_TYPE x;
-#ifdef REAL_ARITHMETIC
REAL_VALUE_FROM_INT (x, ival, 0, TYPE_MODE (type));
-#else
- x = ival;
-#endif
value = build_real (type, x);
}
else
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index c2350a0..c4faa8e 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -306,13 +306,7 @@ get_constant (jcf, index)
{
jint num = JPOOL_INT(jcf, index);
REAL_VALUE_TYPE d;
-#ifdef REAL_ARITHMETIC
d = REAL_VALUE_FROM_TARGET_SINGLE (num);
-#else
- union { float f; jint i; } u;
- u.i = num;
- d = u.f;
-#endif
value = build_real (float_type_node, d);
break;
}
@@ -343,16 +337,7 @@ get_constant (jcf, index)
num[0] = lo;
num[1] = hi;
}
-#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;
- }
-#endif
value = build_real (double_type_node, d);
break;
}
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index 3509b17..17a7e1b 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -840,11 +840,7 @@ struct jpa_args
int number_beginning;
};
-#ifdef REAL_ARITHMETIC
#define IS_ZERO(X) (ereal_cmp (X, dconst0) == 0)
-#else
-#define IS_ZERO(X) ((X) == 0)
-#endif
static void java_perform_atof PARAMS ((PTR));