From: Daniel Berlin Date: Tue, 6 Jul 2004 20:01:10 +0000 (+0000) Subject: dojump.c (do_jump): REFERENCE_EXPR is dead. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b89cd06e92185c6448ee8b9a1ee5992f0f60be60;p=gcc.git dojump.c (do_jump): REFERENCE_EXPR is dead. 2004-07-06 Daniel Berlin * dojump.c (do_jump): REFERENCE_EXPR is dead. * expr.c (expand_expr_real_1): Ditto. * tree-inline.c (estimate_num_insns_1): Ditto. * tree-pretty-print.c (dump_generic_node): Ditto. (op_symbol): Ditto. * tree.def: Ditto. From-SVN: r84165 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5de6388521a..94cd3a29479 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,14 @@ 2004-07-06 Daniel Berlin - + + * dojump.c (do_jump): REFERENCE_EXPR is dead. + * expr.c (expand_expr_real_1): Ditto. + * tree-inline.c (estimate_num_insns_1): Ditto. + * tree-pretty-print.c (dump_generic_node): Ditto. + (op_symbol): Ditto. + * tree.def: Ditto. + +2004-07-06 Daniel Berlin + * tree-ssa-pre.c (reference_node_pool): New pool. (find_or_generate_expression): Class 'r' is okay too. (create_value_expr_from): Ditto. @@ -7,7 +16,7 @@ (eliminate): Ditto. (compute_avail): Reverse ordering of tests. Valuize INDIRECT_REF as well. - + 2004-07-06 Richard Sandiford PR rtl-optimization/16380 diff --git a/gcc/dojump.c b/gcc/dojump.c index 5ef98a1fc20..27dc5804ebb 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -208,7 +208,6 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) < TYPE_PRECISION (TREE_TYPE (TREE_OPERAND (exp, 0))))) goto normal; case NON_LVALUE_EXPR: - case REFERENCE_EXPR: case ABS_EXPR: case NEGATE_EXPR: case LROTATE_EXPR: diff --git a/gcc/expr.c b/gcc/expr.c index 6e4f5c739a4..a3e64f495d1 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -6443,8 +6443,8 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, original_target = target; ignore = (target == const0_rtx || ((code == NON_LVALUE_EXPR || code == NOP_EXPR - || code == CONVERT_EXPR || code == REFERENCE_EXPR - || code == COND_EXPR || code == VIEW_CONVERT_EXPR) + || code == CONVERT_EXPR || code == COND_EXPR + || code == VIEW_CONVERT_EXPR) && TREE_CODE (type) == VOID_TYPE)); /* If we are going to ignore this result, we need only do something @@ -7503,7 +7503,6 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, case NON_LVALUE_EXPR: case NOP_EXPR: case CONVERT_EXPR: - case REFERENCE_EXPR: if (TREE_OPERAND (exp, 0) == error_mark_node) return const0_rtx; diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index fcda4ad5f77..044d0190923 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -1211,7 +1211,6 @@ estimate_num_insns_1 (tree *tp, int *walk_subtrees, void *data) case SAVE_EXPR: case UNSAVE_EXPR: case ADDR_EXPR: - case REFERENCE_EXPR: case COMPLEX_EXPR: case EXIT_BLOCK_EXPR: case CASE_LABEL_EXPR: diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index 48f8c13611e..3ff23f753b1 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -999,7 +999,6 @@ dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, case BIT_NOT_EXPR: case TRUTH_NOT_EXPR: case ADDR_EXPR: - case REFERENCE_EXPR: case PREDECREMENT_EXPR: case PREINCREMENT_EXPR: case INDIRECT_REF: @@ -1851,9 +1850,6 @@ op_symbol (tree op) case POSTINCREMENT_EXPR: return "++ "; - case REFERENCE_EXPR: - return ""; - default: return "<<< ??? >>>"; } diff --git a/gcc/tree.def b/gcc/tree.def index 79dcd94ff18..b6897a787b1 100644 --- a/gcc/tree.def +++ b/gcc/tree.def @@ -739,9 +739,6 @@ DEFTREECODE (UNSAVE_EXPR, "unsave_expr", 'e', 1) Operand may have any mode. Result mode is Pmode. */ DEFTREECODE (ADDR_EXPR, "addr_expr", 'e', 1) -/* Non-lvalue reference or pointer to an object. */ -DEFTREECODE (REFERENCE_EXPR, "reference_expr", 'e', 1) - /* Operand is a function constant; result is a function variable value of type EPmode. Used only for languages that need static chains. */ DEFTREECODE (ENTRY_VALUE_EXPR, "entry_value_expr", 'e', 1)