------- Comment #2 from rguenth at gcc dot gnu dot org 2008-05-01 11:16 ------- Subject: Bug 36093
Author: rguenth Date: Thu May 1 11:15:32 2008 New Revision: 134849 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134849 Log: 2008-05-01 Richard Guenther <[EMAIL PROTECTED]> PR middle-end/36093 Backport from mainline 2007-04-12 Richard Guenther <[EMAIL PROTECTED]> * gimplify.c (canonicalize_addr_expr): To be consistent with gimplify_compound_lval only set operands two and three of ARRAY_REFs if they are not gimple_min_invariant. This makes it never at this place. * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise. * gcc.c-torture/execute/pr36093.c: New testcase. Added: branches/gcc-4_2-branch/gcc/testsuite/gcc.c-torture/execute/pr36093.c Modified: branches/gcc-4_2-branch/gcc/ChangeLog branches/gcc-4_2-branch/gcc/gimplify.c branches/gcc-4_2-branch/gcc/testsuite/ChangeLog branches/gcc-4_2-branch/gcc/tree-ssa-ccp.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36093