]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-ccp.c
re PR tree-optimization/33166 (ICE in get_indirect_ref_operands, at tree-ssa-operands...
authorRichard Guenther <rguenther@suse.de>
Fri, 24 Aug 2007 15:09:10 +0000 (15:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 24 Aug 2007 15:09:10 +0000 (15:09 +0000)
commitfa2050d2664411f84dfdfcdcea9c509144ba0b96
treee1badd70aec0549a564c0a232d88b4610c7d380a
parenta7d318ea7f7b816250f872bc0cb13b9cd8277cd9
re PR tree-optimization/33166 (ICE in get_indirect_ref_operands, at tree-ssa-operands.c:1698)

2007-08-24  Richard Guenther  <rguenther@suse.de>

PR middle-end/33166
* tree-ssa.c (useless_type_conversion_p): Split into a
recursive and a non-recursive part.
(useless_type_conversion_p_1): New function.
* tree-ssa-ccp.c (fold_stmt_r): Make sure that the result
from maybe_fold_offset_to_reference is trivially convertible
to the desired type before doing the simplification.

* gcc.c-torture/compile/pr33166.c: New testcase.

From-SVN: r127771
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr33166.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c
gcc/tree-ssa.c