Commit a8f8d1cc by Mark Mitchell Committed by Mark Mitchell

integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE when copying a…

integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE when copying a PARM_DECL or RESULT_DECL.

	* integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
	when copying a PARM_DECL or RESULT_DECL.

From-SVN: r32207
parent ad3ffa44
2000-02-26 Mark Mitchell <mark@codesourcery.com>
* integrate.c (copy_decl_for_inlining): Preserve TREE_ADDRESSABLE
when copying a PARM_DECL or RESULT_DECL.
2000-02-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* fix-header.c (recognized_function): Also fix prototypes for
......
......@@ -312,9 +312,12 @@ copy_decl_for_inlining (decl, from_fn, to_fn)
/* Copy the declaration. */
if (TREE_CODE (decl) == PARM_DECL || TREE_CODE (decl) == RESULT_DECL)
/* For a parameter, we must make an equivalent VAR_DECL, not a
new PARM_DECL. */
copy = build_decl (VAR_DECL, DECL_NAME (decl), TREE_TYPE (decl));
{
/* For a parameter, we must make an equivalent VAR_DECL, not a
new PARM_DECL. */
copy = build_decl (VAR_DECL, DECL_NAME (decl), TREE_TYPE (decl));
TREE_ADDRESSABLE (copy) = TREE_ADDRESSABLE (decl);
}
else
{
copy = copy_node (decl);
......
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