projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6e14e8
)
* tree-inline.c (copy_decl_for_dup): Add missing condition.
author
Razya Ladelsky
<razya@gcc.gnu.org>
Mon, 1 Aug 2005 15:25:28 +0000
(15:25 +0000)
committer
Razya Ladelsky
<razya@gcc.gnu.org>
Mon, 1 Aug 2005 15:25:28 +0000
(15:25 +0000)
From-SVN: r102632
gcc/tree-inline.c
patch
|
blob
|
history
diff --git
a/gcc/tree-inline.c
b/gcc/tree-inline.c
index 9059b1a9a52c8c2dd83bcd57f116691d2b88a8f9..afec40df00526e206250e950e79c1ca7586cbcf4 100644
(file)
--- 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. */