match.pd: Add patterns convering two conversions in a row from fold-const.c.
authorRichard Biener <rguenther@suse.de>
Sun, 9 Nov 2014 11:27:00 +0000 (11:27 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 9 Nov 2014 11:27:00 +0000 (11:27 +0000)
commit1e51d0a29dbfebe6c0df58739562644c1a50f3c3
tree7253af53d7de307a8f840ca8e90e5e0acc5fa293
parent8dcd07febcafc7fd8a62d86f88aca1f6724f8a24
match.pd: Add patterns convering two conversions in a row from fold-const.c.

2014-11-09  Richard Biener  <rguenther@suse.de>

* match.pd: Add patterns convering two conversions in a row
from fold-const.c.
* fold-const.c (fold_unary_loc): Remove them here.
* tree-ssa-forwprop.c (combine_conversions): Likewise.
* genmatch.c (dt_node::gen_kids): Check whether we may
follow SSA use-def chains.

* g++.dg/cpp0x/constexpr-reinterpret1.C: XFAIL.
* gcc.dg/tree-ssa/pr21031.c: XFAIL.

From-SVN: r217260
gcc/ChangeLog
gcc/fold-const.c
gcc/genmatch.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-reinterpret1.C
gcc/testsuite/gcc.dg/tree-ssa/pr21031.c
gcc/tree-ssa-forwprop.c