This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Minor fix to propagate_into_addr
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 1 Sep 04 18:18:13 EDT
- Subject: Minor fix to propagate_into_addr
RTH and I discussed this a while ago. What's there was incorrect, but
we don't know of any bugs caused by it.
Tested on x86_64-linux-gnu.
2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* tree-ssa.c (propagate_into_addr): Properly test for LHR.
*** tree-ssa.c 25 Aug 2004 21:21:18 -0000 2.29
--- tree-ssa.c 29 Aug 2004 21:33:06 -0000
*************** propagate_into_addr (tree stmt, tree var
*** 872,878 ****
addr_var = TREE_OPERAND (repl, 0);
! while (TREE_CODE (*x) == ARRAY_REF
! || TREE_CODE (*x) == COMPONENT_REF
! || TREE_CODE (*x) == BIT_FIELD_REF)
x = &TREE_OPERAND (*x, 0);
--- 872,878 ----
addr_var = TREE_OPERAND (repl, 0);
! while (handled_component_p (*x)
! || TREE_CODE (*x) == REALPART_EXPR
! || TREE_CODE (*x) == IMAGPART_EXPR)
x = &TREE_OPERAND (*x, 0);