summaryrefslogtreecommitdiff
path: root/gcc/c-semantics.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-23 19:59:41 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-23 19:59:41 +0000
commit5ef286c9b376e5fe3bd61d66d75efe191d839712 (patch)
tree3530f888190774b58b61b605cab7584a692609b7 /gcc/c-semantics.c
parent6555203e272ca7d04890bacfdf6893e45bb64080 (diff)
downloadgcc-5ef286c9b376e5fe3bd61d66d75efe191d839712.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 emitted. * decl.c (make_rtl_for_nonlocal_decl): Rework. * pt.c (lookup_template_class): Ensure that TYPE_CONTEXT is set correctly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35215 138bc75d-0d04-0410-961f-82ee72b054a4
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))