global trees
[gcc.git] / gcc / c-family / ChangeLog
index bfe0ccc990674813e412d6c644d9f9c169cc6afe..dc15a61ee06b1ef8db6509ef8e9564a8ce7e8578 100644 (file)
@@ -1,3 +1,142 @@
+2020-11-16  Iain Sandoe  <iain@sandoe.co.uk>
+
+       PR objc/97854
+       * stub-objc.c: Include c-common.h to declare enum rid.
+
+2020-11-13  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c++/63287
+       * c-cppbuiltin.c: Include configargs.h.
+       (c_cpp_builtins): For C++11 and later if THREAD_MODEL_SPEC is not
+       defined, predefine __STDCPP_THREADS__ to 1 unless thread_model is
+       "single".
+
+2020-11-13  Gergö Barany  <gergo@codesourcery.com>
+           Thomas Schwinge  <thomas@codesourcery.com>
+
+       * c.opt (fopenacc-kernels): Add.
+
+2020-11-13  Jason Merrill  <jason@redhat.com>
+
+       * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.
+
+2020-11-13  Piotr H. Dabrowski  <phd@phd.re>
+
+       PR c++/91318
+       * c-cppbuiltin.c: c_cpp_builtins_optimize_pragma(): use cpp_define_unused()
+
+2020-11-13  Martin Liska  <mliska@suse.cz>
+
+       * c-attribs.c (build_attr_access_from_parms): Format properly.
+
+2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
+
+       PR objc/90707
+       * c-common.c (c_common_reswords): null_unspecified, nullable,
+       nonnull, null_resettable: New keywords.
+       * c-common.h (enum rid): RID_NULL_UNSPECIFIED, RID_NULLABLE,
+       RID_NONNULL, RID_NULL_RESETTABLE: New.
+       (OBJC_IS_PATTR_KEYWORD): Include nullability keywords in the
+       ranges accepted for property attributes.
+       * c-attribs.c (handle_objc_nullability_attribute): New.
+       * c-objc.h (enum objc_property_attribute_group): Add
+       OBJC_PROPATTR_GROUP_NULLABLE.
+       (enum objc_property_attribute_kind):Add
+       OBJC_PROPERTY_ATTR_NULL_UNSPECIFIED, OBJC_PROPERTY_ATTR_NULLABLE,
+       OBJC_PROPERTY_ATTR_NONNULL, OBJC_PROPERTY_ATTR_NULL_RESETTABLE.
+
+2020-11-13  Iain Sandoe  <iain@sandoe.co.uk>
+
+       PR objc/77404
+       * c-attribs.c (handle_objc_root_class_attribute): New
+       * c-objc.h (objc_start_class_interface): Add a location
+       value for the position of the class name.
+       * c.opt: Add Wobjc-root-class.
+       * stub-objc.c (objc_start_class_interface): Add a location
+       value for the position of the class name.
+
+2020-11-12  Joseph Myers  <joseph@codesourcery.com>
+
+       * c-lex.c (c_common_has_attribute): Take argument std_syntax.
+       Allow scope for C.  Handle standard attributes for C.  Do not
+       accept unscoped attributes if std_syntax and not handled as
+       standard attributes.
+       * c-common.h (c_common_has_attribute): Update prototype.
+
+2020-11-12  Nicholas Guriev  <guriev-ns@ya.ru>
+
+       PR pch/86674
+       * c-pch.c (c_common_valid_pch): Use cpp_warning with CPP_W_INVALID_PCH
+       reason to fix -Werror=invalid-pch and -Wno-error=invalid-pch switches.
+
+2020-11-11  Patrick Palka  <ppalka@redhat.com>
+
+       PR c++/88115
+       * c-opts.c (c_common_post_options): Update latest_abi_version.
+
+2020-11-10  Jakub Jelinek  <jakub@redhat.com>
+
+       PR c/97748
+       * c-common.h (warn_if_unused_value): Add quiet argument defaulted
+       to false.
+       * c-warn.c (warn_if_unused_value): Likewise.  Pass it down
+       recursively and just return true instead of warning if it is true.
+       Handle COMPLEX_EXPR.
+
+2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
+
+       * c-common.h (c_omp_adjust_map_clauses): New declaration.
+       * c-omp.c (struct map_clause): Helper type for c_omp_adjust_map_clauses.
+       (c_omp_adjust_map_clauses): New function.
+
+2020-11-09  Marek Polacek  <polacek@redhat.com>
+
+       DR 1914
+       * c-common.c (attribute_fallthrough_p): Tweak the warning
+       message.
+
+2020-11-09  Patrick Palka  <ppalka@redhat.com>
+
+       * c-pragma.c (handle_pragma_diagnostic): Split the
+       unknown-option -Wpragmas diagnostic into a warning and a
+       subsequent note containing a spelling suggestion.  Avoid
+       computing the suggestion if -Wpragmas warnings are being
+       suppressed.
+
+2020-11-09  Patrick Palka  <ppalka@redhat.com>
+
+       PR testsuite/97117
+       * c-indentation.c (get_visual_column): Remove location_t
+       parameter.  Move the column-tracking diagnostic code from here
+       to ...
+       (should_warn_for_misleading_indentation): ... here, before the
+       early exit for when the loci are not all distinct.  Don't pass a
+       location_t argument to get_visual_column.
+       (assert_get_visual_column_succeeds): Don't pass a location_t
+       argument to get_visual_column.
+       (assert_get_visual_column_fails): Likewise.
+
+2020-11-08  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * c-common.h (OBJC_IS_PATTR_KEYWORD): Add class to the list
+       of keywords accepted in @property attribute contexts.
+       * c-objc.h (enum objc_property_attribute_group): Add
+       OBJC_PROPATTR_GROUP_CLASS.
+       (enum objc_property_attribute_kind): Add
+       OBJC_PROPERTY_ATTR_CLASS.
+
+2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * c-common.c (c_common_reswords): Add 'atomic' property
+       attribute.
+       * c-common.h (enum rid): Add RID_PROPATOMIC for atomic
+       property attributes.
+
+2020-11-07  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * c-attribs.c (handle_nsobject_attribute): New.
+       * c.opt: Add WNSObject-attribute.
+
 2020-11-06  Iain Sandoe  <iain@sandoe.co.uk>
 
        * c-objc.h (enum objc_property_attribute_group): New