]> gcc.gnu.org Git - gcc.git/blame - gcc/c/ChangeLog.omp
openmp: Add support for firstprivate and allocate clauses on scope construct
[gcc.git] / gcc / c / ChangeLog.omp
CommitLineData
0ca11d9d
JJ
12022-07-05 Tobias Burnus <tobias@codesourcery.com>
2
3 Backport from mainline:
4 2022-05-31 Jakub Jelinek <jakub@redhat.com>
5
6 * c-parser.cc (OMP_SCOPE_CLAUSE_MASK): Add firstprivate and allocate
7 clauses.
8
4c2a8e5a
JJ
92022-07-05 Tobias Burnus <tobias@codesourcery.com>
10
11 Backport from mainline:
12 2022-05-28 Jakub Jelinek <jakub@redhat.com>
13
14 * c-parser.cc (c_parser_omp_declare_target): If OMP_CLAUSE_LINK was
15 seen first, use "%<to%>" or "%<enter%>" depending on
16 OMP_CLAUSE_ENTER_TO of the current clause, otherwise use
17 "%<to%> or %<enter%>" wording.
18
d23aea91
JJ
192022-07-05 Tobias Burnus <tobias@codesourcery.com>
20
21 Backport from mainline:
22 2022-05-27 Jakub Jelinek <jakub@redhat.com>
23
24 * c-parser.cc (c_parser_omp_clause_name): Parse enter clause.
25 (c_parser_omp_all_clauses): For to clause on declare target, use
26 OMP_CLAUSE_ENTER clause with OMP_CLAUSE_ENTER_TO instead of
27 OMP_CLAUSE_TO_DECLARE clause. Handle PRAGMA_OMP_CLAUSE_ENTER.
28 (OMP_DECLARE_TARGET_CLAUSE_MASK): Add enter clause.
29 (c_parser_omp_declare_target): Use OMP_CLAUSE_ENTER instead of
30 OMP_CLAUSE_TO_DECLARE.
31 * c-typeck.cc (c_finish_omp_clauses): Handle OMP_CLAUSE_ENTER instead
32 of OMP_CLAUSE_TO_DECLARE, to OMP_CLAUSE_ENTER_TO use "to" as clause
33 name in diagnostics instead of
34 omp_clause_code_name[OMP_CLAUSE_CODE (c)].
35
a25ddca5
JJ
362022-07-05 Tobias Burnus <tobias@codesourcery.com>
37
38 Backport from mainline:
39 2022-05-24 Jakub Jelinek <jakub@redhat.com>
40
41 PR c/105378
42 * c-parser.cc (OMP_TASKWAIT_CLAUSE_MASK): Add nowait clause.
43
3062a5dd
JJ
442022-07-04 Tobias Burnus <tobias@codesourcery.com>
45
46 Backport from mainline:
47 2022-05-17 Jakub Jelinek <jakub@redhat.com>
48
49 * c-parser.cc (c_parser_omp_clause_depend): Parse
50 inoutset depend-kind.
51 (c_parser_omp_depobj): Likewise.
52
ed03ae94
KCY
532022-06-30 Tobias Burnus <tobias@codesourcery.com>
54
55 * c-parser.cc (c_parser_omp_requires): Add missing %<...%> in error.
56
00e6d2d7
KCY
572022-03-17 Kwok Cheung Yeung <kcy@codesourcery.com>
58
59 * c-typeck.cc (handle_omp_array_sections_1): Add check to ensure
60 that clause is a map.
61
2e67f6f7
JJ
622022-05-12 Jakub Jelinek <jakub@redhat.com>
63
64 Backport from mainline:
65 2022-05-12 Jakub Jelinek <jakub@redhat.com>
66
67 * c-parser.cc (c_parse_init): Register omp_all_memory as keyword
68 if flag_openmp.
69 (c_parser_postfix_expression): Diagnose uses of omp_all_memory
70 in postfix expressions.
71 (c_parser_omp_variable_list): Handle omp_all_memory in depend
72 clause.
73 * c-typeck.cc (c_finish_omp_clauses): Handle omp_all_memory
74 keyword in depend clause as null_pointer_node, diagnose invalid
75 uses.
76
dbc770c4
CLT
772022-06-17 Chung-Lin Tang <cltang@codesourcery.com>
78
79 Backport from mainline:
80 2022-06-17 Chung-Lin Tang <cltang@codesourcery.com>
81
82 * c-parser.cc (c_parser_omp_clause_name): Add case for uses_allocators
83 clause.
84 (c_parser_omp_clause_uses_allocators): New function.
85 (c_parser_omp_all_clauses): Add PRAGMA_OMP_CLAUSE_USES_ALLOCATORS case.
86 (OMP_TARGET_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_USES_ALLOCATORS to mask.
87 * c-typeck.cc (c_finish_omp_clauses): Add case handling for
88 OMP_CLAUSE_USES_ALLOCATORS.
89
7e14e1a8
AS
902022-04-20 Andrew Stubbs <ams@codesourcery.com>
91
92 * c-parser.cc (c_parser_omp_requires): Check requires unified_address
93 for conflict with -foffload-memory=shared.
94
fa65fc45
AS
952022-03-10 Andrew Stubbs <ams@codesourcery.com>
96
97 Backport of the patch posted at
98 https://gcc.gnu.org/pipermail/gcc-patches/2022-March/591351.html
99
100 * c-parser.cc (c_parser_omp_requires): Check compatibility of
101 -foffload-memory option with requires directive.
102
faf2c465
CLT
1032022-02-24 Chung-Lin Tang <cltang@codesourcery.com>
104
105 * c-typeck.cc (handle_omp_array_sections): Add handling for
106 creating array-reference base-pointer attachment clause.
107
44810a49
KCY
1082022-02-18 Kwok Cheung Yeung <kcy@codesourcery.com>
109
110 * c-parser.cc (c_parser_omp_construct): Move handling of
111 PRAGMA_OMP_METADIRECTIVE from here...
112 (c_parser_pragma): ...to here.
113 (analyze_metadirective_body): Check that the bracket nesting level
114 is also zero before stopping the adding of tokens on encountering a
115 close brace.
116 (c_parser_omp_metadirective): Modify function signature and update.
117 Do not assert on remaining tokens if there has been a parse error.
118
da1da230
KCY
1192022-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
120
121 * c-parser.cc (omp_target_device_selectors): New.
122 (c_parser_omp_context_selector): Accept 'target_device' selector set.
123 Treat 'device_num' selector as expression.
124 (c_parser_omp_context_selector_specification): Handle 'target_device'
125 selector set.
126
67310930
KCY
1272022-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
128
129 * c-parser.cc (c_parser_skip_to_end_of_block_or_statement): Track
130 bracket depth separately from nesting depth.
131
1588a897
KCY
1322022-01-25 Kwok Cheung Yeung <kcy@codesourcery.com>
133
134 * c-parser.cc (c_parser_skip_to_end_of_block_or_statement): Handle
135 parentheses in statement.
136 (c_parser_omp_metadirective): New prototype.
137 (c_parser_omp_context_selector): Add extra argument. Allow
138 non-constant expressions.
139 (c_parser_omp_context_selector_specification): Add extra argument and
140 propagate it to c_parser_omp_context_selector.
141 (analyze_metadirective_body): New.
142 (c_parser_omp_metadirective): New.
143 (c_parser_omp_construct): Handle PRAGMA_OMP_METADIRECTIVE.
144
e1cc4392
CLT
1452021-08-19 Chung-Lin Tang <cltang@codesourcery.com>
146
147 * c-typeck.cc (handle_omp_array_sections_1): Robustify non-contiguous
148 array check and reject non-DECL base-pointer cases as unsupported.
149
6ab6303f
CLT
1502021-02-02 Chung-Lin Tang <cltang@codesourcery.com>
151
152 * c-parser.cc (c_parser_declaration_or_fndef): Set
153 OMP_REQUIRES_TARGET_USED in omp_requires_mask if function has
154 "omp declare target" attribute.
155 (c_parser_omp_target_data): Set OMP_REQUIRES_TARGET_USED in
156 omp_requires_mask.
157 (c_parser_omp_target_enter_data): Likewise.
158 (c_parser_omp_target_exit_data): Likewise.
159 (c_parser_omp_requires): Adjust to only mention "not implemented yet"
160 for OMP_REQUIRES_DYNAMIC_ALLOCATORS.
161
652fff3f
SL
1622020-08-19 Sandra Loosemore <sandra@codesourcery.com>
163
164 Add a "combined" flag for "acc kernels loop" etc directives.
165
166 * c-parser.cc (c_parser_oacc_loop): Set OACC_LOOP_COMBINED.
167
f44580d8
SL
1682020-03-27 Sandra Loosemore <sandra@codesourcery.com>
169
170 * c-decl.cc (c_unwrap_for_init): New.
171 (finish_function): Call c_oacc_annotate_loops_in_kernels_regions.
172
3a5e5254
JB
1732022-02-03 Kwok Cheung Yeung <kcy@codesourcery.com>
174
175 * c-parser.ccc (c_parser_omp_clause_map): Update call to
176 c_parser_omp_variable_list.
177 (c_parser_omp_clause_to): Update call to c_parser_omp_var_list_parens.
178 (c_parser_omp_clause_from): Likewise.
179
1802018-12-13 Cesar Philippidis <cesar@codesourcery.com>
181 Nathan Sidwell <nathan@acm.org>
182 Julian Brown <julian@codesourcery.com>
183
184 * c-parser.c (c_parser_omp_variable_list): New c_omp_region_type
185 argument. Use it to specialize handling of OMP_CLAUSE_REDUCTION for
186 OpenACC.
187 (c_parser_oacc_data_clause): Add region-type argument.
188 (c_parser_oacc_data_clause_deviceptr): Likewise.
189 (c_parser_omp_clause_reduction): Change is_omp boolean parameter to
190 c_omp_region_type. Update call to c_parser_omp_variable_list.
191 (c_parser_oacc_all_clauses): Update calls to
192 c_parser_omp_clause_reduction.
193 (c_parser_omp_all_clauses): Likewise.
194 (c_parser_oacc_cache): Update call to c_parser_omp_var_list_parens.
195 * c-typeck.c (c_finish_omp_clauses): Emit an error on orphan OpenACC
196 gang reductions. Suppress user-defined reduction error for OpenACC.
197
15d0f61a
CLT
1982020-04-19 Chung-Lin Tang <cltang@codesourcery.com>
199
200 PR other/76739
201
202 * c-typeck.cc (handle_omp_array_sections_1): Add 'bool &non_contiguous'
203 parameter, adjust recursive call site, add cases for allowing
204 pointer based multi-dimensional arrays for OpenACC.
205 (handle_omp_array_sections): Adjust handle_omp_array_sections_1 call,
206 handle non-contiguous case to create dynamic array map.
This page took 0.074688 seconds and 5 git commands to generate.