diff options
author | Richard Biener <rguenther@suse.de> | 2016-04-05 08:05:06 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2016-04-05 08:05:06 +0000 |
commit | 62b233f22449de60755b07c16f16b1a020c0708c (patch) | |
tree | 5465e36f6a83bb77f9fd19e1e28dd9eda86cc48e /gcc/gimplify-me.c | |
parent | cc05759d4c26822df221adb12ff6d8a4c28154a9 (diff) | |
download | gcc-62b233f22449de60755b07c16f16b1a020c0708c.tar.gz |
re PR middle-end/70499 (internal compiler error: in make_ssa_name_fn, at tree-ssanames.c:266)
2016-04-05 Richard Biener <rguenther@suse.de>
PR middle-end/70499
* gimplify-me.c (gimple_regimplify_operands): Do not rewrite
non-register type temporaries into SSA.
* g++.dg/torture/pr70499.C: New testcase.
From-SVN: r234738
Diffstat (limited to 'gcc/gimplify-me.c')
-rw-r--r-- | gcc/gimplify-me.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gimplify-me.c b/gcc/gimplify-me.c index c80a4ff459d..28e467b990e 100644 --- a/gcc/gimplify-me.c +++ b/gcc/gimplify-me.c @@ -299,7 +299,8 @@ gimple_regimplify_operands (gimple *stmt, gimple_stmt_iterator *gsi_p) if (need_temp) { tree temp = create_tmp_reg (TREE_TYPE (lhs)); - if (gimple_in_ssa_p (cfun)) + if (gimple_in_ssa_p (cfun) + && is_gimple_reg_type (TREE_TYPE (lhs))) temp = make_ssa_name (temp); gimple_set_lhs (stmt, temp); post_stmt = gimple_build_assign (lhs, temp); |