diff options
author | Jan Hubicka <jh@suse.cz> | 2010-06-28 17:51:25 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-06-28 15:51:25 +0000 |
commit | 4021f4a1715a176805628c1dbe284617ff3e4a5f (patch) | |
tree | 566ef297863c2c3d100bc051850712fb8da54486 /gcc/ipa-split.c | |
parent | 621f418948dd050f09735532c098e46eaa1dfd69 (diff) | |
download | gcc-4021f4a1715a176805628c1dbe284617ff3e4a5f.zip gcc-4021f4a1715a176805628c1dbe284617ff3e4a5f.tar.gz gcc-4021f4a1715a176805628c1dbe284617ff3e4a5f.tar.bz2 |
re PR tree-optimization/44687 (ICE: in tree_nrv, at tree-nrv.c:155 with -fprofile-generate)
PR tree-optimization/44687
* gcc.c-torture/compile/pr44687.c
PR tree-optimization/44687
* ipa-split.c (split_function): Use DECL_RESULT to store return value.
From-SVN: r161500
Diffstat (limited to 'gcc/ipa-split.c')
-rw-r--r-- | gcc/ipa-split.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c index ccc89c4..78895d0 100644 --- a/gcc/ipa-split.c +++ b/gcc/ipa-split.c @@ -928,9 +928,7 @@ split_function (struct split_point *split_point) gimple ret; if (!VOID_TYPE_P (TREE_TYPE (TREE_TYPE (current_function_decl)))) { - retval - = create_tmp_var (TREE_TYPE (TREE_TYPE (current_function_decl)), - "RET"); + retval = DECL_RESULT (current_function_decl); if (is_gimple_reg (retval)) retval = make_ssa_name (retval, call); gimple_call_set_lhs (call, retval); |