Commit 04dfcc8f by Mark Mitchell Committed by Mark Mitchell

optimize.c (initialize_inlined_parameters): If the parameter is addressable...

	* optimize.c (initialize_inlined_parameters): If the parameter is
	addressable, we need to make a new VAR_DECL, even if the
	initializer is constant.

From-SVN: r33553
parent 6d2c2047
2000-04-30 Mark Mitchell <mark@codesourcery.com>
* optimize.c (initialize_inlined_parameters): If the parameter is
addressable, we need to make a new VAR_DECL, even if the
initializer is constant.
2000-04-28 Cosmin Truta <cosmint@cs.ubbcluj.ro>
* decl.c (grok_op_properties): Add an extra check of argtypes.
......
......@@ -392,7 +392,9 @@ initialize_inlined_parameters (id, args, fn)
/* If the parameter is never assigned to, we may not need to
create a new variable here at all. Instead, we may be able
to just use the argument value. */
if (TREE_READONLY (p) && !TREE_SIDE_EFFECTS (value))
if (TREE_READONLY (p)
&& !TREE_ADDRESSABLE (p)
&& !TREE_SIDE_EFFECTS (value))
{
/* Simplify the value, if possible. */
value = fold (decl_constant_value (value));
......
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