aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c/ChangeLog')
-rw-r--r--gcc/c/ChangeLog27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog
index f5c9a59..48eb23e 100644
--- a/gcc/c/ChangeLog
+++ b/gcc/c/ChangeLog
@@ -1,3 +1,30 @@
+2022-10-04 Jakub Jelinek <jakub@redhat.com>
+
+ * c-lang.h (struct c_omp_declare_target_attr): New type.
+ (current_omp_declare_target_attribute): Change type from
+ int to vec<c_omp_declare_target_attr, va_gc> *.
+ * c-parser.cc (c_parser_translation_unit): Adjust for that change.
+ If last pushed directive was begin declare target, use different
+ wording and simplify format strings for easier translations.
+ (c_parser_omp_clause_device_type): Uncomment
+ check_no_duplicate_clause call.
+ (c_parser_omp_declare_target): Adjust for the
+ current_omp_declare_target_attribute type change, push { -1 }.
+ Use error_at rather than warning_at for declare target with
+ only device_type clauses.
+ (OMP_BEGIN_DECLARE_TARGET_CLAUSE_MASK): Define.
+ (c_parser_omp_begin): Add begin declare target support.
+ (c_parser_omp_end): Adjust for the
+ current_omp_declare_target_attribute type change, adjust
+ diagnostics wording and simplify format strings for easier
+ translations.
+ * c-decl.cc (current_omp_declare_target_attribute): Change type from
+ int to vec<c_omp_declare_target_attr, va_gc> *.
+ (c_decl_attributes): Adjust for the
+ current_omp_declare_target_attribute type change. If device_type
+ was present on begin declare target, add "omp declare target host"
+ and/or "omp declare target nohost" attributes.
+
2022-09-29 Joseph Myers <joseph@codesourcery.com>
* c-decl.cc (handle_std_noreturn_attribute): New function.