diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-22 19:01:03 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-22 19:01:03 +0000 |
commit | 84ce5272b1aebdfa6462f718aae006ad4c99a1ff (patch) | |
tree | ece1ab0e3a1a4989820f68049386494c0435fc3d /gcc/integrate.c | |
parent | 88ca4f908490be552e8df5864fb7bd8aa65e810a (diff) | |
download | gcc-84ce5272b1aebdfa6462f718aae006ad4c99a1ff.tar.gz |
* integrate.c (copy_decl_for_inlining): Remove invisible reference
handling.
* tree-inline.c (setup_one_parameter): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85057 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 30 |
1 files changed, 4 insertions, 26 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index bd96be80082..2fa5164bec5 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -116,36 +116,14 @@ copy_decl_for_inlining (tree decl, tree from_fn, tree to_fn) /* Copy the declaration. */ if (TREE_CODE (decl) == PARM_DECL || TREE_CODE (decl) == RESULT_DECL) { - tree type; - int invisiref = 0; - - /* See if the frontend wants to pass this by invisible reference. */ - if (TREE_CODE (decl) == PARM_DECL - && DECL_ARG_TYPE (decl) != TREE_TYPE (decl) - && POINTER_TYPE_P (DECL_ARG_TYPE (decl)) - && TREE_TYPE (DECL_ARG_TYPE (decl)) == TREE_TYPE (decl)) - { - invisiref = 1; - type = DECL_ARG_TYPE (decl); - } - else - type = TREE_TYPE (decl); + tree type = TREE_TYPE (decl); /* For a parameter or result, we must make an equivalent VAR_DECL, not a new PARM_DECL. */ copy = build_decl (VAR_DECL, DECL_NAME (decl), type); - if (!invisiref) - { - TREE_ADDRESSABLE (copy) = TREE_ADDRESSABLE (decl); - TREE_READONLY (copy) = TREE_READONLY (decl); - TREE_THIS_VOLATILE (copy) = TREE_THIS_VOLATILE (decl); - } - else - { - TREE_ADDRESSABLE (copy) = 0; - TREE_READONLY (copy) = 1; - TREE_THIS_VOLATILE (copy) = 0; - } + TREE_ADDRESSABLE (copy) = TREE_ADDRESSABLE (decl); + TREE_READONLY (copy) = TREE_READONLY (decl); + TREE_THIS_VOLATILE (copy) = TREE_THIS_VOLATILE (decl); } else { |