2009-08-26 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Aug 2009 13:23:04 +0000 (13:23 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Aug 2009 13:23:04 +0000 (13:23 +0000)
commita8cefe905b366aaa6b6af15a9f7124153ed18cf3
tree0a7c596dcfad5b0a80e1635e57a2911b24a32034
parent9871fdfed7943cc4cc8fd2a4f1158de12a7ee7cc
2009-08-26  Richard Guenther  <rguenther@suse.de>

PR middle-end/41163
* gimplify.c (gimplify_addr_expr): Canonicalize ADDR_EXPRs if
the types to not match.
* tree-cfg.c (verify_gimple_assign_single): Adjust ADDR_EXPR
verification.
* tree-ssa.c (useless_type_conversion_p): Conversions to
pointers to unprototyped functions are useless.

* gcc.c-torture/compile/pr41163.c: New testcase.
* gcc.dg/pr35899.c: Adjust.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151122 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr41163.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr35899.c
gcc/tree-cfg.c
gcc/tree-ssa.c