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
This commit is contained in:
parent
ad3ffa443a
commit
a8f8d1cce5
2 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue