Commit 2443af37 by Richard Kenner Committed by Richard Kenner

integrate.c (expand_inline_function): Don't inline if would lose /u on a BLKmode TARGET.

	* integrate.c (expand_inline_function): Don't inline if would
	lose /u on a BLKmode TARGET.

From-SVN: r65594
parent 8cb5fbbf
2003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* integrate.c (expand_inline_function): Don't inline if would
lose /u on a BLKmode TARGET.
2003-04-14 Joel Brobecker <brobecker@gnat.com>
* dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
......
......@@ -736,6 +736,14 @@ expand_inline_function (fndecl, parms, target, ignore, type,
return (rtx) (size_t) -1;
}
/* If there is a TARGET which is a readonly BLKmode MEM and DECL_RESULT
is also a mem, we are going to lose the readonly on the stores, so don't
inline. */
if (target != 0 && GET_CODE (target) == MEM && GET_MODE (target) == BLKmode
&& RTX_UNCHANGING_P (target) && DECL_RTL_SET_P (DECL_RESULT (fndecl))
&& GET_CODE (DECL_RTL (DECL_RESULT (fndecl))) == MEM)
return (rtx) (size_t) -1;
/* Extra arguments are valid, but will be ignored below, so we must
evaluate them here for side-effects. */
for (; actual; actual = TREE_CHAIN (actual))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment