diff options
author | Kugan Vivekanandarajah <kuganv@linaro.org> | 2016-09-26 18:16:23 +0000 |
---|---|---|
committer | Kugan Vivekanandarajah <kugan@gcc.gnu.org> | 2016-09-26 18:16:23 +0000 |
commit | 8be59d19f27684eed54b611dcf68f590553d8386 (patch) | |
tree | 239d66ba0e9fad4ca04f30bc7739cc5780580f21 /gcc/tree-ssa-reassoc.c | |
parent | e73cf9a208d8ef5482f3f3ca7bc78bd38d633595 (diff) | |
download | gcc-8be59d19f27684eed54b611dcf68f590553d8386.zip gcc-8be59d19f27684eed54b611dcf68f590553d8386.tar.gz gcc-8be59d19f27684eed54b611dcf68f590553d8386.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r-- | gcc/tree-ssa-reassoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 8fc76e4..d94ff70 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -1158,7 +1158,7 @@ make_new_ssa_for_def (gimple *stmt) use_operand_p use; imm_use_iterator iter; tree new_lhs; - tree lhs = gimple_assign_lhs (stmt); + tree lhs = gimple_get_lhs (stmt); new_lhs = make_ssa_name (TREE_TYPE (lhs)); gimple_set_lhs (stmt, new_lhs); |