r202919 - in /branches/C11-atomic/gcc: ChangeLo...
amacleod@gcc.gnu.org
amacleod@gcc.gnu.org
Wed Sep 25 18:45:00 GMT 2013
Author: amacleod
Date: Wed Sep 25 18:45:24 2013
New Revision: 202919
URL: http://gcc.gnu.org/viewcvs?rev=202919&root=gcc&view=rev
Log:
c-family
* c-common.h (enum rid): Add RID_ATOMIC.
* c-common.c (struct c_common_resword c_common_r): Add "_Atomic".
(struct attribute_spec c_common_att): Add "atomic" attribute.
(handle_atomic_attribute): New. Add atomic qualifier to type.
(sync_resolve_params): Use MAIN_VARIANT as cast for the non-atomic
parameters.
(keyword_is_type_qualifier): Add RID_ATOMIC;
* c-format.c (check_format_types): Add atomic as a qualifer check.
* c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
c
* c-aux-info.c (gen_type): Handle atomic qualifier.
* c-typeck.c (convert_for_assignment): Allow atomic and no-atomic
assignemnts.
* c-tree.h (struct c_declspecs): Add atomic_p field.
* c-decl.c (shadow_tag_warned): Add atomic_p to declspecs check.
(quals_from_declspecs): Add atomic_p to declspecs check.
(grokdeclarator): Check atomic and warn of duplicate or errors.
(build_null_declspecs): Handle atomic_p.
(declspecs_add_qual): Handle RID_ATOMIC.
* c-parser.c (c_token_starts_typename): Add RID_ATOMIC.
(c_token_is_qualifier, c_token_starts_declspecs): Add RID_ATOMIC.
(c_parser_declspecs): Add RID_ATOMIC and warn for C99 and C90.
(c_parser_attribute_any_word): Add RID_ATOMIC.
objc
* objc-act.c (objc_push_parm): Adda tomic qualifier.
cp
* cp-tree.h (CP_TYPE_ATOMIC_P): New macro.
(enum cp_decl_spec): Add ds_atomic.
* cvt.c (diagnose_ref_binding): Handle atomic.
* decl.c (build_ptrmemfunc_type): Set TYPE_ATOMIC.
(grokdeclarator): handle atomic qualifier.
* mangle.c (dump_substitution_candidates): Add atomic to the qualifier
list.
* pt.c (check_cv_quals_for_unify): Add TYPE_QUAL_ATOMIC to check.
* rtti.c (qualifier_flags): Set atomic qualifier flag.
* parser.c (cp_parser_type_specifier): Handle RID_ATOMIC.
(cp_parser_cv_qualifier_seq_opt): Handle RID_ATOMIC.
(set_and_check_decl_spec_loc): Add atomic to decl_spec_names[].
* semantics.c (non_const_var_error): Check CP_TYPE_ATOMIC_P too.
* tree.c (cp_build_qualified_type_real): Add TYPE_QUAL_ATOMIC.
(cv_unqualified): Add TYPE_QUAL_ATOMIC to mask.
* typeck.c (cp_type_quals, cv_qualified_p): Add TYPE_QUAL_ATOMIC to
mask.
doc
* generic.texi (CP_TYPE_ATOMIC_P): Add documentation.
Modified:
branches/C11-atomic/gcc/ChangeLog
branches/C11-atomic/gcc/c-family/ChangeLog
branches/C11-atomic/gcc/c-family/c-common.c
branches/C11-atomic/gcc/c-family/c-common.h
branches/C11-atomic/gcc/c-family/c-format.c
branches/C11-atomic/gcc/c-family/c-pretty-print.c
branches/C11-atomic/gcc/c/ChangeLog
branches/C11-atomic/gcc/c/c-aux-info.c
branches/C11-atomic/gcc/c/c-decl.c
branches/C11-atomic/gcc/c/c-parser.c
branches/C11-atomic/gcc/c/c-tree.h
branches/C11-atomic/gcc/c/c-typeck.c
branches/C11-atomic/gcc/cp/ChangeLog
branches/C11-atomic/gcc/cp/cp-tree.h
branches/C11-atomic/gcc/cp/cvt.c
branches/C11-atomic/gcc/cp/decl.c
branches/C11-atomic/gcc/cp/mangle.c
branches/C11-atomic/gcc/cp/parser.c
branches/C11-atomic/gcc/cp/pt.c
branches/C11-atomic/gcc/cp/rtti.c
branches/C11-atomic/gcc/cp/semantics.c
branches/C11-atomic/gcc/cp/tree.c
branches/C11-atomic/gcc/cp/typeck.c
branches/C11-atomic/gcc/doc/generic.texi
branches/C11-atomic/gcc/objc/ChangeLog
branches/C11-atomic/gcc/objc/objc-act.c
More information about the Gcc-cvs
mailing list