diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-02-27 02:43:43 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-02-27 02:43:43 +0000 |
commit | a8f8d1cce570f2ef6efb3163e07b07a7c1d58ae0 (patch) | |
tree | 314e246c03d7f33160aaa5012b7260583104ca30 /gcc | |
parent | ad3ffa443aa9eae0e7ded2c44215337d6648b916 (diff) | |
download | gcc-a8f8d1cce570f2ef6efb3163e07b07a7c1d58ae0.zip gcc-a8f8d1cce570f2ef6efb3163e07b07a7c1d58ae0.tar.gz gcc-a8f8d1cce570f2ef6efb3163e07b07a7c1d58ae0.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/integrate.c | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1e14c3..35af536 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/integrate.c b/gcc/integrate.c index d38af99..cf2200e 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -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); |