* tree.def (REALPART_EXPR, IMAGPART_EXPR): Change class to 'r'.
* fold-const.c (operand_equal_p <case 'r'>): Add REALPART_EXPR,
IMAGPART_EXPR.
* tree-dump.c (dequeue_and_dump): Handle REALPART_EXPR and
IMAGPART_EXPR explicitly.
* tree-inline.c (estimate_num_insns_1): Don't handle REALPART_EXPR
and IMAGPART_EXPR specially.
* tree.c (build1_stat): Copy TREE_THIS_VOLATILE into class 'r'.
From-SVN: r83825
+2004-06-28 Richard Henderson <rth@redhat.com>
+
+ * tree.def (REALPART_EXPR, IMAGPART_EXPR): Change class to 'r'.
+ * fold-const.c (operand_equal_p <case 'r'>): Add REALPART_EXPR,
+ IMAGPART_EXPR.
+ * tree-dump.c (dequeue_and_dump): Handle REALPART_EXPR and
+ IMAGPART_EXPR explicitly.
+ * tree-inline.c (estimate_num_insns_1): Don't handle REALPART_EXPR
+ and IMAGPART_EXPR specially.
+ * tree.c (build1_stat): Copy TREE_THIS_VOLATILE into class 'r'.
+
2004-06-28 J"orn Rennecke <joern.rennecke@superh.com>
* config.gcc (sh*-*elf*): Remove dead assignment of sh_multilibs.
switch (TREE_CODE (arg0))
{
case INDIRECT_REF:
+ case REALPART_EXPR:
+ case IMAGPART_EXPR:
return operand_equal_p (TREE_OPERAND (arg0, 0),
TREE_OPERAND (arg1, 0), flags);
case INDIRECT_REF:
case CLEANUP_POINT_EXPR:
case SAVE_EXPR:
+ case REALPART_EXPR:
+ case IMAGPART_EXPR:
/* These nodes are unary, but do not have code class `1'. */
dump_child ("op 0", TREE_OPERAND (t, 0));
break;
case ADDR_EXPR:
case REFERENCE_EXPR:
case COMPLEX_EXPR:
- case REALPART_EXPR:
- case IMAGPART_EXPR:
case EXIT_BLOCK_EXPR:
case CASE_LABEL_EXPR:
case SSA_NAME:
TREE_CONSTANT (t) = 1;
if (TREE_CODE_CLASS (code) == '1' && node && TREE_INVARIANT (node))
TREE_INVARIANT (t) = 1;
+ if (TREE_CODE_CLASS (code) == 'r' && node && TREE_THIS_VOLATILE (node))
+ TREE_THIS_VOLATILE (t) = 1;
break;
}
/* Used only on an operand of complex type, these return
a value of the corresponding component type. */
-DEFTREECODE (REALPART_EXPR, "realpart_expr", '1', 1)
-DEFTREECODE (IMAGPART_EXPR, "imagpart_expr", '1', 1)
+DEFTREECODE (REALPART_EXPR, "realpart_expr", 'r', 1)
+DEFTREECODE (IMAGPART_EXPR, "imagpart_expr", 'r', 1)
/* Nodes for ++ and -- in C.
The second arg is how much to increment or decrement by.