diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-23 05:14:02 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-23 05:14:02 +0000 |
commit | 81c8f37e8eec0730c871f87ef2f1cfb93591f56f (patch) | |
tree | a95c355c9b7d6dc672c09986b98412c015285a30 /gcc/cp/decl.c | |
parent | 5fa820661ddc35f0fb6785108dcf3fb38b6f753b (diff) | |
download | gcc-81c8f37e8eec0730c871f87ef2f1cfb93591f56f.tar.gz |
* varasm.c (default_section_type_flags): Check for VAR_DECL
before using DECL_THREAD_LOCAL.
* decl.c (obscure_complex_init): Check for VAR_DECL
before using DECL_THREAD_LOCAL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53761 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r-- | gcc/cp/decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index dbdc6f2efc2..dbaf68548c1 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7581,7 +7581,7 @@ static tree obscure_complex_init (decl, init) tree decl, init; { - if (DECL_THREAD_LOCAL (decl)) + if (TREE_CODE (decl) == VAR_DECL && DECL_THREAD_LOCAL (decl)) { error ("run-time initialization of thread-local storage"); return NULL_TREE; |