aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/decl.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2012-10-08 10:45:12 -0400
committerJason Merrill <jason@gcc.gnu.org>2012-10-08 10:45:12 -0400
commitb1db7f9139c8a0915f81359eefc10c6187d6145c (patch)
tree9d034ef53452ac43a609b044b8e683a39f49e1be /gcc/cp/decl.h
parent2991392b555fb18a312aef719f3ea379d7615fef (diff)
downloadgcc-b1db7f9139c8a0915f81359eefc10c6187d6145c.zip
gcc-b1db7f9139c8a0915f81359eefc10c6187d6145c.tar.gz
gcc-b1db7f9139c8a0915f81359eefc10c6187d6145c.tar.bz2
Partial implementation of C++11 thread_local.
c-family/ * c-common.c (c_common_reswords): Add thread_local. cp/ * decl.c (cp_finish_decl): Remove errors about non-trivial initialization and destruction of TLS variables. (register_dtor_fn): Add sorry about TLS variables. (expand_static_init): Add sorry about non-local TLS variables, or error with __thread. Don't emit thread-safety guards for local TLS variables. (grokdeclarator): thread_local in a function implies static. * decl.h: Adjust prototype. * decl2.c (get_guard): Copy DECL_TLS_MODEL. * parser.c (cp_parser_set_storage_class, cp_parser_set_decl_spec_type) (set_and_check_decl_spec_loc): Take the token rather than the location. Distinguish between __thread and thread_local. (cp_parser_set_storage_class): Don't complain about thread_local before extern/static. (token_is__thread): New. * call.c (make_temporary_var_for_ref_to_temp): Handle TLS. * cp-tree.h (DECL_GNU_TLS_P): New. (cp_decl_specifier_seq): Add gnu_thread_keyword_p. From-SVN: r192209
Diffstat (limited to 'gcc/cp/decl.h')
-rw-r--r--gcc/cp/decl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.h b/gcc/cp/decl.h
index a8a2b78..193df27 100644
--- a/gcc/cp/decl.h
+++ b/gcc/cp/decl.h
@@ -34,7 +34,7 @@ enum decl_context
/* We need this in here to get the decl_context definition. */
extern tree grokdeclarator (const cp_declarator *,
- const cp_decl_specifier_seq *,
+ cp_decl_specifier_seq *,
enum decl_context, int, tree*);
/* States indicating how grokdeclarator() should handle declspecs marked