re PR tree-optimization/43783 (-O -ftree-pre options compile libbid wrong)
authorRichard Guenther <rguenther@suse.de>
Mon, 19 Apr 2010 13:36:54 +0000 (13:36 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 19 Apr 2010 13:36:54 +0000 (13:36 +0000)
commitd53bed0b2cf5072df636ea3578c46d9d88e906e6
treeabc95b452bb0ec3c0f5823a4ec430430ab30b999
parent90f775a9c7afd62cbd338b973ec9711354440c6c
re PR tree-optimization/43783 (-O -ftree-pre options compile libbid wrong)

2010-04-19  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/43783
* tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
constant ARRAY_REF operands two and three if possible.

* gcc.c-torture/execute/pr43783.c: New testcase.

From-SVN: r158517
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr43783.c [new file with mode: 0644]
gcc/tree-ssa-pre.c