diff options
author | razya <razya@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-01 15:25:28 +0000 |
---|---|---|
committer | razya <razya@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-08-01 15:25:28 +0000 |
commit | 68331616d9977e8c330c3617af8027fccee0c2dc (patch) | |
tree | 6acb3f37ec35c53297476b9e567d06a78d83ba2e /gcc/tree-inline.c | |
parent | a17a73c7b19529fee53dfceab6682f45adcffb7d (diff) | |
download | gcc-68331616d9977e8c330c3617af8027fccee0c2dc.tar.gz |
* tree-inline.c (copy_decl_for_dup): Add missing condition.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102632 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 9059b1a9a52..afec40df005 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -2689,7 +2689,8 @@ copy_decl_for_dup (tree decl, tree from_fn, tree to_fn, bool versioning) DECL_ABSTRACT_ORIGIN (copy) = DECL_ORIGIN (decl); /* The new variable/label has no RTL, yet. */ - if (!TREE_STATIC (copy) && !DECL_EXTERNAL (copy)) + if (CODE_CONTAINS_STRUCT (TREE_CODE (copy), TS_DECL_WRTL) + && !TREE_STATIC (copy) && !DECL_EXTERNAL (copy)) SET_DECL_RTL (copy, NULL_RTX); /* These args would always appear unused, if not for this. */ |