* Fix tramp3d -fprofile-generate compilation
@ 2010-07-10 0:13 Jan Hubicka
0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2010-07-10 0:13 UTC (permalink / raw)
To: gcc-patches
Hi,
while fixing DECL_BY_VALUE returning in inliner, I forgot to take care
of non-ssa inlining.
Bootstrapped/regtested x86_64-linux and comitted as obvious.
Index: ChangeLog
===================================================================
--- ChangeLog (revision 162023)
+++ ChangeLog (working copy)
@@ -1,3 +1,8 @@
+2010-07-09 Jan Hubicka <jh@suse.cz>
+
+ * tree-inline.c (declare_return_variable): Fix ICE while
+ inlining DECL_BY_VALUE function not in SSA form
+
2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
PR tree-optimization/44576
Index: tree-inline.c
===================================================================
--- tree-inline.c (revision 161965)
+++ tree-inline.c (working copy)
@@ -2903,7 +2903,10 @@ declare_return_variable (copy_body_data
add_referenced_var (temp);
}
insert_decl_map (id, result, temp);
- temp = remap_ssa_name (gimple_default_def (id->src_cfun, result), id);
+ /* When RESULT_DECL is in SSA form, we need to use it's default_def
+ SSA_NAME. */
+ if (gimple_in_ssa_p (id->src_cfun) && gimple_default_def (id->src_cfun, result))
+ temp = remap_ssa_name (gimple_default_def (id->src_cfun, result), id);
insert_init_stmt (id, entry_bb, gimple_build_assign (temp, var));
}
else
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-10 0:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-10 0:13 Fix tramp3d -fprofile-generate compilation Jan Hubicka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).