aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2005-07-28 18:28:12 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2005-07-28 14:28:12 -0400
commitbaa923061b61df003f5671dc27548af39bb42d3d (patch)
tree25ac4a6e61dd7b35c20d67813315b18f47a03a03 /gcc/java
parent796cccfcc36d87e8112972dcbd97e9693f014fc7 (diff)
downloadgcc-baa923061b61df003f5671dc27548af39bb42d3d.zip
gcc-baa923061b61df003f5671dc27548af39bb42d3d.tar.gz
gcc-baa923061b61df003f5671dc27548af39bb42d3d.tar.bz2
expr.c (expand_load_internal): Fix missing parens in predicate.
* expr.c (expand_load_internal): Fix missing parens in predicate. From-SVN: r102504
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/expr.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index da643f4..cd908fd 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-28 Diego Novillo <dnovillo@redhat.com>
+
+ * expr.c (expand_load_internal): Fix missing parens in
+ predicate.
+
2005-07-28 Andrew Haley <aph@redhat.com>
* expr.c (expand_load_internal): Convert to destination type.
diff --git a/gcc/java/expr.c b/gcc/java/expr.c
index 5c5a56c..165aea7 100644
--- a/gcc/java/expr.c
+++ b/gcc/java/expr.c
@@ -1321,7 +1321,7 @@ expand_load_internal (int index, tree type, int pc)
value into it. Then we push this new local on the stack.
Hopefully this all gets optimized out. */
copy = build_decl (VAR_DECL, NULL_TREE, type);
- if (INTEGRAL_TYPE_P (type) || POINTER_TYPE_P (type)
+ if ((INTEGRAL_TYPE_P (type) || POINTER_TYPE_P (type))
&& TREE_TYPE (copy) != TREE_TYPE (var))
var = convert (type, var);
java_add_local_var (copy);