aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-07-31 09:29:49 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-07-31 07:29:49 +0000
commit3dd9302511e2f2d01a14d5d7faa682c10a5c4d5b (patch)
tree0fc3768bb308a193dd64041cda2cd5b86b7735b9
parentf826c40ecbd0695fa2b6a44a20f2329493538f61 (diff)
downloadgcc-3dd9302511e2f2d01a14d5d7faa682c10a5c4d5b.zip
gcc-3dd9302511e2f2d01a14d5d7faa682c10a5c4d5b.tar.gz
gcc-3dd9302511e2f2d01a14d5d7faa682c10a5c4d5b.tar.bz2
Remove a Java-specific hunk.
2017-07-31 Martin Liska <mliska@suse.cz> * gimplify.c (mostly_copy_tree_r): Remove Java specific hunk. (gimplify_save_expr): Fix comment. From-SVN: r250726
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gimplify.c10
2 files changed, 7 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5a2e5fa..59ddc50 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2017-07-31 Martin Liska <mliska@suse.cz>
+
+ * gimplify.c (mostly_copy_tree_r): Remove Java specific hunk.
+ (gimplify_save_expr): Fix comment.
+
2017-07-30 H.J. Lu <hongjiu.lu@intel.com>
PR target/79793
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 641a821..8071248 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -818,12 +818,7 @@ mostly_copy_tree_r (tree *tp, int *walk_subtrees, void *data)
/* Stop at types, decls, constants like copy_tree_r. */
else if (TREE_CODE_CLASS (code) == tcc_type
|| TREE_CODE_CLASS (code) == tcc_declaration
- || TREE_CODE_CLASS (code) == tcc_constant
- /* We can't do anything sensible with a BLOCK used as an
- expression, but we also can't just die when we see it
- because of non-expression uses. So we avert our eyes
- and cross our fingers. Silly Java. */
- || code == BLOCK)
+ || TREE_CODE_CLASS (code) == tcc_constant)
*walk_subtrees = 0;
/* Cope with the statement expression extension. */
@@ -5807,8 +5802,7 @@ gimplify_save_expr (tree *expr_p, gimple_seq *pre_p, gimple_seq *post_p)
/* If the SAVE_EXPR has not been resolved, then evaluate it once. */
if (!SAVE_EXPR_RESOLVED_P (*expr_p))
{
- /* The operand may be a void-valued expression such as SAVE_EXPRs
- generated by the Java frontend for class initialization. It is
+ /* The operand may be a void-valued expression. It is
being executed only for its side-effects. */
if (TREE_TYPE (val) == void_type_node)
{