From 68a976f2c4ff78caabdfeddfe04ca5678f2e6551 Mon Sep 17 00:00:00 2001 From: Razya Ladelsky Date: Mon, 1 Aug 2005 15:25:28 +0000 Subject: [PATCH] * tree-inline.c (copy_decl_for_dup): Add missing condition. From-SVN: r102632 --- gcc/tree-inline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 9059b1a9..afec40d 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. */ -- 2.7.4