re PR tree-optimization/77719 (ICE in pp_string, at pretty-print.c:955)
authorKugan Vivekanandarajah <kuganv@linaro.org>
Mon, 26 Sep 2016 18:16:23 +0000 (18:16 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Mon, 26 Sep 2016 18:16:23 +0000 (18:16 +0000)
commit8be59d19f27684eed54b611dcf68f590553d8386
tree239d66ba0e9fad4ca04f30bc7739cc5780580f21
parente73cf9a208d8ef5482f3f3ca7bc78bd38d633595
re PR tree-optimization/77719 (ICE in pp_string, at pretty-print.c:955)

Fix PR77719
gcc/testsuite/ChangeLog:

2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/77719
* gfortran.dg/pr77719.f90: New test.

gcc/ChangeLog:

2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>

PR middle-end/77719
* tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs to get lhs
instead of gimple_assign_lhs as stmt can be builtins too.

From-SVN: r240505
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr77719.f90 [new file with mode: 0644]
gcc/tree-ssa-reassoc.c