]>
Commit | Line | Data |
---|---|---|
00e6d2d7 KCY |
1 | 2022-03-17 Kwok Cheung Yeung <kcy@codesourcery.com> |
2 | ||
3 | * semantics.cc (handle_omp_array_sections_1): Add check to ensure | |
4 | that clause is a map. | |
5 | ||
2e67f6f7 JJ |
6 | 2022-05-12 Jakub Jelinek <jakub@redhat.com> |
7 | ||
8 | Backport from mainline: | |
9 | 2022-05-12 Jakub Jelinek <jakub@redhat.com> | |
10 | ||
11 | * lex.cc (init_reswords): Register omp_all_memory as keyword | |
12 | if flag_openmp. | |
13 | * parser.cc (cp_parser_primary_expression): Diagnose uses of | |
14 | omp_all_memory in postfix expressions. | |
15 | (cp_parser_omp_var_list_no_open): Handle omp_all_memory in depend | |
16 | clause. | |
17 | * semantics.cc (finish_omp_clauses): Handle omp_all_memory | |
18 | keyword in depend clause as null_pointer_node, diagnose invalid | |
19 | uses. | |
20 | * pt.cc (tsubst_omp_clause_decl): Pass through omp_all_memory. | |
21 | ||
dbc770c4 CLT |
22 | 2022-06-17 Chung-Lin Tang <cltang@codesourcery.com> |
23 | ||
24 | Backport from mainline: | |
25 | 2022-06-17 Chung-Lin Tang <cltang@codesourcery.com> | |
26 | ||
27 | * parser.cc (cp_parser_omp_clause_name): Add case for uses_allocators | |
28 | clause. | |
29 | (cp_parser_omp_clause_uses_allocators): New function. | |
30 | (cp_parser_omp_all_clauses): Add PRAGMA_OMP_CLAUSE_USES_ALLOCATORS case. | |
31 | (OMP_TARGET_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_USES_ALLOCATORS to mask. | |
32 | * semantics.cc (finish_omp_clauses): Add case handling for | |
33 | OMP_CLAUSE_USES_ALLOCATORS. | |
34 | ||
7e14e1a8 AS |
35 | 2022-04-20 Andrew Stubbs <ams@codesourcery.com> |
36 | ||
37 | * parser.cc (cp_parser_omp_requires): Check requires unified_address | |
38 | for conflict with -foffload-memory=shared. | |
39 | ||
fa65fc45 AS |
40 | 2022-03-10 Andrew Stubbs <ams@codesourcery.com> |
41 | ||
42 | Backport of the patch posted at | |
43 | https://gcc.gnu.org/pipermail/gcc-patches/2022-March/591351.html | |
44 | ||
45 | * parser.cc (cp_parser_omp_requires): Check compatibility of | |
46 | -foffload-memory option with requires directive. | |
47 | ||
faf2c465 CLT |
48 | 2022-02-24 Chung-Lin Tang <cltang@codesourcery.com> |
49 | ||
50 | * semantics.cc (handle_omp_array_sections): Add handling for | |
51 | creating array-reference base-pointer attachment clause. | |
52 | ||
44810a49 KCY |
53 | 2022-02-18 Kwok Cheung Yeung <kcy@codesourcery.com> |
54 | ||
55 | * parser.cc (cp_parser_omp_construct): Move handling of | |
56 | PRAGMA_OMP_METADIRECTIVE from here... | |
57 | (cp_parser_pragma): ...to here. | |
58 | (analyze_metadirective_body): Check that the bracket | |
59 | nesting level is also zero before stopping the adding of tokens on | |
60 | encountering a close brace. | |
61 | (cp_parser_omp_metadirective): Modify function signature and update. | |
62 | Do not assert on remaining tokens if there has been a parse error. | |
63 | ||
da1da230 KCY |
64 | 2022-01-25 Kwok Cheung Yeung <kcy@codesourcery.com> |
65 | ||
66 | * parser.cc (omp_target_device_selectors): New. | |
67 | (cp_parser_omp_context_selector): Accept 'target_device' selector set. | |
68 | Treat 'device_num' selector as expression. | |
69 | (cp_parser_omp_context_selector_specification): Handle 'target_device' | |
70 | selector set. | |
71 | ||
67310930 KCY |
72 | 2022-01-25 Kwok Cheung Yeung <kcy@codesourcery.com> |
73 | ||
74 | * parser.cc (cp_parser_skip_to_end_of_statement): Revert. | |
75 | (cp_parser_skip_to_end_of_block_or_statement): Track bracket depth | |
76 | separately from nesting depth. | |
77 | ||
7c353f46 KCY |
78 | 2022-01-25 Kwok Cheung Yeung <kcy@codesourcery.com> |
79 | ||
80 | * parser.cc (cp_parser_skip_to_end_of_statement): Handle parentheses. | |
81 | (cp_parser_skip_to_end_of_block_or_statement): Likewise. | |
82 | (cp_parser_omp_context_selector): Add extra argument. Allow | |
83 | non-constant expressions. | |
84 | (cp_parser_omp_context_selector_specification): Add extra argument and | |
85 | propagate to cp_parser_omp_context_selector. | |
86 | (analyze_metadirective_body): New. | |
87 | (cp_parser_omp_metadirective): New. | |
88 | (cp_parser_omp_construct): Handle PRAGMA_OMP_METADIRECTIVE. | |
89 | (cp_parser_pragma): Handle PRAGMA_OMP_METADIRECTIVE. | |
90 | ||
e1cc4392 CLT |
91 | 2021-08-19 Chung-Lin Tang <cltang@codesourcery.com> |
92 | ||
93 | * semantics.cc (handle_omp_array_sections_1): Robustify non-contiguous | |
94 | array check and reject non-DECL base-pointer cases as unsupported. | |
95 | ||
1f4ee53c CLT |
96 | 2021-03-03 Chung-Lin Tang <cltang@codesourcery.com> |
97 | ||
98 | * decl2.cc (cp_omp_mappable_type_1): Allow fields with | |
99 | DECL_DECLARED_CONSTEXPR_P to be mapped. | |
100 | ||
6ab6303f CLT |
101 | 2021-02-02 Chung-Lin Tang <cltang@codesourcery.com> |
102 | ||
103 | * parser.cc (cp_parser_simple_declaration): Set | |
104 | OMP_REQUIRES_TARGET_USED in omp_requires_mask if function has | |
105 | "omp declare target" attribute. | |
106 | (cp_parser_omp_target_data): Set OMP_REQUIRES_TARGET_USED in | |
107 | omp_requires_mask. | |
108 | (cp_parser_omp_target_enter_data): Likewise. | |
109 | (cp_parser_omp_target_exit_data): Likewise. | |
110 | (cp_parser_omp_requires): Adjust to only mention "not implemented yet" | |
111 | for OMP_REQUIRES_DYNAMIC_ALLOCATORS. | |
112 | ||
4b1205e5 CLT |
113 | 2021-02-01 Chung-Lin Tang <cltang@codesourcery.com> |
114 | ||
115 | * semantics.cc (finish_omp_clauses): Adjust to allow duplicate | |
116 | mapped variables for OpenMP. | |
117 | ||
652fff3f SL |
118 | 2020-08-19 Sandra Loosemore <sandra@codesourcery.com> |
119 | ||
120 | Add a "combined" flag for "acc kernels loop" etc directives. | |
121 | ||
122 | * parser.cc (cp_parser_oacc_loop): Set OACC_LOOP_COMBINED. | |
123 | ||
49577050 SL |
124 | 2020-03-31 Sandra Loosemore <sandra@codesourcery.com> |
125 | ||
126 | * semantics.cc (handle_omp_array_sections_1): Call STRIP_NOPS | |
127 | on length and low_bound; | |
128 | (handle_omp_array_sections): Likewise. | |
129 | ||
f44580d8 SL |
130 | 2020-03-27 Sandra Loosemore <sandra@codesourcery.com> |
131 | ||
132 | * decl.cc (cp_unwrap_for_init): New. | |
133 | (finish_function): Call c_oacc_annotate_loops_in_kernels_regions. | |
134 | ||
3a5e5254 JB |
135 | 2022-02-03 Kwok Cheung Yeung <kcy@codesourcery.com> |
136 | ||
137 | * parser.ccc (cp_parser_omp_clause_map): Update call to | |
138 | cp_parser_omp_var_list_no_open. | |
139 | (cp_parser_omp_all_clauses): Update calls to cp_parser_omp_var_list. | |
140 | ||
141 | 2018-12-13 Cesar Philippidis <cesar@codesourcery.com> | |
142 | Nathan Sidwell <nathan@acm.org> | |
143 | Julian Brown <julian@codesourcery.com> | |
144 | ||
145 | * parser.c (cp_parser_omp_var_list_no_open): New c_omp_region_type | |
146 | argument. Use it to specialize handling of OMP_CLAUSE_REDUCTION for | |
147 | OpenACC. | |
148 | (cp_parser_omp_var_list): Add c_omp_region_type argument. Update call | |
149 | to cp_parser_omp_var_list_parens. | |
150 | (cp_parser_oacc_data_clause): Update call to cp_parser_omp_var_list. | |
151 | (cp_parser_omp_clause_reduction): Change is_omp boolean parameter to | |
152 | c_omp_region_type. Update call to cp_parser_omp_var_list_no_open. | |
153 | (cp_parser_oacc_all_clauses): Update call to | |
154 | cp_parser_omp_clause_reduction. | |
155 | (cp_parser_omp_all_clauses): Likewise. | |
156 | * semantics.c (finish_omp_reduction_clause): Add c_omp_region_type | |
157 | argument. Suppress user-defined reduction error for OpenACC. | |
158 | (finish_omp_clauses): Emit an error on orphan OpenACC gang reductions. | |
159 | ||
15d0f61a CLT |
160 | 2020-04-19 Chung-Lin Tang <cltang@codesourcery.com> |
161 | ||
162 | PR other/76739 | |
163 | ||
164 | * semantics.cc (handle_omp_array_sections_1): Add 'bool &non_contiguous' | |
165 | parameter, adjust recursive call site, add cases for allowing | |
166 | pointer based multi-dimensional arrays for OpenACC. | |
167 | (handle_omp_array_sections): Adjust handle_omp_array_sections_1 call, | |
168 | handle non-contiguous case to create dynamic array map. |