re PR middle-end/41006 (verify_stmts failed: error: non-trivial conversion at assignment)
authorRichard Guenther <rguenther@suse.de>
Mon, 10 Aug 2009 09:22:47 +0000 (09:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 10 Aug 2009 09:22:47 +0000 (09:22 +0000)
commit4f4e722eb62eaddb1313c09dfc0fa5d094d78148
tree0ad55d17f476854e6ffa83832fc420057243cc73
parent727e85447dbd3342ca487b7179dc8a06a853f681
re PR middle-end/41006 (verify_stmts failed: error: non-trivial conversion at assignment)

2009-08-10  Richard Guenther  <rguenther@suse.de>

PR middle-end/41006
* tree-ssa.c (useless_type_conversion_p_1): Fold into ...
(useless_type_conversion_p): ... here.  Require pointer targets
to be compatible.

* gcc.c-torture/compile/pr41006-1.c: New testcase.
* gcc.c-torture/compile/pr41006-2.c: Likewise.

From-SVN: r150621
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr41006-1.c [new file with mode: 0644]
gcc/testsuite/gcc.c-torture/compile/pr41006-2.c [new file with mode: 0644]
gcc/tree-ssa.c