summaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-07-23 19:59:41 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-07-23 19:59:41 +0000
commit95ee998ceb1d196000e2cb4e61b760d818119dee (patch)
tree3530f888190774b58b61b605cab7584a692609b7 /gcc/c-semantics.c
parent07964b9c09eb5bfe56851851d4e1696cb34e763d (diff)
downloadgcc-95ee998ceb1d196000e2cb4e61b760d818119dee.tar.gz
c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN to figure out whether or not a variable has already been...
* c-semantics.c (make_rtl_for_local_static): Use TREE_ASM_WRITTEN to figure out whether or not a variable has already been emitted. * decl.c (make_rtl_for_nonlocal_decl): Rework. * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set correctly. From-SVN: r35215
Diffstat (limited to 'gcc/c-semantics.c')
-rw-r--r--gcc/c-semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-semantics.c b/gcc/c-semantics.c
index fb669b33d4b..2e0d537f1ae 100644
--- a/gcc/c-semantics.c
+++ b/gcc/c-semantics.c
@@ -96,7 +96,7 @@ make_rtl_for_local_static (decl)
/* If we inlined this variable, we could see it's declaration
again. */
- if (DECL_RTL (decl))
+ if (TREE_ASM_WRITTEN (decl))
return;
if (DECL_ASSEMBLER_NAME (decl) != DECL_NAME (decl))