diff options
author | Andrew Haley <aph@redhat.com> | 2004-09-29 14:13:17 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2004-09-29 14:13:17 +0000 |
commit | eab3f38f804d6d636a8f8e5ed5918dd8f7cc809d (patch) | |
tree | 7af8b87d4be1496aa3c1819ffeff459a6be5d46c /gcc/java/decl.c | |
parent | c4b3f0eb2124049d163f81118d026f68ed5dbc19 (diff) | |
download | gcc-eab3f38f804d6d636a8f8e5ed5918dd8f7cc809d.tar.gz |
re PR java/17007 (Inconsistent builtin attributes set by Java front end)
2004-09-29 Andrew Haley <aph@redhat.com>
PR java/17007
* parse.y (patch_binop): Don't mess with the TREE_SIDE_EFFECTS of the
result of TRUNC_MOD_EXPR.
(patch_unaryop): Likewise for CONVERT_EXPR, which may throw.
* decl.c (java_init_decl_processing): Mark
soft_lookupinterfacemethod_node and soft_instanceof_node pure.
From-SVN: r88289
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r-- | gcc/java/decl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c index f6c03a5bb7a..573fa2c9b08 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -986,6 +986,7 @@ java_init_decl_processing (void) = builtin_function ("_Jv_IsInstanceOf", build_function_type (boolean_type_node, t), 0, NOT_BUILT_IN, NULL, NULL_TREE); + DECL_IS_PURE (soft_instanceof_node) = 1; t = tree_cons (NULL_TREE, object_ptr_type_node, tree_cons (NULL_TREE, object_ptr_type_node, endlink)); soft_checkarraystore_node @@ -1000,6 +1001,7 @@ java_init_decl_processing (void) build_function_type (ptr_type_node, t), 0, NOT_BUILT_IN, NULL, NULL_TREE); + DECL_IS_PURE (soft_lookupinterfacemethod_node) = 1; t = tree_cons (NULL_TREE, object_ptr_type_node, tree_cons (NULL_TREE, ptr_type_node, tree_cons (NULL_TREE, ptr_type_node, |