re PR tree-optimization/49809 (gimple_check failure at -O3)
authorRichard Sandiford <richard.sandiford@linaro.org>
Mon, 25 Jul 2011 14:51:47 +0000 (14:51 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 25 Jul 2011 14:51:47 +0000 (14:51 +0000)
commit59daeef4e14fbe21f3699e33713f29b5ed968562
treecdfa49c7a1ddb854392a47feba4fa5e4346f02fe
parenta024b70f1064beaa99d433f6e82e4cb4c9bf2945
re PR tree-optimization/49809 (gimple_check failure at -O3)

gcc/
PR tree-optimization/49809
* tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
gimple_get_lhs instead of gimple_assign_lhs.

gcc/testsuite/
PR tree-optimization/49809
* gnat.dg/opt18.adb, gnat.dg/opt18.ads, gnat.dg/opt18_pkg.ads: New
test.

From-SVN: r176750
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/opt18.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt18.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/opt18_pkg.ads [new file with mode: 0644]
gcc/tree-ssa-phiopt.c