[Bug ipa/63580] [5 Regression] ICE : error: invalid argument to gimple call
mliska at suse dot cz
gcc-bugzilla@gcc.gnu.org
Thu Oct 23 21:51:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63580
--- Comment #3 from Martin Liška <mliska at suse dot cz> ---
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63580
>
> Richard Biener <rguenth at gcc dot gnu.org> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |NEW
> Last reconfirmed| |2014-10-20
> Ever confirmed|0 |1
>
> --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
> You miss to mark p1 addressable in the alias decl (that is, copy
> TREE_ADDRESSABLE).
>
Do you mean following change:
@@ -2334,6 +2334,14 @@ cgraph_node::create_wrapper (cgraph_node *target)
cgraph_edge *e = create_edge (target, NULL, 0, CGRAPH_FREQ_BASE);
+ tree arguments = DECL_ARGUMENTS (decl);
+
+ while (arguments)
+ {
+ TREE_ADDRESSABLE (arguments) = false;
+ arguments = TREE_CHAIN (arguments);
+ }
+
expand_thunk (false, true);
e->call_stmt_cannot_inline_p = true;
Thanks,
Martin
More information about the Gcc-bugs
mailing list