------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-21 16:10 ------- sra_hash_tree does not handle RANGE_EXPRs.
This implements them but it might not be the correct approach though: Index: tree-sra.c =============================================================== ==== RCS file: /cvs/gcc/gcc/gcc/tree-sra.c,v retrieving revision 2.47 diff -u -p -r2.47 tree-sra.c --- tree-sra.c 10 Dec 2004 21:54:42 -0000 2.47 +++ tree-sra.c 21 Dec 2004 16:09:09 -0000 @@ -378,6 +378,11 @@ sra_hash_tree (tree t) h = iterative_hash_expr (DECL_FIELD_OFFSET (t), 0); h = iterative_hash_expr (DECL_FIELD_BIT_OFFSET (t), h); break; + + case RANGE_EXPR: + h = sra_hash_tree (TREE_OPERAND (t, 0)); + h ^= sra_hash_tree (TREE_OPERAND (t, 1)); + break; default: gcc_unreachable (); -- What |Removed |Added ---------------------------------------------------------------------------- CC| |rth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19108