------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-04 20:25 ------- Adding a may_alias pass after fold all builtins makes this testcase works (I don't know if this is correct fix or not): Index: tree-optimize.c =============================================================== ==== RCS file: /cvs/gcc/gcc/gcc/tree-optimize.c,v retrieving revision 2.61 diff -u -p -r2.61 tree-optimize.c --- tree-optimize.c 2 Nov 2004 00:23:04 -0000 2.61 +++ tree-optimize.c 4 Nov 2004 20:23:32 -0000 @@ -371,6 +371,7 @@ init_tree_optimization_passes (void) NEXT_PASS (pass_ccp); NEXT_PASS (pass_redundant_phi); NEXT_PASS (pass_fold_builtins); + NEXT_PASS (pass_may_alias); NEXT_PASS (pass_split_crit_edges); NEXT_PASS (pass_pre); NEXT_PASS (pass_loop);
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18298