]>
Commit | Line | Data |
---|---|---|
62eb5308 GA |
1 | 2022-01-01 Jakub Jelinek <jakub@redhat.com> |
2 | ||
3 | PR objc/103639 | |
4 | * c-typeck.c (c_finish_bc_stmt): For break inside of switch inside of | |
5 | ObjC foreach, emit normal BREAK_STMT rather than goto to label. | |
6 | ||
2554e2da GA |
7 | 2021-12-17 Marek Polacek <polacek@redhat.com> |
8 | ||
9 | PR c/103649 | |
10 | * c-decl.c (c_warn_unused_attributes): Don't warn for | |
11 | attribute_ignored_p. | |
12 | * c-parser.c (c_parser_std_attribute): Skip parsing of the attribute | |
13 | arguments when the attribute is ignored. | |
14 | ||
9c6586bc GA |
15 | 2021-12-14 Jakub Jelinek <jakub@redhat.com> |
16 | ||
17 | PR c/103587 | |
18 | * c-parser.c (c_parser_balanced_token_sequence): For CPP_PRAGMA, | |
19 | consume the pragma and silently skip to the pragma eol. | |
20 | ||
c8dcf64b GA |
21 | 2021-12-12 Jonathan Wakely <jwakely@redhat.com> |
22 | ||
23 | * c-decl.c: Define INCLUDE_MEMORY instead of INCLUDE_UNIQUE_PTR. | |
24 | * c-parser.c: Likewise. | |
25 | ||
4b4839e3 GA |
26 | 2021-12-09 Jakub Jelinek <jakub@redhat.com> |
27 | ||
28 | PR pch/71934 | |
29 | * c-decl.c (resort_field_decl_cmp): Pass the same pointer twice | |
30 | to resort_data.new_value. | |
31 | ||
641ff219 GA |
32 | 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com> |
33 | ||
34 | * c-parser.c (struct omp_dim): New struct type for use inside | |
35 | c_parser_omp_variable_list. | |
36 | (c_parser_omp_variable_list): Allow multiple levels of array and | |
37 | component accesses in array section base-pointer expression. | |
38 | (c_parser_omp_clause_to): Set 'allow_deref' to true in call to | |
39 | c_parser_omp_var_list_parens. | |
40 | (c_parser_omp_clause_from): Likewise. | |
41 | * c-typeck.c (handle_omp_array_sections_1): Extend allowed range | |
42 | of base-pointer expressions involving INDIRECT/MEM/ARRAY_REF and | |
43 | POINTER_PLUS_EXPR. | |
44 | (c_finish_omp_clauses): Extend allowed ranged of expressions | |
45 | involving INDIRECT/MEM/ARRAY_REF and POINTER_PLUS_EXPR. | |
46 | ||
47 | 2021-12-08 Chung-Lin Tang <cltang@codesourcery.com> | |
48 | ||
49 | PR middle-end/92120 | |
50 | * c-parser.c (c_parser_omp_clause_map): Set 'allow_deref' argument in | |
51 | call to c_parser_omp_variable_list to 'true'. | |
52 | * c-typeck.c (handle_omp_array_sections_1): Add strip of MEM_REF in | |
53 | array base handling. | |
54 | (c_finish_omp_clauses): Handle 'A->member' case in map clauses. | |
55 | ||
c177e806 GA |
56 | 2021-11-30 Thomas Schwinge <thomas@codesourcery.com> |
57 | ||
58 | * c-typeck.c (c_finish_omp_clauses): Remove "gang reduction on an | |
59 | orphan loop" checking. | |
60 | ||
61 | 2021-11-30 Cesar Philippidis <cesar@codesourcery.com> | |
62 | Thomas Schwinge <thomas@codesourcery.com> | |
63 | ||
64 | * c-typeck.c (c_finish_omp_clauses): Emit an error on orphan | |
65 | OpenACC gang reductions. | |
66 | ||
67 | 2021-11-30 Richard Biener <rguenther@suse.de> | |
68 | ||
69 | * gimple-parser.c (c_parser_gimple_postfix_expression): | |
70 | avoid unreachable code after break. | |
71 | ||
87cd82c8 GA |
72 | 2021-11-29 Eric Gallager <egallager@gcc.gnu.org> |
73 | ||
74 | PR other/103021 | |
75 | * Make-lang.in: Use ETAGS variable in TAGS target. | |
76 | ||
77 | 2021-11-29 Richard Biener <rguenther@suse.de> | |
78 | ||
79 | * c-typeck.c (c_tree_equal): Remove unreachable return. | |
80 | * c-parser.c (get_matching_symbol): Likewise. | |
81 | ||
e1d43592 GA |
82 | 2021-11-23 Jakub Jelinek <jakub@redhat.com> |
83 | ||
84 | * c-typeck.c (c_clone_omp_udr): Don't initialize | |
85 | id.transform_lang_insert_block. | |
86 | ||
9c077398 GA |
87 | 2021-11-19 Martin Sebor <msebor@redhat.com> |
88 | ||
89 | PR c++/33925 | |
90 | PR c/102867 | |
91 | * c-typeck.c (maybe_warn_for_null_address): Suppress warnings for | |
92 | code resulting from macro expansion. | |
93 | ||
94 | 2021-11-19 Martin Liska <mliska@suse.cz> | |
95 | ||
96 | Revert: | |
97 | 2021-11-19 Martin Liska <mliska@suse.cz> | |
98 | ||
99 | * c-parser.c (add_debug_begin_stmt): Use option directly. | |
100 | ||
483092d3 GA |
101 | 2021-11-18 Matthias Kretz <m.kretz@gsi.de> |
102 | ||
103 | * c-decl.c (names_builtin_p): Handle RID_BUILTIN_ASSOC_BARRIER. | |
104 | * c-parser.c (c_parser_postfix_expression): Likewise. | |
105 | ||
106 | 2021-11-18 Martin Liska <mliska@suse.cz> | |
107 | ||
108 | * c-parser.c (add_debug_begin_stmt): Use option directly. | |
109 | ||
280d2838 GA |
110 | 2021-11-17 Martin Sebor <msebor@redhat.com> |
111 | ||
112 | PR c/101702 | |
113 | * c-decl.c (get_parm_array_spec): Strip casts earlier and fold array | |
114 | bounds before deciding if they're constant. | |
115 | ||
e2b57363 GA |
116 | 2021-11-15 Jakub Jelinek <jakub@redhat.com> |
117 | ||
118 | * c-parser.c (OMP_TARGET_CLAUSE_MASK): Add | |
119 | PRAGMA_OMP_CLAUSE_THREAD_LIMIT. | |
120 | ||
b39265d4 GA |
121 | 2021-11-11 Jakub Jelinek <jakub@redhat.com> |
122 | ||
123 | * c-parser.c (c_parser_omp_clause_num_teams): Parse optional | |
124 | lower-bound and store it into OMP_CLAUSE_NUM_TEAMS_LOWER_EXPR. | |
125 | Use OMP_CLAUSE_NUM_TEAMS_UPPER_EXPR instead of | |
126 | OMP_CLAUSE_NUM_TEAMS_EXPR. | |
127 | (c_parser_omp_target): For OMP_CLAUSE_NUM_TEAMS evaluate before | |
128 | combined target teams even lower-bound expression. | |
129 | ||
130 | 2021-11-11 Richard Biener <rguenther@suse.de> | |
131 | ||
132 | * gimple-parser.c: Shuffle bitmap.h include. | |
133 | ||
18ae471f GA |
134 | 2021-11-03 Joseph Myers <joseph@codesourcery.com> |
135 | ||
136 | PR c/103031 | |
137 | * c-convert.c (c_convert): New function, based on convert. | |
138 | (convert): Make into wrapper of c_convert. | |
139 | (convert_init): New function. | |
140 | * c-typeck.c (enum impl_conv): Add ic_init_const. | |
141 | (convert_for_assignment): Handle ic_init_const like ic_init. Add | |
142 | new argument to convert_and_check call. | |
143 | (digest_init): Pass ic_init_const to convert_for_assignment for | |
144 | initializers required to be constant. | |
145 | ||
b4df2dd3 GA |
146 | 2021-11-02 Richard Sandiford <richard.sandiford@arm.com> |
147 | ||
148 | * c-tree.h (c_simulate_record_decl): Declare. | |
149 | * c-objc-common.h (LANG_HOOKS_SIMULATE_RECORD_DECL): Override. | |
150 | * c-decl.c (c_simulate_record_decl): New function. | |
151 | ||
c2bd5d8a GA |
152 | 2021-10-22 Eric Gallager <egallager@gcc.gnu.org> |
153 | ||
154 | PR other/102663 | |
155 | * Make-lang.in: Add dummy c.install-dvi target. | |
156 | ||
93d183a5 GA |
157 | 2021-10-15 Richard Biener <rguenther@suse.de> |
158 | ||
159 | PR c/102763 | |
160 | * gimple-parser.c | |
161 | (c_parser_gimple_postfix_expression_after_primary): Check | |
162 | for a pointer do be dereferenced by ->. | |
163 | ||
5d5885c9 GA |
164 | 2021-10-14 Kwok Cheung Yeung <kcy@codesourcery.com> |
165 | ||
166 | * c-parser.c (c_finish_omp_declare_variant): Change call from | |
167 | c_omp_check_context_selector to omp_check_context_selector. Change | |
168 | call from c_omp_mark_declare_variant to omp_mark_declare_variant. | |
169 | ||
c9db17b8 GA |
170 | 2021-10-09 Jakub Jelinek <jakub@redhat.com> |
171 | ||
172 | * c-parser.c (c_parser_omp_structured_block_sequence): New function. | |
173 | (c_parser_omp_scan_loop_body): Use it. | |
174 | (c_parser_omp_sections_scope): Likewise. | |
175 | ||
50e20ee6 GA |
176 | 2021-10-07 Richard Biener <rguenther@suse.de> |
177 | ||
178 | * c-typeck.c (lvalue_p): Also allow MEM_REF and TARGET_MEM_REF. | |
179 | ||
bb6194e0 GA |
180 | 2021-10-05 Richard Biener <rguenther@suse.de> |
181 | ||
182 | PR c/102605 | |
183 | * gimple-parser.c (c_parser_gimple_postfix_expression): | |
184 | Accept more address _Literals. | |
185 | ||
da9c5f78 GA |
186 | 2021-10-04 Marek Polacek <polacek@redhat.com> |
187 | ||
188 | PR c++/97573 | |
189 | * c-typeck.c (parser_build_binary_op): Call do_warn_array_compare. | |
190 | ||
9d116bcc GA |
191 | 2021-10-01 Martin Sebor <msebor@redhat.com> |
192 | ||
193 | PR c/102103 | |
194 | * c-typeck.c (maybe_warn_for_null_address): New function. | |
195 | (build_binary_op): Call it. | |
196 | ||
197 | 2021-10-01 Jakub Jelinek <jakub@redhat.com> | |
198 | Richard Biener <rguenther@suse.de> | |
199 | ||
200 | PR sanitizer/102515 | |
201 | * c-typeck.c (build_binary_op): Call ubsan_instrument_division | |
202 | for division even for SANITIZE_SI_OVERFLOW. | |
203 | ||
204 | 2021-10-01 Jakub Jelinek <jakub@redhat.com> | |
205 | ||
206 | * c-parser.c (c_parser_omp_clause_order): Set | |
207 | OMP_CLAUSE_ORDER_REPRODUCIBLE for explicit reproducible: modifier. | |
208 | ||
fd133479 GA |
209 | 2021-09-28 Andrew Pinski <apinski@marvell.com> |
210 | ||
211 | PR c/32122 | |
212 | * c-parser.c (c_parser_statement_after_labels): Pass | |
213 | the c_expr instead of the tree to c_finish_goto_ptr. | |
214 | * c-typeck.c (c_finish_goto_ptr): Change the second | |
215 | argument type to c_expr. | |
216 | * c-tree.h (c_finish_goto_ptr): Likewise. | |
217 | Error out if the expression was not of a pointer type. | |
218 | ||
e4777439 GA |
219 | 2021-09-22 Jakub Jelinek <jakub@redhat.com> |
220 | ||
221 | * c-parser.c (c_parser_omp_clause_allocate): Parse allocate clause | |
222 | modifiers. | |
223 | ||
cf74e7b5 GA |
224 | 2021-09-18 Jakub Jelinek <jakub@redhat.com> |
225 | ||
226 | * c-parser.c (c_parser_omp_clause_order): Parse unconstrained | |
227 | and reproducible modifiers. | |
228 | (OMP_DISTRIBUTE_CLAUSE_MASK): Add order clause. | |
229 | ||
230 | 2021-09-18 Jakub Jelinek <jakub@redhat.com> | |
231 | ||
232 | * c-parser.c (c_parser_omp_clause_default): Handle private and | |
233 | firstprivate arguments, adjust diagnostics on unknown argument. | |
234 | ||
0a4cb439 GA |
235 | 2021-09-17 Jakub Jelinek <jakub@redhat.com> |
236 | ||
237 | * c-parser.c (c_parser_omp_atomic): Reject atomic swap if capture | |
238 | is true. | |
239 | ||
a26206ec GA |
240 | 2021-09-10 Jakub Jelinek <jakub@redhat.com> |
241 | ||
242 | * c-parser.c (c_parser_conditional_expression): If omp_atomic_lhs and | |
243 | cond.value is >, < or == with omp_atomic_lhs as one of the operands, | |
244 | don't call build_conditional_expr, instead build a COND_EXPR directly. | |
245 | (c_parser_binary_expression): Avoid calling parser_build_binary_op | |
246 | if omp_atomic_lhs even in more cases for >, < or ==. | |
247 | (c_parser_omp_atomic): Update function comment for OpenMP 5.1 atomics, | |
248 | parse OpenMP 5.1 atomics and fail, compare and weak clauses, allow | |
249 | acq_rel on atomic read/write and acq_rel/acquire clauses on update. | |
250 | * c-typeck.c (build_binary_op): For flag_openmp only handle | |
251 | MIN_EXPR/MAX_EXPR. | |
252 | ||
b2748138 GA |
253 | 2021-09-07 Marcel Vollweiler <marcel@codesourcery.com> |
254 | ||
255 | * c-parser.c (c_parser_omp_flush): Parse 'seq_cst' clause on 'flush' | |
256 | directive. | |
257 | ||
e11c6046 GA |
258 | 2021-09-01 Iain Sandoe <iain@sandoe.co.uk> |
259 | ||
260 | * c-decl.c (enum deprecated_states): Add unavailable state. | |
261 | (merge_decls): Copy unavailability. | |
262 | (quals_from_declspecs): Handle unavailable case. | |
263 | (start_decl): Amend the logic handling suppression of nested | |
264 | deprecation states to include unavailability. | |
265 | (smallest_type_quals_location): Amend comment. | |
266 | (grokdeclarator): Handle the unavailable deprecation state. | |
267 | (declspecs_add_type): Set TREE_UNAVAILABLE from the decl specs. | |
268 | * c-tree.h (struct c_declspecs): Add unavailable_p. | |
269 | * c-typeck.c (build_component_ref): Handle unavailability. | |
270 | (build_external_ref): Likewise. | |
271 | ||
272 | 2021-09-01 Roger Sayle <roger@nextmovesoftware.com> | |
273 | Joseph Myers <joseph@codesourcery.com> | |
274 | ||
275 | PR c/79412 | |
276 | * c-decl.c (duplicate_decls): On significant mismatches, mark the | |
277 | types of both (non-function) decls as error_mark_node, so that the | |
278 | middle-end can see the code is malformed. | |
279 | (free_attr_access_data): Don't process if the type has been set to | |
280 | error_mark_node. | |
281 | ||
6d51ee43 GA |
282 | 2021-08-31 Marcel Vollweiler <marcel@codesourcery.com> |
283 | ||
284 | * c-parser.c (c_parser_omp_clause_device): Parse device-modifiers 'device_num' | |
285 | and 'ancestor' in 'target device' clauses. | |
286 | ||
38b19c5b GA |
287 | 2021-08-23 Jakub Jelinek <jakub@redhat.com> |
288 | ||
289 | * c-parser.c (c_parser_omp_clause_num_tasks, | |
290 | c_parser_omp_clause_grainsize): Parse the optional strict: modifier. | |
291 | ||
5b2876f9 GA |
292 | 2021-08-22 Martin Uecker <muecker@gwdg.de> |
293 | ||
294 | PR c/98397 | |
295 | * c-typeck.c (comp_target_types): Change pedwarn to pedwarn_c11 | |
296 | for pointers to arrays with qualifiers. | |
297 | (build_conditional_expr): For C23 don't lose qualifiers for pointers | |
298 | to arrays when the other pointer is a void pointer. Update warnings. | |
299 | (convert_for_assignment): Update warnings for C2X when converting from | |
300 | void* with qualifiers to a pointer to array with the same qualifiers. | |
301 | ||
7c9e1645 GA |
302 | 2021-08-20 Jakub Jelinek <jakub@redhat.com> |
303 | ||
304 | * c-parser.c (c_parser_omp_error): New function. | |
305 | (c_parser_pragma): Handle PRAGMA_OMP_ERROR. | |
306 | ||
307 | 2021-08-20 Jakub Jelinek <jakub@redhat.com> | |
308 | ||
309 | * c-parser.c (c_parser_omp_clause_depend_sink): Reject spurious | |
310 | comma at the end of list. | |
311 | (c_parser_omp_requires): Likewise. | |
312 | ||
b57fba5e GA |
313 | 2021-08-19 Jakub Jelinek <jakub@redhat.com> |
314 | ||
315 | * c-parser.c (c_parser_omp_requires): Don't call | |
316 | c_parser_peek_2nd_token and optionally consume token if current | |
317 | token is CPP_EOF, CPP_PRAGMA_EOL or CPP_CLOSE_PAREN. | |
318 | ||
6e529985 GA |
319 | 2021-08-18 Jakub Jelinek <jakub@redhat.com> |
320 | ||
321 | * c-parser.c (c_parser_omp_nothing): New function. | |
322 | (c_parser_pragma): Handle PRAGMA_OMP_NOTHING. | |
323 | ||
324 | 2021-08-18 Jakub Jelinek <jakub@redhat.com> | |
325 | ||
326 | * c-parser.c (c_parser_statement_after_labels): Add restart label | |
327 | near the start of the function. If c_parser_pragma returns false, | |
328 | goto restart. | |
329 | (c_parser_pragma): For PRAGMA_OMP_CANCELLATION_POINT return what | |
330 | c_parser_omp_cancellation_point returned. For PRAGMA_OMP_DECLARE | |
331 | return what c_parser_omp_declare returned. Return true instead of | |
332 | false after emitting errors that the directive is not allowed in | |
333 | pragma_stmt context. | |
334 | (c_parser_omp_ordered): Return true instead of | |
335 | false after emitting errors that the directive is not allowed in | |
336 | pragma_stmt context. | |
337 | (c_parser_omp_target_update): Likewise. | |
338 | (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): | |
339 | Change return type from tree to bool, return false if the | |
340 | directive should be ignored in pragma_stmt contexts. | |
341 | (c_parser_omp_target): Adjust callers of c_parser_omp_target_*_data, | |
342 | return their result directly. | |
343 | (c_parser_omp_cancellation_point): Change return type from void to | |
344 | bool, return false if the directive should be ignored in pragma_stmt | |
345 | contexts. | |
346 | (c_parser_omp_declare): Likewise. | |
347 | ||
2d14d64b GA |
348 | 2021-08-17 Jakub Jelinek <jakub@redhat.com> |
349 | ||
350 | * c-parser.c (OMP_SCOPE_CLAUSE_MASK): Define. | |
351 | (c_parser_omp_scope): New function. | |
352 | (c_parser_omp_construct): Handle PRAGMA_OMP_SCOPE. | |
353 | ||
72be20e2 GA |
354 | 2021-08-12 Jakub Jelinek <jakub@redhat.com> |
355 | ||
356 | * c-parser.c (c_parser_omp_clause_name): Parse filter clause name. | |
357 | (c_parser_omp_clause_filter): New function. | |
358 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FILTER. | |
359 | (OMP_MASKED_CLAUSE_MASK): Define. | |
360 | (c_parser_omp_masked): New function. | |
361 | (c_parser_omp_parallel): Handle parallel masked. | |
362 | (c_parser_omp_construct): Handle PRAGMA_OMP_MASKED. | |
363 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_FILTER. | |
364 | ||
365 | 2021-08-12 Martin Uecker <muecker@gwdg.de> | |
366 | ||
367 | PR c/101838 | |
368 | PR c/29970 | |
369 | * c-typeck.c (c_expr_sizeof_type): Evaluate | |
370 | size expressions for structs of variable size. | |
371 | ||
372 | 2021-08-12 Tobias Burnus <tobias@codesourcery.com> | |
373 | ||
374 | * c-parser.c (c_parser_omp_clause_proc_bind): Accept | |
375 | 'primary' as alias for 'master'. | |
376 | ||
3ae564ea GA |
377 | 2021-08-10 Martin Uecker <muecker@gwdg.de> |
378 | ||
379 | PR c/29970 | |
380 | * c-typeck.c (c_expr_sizeof_expr): Evaluate | |
381 | size expressions for structs of variable size. | |
382 | ||
f92f4778 GA |
383 | 2021-08-06 Tamar Christina <tamar.christina@arm.com> |
384 | ||
385 | * c-decl.c (c_simulate_enum_decl): Pass vec<> by pointer. | |
386 | * c-tree.h (c_simulate_enum_decl): Likewise. | |
387 | ||
388 | 2021-08-06 Martin Sebor <msebor@redhat.com> | |
389 | ||
390 | * c-parser.c (c_parser_declaration_or_fndef): Adjust by-value function | |
391 | vec arguments to by-reference. | |
392 | (c_finish_omp_declare_simd): Same. | |
393 | (c_parser_compound_statement_nostart): Same. | |
394 | (c_parser_for_statement): Same. | |
395 | (c_parser_objc_methodprotolist): Same. | |
396 | (c_parser_oacc_routine): Same. | |
397 | (c_parser_omp_for_loop): Same. | |
398 | (c_parser_omp_declare_simd): Same. | |
399 | ||
419c6c68 GA |
400 | 2021-07-21 Thomas Schwinge <thomas@codesourcery.com> |
401 | Joseph Myers <joseph@codesourcery.com> | |
402 | Cesar Philippidis <cesar@codesourcery.com> | |
403 | ||
404 | * c-parser.c (c_parser_omp_clause_name): Handle 'nohost'. | |
405 | (c_parser_oacc_all_clauses): Handle 'PRAGMA_OACC_CLAUSE_NOHOST'. | |
406 | (OACC_ROUTINE_CLAUSE_MASK): Add 'PRAGMA_OACC_CLAUSE_NOHOST'. | |
407 | * c-typeck.c (c_finish_omp_clauses): Handle 'OMP_CLAUSE_NOHOST'. | |
408 | ||
92d45509 GA |
409 | 2021-07-20 Martin Sebor <msebor@redhat.com> |
410 | ||
411 | * c-tree.h (c_build_function_call_vec): Adjust by-value argument to | |
412 | by-const-reference. | |
413 | * c-typeck.c (c_build_function_call_vec): Same. | |
414 | ||
d97d71a1 GA |
415 | 2021-07-15 Martin Sebor <msebor@redhat.com> |
416 | ||
417 | PR c/101289 | |
418 | PR c/97548 | |
419 | * c-decl.c (get_parm_array_spec): Strip nops. | |
420 | ||
6fba0eea GA |
421 | 2021-07-06 Martin Sebor <msebor@redhat.com> |
422 | ||
423 | * c-objc-common.c (c_tree_printer): Remove support for %G and %K. | |
424 | ||
7a60a6e8 GA |
425 | 2021-07-02 Jakub Jelinek <jakub@redhat.com> |
426 | ||
427 | PR c/101297 | |
428 | * c-parser.c (c_parser_omp_atomic): Consume comma only if it | |
429 | appears before a CPP_NAME. | |
430 | ||
90708f87 GA |
431 | 2021-06-25 Martin Sebor <msebor@redhat.com> |
432 | ||
433 | * c-decl.c (pop_scope): Replace direct uses of TREE_NO_WARNING with | |
434 | warning_suppressed_p, suppress_warning, and copy_no_warning. | |
435 | (diagnose_mismatched_decls): Same. | |
436 | (duplicate_decls): Same. | |
437 | (grokdeclarator): Same. | |
438 | (finish_function): Same. | |
439 | (c_write_global_declarations_1): Same. | |
440 | * c-fold.c (c_fully_fold_internal): Same. | |
441 | * c-parser.c (c_parser_expr_no_commas): Same. | |
442 | (c_parser_postfix_expression): Same. | |
443 | * c-typeck.c (array_to_pointer_conversion): Same. | |
444 | (function_to_pointer_conversion): Same. | |
445 | (default_function_array_conversion): Same. | |
446 | (convert_lvalue_to_rvalue): Same. | |
447 | (default_conversion): Same. | |
448 | (build_indirect_ref): Same. | |
449 | (build_function_call_vec): Same. | |
450 | (build_atomic_assign): Same. | |
451 | (build_unary_op): Same. | |
452 | (c_finish_return): Same. | |
453 | (emit_side_effect_warnings): Same. | |
454 | (c_finish_stmt_expr): Same. | |
455 | (c_omp_clause_copy_ctor): Same. | |
456 | ||
9aa8327e GA |
457 | 2021-06-24 Jakub Jelinek <jakub@redhat.com> |
458 | ||
459 | PR c/101176 | |
460 | * c-parser.c (c_parser_has_attribute_expression): Set source range for | |
461 | the result. | |
462 | ||
463 | 2021-06-24 Jakub Jelinek <jakub@redhat.com> | |
464 | ||
465 | PR c/101171 | |
466 | * c-typeck.c (build_c_cast): Don't call note_integer_operands on | |
467 | error_mark_node. | |
468 | ||
469 | 2021-06-24 Jakub Jelinek <jakub@redhat.com> | |
470 | ||
471 | * c-parser.c (omp_split_clauses): Pass C_ORT_OMP_TARGET instead of | |
472 | C_ORT_OMP for clauses on target construct. | |
473 | (OMP_TARGET_CLAUSE_MASK): Add in_reduction clause. | |
474 | (c_parser_omp_target): For non-combined target add | |
475 | map (always, tofrom:) clauses for OMP_CLAUSE_IN_REDUCTION. Pass | |
476 | C_ORT_OMP_TARGET to c_finish_omp_clauses. | |
477 | * c-typeck.c (handle_omp_array_sections): Adjust ort handling | |
478 | for addition of C_ORT_OMP_TARGET and simplify, mapping clauses are | |
479 | never present on C_ORT_*DECLARE_SIMD. | |
480 | (c_finish_omp_clauses): Likewise. Handle OMP_CLAUSE_IN_REDUCTION | |
481 | on C_ORT_OMP_TARGET, set OMP_CLAUSE_MAP_IN_REDUCTION on | |
482 | corresponding map clauses. | |
483 | ||
2f080224 GA |
484 | 2021-06-21 Jakub Jelinek <jakub@redhat.com> |
485 | ||
486 | PR inline-asm/100785 | |
487 | * c-typeck.c (c_mark_addressable): Diagnose trying to make | |
488 | bit-fields addressable. | |
489 | ||
ede6c356 GA |
490 | 2021-06-15 Robin Dapp <rdapp@linux.ibm.com> |
491 | ||
492 | * c-decl.c (merge_decls): Copy DECL_USER_ALIGN if DECL_ALIGN is | |
493 | similar. | |
494 | ||
8dc48181 GA |
495 | 2021-06-14 Tobias Burnus <tobias@codesourcery.com> |
496 | ||
497 | PR c/100913 | |
498 | * c-parser.c (c_parser_omp_clause_affinity): No need to set iterator | |
499 | var in the error case. | |
500 | ||
438aac59 GA |
501 | 2021-06-07 Eric Botcazou <ebotcazou@adacore.com> |
502 | ||
503 | PR c/100920 | |
504 | * c-typeck.c (convert_for_assignment): Test fndecl_built_in_p to | |
505 | spot built-in functions. | |
506 | ||
7d6987e9 GA |
507 | 2021-06-06 Jakub Jelinek <jakub@redhat.com> |
508 | ||
509 | PR c/100902 | |
510 | * c-parser.c (c_parser_omp_target): Call c_omp_adjust_map_clauses | |
511 | even when target is combined with other constructs. | |
512 | ||
513 | 2021-06-06 Eric Botcazou <ebotcazou@adacore.com> | |
514 | ||
515 | PR c/100920 | |
516 | * c-decl.c (finish_struct): Fix thinko in previous change. | |
517 | * c-typeck.c (convert_for_assignment): Do not warn on pointer | |
518 | assignment and initialization for storage order purposes if the | |
519 | RHS is a call to a DECL_IS_MALLOC function. | |
520 | ||
600f90cb GA |
521 | 2021-06-04 Martin Sebor <msebor@redhat.com> |
522 | ||
523 | PR c/100783 | |
524 | * c-objc-common.c (print_type): Handle erroneous types. | |
525 | ||
440c8a0a GA |
526 | 2021-06-03 Jakub Jelinek <jakub@redhat.com> |
527 | ||
528 | PR c++/100859 | |
529 | * c-typeck.c (c_finish_omp_clauses): Move OMP_CLAUSE_AFFINITY | |
530 | after depend only cases. | |
531 | ||
ee682192 GA |
532 | 2021-05-31 Richard Biener <rguenther@suse.de> |
533 | ||
534 | PR c++/88601 | |
535 | * c-decl.c (names_builtin_p): Handle RID_BUILTIN_SHUFFLEVECTOR. | |
536 | * c-parser.c (c_parser_postfix_expression): Likewise. | |
537 | ||
48166757 GA |
538 | 2021-05-28 Richard Biener <rguenther@suse.de> |
539 | ||
540 | PR c/100803 | |
541 | * gimple-parser.c (c_parser_gimple_paren_condition): Diagnose | |
542 | invalid if conditions. | |
543 | ||
544 | 2021-05-28 Jakub Jelinek <jakub@redhat.com> | |
545 | ||
546 | PR middle-end/99928 | |
547 | * c-typeck.c (handle_omp_array_sections): Copy OMP_CLAUSE_MAP_IMPLICIT. | |
548 | (c_finish_omp_clauses): Move not just OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT | |
549 | marked clauses last, but also OMP_CLAUSE_MAP_IMPLICIT. Add | |
550 | map_firstprivate_head bitmap, set it for GOMP_MAP_FIRSTPRIVATE_POINTER | |
551 | maps and silently remove OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT if it is | |
552 | present too. For OMP_CLAUSE_MAP_IMPLICIT silently remove the clause | |
553 | if present in map_head, map_field_head or map_firstprivate_head | |
554 | bitmaps. | |
555 | ||
556 | 2021-05-28 Tobias Burnus <tobias@codesourcery.com> | |
557 | ||
558 | * c-parser.c (c_parser_omp_clause_affinity): New. | |
559 | (c_parser_omp_clause_name, c_parser_omp_variable_list, | |
560 | c_parser_omp_all_clauses, OMP_TASK_CLAUSE_MASK): Handle affinity clause. | |
561 | * c-typeck.c (handle_omp_array_sections_1, handle_omp_array_sections, | |
562 | c_finish_omp_clauses): Likewise. | |
563 | ||
01c59ef2 GA |
564 | 2021-05-26 Eric Botcazou <ebotcazou@adacore.com> |
565 | ||
566 | PR c/100653 | |
567 | * c-decl.c (finish_struct): Warn for a union containing an aggregate | |
568 | field with a differing scalar storage order. | |
569 | ||
2832d51b GA |
570 | 2021-05-21 Jakub Jelinek <jakub@redhat.com> |
571 | ||
572 | PR middle-end/99928 | |
573 | * c-typeck.c (c_finish_omp_clauses): Move firstprivate clauses with | |
574 | OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT to the end of the chain. Don't error | |
575 | if a decl is mentioned both in map clause and in such firstprivate | |
576 | clause unless OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT_TARGET is also set. | |
577 | ||
65f32e5d GA |
578 | 2021-05-19 Jakub Jelinek <jakub@redhat.com> |
579 | ||
580 | PR middle-end/99928 | |
581 | * c-parser.c (c_parser_omp_master): Set OMP_MASTER_COMBINED on | |
582 | master when combined with taskloop. | |
583 | (c_parser_omp_parallel): Don't set OMP_PARALLEL_COMBINED on | |
584 | parallel master when not combined with taskloop. | |
585 | ||
a8daf9a1 GA |
586 | 2021-05-18 Richard Biener <rguenther@suse.de> |
587 | ||
588 | PR c/100522 | |
589 | * gimple-parser.c (c_parser_gimple_postfix_expression_after_primary): | |
590 | Diagnose calls to non-functions. | |
591 | (c_parser_gimple_statement): Diagnose unexpected assignment RHS. | |
592 | ||
a7ffc1ef GA |
593 | 2021-05-17 Richard Biener <rguenther@suse.de> |
594 | ||
595 | PR c/100625 | |
596 | * gimple-parser.c (c_parser_gimple_label): Avoid building | |
597 | a GIMPLE label with NULL label decl. | |
598 | ||
f9af11c7 GA |
599 | 2021-05-13 Martin Sebor <msebor@redhat.com> |
600 | ||
601 | PR c/100550 | |
602 | * c-decl.c (get_parm_array_spec): Avoid erroneous VLA bounds. | |
603 | ||
0ff3a0f2 GA |
604 | 2021-05-12 Marcel Vollweiler <marcel@codesourcery.com> |
605 | ||
606 | * c-parser.c (c_parser_omp_clause_map): Support map-type-modifier | |
607 | 'close'. | |
608 | ||
aa891c56 GA |
609 | 2021-05-10 Martin Liska <mliska@suse.cz> |
610 | ||
611 | * c-aux-info.c (affix_data_type): Use startswith | |
612 | function instead of strncmp. | |
613 | * c-typeck.c (build_function_call_vec): Likewise. | |
614 | * gimple-parser.c (c_parser_gimple_parse_bb_spec): Likewise. | |
615 | ||
62d87a32 GA |
616 | 2021-05-07 Eric Botcazou <ebotcazou@adacore.com> |
617 | ||
618 | * c-typeck.c (build_unary_op) <ADDR_EXPR>: Do not issue an error | |
619 | on the address of a pointer field in a record with reverse SSO. | |
620 | ||
99e8df7a GA |
621 | 2021-05-04 Tobias Burnus <tobias@codesourcery.com> |
622 | ||
623 | * c-typeck.c (c_finish_omp_clauses): Accept float + complex | |
624 | for || and && reductions. | |
625 | ||
3c8e539d GA |
626 | 2021-04-29 Joseph Myers <joseph@codesourcery.com> |
627 | ||
628 | * c-typeck.c (function_types_compatible_p): For C2X, treat | |
629 | unprototyped function as compatible with non-variadic prototyped | |
630 | function even if some argument types are changed by the default | |
631 | argument promotions. | |
632 | ||
ee351f7f GA |
633 | 2021-04-15 Martin Sebor <msebor@redhat.com> |
634 | ||
635 | PR c/99420 | |
636 | PR c/99972 | |
637 | * c-decl.c (pushdecl): Always propagate type attribute. | |
638 | ||
639 | 2021-04-15 Richard Sandiford <richard.sandiford@arm.com> | |
640 | ||
641 | PR c/98852 | |
642 | * c-typeck.c (c_common_type): Do not drop attributes that | |
643 | affect type identity. | |
644 | ||
1d54b138 GA |
645 | 2021-04-10 Jakub Jelinek <jakub@redhat.com> |
646 | ||
647 | PR c/99990 | |
648 | * c-decl.c (finish_decl): Don't overwrite TREE_TYPE of | |
649 | error_mark_node. | |
650 | ||
4493b1c1 GA |
651 | 2021-03-25 Jakub Jelinek <jakub@redhat.com> |
652 | ||
653 | PR c++/99565 | |
654 | * c-typeck.c (build_conditional_expr): Pass OEP_ADDRESS_OF_SAME_FIELD | |
655 | to operand_equal_p. | |
656 | ||
5f256a70 GA |
657 | 2021-03-19 Jakub Jelinek <jakub@redhat.com> |
658 | ||
659 | PR c/99588 | |
660 | * c-typeck.c (mark_exp_read): Recognize what build_atomic_assign | |
661 | with modifycode NOP_EXPR produces and mark the _Atomic var as read | |
662 | if found. | |
663 | (build_atomic_assign): For modifycode of NOP_EXPR, use COMPOUND_EXPRs | |
664 | rather than STATEMENT_LIST. Otherwise call mark_exp_read on lhs. | |
665 | Set TREE_SIDE_EFFECTS on the TARGET_EXPR. | |
666 | ||
3c5b6d24 GA |
667 | 2021-03-15 Tobias Burnus <tobias@codesourcery.com> |
668 | ||
669 | PR c++/99509 | |
670 | * c-decl.c (finish_decl): For 'omp declare target implicit' vars, | |
671 | ensure that the varpool node is marked as offloadable. | |
672 | ||
ceae9533 GA |
673 | 2021-03-05 Tobias Burnus <tobias@codesourcery.com> |
674 | ||
675 | PR c/99137 | |
676 | * c-parser.c (c_parser_oacc_clause_async): Reject comma expressions. | |
677 | ||
4028d01a GA |
678 | 2021-02-24 Martin Sebor <msebor@redhat.com> |
679 | ||
680 | PR middle-end/97172 | |
681 | * c-decl.c (free_attr_access_data): Clear attribute arg spec. | |
682 | ||
bf81237e GA |
683 | 2021-02-18 Jakub Jelinek <jakub@redhat.com> |
684 | ||
685 | PR c/99136 | |
686 | * c-typeck.c (c_finish_return): Don't wrap retval into | |
687 | EXCESS_PRECISION_EXPR in functions that return void. | |
688 | ||
0c5cdb31 GA |
689 | 2021-02-11 Marek Polacek <polacek@redhat.com> |
690 | ||
691 | * c-parser.c (c_parser_if_statement): Use vec_free. | |
692 | ||
a19dd5e6 GA |
693 | 2021-02-04 Martin Sebor <msebor@redhat.com> |
694 | ||
695 | PR c/97882 | |
696 | * c-decl.c (locate_old_decl): Add type to diagnostic output. | |
697 | (diagnose_mismatched_decls): Same. | |
698 | (start_function): Introduce temporaries for better readability. | |
699 | * c-typeck.c (comptypes_internal): Only consider complete enum | |
700 | types in comparisons with integers. | |
701 | ||
f7884fb1 GA |
702 | 2021-02-01 Martin Sebor <msebor@redhat.com> |
703 | ||
704 | PR middle-end/97172 | |
705 | * c-decl.c (free_attr_access_data): New function. | |
706 | (c_parse_final_cleanups): Call free_attr_access_data. | |
707 | ||
59cf67d1 GA |
708 | 2021-01-16 Kwok Cheung Yeung <kcy@codesourcery.com> |
709 | ||
710 | * c-parser.c (c_parser_omp_clause_detach): New. | |
711 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_DETACH clause. | |
712 | (OMP_TASK_CLAUSE_MASK): Add mask for PRAGMA_OMP_CLAUSE_DETACH. | |
713 | * c-typeck.c (c_finish_omp_clauses): Handle PRAGMA_OMP_CLAUSE_DETACH | |
714 | clause. Prevent use of detach with mergeable and overriding the | |
715 | data sharing mode of the event handle. | |
716 | ||
2f7f0d32 GA |
717 | 2021-01-15 Jakub Jelinek <jakub@redhat.com> |
718 | ||
719 | * c-typeck.c (c_finish_omp_clauses): For reduction build array with | |
720 | unqualified element type and then call c_build_qualified_type on the | |
721 | ARRAY_TYPE. | |
722 | ||
7d187e4f GA |
723 | 2021-01-07 Richard Biener <rguenther@suse.de> |
724 | ||
725 | * gimple-parser.c (c_parser_gimple_compound_statement): Only | |
726 | reallocate loop array if it is too small. | |
727 | ||
eefe499f GA |
728 | 2020-12-16 Martin Uecker <muecker@gwdg.de> |
729 | ||
730 | PR c/98047 | |
731 | * c-typeck.c (build_modify_expr): Drop qualifiers. | |
732 | ||
733 | 2020-12-16 Martin Uecker <muecker@gwdg.de> | |
734 | ||
735 | PR c/98260 | |
736 | * c-parser.c (c_parser_expression): Look into | |
737 | nop expression when marking expressions as read. | |
738 | ||
d52945ce GA |
739 | 2020-12-14 Martin Liska <mliska@suse.cz> |
740 | ||
741 | PR sanitizer/98204 | |
742 | * c-typeck.c (pointer_diff): Do not emit a top-level | |
743 | sanitization. | |
744 | (build_binary_op): Likewise. | |
745 | ||
ca2bd949 GA |
746 | 2020-12-09 Tobias Burnus <tobias@codesourcery.com> |
747 | ||
748 | * c-parser.c (c_parser_omp_allocate): New. | |
749 | (c_parser_omp_construct): Call it. | |
750 | ||
751 | 2020-12-09 Richard Biener <rguenther@suse.de> | |
752 | ||
753 | PR c/98200 | |
754 | * gimple-parser.c (c_parser_gimple_postfix_expression): Return | |
755 | early on error. | |
756 | ||
bc8a7013 GA |
757 | 2020-12-07 Martin Uecker <muecker@gwdg.de> |
758 | ||
759 | PR c/97981 | |
760 | * c-typeck.c (convert_lvalue_to_rvalue): Move the code | |
761 | that drops qualifiers to the end of the function. | |
762 | ||
d48df6f2 GA |
763 | 2020-11-26 Martin Uecker <muecker@gwdg.de> |
764 | ||
765 | PR c/65455 | |
766 | PR c/92935 | |
767 | * c-parser.c (c_parser_declaration_or_fndef): Remove | |
768 | redundant code to drop qualifiers of _Atomic types for __auto_type. | |
769 | (c_parser_typeof_specifier): Do not drop qualifiers of _Atomic | |
770 | types for __typeof__. | |
771 | ||
1e2c9a27 GA |
772 | 2020-11-24 Jakub Jelinek <jakub@redhat.com> |
773 | ||
774 | PR c/97958 | |
775 | * c-parser.c (c_parser_binary_expression): For omp atomic binary | |
776 | expressions, use make_node instead of build2 to avoid checking build2 | |
777 | performs. | |
778 | ||
8e6198d0 GA |
779 | 2020-11-23 Joseph Myers <joseph@codesourcery.com> |
780 | ||
781 | PR c/95630 | |
782 | * c-typeck.c (build_binary_op): Use pedwarn_c99 with OPT_Wpedantic | |
783 | for comparisons of complete and incomplete pointers. | |
784 | ||
7a97e2fc GA |
785 | 2020-11-21 Aaron Sawdey <acsawdey@linux.ibm.com> |
786 | ||
787 | * c-aux-info.c (gen_type): Support opaque types. | |
788 | ||
82e5048e GA |
789 | 2020-11-20 Martin Sebor <msebor@redhat.com> |
790 | ||
791 | PR middle-end/97879 | |
792 | * c-decl.c (start_function): Set ATTR_FLAG_INTERNAL in flags. | |
793 | ||
794 | 2020-11-20 Jakub Jelinek <jakub@redhat.com> | |
795 | ||
796 | PR other/97911 | |
797 | * Make-lang.in (c.serial): Change from goal to a variable. | |
798 | (.PHONY): Drop c.serial. | |
799 | ||
800 | 2020-11-20 Martin Uecker <muecker@gwdg.de> | |
801 | ||
802 | * c-typeck.c (convert_lvalue_to_rvalue): Drop qualifiers. | |
803 | ||
d62586ee GA |
804 | 2020-11-19 Jakub Jelinek <jakub@redhat.com> |
805 | ||
806 | PR c/97860 | |
807 | * c-decl.c (get_parm_array_spec): Bail out of nelts is | |
808 | error_operand_p. | |
809 | ||
25bb75f8 GA |
810 | 2020-11-18 Jakub Jelinek <jakub@redhat.com> |
811 | ||
812 | * Make-lang.in (c.serial): New goal. | |
813 | (.PHONY): Add c.serial c.prev. | |
814 | (cc1$(exeext)): Call LINK_PROGRESS. | |
815 | ||
77f67db2 GA |
816 | 2020-11-13 Vladimir N. Makarov <vmakarov@redhat.com> |
817 | ||
818 | * c-parser.c (c_parser_asm_statement): Parse outputs for asm | |
819 | goto too. | |
820 | * c-typeck.c (build_asm_expr): Remove an assert checking output | |
821 | absence for asm goto. | |
822 | ||
823 | 2020-11-13 Jakub Jelinek <jakub@redhat.com> | |
824 | ||
825 | * c-typeck.c (c_finish_omp_clauses): Don't clear | |
826 | OMP_CLAUSE_REDUCTION_INSCAN unless reduction_seen == -2. | |
827 | ||
828 | 2020-11-13 Iain Sandoe <iain@sandoe.co.uk> | |
829 | ||
830 | PR objc/77404 | |
831 | * c-parser.c (c_parser_objc_class_definition): Pass the | |
832 | location of the class name to the interface declaration. | |
833 | ||
bb622641 GA |
834 | 2020-11-10 Strager Neds <strager.nds@gmail.com> |
835 | ||
836 | * c-decl.c (merge_decls): Use new overload of | |
837 | set_decl_section_name. | |
838 | ||
839 | 2020-11-10 Chung-Lin Tang <cltang@codesourcery.com> | |
840 | ||
841 | * c-parser.c (c_parser_omp_target_data): Add use of | |
842 | new c_omp_adjust_map_clauses function. Add GOMP_MAP_ATTACH_DETACH as | |
843 | handled map clause kind. | |
844 | (c_parser_omp_target_enter_data): Likewise. | |
845 | (c_parser_omp_target_exit_data): Likewise. | |
846 | (c_parser_omp_target): Likewise. | |
847 | * c-typeck.c (handle_omp_array_sections): Adjust COMPONENT_REF case to | |
848 | use GOMP_MAP_ATTACH_DETACH map kind for C_ORT_OMP region type. | |
849 | (c_finish_omp_clauses): Adjust bitmap checks to allow struct decl and | |
850 | same struct field access to co-exist on OpenMP construct. | |
851 | ||
2da7ee05 GA |
852 | 2020-11-07 Martin Uecker <muecker@gwdg.de> |
853 | ||
854 | * c-parser.c (c_parser_label): Implement mixing of labels and code. | |
855 | (c_parser_all_labels): Likewise. | |
856 | ||
44cab2d8 GA |
857 | 2020-11-06 Iain Sandoe <iain@sandoe.co.uk> |
858 | ||
859 | * c-parser.c (c_parser_objc_at_property_declaration): | |
860 | Improve parsing fidelity. Associate better location info | |
861 | with @property attributes. Clean up the interface to | |
862 | objc_add_property_declaration (). | |
863 | ||
864 | 2020-11-06 Nathan Sidwell <nathan@acm.org> | |
865 | ||
866 | * c-decl.c (diagnose_mismatched_decls): Rename | |
867 | DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN. | |
868 | (warn_if_shadowing, implicitly_declare, names_builtin_p) | |
869 | (collect_source_refs): Likewise. | |
870 | * c-typeck.c (inform_declaration, inform_for_arg) | |
871 | (convert_for_assignment): Likewise. | |
872 | ||
873 | 2020-11-06 Tobias Burnus <tobias@codesourcery.com> | |
874 | ||
875 | * c-parser.c (c_parser_omp_atomic): Add openacc parameter and update | |
876 | OpenACC matching. | |
877 | (c_parser_omp_construct): Update call. | |
878 | ||
35c125cb GA |
879 | 2020-11-04 Jakub Jelinek <jakub@redhat.com> |
880 | ||
881 | PR c++/97670 | |
882 | * c-typeck.c (c_finish_omp_clauses): Look through array reductions to | |
883 | find underlying decl to clear in the aligned_head bitmap. | |
884 | ||
885 | 2020-11-04 Joseph Myers <joseph@codesourcery.com> | |
886 | ||
887 | * c-decl.c (handle_nodiscard_attribute): New. | |
888 | (std_attribute_table): Add nodiscard. | |
889 | * c-parser.c (c_parser_std_attribute): Expect argument to | |
890 | nodiscard attribute to be a string. Do not special-case ignoring | |
891 | nodiscard. | |
892 | * c-typeck.c (maybe_warn_nodiscard): New. | |
893 | (build_compound_expr, emit_side_effect_warnings): Call | |
894 | maybe_warn_nodiscard. | |
895 | (c_process_expr_stmt, c_finish_stmt_expr): Also call | |
896 | emit_side_effect_warnings if warn_unused_result. | |
897 | ||
4f0606fe GA |
898 | 2020-10-29 Asher Gordon <AsDaGo@posteo.net> |
899 | ||
900 | * c-typeck.c (free_all_tagged_tu_seen_up_to): Replace free | |
901 | with XDELETE. | |
902 | (finish_init): Likewise. | |
903 | (pop_init_level): Likewise. | |
904 | ||
e93aae4a GA |
905 | 2020-10-28 Joseph Myers <joseph@codesourcery.com> |
906 | ||
907 | * c-decl.c (store_parm_decls_newstyle): Use pedwarn_c11 not | |
908 | error_at for omitted parameter name. | |
909 | ||
910 | 2020-10-28 Jakub Jelinek <jakub@redhat.com> | |
911 | ||
912 | * c-parser.c (c_parser_omp_clause_name): Handle allocate. | |
913 | (c_parser_omp_clause_allocate): New function. | |
914 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_ALLOCATE. | |
915 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
916 | OMP_PARALLEL_CLAUSE_MASK, OMP_SINGLE_CLAUSE_MASK, | |
917 | OMP_TASK_CLAUSE_MASK, OMP_TASKGROUP_CLAUSE_MASK, | |
918 | OMP_DISTRIBUTE_CLAUSE_MASK, OMP_TEAMS_CLAUSE_MASK, | |
919 | OMP_TARGET_CLAUSE_MASK, OMP_TASKLOOP_CLAUSE_MASK): Add | |
920 | PRAGMA_OMP_CLAUSE_ALLOCATE. | |
921 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_ALLOCATE. | |
922 | ||
89bb01e7 GA |
923 | 2020-10-27 Joseph Myers <joseph@codesourcery.com> |
924 | ||
925 | * c-parser.c (c_parser_std_attribute_specifier): Allow duplicate | |
926 | standard attributes. | |
927 | ||
efe71fcc GA |
928 | 2020-10-23 Marek Polacek <polacek@redhat.com> |
929 | ||
930 | PR c++/91741 | |
931 | * c-parser.c (c_parser_binary_expression): Implement -Wsizeof-array-div. | |
932 | (c_parser_postfix_expression): Set PAREN_SIZEOF_EXPR. | |
933 | (c_parser_expr_list): Handle PAREN_SIZEOF_EXPR like SIZEOF_EXPR. | |
934 | * c-tree.h (char_type_p): Declare. | |
935 | * c-typeck.c (char_type_p): No longer static. | |
936 | ||
937 | 2020-10-23 Martin Sebor <msebor@redhat.com> | |
938 | ||
939 | PR middle-end/97552 | |
940 | * c-decl.c (get_parm_array_spec): Handle static VLA parameters. | |
941 | ||
2fe5b7d1 GA |
942 | 2020-09-19 Martin Sebor <msebor@redhat.com> |
943 | ||
944 | PR c/50584 | |
945 | * c-decl.c (lookup_last_decl): Define new function. | |
946 | (c_decl_attributes): Call it. | |
947 | (start_decl): Add argument and use it. | |
948 | (finish_decl): Call build_attr_access_from_parms and decl_attributes. | |
949 | (get_parm_array_spec): Define new function. | |
950 | (push_parm_decl): Call get_parm_array_spec. | |
951 | (start_function): Call warn_parm_array_mismatch. Build attribute | |
952 | access and add it to current function. | |
953 | * c-parser.c (c_parser_declaration_or_fndef): Diagnose mismatches | |
954 | in forms of array parameters. | |
955 | * c-tree.h (start_decl): Add argument. | |
956 | ||
957 | 2020-09-19 Sandra Loosemore <sandra@codesourcery.com> | |
958 | ||
959 | * c-decl.c (c_break_label, c_cont_label): Delete, and replace | |
960 | with... | |
961 | (in_statement): New. | |
962 | (start_function): Adjust for above change. | |
963 | (c_push_function_context, c_pop_function_context): Likewise. | |
964 | * c-lang.h (struct language_function): Likewise. | |
965 | * c-objc-common.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define. | |
966 | * c-parser.c (objc_foreach_break_label, objc_foreach_continue_label): | |
967 | New. | |
968 | (c_parser_statement_after_labels): Adjust calls to c_finish_bc_stmt. | |
969 | (c_parser_switch_statement): Adjust break/switch context handling | |
970 | and calls to renamed functions. | |
971 | (c_parser_while_statement): Adjust break/switch context handling and | |
972 | build a WHILE_STMT. | |
973 | (c_parser_do_statement): Ditto, with DO_STMT respectively. | |
974 | (c_parser_for_statement): Ditto, with FOR_STMT respectively. | |
975 | (c_parser_omp_for_loop): Adjust break/switch context handling. | |
976 | * c-tree.h (c_break_label, c_cont_label): Delete. | |
977 | (IN_SWITCH_STMT, IN_ITERATION_STMT): Define. | |
978 | (IN_OMP_BLOCK, IN_OMP_FOR, IN_OBJC_FOREACH): Define. | |
979 | (in_statement, switch_statement_break_seen_p): Declare. | |
980 | (c_start_case, c_finish_case): Renamed to... | |
981 | (c_start_switch, c_finish_switch). | |
982 | (c_finish_bc_stmt): Adjust arguments. | |
983 | * c-typeck.c (build_function_call_vec): Don't try to print | |
984 | statements with %qE format. | |
985 | (struct c_switch): Rename switch_expr field to switch_stmt. | |
986 | Add break_stmt_seen_p field. | |
987 | (c_start_case): Rename to c_start_switch. Build a SWITCH_STMT | |
988 | instead of a SWITCH_EXPR. Update for changes to struct c_switch. | |
989 | (do_case): Update for changes to struct c_switch. | |
990 | (c_finish_case): Rename to c_finish_switch. Update for changes to | |
991 | struct c_switch and change of representation from SWITCH_EXPR to | |
992 | SWITCH_STMT. | |
993 | (c_finish_loop): Delete. | |
994 | (c_finish_bc_stmt): Update to reflect changes to break/continue | |
995 | state representation. Build a BREAK_STMT or CONTINUE_STMT instead | |
996 | of a GOTO_EXPR except for objc foreach loops. | |
997 | ||
e1a4a8a0 GA |
998 | 2020-09-01 Jakub Jelinek <jakub@redhat.com> |
999 | ||
1000 | PR c++/96867 | |
1001 | * c-typeck.c (handle_omp_array_sections_1): Test C_ARRAY_PARAMETER | |
1002 | only on PARM_DECLs. | |
1003 | ||
8f7ea26a GA |
1004 | 2020-08-28 Martin Sebor <msebor@redhat.com> |
1005 | ||
1006 | PR c/96596 | |
1007 | * c-decl.c (match_builtin_function_types): Avoid dealing with erroneous | |
1008 | argument type. | |
1009 | ||
8b394f01 GA |
1010 | 2020-08-27 Martin Liska <mliska@suse.cz> |
1011 | ||
1012 | * gimple-parser.c (c_parser_gimple_compound_statement): Set exact argument of a vector | |
1013 | growth function to true. | |
1014 | ||
db0f6efe GA |
1015 | 2020-08-25 Tobias Burnus <tobias@codesourcery.com> |
1016 | ||
1017 | PR c/96678 | |
1018 | * c-typeck.c (handle_omp_array_sections_1): Talk about | |
1019 | array function parameter in the error message. | |
1020 | ||
5c265693 GA |
1021 | 2020-08-18 Jakub Jelinek <jakub@redhat.com> |
1022 | ||
1023 | PR c/96571 | |
1024 | * c-parser.c (c_parser_generic_selection): Change match_found from bool | |
1025 | to int, holding index of the match. Call mark_exp_read on the selector | |
1026 | expression and on expressions other than the selected one. | |
1027 | ||
4967ca2f GA |
1028 | 2020-08-01 Richard Sandiford <richard.sandiford@arm.com> |
1029 | ||
1030 | PR c/96377 | |
1031 | * c-typeck.c (process_init_element): Split test for whether to | |
1032 | recurse into a record, union or array into... | |
1033 | (initialize_elementwise_p): ...this new function. Don't recurse | |
1034 | into a vector type if the initialization value is also a vector. | |
1035 | ||
48cc2e46 GA |
1036 | 2020-07-31 Richard Biener <rguenther@suse.de> |
1037 | ||
1038 | PR debug/96383 | |
1039 | * c-objc-common.h (LANG_HOOKS_FINALIZE_EARLY_DEBUG): | |
1040 | Define to c_common_finalize_early_debug. | |
1041 | ||
3ea9abca GA |
1042 | 2020-07-22 Tobias Burnus <tobias@codesourcery.com> |
1043 | ||
1044 | * c-parser.c (c_parser_omp_clause_hint): Require nonnegative hint clause. | |
1045 | (c_parser_omp_critical): Permit hint(0) clause without named critical. | |
1046 | (c_parser_omp_construct): Don't assert if error_mark_node is returned. | |
1047 | ||
30430061 GA |
1048 | 2020-07-21 Sunil K Pandey <skpgkp2@gmail.com> |
1049 | ||
1050 | PR target/95237 | |
1051 | * c-decl.c (finish_decl): Call target hook | |
1052 | lower_local_decl_alignment to lower local decl alignment. | |
1053 | ||
3f8ca9cb GA |
1054 | 2020-07-09 Julian Brown <julian@codesourcery.com> |
1055 | Thomas Schwinge <thomas@codesourcery.com> | |
1056 | ||
1057 | PR middle-end/95270 | |
1058 | * c-typeck.c (c_finish_omp_clauses): Set OMP_CLAUSE_SIZE (bias) to zero | |
1059 | for standalone attach/detach clauses. | |
1060 | ||
a82c4c4c | 1061 | 2020-07-08 Eric Botcazou <ebotcazou@adacore.com> |
50873cc5 GA |
1062 | |
1063 | * c-typeck.c (convert_for_assignment): If -Wscalar-storage-order is | |
1064 | set, warn for conversion between pointers that point to incompatible | |
1065 | scalar storage orders. | |
1066 | ||
f60ee68d GA |
1067 | 2020-07-07 Kaipeng Zhou <zhoukaipeng3@huawei.com> |
1068 | ||
1069 | * c-parser.c (c_parser_statement_after_labels): Pass correct | |
1070 | parameters to c_parser_do_statement. | |
1071 | ||
56638b9b GA |
1072 | 2020-06-16 Jakub Jelinek <jakub@redhat.com> |
1073 | ||
1074 | * c-parser.c (c_parser_expr_no_commas): Save, clear and restore | |
1075 | c_in_omp_for. | |
1076 | (c_parser_omp_for_loop): Set c_in_omp_for around some calls to avoid | |
1077 | premature c_fully_fold. Defer explicit c_fully_fold calls to after | |
1078 | c_finish_omp_for. | |
1079 | * c-tree.h (c_in_omp_for): Declare. | |
1080 | * c-typeck.c (c_in_omp_for): Define. | |
1081 | (build_modify_expr): Avoid c_fully_fold if c_in_omp_for. | |
1082 | (digest_init): Likewise. | |
1083 | (build_binary_op): Likewise. | |
1084 | ||
1085 | 2020-06-16 Jakub Jelinek <jakub@redhat.com> | |
1086 | ||
1087 | * c-parser.c (c_parser_omp_clause_schedule): Reject modifier separated | |
1088 | from kind by comma rather than colon. | |
1089 | ||
1a59f3db GA |
1090 | 2020-06-05 Mark Wielaard <mark@klomp.org> |
1091 | ||
1092 | * c-decl.c (implicit_decl_warning): When warned and olddecl is | |
1093 | an undeclared builtin, then add a fixit header hint, if found. | |
1094 | (implicitly_declare): Add OPT_Wbuiltin_declaration_mismatch to | |
1095 | warning_at about implicit builtin declaration type mismatch. | |
1096 | ||
9a5b7438 GA |
1097 | 2020-06-03 Mark Wielaard <mark@klomp.org> |
1098 | ||
1099 | * c-parser.c (struct c_parser): Add seen_string_literal | |
1100 | bitfield. | |
1101 | (c_parser_consume_token): Reset seen_string_literal. | |
1102 | (c_parser_error_richloc): Add name_hint if seen_string_literal | |
1103 | and next token is a CPP_NAME and we have a missing header | |
1104 | suggestion for the name. | |
1105 | (c_parser_string_literal): Set seen_string_literal. | |
1106 | ||
1107 | 2020-06-03 Mark Wielaard <mark@klomp.org> | |
1108 | ||
1109 | * c-parser.c (c_parser_postfix_expression_after_primary): Add | |
1110 | scope with matching_parens after CPP_OPEN_PAREN. | |
1111 | ||
1112 | 2020-06-03 Tobias Burnus <tobias@codesourcery.com> | |
1113 | ||
1114 | * c-objc-common.h (LANG_HOOKS_OMP_PREDETERMINED_MAPPING): Redefine. | |
1115 | ||
53ffb43a GA |
1116 | 2020-05-28 Nicolas Bértolo <nicolasbertolo@gmail.com> |
1117 | ||
1118 | * Make-lang.in: Remove extra slash. | |
1119 | ||
8f66f175 ML |
1120 | 2020-05-19 Martin Liska <mliska@suse.cz> |
1121 | ||
1122 | * c-parser.c: Fix typo. | |
1123 | ||
49ddde69 JJ |
1124 | 2020-05-14 Jakub Jelinek <jakub@redhat.com> |
1125 | ||
1126 | * c-parser.c (c_parser_omp_target): Set cfun->has_omp_target. | |
1127 | ||
eb72dc66 RB |
1128 | 2020-05-07 Richard Biener <rguenther@suse.de> |
1129 | ||
1130 | PR middle-end/94703 | |
1131 | * gimple-parser.c (c_parser_parse_ssa_name): Do not set | |
1132 | DECL_GIMPLE_REG_P. | |
1133 | ||
bf915591 JJ |
1134 | 2020-04-30 Jakub Jelinek <jakub@redhat.com> |
1135 | ||
1136 | PR c/94842 | |
1137 | * c-decl.c (set_labels_context_r): In addition to context-less | |
1138 | LABEL_DECLs adjust also LABEL_DECLs with context equal to | |
1139 | parent function if any. | |
1140 | (store_parm_decls): Adjust comment. | |
1141 | ||
e1113ffb JJ |
1142 | 2020-04-19 Jakub Jelinek <jakub@redhat.com> |
1143 | ||
1144 | PR objc/94637 | |
1145 | * c-parser.c (c_parser_objc_selector_arg): Handle CPP_SCOPE like | |
1146 | two CPP_COLON tokens. | |
1147 | ||
2e389749 JJ |
1148 | 2020-04-17 Jakub Jelinek <jakub@redhat.com> |
1149 | ||
1150 | PR other/94629 | |
1151 | * c-parser.c (c_parser_oacc_routine): Remove redundant assignment | |
1152 | to data.clauses. | |
1153 | ||
2dc9294c JJ |
1154 | 2020-04-15 Jakub Jelinek <jakub@redhat.com> |
1155 | ||
1156 | PR c/94593 | |
1157 | * c-parser.c (c_parser_pragma) <case PRAGMA_OMP_REQUIRES>: Reject | |
1158 | requires directive when not at file scope. | |
1159 | ||
13e41d8b TB |
1160 | 2020-04-08 Tobias Burnus <tobias@codesourcery.com> |
1161 | ||
1162 | PR middle-end/94120 | |
1163 | * c-decl.c (c_check_in_current_scope): New function. | |
1164 | * c-tree.h (c_check_in_current_scope): Declare it. | |
1165 | * c-parser.c (c_parser_oacc_declare): Add check that variables | |
1166 | are declared in the same scope as the directive. Fix handling | |
1167 | of namespace vars. | |
1168 | ||
4df50a05 JJ |
1169 | 2020-04-07 Jakub Jelinek <jakub@redhat.com> |
1170 | ||
1171 | PR c++/94512 | |
1172 | * c-parser.c (c_parser_omp_parallel): Set OMP_PARALLEL_COMBINED | |
1173 | if c_parser_omp_master succeeded. | |
1174 | ||
5db9e893 JJ |
1175 | 2020-03-23 Jakub Jelinek <jakub@redhat.com> |
1176 | ||
1177 | PR gcov-profile/94029 | |
1178 | PR c/94239 | |
1179 | * c-parser.c (c_parser_declaration_or_fndef): Initialize endloc to | |
1180 | the function_start_locus location. Don't do that afterwards for the | |
1181 | __GIMPLE body parsing. | |
1182 | ||
9def91e9 JJ |
1183 | 2020-03-19 Jakub Jelinek <jakub@redhat.com> |
1184 | ||
1185 | PR gcov-profile/94029 | |
1186 | * c-tree.h (finish_function): Add location_t argument defaulted to | |
1187 | input_location. | |
1188 | * c-parser.c (c_parser_compound_statement): Add endlocp argument and | |
1189 | set it to the locus of closing } if non-NULL. | |
1190 | (c_parser_compound_statement_nostart): Return locus of closing }. | |
1191 | (c_parser_parse_rtl_body): Likewise. | |
1192 | (c_parser_declaration_or_fndef): Propagate locus of closing } to | |
1193 | finish_function. | |
1194 | * c-decl.c (finish_function): Add end_loc argument, use it instead of | |
1195 | input_location to set function_end_locus. | |
1196 | ||
046c5890 JJ |
1197 | 2020-03-17 Jakub Jelinek <jakub@redhat.com> |
1198 | ||
1199 | PR c/94172 | |
1200 | * c-tree.h (C_TYPE_INCOMPLETE_VARS): Define to TYPE_LANG_SLOT_1 | |
1201 | instead of TYPE_VFIELD, and support it on {RECORD,UNION,ENUMERAL}_TYPE. | |
1202 | (TYPE_ACTUAL_ARG_TYPES): Check that it is only used on FUNCTION_TYPEs. | |
1203 | * c-decl.c (pushdecl): Push C_TYPE_INCOMPLETE_VARS also to | |
1204 | ENUMERAL_TYPEs. | |
1205 | (finish_incomplete_vars): New function, moved from finish_struct. Use | |
1206 | relayout_decl instead of layout_decl. | |
1207 | (finish_struct): Remove obsolete comment about C_TYPE_INCOMPLETE_VARS | |
1208 | being TYPE_VFIELD. Use finish_incomplete_vars. | |
1209 | (finish_enum): Clear C_TYPE_INCOMPLETE_VARS. Call | |
1210 | finish_incomplete_vars. | |
1211 | * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS | |
1212 | also on ENUMERAL_TYPEs. | |
1213 | ||
c015ff8c JJ |
1214 | 2020-03-16 Jakub Jelinek <jakub@redhat.com> |
1215 | ||
1216 | PR c/94179 | |
1217 | * c-fold.c (c_fully_fold_internal): Handle MEM_REF. | |
1218 | ||
f2e9fe5f MS |
1219 | 2020-03-13 Martin Sebor <msebor@redhat.com> |
1220 | ||
1221 | PR c/94040 | |
1222 | * c-decl.c (builtin_structptr_type_count): New constant. | |
1223 | (match_builtin_function_types): Reject decls that are incompatible | |
1224 | in types pointed to by pointers. | |
1225 | (diagnose_mismatched_decls): Adjust comments. | |
1226 | ||
c9d70946 JM |
1227 | 2020-03-05 Joseph Myers <joseph@codesourcery.com> |
1228 | ||
1229 | PR c/93577 | |
1230 | * c-typeck.c (pop_init_level): Do not diagnose initializers as | |
1231 | empty when initialized type is error_mark_node. | |
1232 | (set_designator, process_init_element): Ignore initializers for | |
1233 | elements of a variable-size type or of error_mark_node. | |
1234 | ||
726e292d MS |
1235 | 2020-03-01 Martin Sebor <msebor@redhat.com> |
1236 | ||
1237 | PR middle-end/93926 | |
1238 | * c-decl.c (types_close_enough_to_match): New function. | |
1239 | (match_builtin_function_types): | |
1240 | (diagnose_mismatched_decls): Add missing inform call to a warning. | |
1241 | ||
a499c2f8 MS |
1242 | 2020-03-01 Martin Sebor <msebor@redhat.com> |
1243 | ||
1244 | PR c/93812 | |
1245 | * c-typeck.c (build_functype_attribute_variant): New function. | |
1246 | (composite_type): Call it. | |
1247 | ||
9c3da8cc JJ |
1248 | 2020-02-25 Jakub Jelinek <jakub@redhat.com> |
1249 | ||
1250 | PR other/93912 | |
1251 | * gimple-parser.c (c_parser_gimple_parse_bb_spec_edge_probability): | |
1252 | Rename last argument from probablity to probability. | |
1253 | ||
bacdd5e9 JJ |
1254 | 2020-02-13 Jakub Jelinek <jakub@redhat.com> |
1255 | ||
1256 | PR c/93576 | |
1257 | * c-decl.c (grokdeclarator): If this_size_varies, only push size into | |
1258 | *expr if it has side effects. | |
1259 | ||
f9eb0973 JL |
1260 | 2020-01-30 Jeff Law <law@redhat.com> |
1261 | ||
1262 | PR c/88660 | |
1263 | * c-parser.c (c_parser_switch_statement): Make sure to request | |
1264 | marking the switch expr as used. | |
1265 | ||
ac68e287 JM |
1266 | 2020-01-22 Joseph Myers <joseph@codesourcery.com> |
1267 | ||
1268 | PR c/93348 | |
1269 | * c-typeck.c (build_c_cast): Call remove_c_maybe_const_expr on | |
1270 | argument with integer operands. | |
1271 | ||
852f0ae8 KK |
1272 | 2020-01-16 Kerem Kat <keremkat@gmail.com> |
1273 | ||
1274 | PR c/92833 | |
1275 | * c-parser.c (c_parser_consume_token): Fix peeked token stack pop | |
1276 | to support 4 available tokens. | |
1277 | ||
e2346a33 JM |
1278 | 2020-01-15 Joseph Myers <joseph@codesourcery.com> |
1279 | ||
1280 | PR c/93072 | |
1281 | * c-decl.c (pushdecl): Use TREE_PUBLIC, not DECL_EXTERNAL, to | |
1282 | determine whether to set DECL_CONTEXT. | |
1283 | ||
3d77686d JM |
1284 | 2020-01-13 Joseph Myers <joseph@codesourcery.com> |
1285 | ||
1286 | PR c/93241 | |
1287 | * c-typeck.c (build_c_cast): Check for expressions with integer | |
1288 | operands that can occur in an unevaluated part of an integer | |
1289 | constant expression and call note_integer_operands as needed. | |
1290 | ||
f74c4b2c RB |
1291 | 2019-01-08 Richard Biener <rguenther@suse.de> |
1292 | ||
1293 | PR middle-end/93199 | |
1294 | * gimple-parser.c (c_parser_parse_gimple_body): Remove __PHI IFN | |
1295 | permanently. | |
1296 | ||
8d9254fc JJ |
1297 | 2020-01-01 Jakub Jelinek <jakub@redhat.com> |
1298 | ||
1299 | Update copyright years. | |
1300 | ||
39292e25 EB |
1301 | 2019-12-20 Eric Botcazou <ebotcazou@adacore.com> |
1302 | ||
1303 | * c-decl.c (collect_source_ref_cb): Delete. | |
1304 | (for_each_global_decl): Rename into... | |
1305 | (collect_source_refs): ...this. Call collect_source_ref directly. | |
1306 | (c_parse_final_cleanups): Always call collect_source_ref on the main | |
1307 | input filename. | |
1308 | ||
519d7496 JB |
1309 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
1310 | Cesar Philippidis <cesar@codesourcery.com> | |
1311 | ||
1312 | * c-parser.c (c_parser_omp_clause_name): Add parsing of attach and | |
1313 | detach clauses. | |
1314 | (c_parser_omp_variable_list): Add ALLOW_DEREF optional parameter. | |
1315 | Allow deref (->) in variable lists if true. | |
1316 | (c_parser_omp_var_list_parens): Add ALLOW_DEREF optional parameter. | |
1317 | Pass to c_parser_omp_variable_list. | |
1318 | (c_parser_oacc_data_clause): Support attach and detach clauses. Update | |
1319 | call to c_parser_omp_variable_list. | |
1320 | (c_parser_oacc_all_clauses): Support attach and detach clauses. | |
1321 | (OACC_DATA_CLAUSE_MASK, OACC_ENTER_DATA_CLAUSE_MASK, | |
1322 | OACC_KERNELS_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK, | |
1323 | OACC_SERIAL_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_ATTACH. | |
1324 | (OACC_EXIT_DATA_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_DETACH. | |
1325 | * c-typeck.c (handle_omp_array_sections_1): Reject subarrays for attach | |
1326 | and detach. Support deref. | |
1327 | (handle_omp_array_sections): Use GOMP_MAP_ATTACH_DETACH instead of | |
1328 | GOMP_MAP_ALWAYS_POINTER for OpenACC. | |
1329 | (c_oacc_check_attachments): New function. | |
1330 | (c_finish_omp_clauses): Check attach/detach arguments for being | |
1331 | pointers using above. Support deref. | |
1332 | ||
a6163563 JB |
1333 | 2019-12-19 Julian Brown <julian@codesourcery.com> |
1334 | Maciej W. Rozycki <macro@codesourcery.com> | |
1335 | Tobias Burnus <tobias@codesourcery.com> | |
1336 | Thomas Schwinge <thomas@codesourcery.com> | |
1337 | ||
1338 | * c-parser.c (c_parser_omp_clause_name): Support no_create. | |
1339 | (c_parser_oacc_data_clause): Likewise. | |
1340 | (c_parser_oacc_all_clauses): Likewise. | |
1341 | (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK) | |
1342 | (OACC_PARALLEL_CLAUSE_MASK, OACC_SERIAL_CLAUSE_MASK): Add | |
1343 | PRAGMA_OACC_CLAUSE_NO_CREATE. | |
1344 | * c-typeck.c (handle_omp_array_sections): Support | |
1345 | GOMP_MAP_NO_ALLOC. | |
1346 | ||
d68f5d45 DM |
1347 | 2019-12-09 David Malcolm <dmalcolm@redhat.com> |
1348 | ||
1349 | * c-objc-common.c (range_label_for_type_mismatch::get_text): | |
1350 | Replace label_text ctor calls. | |
1351 | ||
4691bf46 JM |
1352 | 2019-12-04 Joseph Myers <joseph@codesourcery.com> |
1353 | ||
1354 | PR c/36941 | |
1355 | PR c/88827 | |
1356 | * c-typeck.c (convert_lvalue_to_rvalue): Call | |
1357 | require_complete_type for arguments not of void types. | |
1358 | (build_indirect_ref): Do not diagnose dereferencing pointers to | |
1359 | incomplete types. | |
1360 | * c-tree.h (C_TYPE_ERROR_REPORTED): Remove. | |
1361 | ||
85d11957 JM |
1362 | 2019-12-03 Joseph Myers <joseph@codesourcery.com> |
1363 | ||
1364 | PR c/88704 | |
1365 | * c-decl.c (store_parm_decls_oldstyle): Diagnose use of [*] in | |
1366 | old-style parameter definitions. | |
1367 | ||
4569f8b3 SL |
1368 | 2019-12-01 Sandra Loosemore <sandra@codesourcery.com> |
1369 | ||
1370 | PR target/92499 | |
1371 | ||
1372 | * c-decl.c (flexible_array_type_p): Move to common code. | |
1373 | ||
65ef05d0 RS |
1374 | 2019-11-30 Richard Sandiford <richard.sandiford@arm.com> |
1375 | ||
1376 | * c-decl.c (start_decl): Allow initialization of variables whose | |
1377 | size is a POLY_INT_CST. | |
1378 | (finish_decl): Use verify_type_context to check whether the target | |
1379 | allows variables with a particular type to have static or thread-local | |
1380 | storage duration. Don't raise a second error if such variables do | |
1381 | not have a constant size. | |
1382 | (grokdeclarator): Use verify_type_context to check whether the | |
1383 | target allows fields or array elements to have a particular type. | |
1384 | * c-typeck.c (pointer_diff): Use verify_type_context to test whether | |
1385 | the target allows pointer difference for the types involved. | |
1386 | (build_unary_op): Likewise for pointer increment and decrement. | |
1387 | ||
34b43828 JM |
1388 | 2019-11-29 Joseph Myers <joseph@codesourcery.com> |
1389 | ||
1390 | * c-parser.c (struct c_parser): Add members raw_tokens and | |
1391 | raw_tokens_used. | |
1392 | (c_lex_one_token): Add argument raw. Handle lexing raw tokens and | |
1393 | using previously-lexed raw tokens. | |
1394 | (c_parser_peek_nth_token_raw) | |
1395 | (c_parser_check_balanced_raw_token_sequence): New functions. | |
1396 | (c_parser_nth_token_starts_std_attributes): Use | |
1397 | c_parser_check_balanced_raw_token_sequence for Objective-C. | |
1398 | ||
5b8d9367 JM |
1399 | 2019-11-25 Joseph Myers <joseph@codesourcery.com> |
1400 | ||
1401 | PR c/91985 | |
1402 | * c-decl.c (finish_declspecs): Use int instead of decimal | |
1403 | floating-point types if decimal floating-point not supported. | |
1404 | ||
1723e1be JM |
1405 | 2019-11-25 Joseph Myers <joseph@codesourcery.com> |
1406 | ||
1407 | * c-tree.h (struct c_declarator): Use a structure for id member. | |
1408 | * c-decl.c (grokdeclarator): Extract attributes from cdk_id | |
1409 | declarators at the start, not when handling individual declarators | |
1410 | later. Use u.id.id instead of u.id. | |
1411 | (grokfield): Use u.id.id instead of u.id. | |
1412 | (build_id_declarator): Set u.id.id and u.id.attrs. | |
1413 | (finish_declspecs): Handle postfix attributes in case of typedef | |
1414 | name or typeof used. | |
1415 | * c-parser.c (c_parser_direct_declarator) | |
1416 | (c_parser_direct_declarator_inner): Place declarator for | |
1417 | attributes inside that for function or array, not outside. Set | |
1418 | u.id.attrs for identifiers. | |
1419 | (c_parser_parameter_declaration): Use u.id.id instead of u.id. | |
1420 | * gimple-parser.c (c_parser_gimple_declaration): Use u.id.id | |
1421 | instead of u.id. | |
1422 | ||
bdaf8be1 JJ |
1423 | 2019-11-22 Jakub Jelinek <jakub@redhat.com> |
1424 | ||
1425 | PR c/90677 | |
1426 | * c-decl.c (identifier_global_tag): Define. | |
1427 | ||
3e00ba47 RB |
1428 | 2019-11-20 Richard Biener <rguenther@suse.de> |
1429 | ||
1430 | PR c/92088 | |
1431 | * c-decl.c (grokdeclarator): Prevent inlining of nested | |
1432 | function with VLA arguments. | |
1433 | ||
8c5b727a JM |
1434 | 2019-11-20 Joseph Myers <joseph@codesourcery.com> |
1435 | ||
1436 | * c-decl.c (c_warn_type_attributes): New function. | |
1437 | (groktypename, grokdeclarator, finish_declspecs): Call | |
1438 | c_warn_type_attributes before applying attributes to types. | |
1439 | * c-tree.h (c_warn_type_attributes): Declare. | |
1440 | ||
192961ff JM |
1441 | 2019-11-19 Joseph Myers <joseph@codesourcery.com> |
1442 | ||
1443 | * c-decl.c (c_warn_unused_attributes): Use pedwarn not warning for | |
1444 | standard attributes. | |
1445 | * c-parser.c (c_parser_std_attribute): Take argument for_tm. Use | |
1446 | pedwarn for unknown standard attributes and return error_mark_node | |
1447 | for them. | |
1448 | ||
20a38017 MM |
1449 | 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com> |
1450 | ||
1451 | * c-parser.c (c_parser_parse_rtl_body): Always call | |
1452 | run_rtl_passes, even if startwith pass is not provided. | |
1453 | ||
d5fbe5e0 JM |
1454 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1455 | ||
1456 | * c-parser.c (c_parser_std_attribute_specifier): Diagnose | |
1457 | duplicate standard attributes. | |
1458 | ||
97cc1187 JM |
1459 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1460 | ||
1461 | * c-decl.c (std_attribute_table): Add maybe_unused. | |
1462 | ||
f8aea5e3 JM |
1463 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1464 | ||
1465 | * c-decl.c (std_attribute_table): Add fallthrough. | |
1466 | * c-parser.c (c_parser_declaration_or_fndef): Diagnose fallthrough | |
1467 | attribute at top level. | |
1468 | ||
2cc94aa8 JM |
1469 | 2019-11-15 Joseph Myers <joseph@codesourcery.com> |
1470 | ||
1471 | * c-decl.c (std_attribute_table): New. | |
1472 | (c_init_decl_processing): Register attributes from | |
1473 | std_attribute_table. | |
1474 | * c-parser.c (c_parser_attribute_arguments): Add arguments | |
1475 | require_string and allow_empty_args. All callers changed. | |
1476 | (c_parser_std_attribute): Set require_string argument for | |
1477 | "deprecated" attribute. | |
1478 | ||
7c5890cc JM |
1479 | 2019-11-14 Joseph Myers <joseph@codesourcery.com> |
1480 | ||
1481 | * c-parser.c (c_parser_postfix_expression) | |
1482 | (c_parser_check_literal_zero): Handle CPP_UTF8CHAR. | |
1483 | * gimple-parser.c (c_parser_gimple_postfix_expression): Likewise. | |
1484 | ||
e8738f4e RS |
1485 | 2019-11-14 Richard Sandiford <richard.sandiford@arm.com> |
1486 | ||
1487 | * c-typeck.c (build_conditional_expr): Use truth_type_for instead | |
1488 | of build_same_sized_truth_vector_type. | |
1489 | (build_vec_cmp): Likewise. | |
1490 | ||
b2417b59 JJ |
1491 | 2019-11-14 Jakub Jelinek <jakub@redhat.com> |
1492 | ||
bedb7f04 JJ |
1493 | * c-parser.c (c_parser_omp_context_selector): Don't require score |
1494 | argument to fit into shwi, just to be INTEGER_CST. Diagnose | |
1495 | negative score. | |
1496 | ||
b2417b59 JJ |
1497 | * c-parser.c (c_parser_omp_context_selector): Rename |
1498 | CTX_PROPERTY_IDLIST to CTX_PROPERTY_NAME_LIST, add CTX_PROPERTY_ID. | |
1499 | Use CTX_PROPERTY_ID for atomic_default_mem_order, only allow a single | |
1500 | identifier in that. For CTX_PROPERTY_NAME_LIST, allow identifiers | |
1501 | and string literals. | |
1502 | ||
4e03c3a7 JM |
1503 | 2019-11-14 Joseph Myers <joseph@codesourcery.com> |
1504 | ||
1505 | * c-tree.h (enum c_typespec_kind): Add ctsk_tagref_attrs and | |
1506 | ctsk_tagfirstref_attrs. | |
1507 | (struct c_declspecs): Update description of attrs. Add | |
1508 | postfix_attrs and non_std_attrs_seen_p. Increase size of | |
1509 | typespec_kind bit-field. | |
1510 | (c_warn_unused_attributes): New declaration. | |
1511 | (parser_xref_tag): Update prototype. | |
1512 | * c-decl.c (c_warn_unused_attributes): New function. | |
1513 | (shadow_tag_warned): Handle ctsk_tagfirstref_attrs and | |
1514 | ctsk_tagref_attrs. Handle attribute declarations. | |
1515 | (check_compound_literal_type): Handle ctsk_tagfirstref_attrs. | |
1516 | (grokdeclarator): Handle standard attributes. | |
1517 | (parser_xref_tag): Add arguments have_std_attrs and attrs. Apply | |
1518 | attributes to incomplete type reference. | |
1519 | (xref_tag): Update call to parser_xref_tag. | |
1520 | (declspecs_add_addrspace, declspecs_add_type) | |
1521 | (declspecs_add_scspec, declspecs_add_attrs): Set | |
1522 | non_std_attrs_seen_p. | |
1523 | (finish_declspecs): Apply postfix standard attributes to type. | |
1524 | * c-parser.c (c_token_starts_declspecs) | |
1525 | (c_token_starts_declaration, c_parser_next_token_starts_declspecs) | |
1526 | (c_parser_next_tokens_start_declaration): Update comments. | |
1527 | (c_parser_consume_token, c_parser_consume_pragma): Handle moving | |
1528 | parser->tokens[2] to parser->tokens[1]. | |
1529 | (c_parser_nth_token_starts_std_attributes) | |
1530 | (c_parser_std_attribute_specifier_sequence): New functions. | |
1531 | (c_parser_declaration_or_fndef): Add arguments have_attrs and | |
1532 | attrs. All callers changed. Handle standard attributes. | |
1533 | (c_parser_parms_declarator, c_parser_parms_list_declarator) | |
1534 | (c_parser_parameter_declaration): Add argument have_gnu_attrs. | |
1535 | All callers changed. | |
1536 | (c_parser_declspecs): Add arguments start_std_attr_ok and | |
1537 | end_std_attr_ok. All callers changed. Handle standard | |
1538 | attributes. | |
1539 | (c_parser_enum_specifier, c_parser_struct_or_union_specifier) | |
1540 | (c_parser_direct_declarator, c_parser_direct_declarator_inner) | |
1541 | (c_parser_compound_statement_nostart, c_parser_all_labels) | |
1542 | (c_parser_label, c_parser_statement, c_parser_for_statement): | |
1543 | Handle standard attributes. | |
1544 | * c-parser.h (c_parser_declspecs): Update prototype. | |
1545 | * gimple-parser.c (c_parser_gimple_declaration): Update call to | |
1546 | c_parser_declspecs. | |
1547 | ||
0c29cac4 ML |
1548 | 2019-11-12 Martin Liska <mliska@suse.cz> |
1549 | ||
1550 | * gimple-parser.c: Do not include params.h. | |
1551 | ||
028d4092 ML |
1552 | 2019-11-12 Martin Liska <mliska@suse.cz> |
1553 | ||
1554 | * gimple-parser.c (c_parser_parse_gimple_body): Replace old parameter syntax | |
1555 | with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET | |
1556 | macro. | |
1557 | ||
62aee289 MR |
1558 | 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com> |
1559 | Frederik Harwath <frederik@codesourcery.com> | |
1560 | ||
1561 | gcc/c/ | |
1562 | * c-parser.c (OACC_SERIAL_CLAUSE_MASK): New macro. | |
1563 | (c_parser_oacc_kernels_parallel): Rename function to... | |
1564 | (c_parser_oacc_compute): ... this. Handle PRAGMA_OACC_SERIAL. | |
1565 | (c_parser_omp_construct): Update accordingly. | |
1566 | ||
1567 | ||
7cec9588 JJ |
1568 | 2019-11-11 Jakub Jelinek <jakub@redhat.com> |
1569 | ||
1570 | * c-parser.c (c_parser_translation_unit): Diagnose declare target | |
1571 | without corresponding end declare target. | |
1572 | ||
f486280c RS |
1573 | 2019-11-08 Richard Sandiford <richard.sandiford@arm.com> |
1574 | ||
1575 | * c-convert.c (convert): Only handle vector conversions if one of | |
1576 | the types satisfies gnu_vector_type_p or if -flax-vector-conversions | |
1577 | allows it. | |
1578 | * c-typeck.c (build_array_ref): Only allow vector indexing if the | |
1579 | vectors satisfy gnu_vector_type_p. | |
1580 | (build_unary_op): Only allow unary operators to be applied to | |
1581 | vectors if they satisfy gnu_vector_type_p. | |
1582 | (digest_init): Only allow by-element initialization of vectors | |
1583 | if they satisfy gnu_vector_type_p. | |
1584 | (really_start_incremental_init): Likewise. | |
1585 | (push_init_level): Likewise. | |
1586 | (pop_init_level): Likewise. | |
1587 | (process_init_element): Likewise. | |
1588 | (build_binary_op): Only allow binary operators to be applied to | |
1589 | vectors if they satisfy gnu_vector_type_p. | |
1590 | ||
017c6491 JM |
1591 | 2019-11-08 Joseph Myers <joseph@codesourcery.com> |
1592 | ||
1593 | * c-decl.c (grokparms): Convert () in a function definition to | |
1594 | (void) for C2x. | |
1595 | (store_parm_decls_oldstyle): Pedwarn for C2x. | |
1596 | (store_parm_decls): Update comment about () not generating a | |
1597 | prototype. | |
1598 | ||
c01bd174 JM |
1599 | 2019-11-07 Joseph Myers <joseph@codesourcery.com> |
1600 | ||
1601 | * c-parser.c (c_parser_attribute_arguments): New function. | |
1602 | Factored out of c_parser_gnu_attribute. | |
1603 | (c_parser_gnu_attribute): Use c_parser_attribute_arguments. | |
1604 | (c_parser_balanced_token_sequence, c_parser_std_attribute) | |
1605 | (c_parser_std_attribute_specifier): New functions. | |
1606 | (c_parser_transaction_attributes): Use | |
1607 | c_parser_std_attribute_specifier. | |
1608 | ||
471c5330 JM |
1609 | 2019-11-07 Joseph Myers <joseph@codesourcery.com> |
1610 | ||
1611 | * c-parser.c (c_parser): Remove lex_untranslated_string. Add | |
1612 | lex_joined_string and translate_strings_p. | |
1613 | (c_lex_one_token): Pass 0 or C_LEX_STRING_NO_JOIN to | |
1614 | c_lex_with_flags. | |
1615 | (c_parser_string_literal): New function. | |
1616 | (c_parser_static_assert_declaration_no_semi): Use | |
1617 | c_parser_string_literal. Do not set lex_untranslated_string. | |
1618 | (c_parser_asm_string_literal): Use c_parser_string_literal. | |
1619 | (c_parser_simple_asm_expr): Do not set lex_untranslated_string. | |
1620 | (c_parser_gnu_attributes): Set and restore translate_strings_p | |
1621 | instead of lex_untranslated_string. | |
1622 | (c_parser_asm_statement): Do not set lex_untranslated_string. | |
1623 | (c_parser_asm_operands): Likewise. | |
1624 | (c_parser_has_attribute_expression): Set and restore | |
1625 | translate_strings_p instead of lex_untranslated_string. | |
1626 | (c_parser_postfix_expression): Use c_parser_string_literal. | |
1627 | (pragma_lex): Likewise. | |
1628 | (c_parser_pragma_pch_preprocess): Set lex_joined_string. | |
1629 | (c_parse_file): Set translate_strings_p. | |
1630 | * gimple-parser.c (c_parser_gimple_postfix_expression) | |
1631 | (c_parser_gimple_or_rtl_pass_list): Use c_parser_string_literal. | |
1632 | * c-parser.c (c_parser_string_literal): Declare function. | |
1633 | ||
d0c464d2 JJ |
1634 | 2019-11-02 Jakub Jelinek <jakub@redhat.com> |
1635 | ||
1636 | * c-parser.c (c_finish_omp_declare_variant): Use | |
1637 | omp_get_context_selector instead of c_omp_get_context_selector. | |
1638 | ||
ac2cfa6c RS |
1639 | 2019-10-29 Richard Sandiford <richard.sandiford@arm.com> |
1640 | ||
1641 | * c-tree.h (c_simulate_enum_decl): Declare. | |
1642 | * c-decl.c (c_simulate_enum_decl): New function. | |
1643 | * c-objc-common.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define to the above. | |
1644 | ||
74078538 RS |
1645 | 2019-10-29 Richard Sandiford <richard.sandiford@arm.com> |
1646 | ||
1647 | * c-tree.h (c_simulate_builtin_function_decl): Declare. | |
1648 | * c-decl.c (c_simulate_builtin_function_decl): New function. | |
1649 | * c-objc-common.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define | |
1650 | to the above. | |
1651 | ||
ad1539d5 MS |
1652 | 2019-10-28 Martin Sebor <msebor@redhat.com> |
1653 | ||
1654 | PR c/66970 | |
1655 | * c-decl.c (names_builtin_p): Define a new function. | |
1656 | ||
cb73e4e7 RB |
1657 | 2019-10-28 Richard Biener <rguenther@suse.de> |
1658 | ||
1659 | PR c/92249 | |
1660 | * gimple-parser.c (c_parser_parse_gimple_body): Make | |
1661 | current_bb the entry block initially to easier recover | |
1662 | from errors. | |
1663 | (c_parser_gimple_compound_statement): Adjust. | |
1664 | ||
135df52c JJ |
1665 | 2019-10-24 Jakub Jelinek <jakub@redhat.com> |
1666 | ||
1667 | * c-parser.c (c_finish_omp_declare_variant): Use | |
1668 | omp_context_selector_matches instead of | |
1669 | c_omp_context_selector_matches. | |
1670 | * c-decl.c (c_decl_attributes): Add "omp declare target block" | |
1671 | attribute in between declare target and end declare target | |
1672 | pragmas. | |
1673 | ||
783bfe5e JM |
1674 | 2019-10-15 Joseph Myers <joseph@codesourcery.com> |
1675 | ||
1676 | * c-parser.c (c_parser_attribute_any_word): Rename to | |
1677 | c_parser_gnu_attribute_any_word. All callers changed. | |
1678 | (c_parser_attribute): Rename to c_parser_gnu_attribute. All | |
1679 | callers changed. | |
1680 | (c_parser_attributes): Rename to c_parser_gnu_attributes. All | |
1681 | callers changed. | |
1682 | (c_parser_declaration_or_fndef, c_parser_declspecs) | |
1683 | (c_parser_enum_specifier, c_parser_struct_or_union_specifier) | |
1684 | (c_parser_struct_declaration, c_parser_declarator) | |
1685 | (c_parser_gnu_attribute, c_parser_compound_statement) | |
1686 | (c_parser_label, c_parser_statement, c_parser_objc_method_decl) | |
1687 | (c_parser_transaction_attributes): Add "gnu-" prefix to names of | |
1688 | attribute-related syntax productions. | |
1689 | ||
56898e43 RS |
1690 | 2019-10-14 Richard Sandiford <richard.sandiford@arm.com> |
1691 | ||
1692 | * c-objc-common.c (useful_aka_type_p): Replace with... | |
1693 | (get_aka_type): ...this new function. Given the original type, | |
1694 | decide which aka type to print (if any). Only look through typedefs | |
1695 | if user_facing_original_type_p. | |
1696 | (print_type): Update accordingly. | |
1697 | ||
b9424661 JJ |
1698 | 2019-10-14 Jakub Jelinek <jakub@redhat.com> |
1699 | ||
1700 | * c-parser.c (c_parser_omp_all_clauses): Change bool NESTED_P argument | |
1701 | into int NESTED, if it is 2, diagnose missing commas in between | |
1702 | clauses. | |
1703 | (c_parser_omp_context_selector): Pass 2 as last argument to | |
1704 | c_parser_omp_all_clauses. | |
1705 | ||
20de9568 JJ |
1706 | 2019-10-12 Jakub Jelinek <jakub@redhat.com> |
1707 | ||
1708 | * c-parser.c (c_parser_omp_context_selector): Improve error recovery. | |
1709 | For simd properties, put them directly into TREE_VALUE. | |
1710 | (c_finish_omp_declare_variant): Call c_omp_mark_declare_variant. | |
1711 | If c_omp_context_selector_matches is 0, don't add attribute, otherwise | |
1712 | add "omp declare variant base" attribute rather than | |
1713 | "omp declare variant". | |
1714 | ||
fe2bc27c JM |
1715 | 2019-10-11 Joseph Myers <joseph@codesourcery.com> |
1716 | ||
1717 | * c-decl.c (declspecs_add_type): Use pedwarn_c11 for DFP types. | |
1718 | ||
94e7f906 JJ |
1719 | 2019-10-10 Jakub Jelinek <jakub@redhat.com> |
1720 | ||
1721 | * c-parser.c (c_parser_omp_all_clauses): Add NESTED_P argument, if | |
1722 | true, terminate processing on closing paren and don't skip to end of | |
1723 | pragma line. | |
1724 | (c_parser_omp_declare_simd): Handle also declare variant. | |
1725 | (omp_construct_selectors, omp_device_selectors, | |
1726 | omp_implementation_selectors, omp_user_selectors): New variables. | |
1727 | (c_parser_omp_context_selector, | |
1728 | c_parser_omp_context_selector_specification, | |
1729 | c_finish_omp_declare_variant): New functions. | |
1730 | (c_finish_omp_declare_simd): Handle both declare simd and | |
1731 | declare variant. | |
1732 | (c_parser_omp_declare): Handle declare variant. | |
1733 | ||
93313b94 JM |
1734 | 2019-10-02 Joseph Myers <joseph@codesourcery.com> |
1735 | ||
1736 | * c-parser.c (c_parser_asm_statement): Handle CPP_SCOPE like two | |
1737 | CPP_COLON tokens. | |
1738 | ||
55879815 RS |
1739 | 2019-10-01 Richard Sandiford <richard.sandiford@arm.com> |
1740 | ||
1741 | * c-objc-common.c (useful_aka_type_p): New function. | |
1742 | (print_type): Use it to decide whether an aka type is worth printing. | |
1743 | ||
59bc434a JJ |
1744 | 2019-09-27 Jakub Jelinek <jakub@redhat.com> |
1745 | ||
1746 | PR c++/88203 | |
1747 | * c-parser.c (c_parser_predefined_identifier): New function. | |
1748 | (c_parser_postfix_expression): Use it. | |
1749 | (c_parser_omp_variable_list): Parse predefined identifiers. | |
1750 | * c-typeck.c (c_finish_omp_clauses): Allow predefined variables | |
1751 | in shared and firstprivate clauses, even when they are predetermined | |
1752 | shared. | |
1753 | ||
c6447c20 RS |
1754 | 2019-09-27 Richard Sandiford <richard.sandiford@arm.com> |
1755 | ||
1756 | * c-typeck.c (build_function_call_vec): Take the original function | |
1757 | decl as an optional final parameter. Pass all built-in calls to | |
1758 | check_builtin_function_arguments. | |
1759 | ||
522da4c2 EB |
1760 | 2019-09-20 Eric Botcazou <ebotcazou@adacore.com> |
1761 | ||
1762 | PR c/91815 | |
1763 | * c-decl.c (pushdecl): In C detect duplicate declarations across scopes | |
1764 | of identifiers in the external scope only for variables and functions. | |
1765 | ||
68e2c199 PK |
1766 | 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
1767 | ||
1768 | PR c/78736 | |
1769 | * c-typeck.c (convert_for_assignment): Handle Wenum-conversion. | |
1770 | ||
22f8849d IS |
1771 | 2019-08-23 Iain Sandoe <iain@sandoe.co.uk> |
1772 | ||
1773 | PR pch/61250 | |
1774 | * c-parser.c (c_parse_file): Call c_common_no_more_pch () | |
1775 | after determining that the first token is not | |
1776 | PRAGMA_GCC_PCH_PREPROCESS. | |
1777 | ||
db376f45 EB |
1778 | 2019-08-22 Eric Botcazou <ebotcazou@adacore.com> |
1779 | ||
1780 | * c-parser.c (c_parser_declaration_or_fndef): Set DECL_ARGUMENTS of a | |
1781 | FUNCTION_DECL to the right value in the presence of nested declarators. | |
1782 | ||
4d732405 RS |
1783 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
1784 | ||
1785 | PR middle-end/91421 | |
1786 | * c-decl.c (merge_decls): Use copy_decl_built_in_function. | |
1787 | ||
cb1180d5 RS |
1788 | 2019-08-13 Richard Sandiford <richard.sandiford@arm.com> |
1789 | ||
1790 | PR middle-end/91421 | |
1791 | * c-decl.c (header_for_builtin_fn): Take a FUNCTION_DECL instead | |
1792 | of a built_in_function. | |
1793 | (diagnose_mismatched_decls, implicitly_declare): Update accordingly. | |
1794 | ||
77eb117f JJ |
1795 | 2019-08-10 Jakub Jelinek <jakub@redhat.com> |
1796 | ||
1797 | * c-parser.c (c_parser_omp_clause_name): Parse device_type. | |
1798 | (c_parser_omp_clause_device_type): New function. | |
1799 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_DEVICE_TYPE. | |
1800 | (OMP_DECLARE_TARGET_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_DEVICE_TYPE. | |
1801 | (c_parser_omp_declare_target): Handle device_type clauses. Remove | |
1802 | diagnostics for declare target with clauses nested in clause-less | |
1803 | declare target declaration-definition-seq. | |
1804 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_DEVICE_TYPE. | |
1805 | ||
2c3b8bad JJ |
1806 | 2019-08-09 Jakub Jelinek <jakub@redhat.com> |
1807 | ||
bb522e2e JJ |
1808 | * c-parser.c (check_no_duplicate_clause): Simplify using |
1809 | omp_find_clause. | |
1810 | (c_parser_omp_clause_if): Fix up printing of target {enter,exit} data | |
1811 | directive name modifiers. | |
1812 | (c_parser_omp_clause_proc_bind): Check for duplicate proc_bind clause. | |
1813 | ||
2c3b8bad JJ |
1814 | PR c/91401 |
1815 | * c-parser.c (c_parser_omp_clause_dist_schedule): Fix up typos in the | |
1816 | check_no_duplicate_clause call. Comment it out, instead emit a | |
1817 | warning for duplicate dist_schedule clauses. | |
1818 | ||
99769e7f RS |
1819 | 2019-08-08 Richard Sandiford <richard.sandiford@arm.com> |
1820 | ||
1821 | * c-decl.c (finish_enum): Clear C_TYPE_BEING_DEFINED. | |
1822 | ||
8860d270 JJ |
1823 | 2019-08-08 Jakub Jelinek <jakub@redhat.com> |
1824 | ||
1825 | * c-typeck.c (c_finish_omp_clauses): For C_ORT_OMP | |
1826 | OMP_CLAUSE_USE_DEVICE_* clauses use oacc_reduction_head bitmap | |
1827 | instead of generic_head to track duplicates. | |
1828 | ||
398e3feb JJ |
1829 | 2019-08-07 Jakub Jelinek <jakub@redhat.com> |
1830 | ||
1831 | * c-parser.c (c_parser_omp_clause_name): Parse use_device_addr clause. | |
1832 | (c_parser_omp_clause_use_device_addr): New function. | |
1833 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. | |
1834 | (OMP_TARGET_DATA_CLAUSE_MASK): Add PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR. | |
1835 | (c_parser_omp_target_data): Handle PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR | |
1836 | like PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR, adjust diagnostics about no | |
1837 | map or use_device_* clauses. | |
1838 | * c-typeck.c (c_finish_omp_clauses): For OMP_CLAUSE_USE_DEVICE_PTR | |
1839 | in OpenMP, require pointer type rather than pointer or array type. | |
1840 | Handle OMP_CLAUSE_USE_DEVICE_ADDR. | |
1841 | ||
a28351e7 JJ |
1842 | 2019-07-31 Jakub Jelinek <jakub@redhat.com> |
1843 | ||
1844 | PR c/91192 | |
1845 | * c-parser.c (c_parser_sizeof_expression): Call set_c_expr_source_range | |
1846 | even if finish is UNKNOWN_LOCATION, just use start as finish in that | |
1847 | case. | |
1848 | ||
6343b6bf ML |
1849 | 2019-07-25 Martin Liska <mliska@suse.cz> |
1850 | Dominik Infuhr <dominik.infuehr@theobroma-systems.com> | |
1851 | ||
1852 | PR c++/23383 | |
1853 | * c-decl.c (merge_decls): Merge OPERATOR_DELETE flag. | |
1854 | ||
cb50701e ML |
1855 | 2019-07-25 Martin Liska <mliska@suse.cz> |
1856 | ||
1857 | * c-decl.c (merge_decls): Use new macros | |
1858 | (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P). | |
1859 | ||
62e3e66f RB |
1860 | 2019-07-23 Richard Biener <rguenther@suse.de> |
1861 | ||
1862 | PR tree-optimization/83518 | |
1863 | * gimple-parser.c (c_parser_parse_gimple_body): When we have | |
1864 | a CFG also rebuild cgraph edges. | |
1865 | ||
554a530f JJ |
1866 | 2019-07-20 Jakub Jelinek <jakub@redhat.com> |
1867 | ||
1868 | * c-parser.c (c_parser_omp_clause_name): Handle bind clause. | |
1869 | (c_parser_omp_clause_bind): New function. | |
1870 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_BIND. | |
1871 | (OMP_LOOP_CLAUSE_MASK): Define. | |
1872 | (c_parser_omp_loop): New function. | |
1873 | (c_parser_omp_parallel, c_parser_omp_teams): Handle parsing of | |
1874 | loop combined with parallel or teams. | |
1875 | (c_parser_omp_construct): Handle PRAGMA_OMP_LOOP. | |
1876 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_BIND. | |
1877 | ||
d119bf79 RS |
1878 | 2019-07-18 Richard Sandiford <richard.sandiford@arm.com> |
1879 | ||
1880 | PR c/53633 | |
1881 | * c-decl.c (finish_function): Check targetm.warn_func_return | |
1882 | before issuing a -Wreturn-type warning. | |
1883 | ||
ab20d992 | 1884 | 2019-07-12 Alexandre Oliva <oliva@adacore.com> |
fdc1f343 AO |
1885 | |
1886 | * gimple-parser.c (c_parser_gimple_try_stmt): New. | |
1887 | (c_parser_compound_statement): Call it. | |
1888 | ||
1fdd6f04 JJ |
1889 | 2019-07-12 Jakub Jelinek <jakub@redhat.com> |
1890 | ||
1891 | * c-parser.c (c_parser_omp_clause_name): Handle order clause. | |
1892 | (c_parser_omp_clause_order): New function. | |
1893 | (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_ORDER. | |
1894 | (OMP_SIMD_CLAUSE_MASK, OMP_FOR_CLAUSE_MASK): Add | |
1895 | PRAGMA_OMP_CLAUSE_ORDER. | |
1896 | * c-typeck.c (c_finish_omp_clauses): Handle OMP_CLAUSE_ORDER. | |
1897 | ||
8389386c RB |
1898 | 2019-07-10 Richard Biener <rguenther@suse.de> |
1899 | ||
1900 | * gimple-parser.c (c_parser_gimple_postfix_expression): Support | |
1901 | _Literal (int *) &x for address literals. | |
1902 | ||
99b1c316 MS |
1903 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
1904 | ||
1905 | PR c++/61339 | |
1906 | * c-decl.c (xref_tag): Change class-key of PODs to struct and others | |
1907 | to class. | |
1908 | (field_decl_cmp): Same. | |
1909 | * c-parser.c (c_parser_struct_or_union_specifier): Same. | |
1910 | * c-tree.h: Same. | |
1911 | * gimple-parser.c (c_parser_gimple_compound_statement): Same. | |
1912 | ||
6c1dae73 MS |
1913 | 2019-07-09 Martin Sebor <msebor@redhat.com> |
1914 | ||
1915 | PR c++/61339 | |
1916 | * c-decl.c: Change class-key from class to struct and vice versa | |
1917 | to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod. | |
1918 | * gimple-parser.c: Same. | |
1919 | ||
69b5279e RB |
1920 | 2019-07-01 Richard Biener <rguenther@suse.de> |
1921 | ||
1922 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
1923 | _Literal (char *) &"foo" for address literals pointing to | |
1924 | STRING_CSTs. | |
1925 | ||
ab20d992 JJ |
1926 | 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com> |
1927 | ||
1928 | * c-parser.c (c_parse_init): Create keyword for "__intN__" type. | |
1929 | * c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO | |
1930 | C incompatibility if alternate "__intN__" form is used. | |
1931 | ||
1e3d475e MS |
1932 | 2019-06-24 Martin Sebor <msebor@redhat.com> |
1933 | ||
1934 | * c-typeck.c (build_binary_op): Hyphenate floating-point. | |
1935 | ||
bf38f7e9 JJ |
1936 | 2019-06-10 Jakub Jelinek <jakub@redhat.com> |
1937 | ||
1938 | * c-parser.c (c_parser_pragma): Reject PRAGMA_OMP_SCAN. | |
1939 | (c_parser_omp_clause_reduction): Don't sorry_at on inscan reductions. | |
1940 | (c_parser_omp_scan_loop_body): New function. | |
1941 | (c_parser_omp_for_loop): Call c_parser_omp_scan_loop_body if there are | |
1942 | inscan reduction clauses. | |
1943 | * c-typeck.c (c_finish_omp_clauses): Reject mixing inscan with | |
1944 | non-inscan reductions on the same construct, or inscan reductions with | |
1945 | ordered or schedule clauses, or inscan array reductions. | |
1946 | ||
65985d78 MS |
1947 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
1948 | ||
1949 | PR c/90737 | |
1950 | * c-typeck.c (c_finish_return): Only consider functions returning | |
1951 | pointers as candidates for -Wreturn-local-addr. | |
1952 | ||
0ecf545c MS |
1953 | 2019-06-05 Martin Sebor <msebor@redhat.com> |
1954 | ||
1955 | * c-decl.c (start_decl): Adjust quoting and hyphenation | |
1956 | in diagnostics. | |
1957 | (finish_decl): Same. | |
1958 | (finish_enum): Same. | |
1959 | (start_function): Same. | |
1960 | (declspecs_add_type): Same. | |
1961 | * c-parser.c (warn_for_abs): Same. | |
1962 | * c-typeck.c (build_binary_op): Same. | |
1963 | ||
e03436e7 TS |
1964 | 2019-05-17 Thomas Schwinge <thomas@codesourcery.com> |
1965 | ||
b48f44bf TS |
1966 | PR c/89433 |
1967 | * c-parser.c (c_finish_oacc_routine): Rework checking if already | |
1968 | marked with an OpenACC 'routine' directive. | |
1969 | ||
5bf04509 TS |
1970 | PR c/89433 |
1971 | * c-parser.c (c_parser_oacc_routine): Normalize order of clauses. | |
1972 | (c_finish_oacc_routine): Call oacc_verify_routine_clauses. | |
1973 | ||
e03436e7 TS |
1974 | PR c/89433 |
1975 | * c-parser.c (c_finish_oacc_routine): Refer to OpenACC 'routine' | |
1976 | clauses from "omp declare target" attribute. | |
1977 | ||
a9c697b8 MS |
1978 | 2019-05-16 Martin Sebor <msebor@redhat.com> |
1979 | ||
ab20d992 JJ |
1980 | * c-decl.c (start_decl): Quote keywords, operators, and |
1981 | types in diagnostics. | |
1982 | (finish_decl): Same. | |
1983 | * c-parser.c (c_parser_asm_statement): Same. | |
1984 | (c_parser_conditional_expression): Same. | |
1985 | (c_parser_transaction_cancel): Same. | |
1986 | * c-typeck.c (c_common_type): Same. | |
1987 | (build_conditional_expr): Same. | |
1988 | (digest_init): Same. | |
1989 | (process_init_element): Same. | |
1990 | (build_binary_op): Same. | |
a9c697b8 | 1991 | |
c4499192 RB |
1992 | 2019-05-17 Richard Biener <rguenther@suse.de> |
1993 | ||
1994 | * gimple-parser.c (c_parser_gimple_statement): Handle __VEC_PERM. | |
1995 | (c_parser_gimple_unary_expression): Likewise. | |
1996 | (c_parser_gimple_parentized_ternary_expression): New function. | |
1997 | ||
adfe6e4b RB |
1998 | 2019-05-16 Richard Biener <rguenther@suse.de> |
1999 | ||
2000 | * gimple-parser.c (c_parser_gimple_statement): Handle __BIT_INSERT. | |
2001 | (c_parser_gimple_unary_expression): Likewise. | |
2002 | ||
186dabf2 RB |
2003 | 2019-05-15 Richard Biener <rguenther@suse.de> |
2004 | ||
2005 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
2006 | __BIT_FIELD_REF. | |
2007 | ||
1158c5b4 RB |
2008 | 2019-05-14 Richard Biener <rguenther@suse.de> |
2009 | ||
2010 | * gimple-parser.c (c_parser_gimple_statement): Remove | |
2011 | questionable auto-promotion to VIEW_CONVERT_EXPR. | |
2012 | (c_parser_gimple_typespec): Split out from __MEM parsing. | |
2013 | (c_parser_gimple_postfix_expression): Handle __VIEW_CONVERT. | |
2014 | * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR | |
2015 | as __VIEW_CONVERT with -gimple. | |
2016 | ||
fd4485aa ML |
2017 | 2019-05-09 Martin Liska <mliska@suse.cz> |
2018 | ||
2019 | * gimple-parser.c (c_parser_gimple_statement): Support __MIN and | |
2020 | __MAX. | |
2021 | (c_parser_gimple_unary_expression): Parse also binary expression | |
2022 | __MIN and __MAX. | |
2023 | (c_parser_gimple_parentized_binary_expression): New function. | |
2024 | ||
d276406a ML |
2025 | 2019-05-09 Martin Liska <mliska@suse.cz> |
2026 | ||
2027 | * gimple-parser.c (struct gimple_parser): Add probability. | |
2028 | for gimple_parser_edge. | |
2029 | (gimple_parser::push_edge): Add new argument probability. | |
2030 | (c_parser_gimple_parse_bb_spec): Parse also probability | |
2031 | if present. | |
2032 | (c_parser_parse_gimple_body): Set edge probability. | |
2033 | (c_parser_gimple_compound_statement): Consume token | |
2034 | before calling c_parser_gimple_goto_stmt. | |
2035 | Parse BB counts. | |
2036 | (c_parser_gimple_statement): Pass new argument. | |
2037 | (c_parser_gimple_goto_stmt): Likewise. | |
2038 | (c_parser_gimple_if_stmt): Likewise. | |
2039 | (c_parser_gimple_or_rtl_pass_list): Parse hot_bb_threshold. | |
2040 | * c-parser.c (c_parser_declaration_or_fndef): Pass | |
2041 | hot_bb_threshold argument. | |
2042 | * c-tree.h (struct c_declspecs): Add hot_bb_threshold | |
2043 | field. | |
2044 | (c_parser_gimple_parse_bb_spec_edge_probability): New. | |
2045 | ||
f179b64e JJ |
2046 | 2019-04-26 Jakub Jelinek <jakub@redhat.com> |
2047 | ||
2048 | PR debug/90197 | |
2049 | * c-tree.h (c_finish_loop): Add 2 further location_t arguments. | |
2050 | * c-parser.c (c_parser_while_statement): Adjust c_finish_loop caller. | |
2051 | (c_parser_do_statement): Likewise. | |
2052 | (c_parser_for_statement): Likewise. Formatting fixes. | |
2053 | * c-typeck.c (c_finish_loop): Add COND_LOCUS and INCR_LOCUS arguments, | |
2054 | emit DEBUG_BEGIN_STMTs if needed. | |
2055 | ||
e7178413 JJ |
2056 | 2019-04-19 Jakub Jelinek <jakub@redhat.com> |
2057 | ||
c280b7ee JJ |
2058 | PR c/89888 |
2059 | * c-typeck.c (struct c_switch): Remove outside_range_p member. | |
2060 | (c_start_case): Don't clear it. | |
2061 | (do_case): Adjust c_add_case_label caller. | |
2062 | (c_finish_case): Adjust c_do_switch_warnings caller. | |
2063 | ||
e7178413 JJ |
2064 | PR c++/90108 |
2065 | * c-decl.c (merge_decls): If remove is main variant and | |
2066 | DECL_ORIGINAL_TYPE is some other type, remove a DECL_ORIGINAL_TYPE | |
2067 | variant that has newdecl as TYPE_NAME if any. | |
2068 | ||
60a2c645 JJ |
2069 | 2019-04-12 Jakub Jelinek <jakub@redhat.com> |
2070 | ||
2071 | PR c/89933 | |
2072 | * c-decl.c (merge_decls): When newdecl's type is its main variant, | |
2073 | don't try to remove it from the variant list, but instead assert | |
2074 | it has no variants. | |
2075 | ||
2a82beaa RB |
2076 | 2019-04-01 Richard Biener <rguenther@suse.de> |
2077 | ||
2078 | PR c/71598 | |
2079 | * c-tree.h (c_get_alias_set): Declare. | |
2080 | * c-objc-common.h (LANG_HOOKS_GET_ALIAS_SET): Use c_get_alias_set. | |
2081 | * c-objc-common.c (c_get_alias_set): Treat enumeral types | |
2082 | as the underlying integer type. | |
2083 | ||
bec1da64 MS |
2084 | 2019-03-19 Martin Sebor <msebor@redhat.com> |
2085 | ||
2086 | PR tree-optimization/89688 | |
2087 | * c-decl.c (finish_decl): Call braced_lists_to_string for more | |
2088 | kinds of initializers. | |
2089 | ||
855cd9b1 JJ |
2090 | 2019-03-19 Jakub Jelinek <jakub@redhat.com> |
2091 | ||
2092 | PR c/89734 | |
2093 | * c-decl.c (grokdeclarator): Call c_build_qualified_type on function | |
2094 | return type even if quals_used is 0. Formatting fixes. | |
2095 | ||
baa09dc5 RB |
2096 | 2019-03-14 Richard Biener <rguenther@suse.de> |
2097 | ||
2098 | * c-tree.h (enum c_declspec_il): New. | |
2099 | (struct c_declspecs): Merge gimple_p and rtl_p into declspec_il | |
2100 | enum bitfield. | |
2101 | * c-parser.c (c_parser_declaration_or_fndef): Adjust accordingly. | |
2102 | Pass start pass and declspec_il to c_parser_parse_gimple_body. | |
2103 | (c_parser_declspecs): Adjust. | |
2104 | * gimple-parser.c: Include cfg.h, cfghooks.h, cfganal.h, tree-cfg.h, | |
2105 | gimple-iterator.h, cfgloop.h, tree-phinodes.h, tree-into-ssa.h | |
2106 | and bitmap.h. | |
2107 | (struct gimple_parser): New. | |
2108 | (gimple_parser::push_edge): New method. | |
2109 | (c_parser_gimple_parse_bb_spec): New helper. | |
2110 | (c_parser_parse_gimple_body): Get start pass and IL specification. | |
2111 | Initialize SSA and CFG. | |
2112 | (c_parser_gimple_compound_statement): Handle CFG and SSA build. | |
2113 | Build a gimple_parser parsing state and pass it along. | |
2114 | (c_parser_gimple_statement): Change intermittend __PHI internal | |
2115 | function argument for the edge. | |
2116 | (c_parser_gimple_or_rtl_pass_list): Handle ssa, cfg flags. | |
2117 | (c_parser_gimple_goto_stmt): Record edges to build. | |
2118 | (c_parser_gimple_if_stmt): Likewise. | |
2119 | * gimple-parser.h (c_parser_parse_gimple_body): Adjust. | |
2120 | (c_parser_gimple_or_rtl_pass_list): Likewise. | |
2121 | ||
a3f9f006 ML |
2122 | 2019-03-11 Martin Liska <mliska@suse.cz> |
2123 | ||
2124 | * c-decl.c (check_for_loop_decls): Wrap an option name | |
2125 | in a string format message and fix GNU coding style. | |
2126 | * c-parser.c (c_parser_declspecs): Likewise. | |
2127 | ||
1db01ff9 JJ |
2128 | 2019-03-08 Jakub Jelinek <jakub@redhat.com> |
2129 | ||
2130 | PR tree-optimization/89550 | |
2131 | * c-decl.c (finish_function): Only set TREE_NO_WARNING if warning_at | |
2132 | returned true. | |
2133 | (c_write_global_declarations_1): Only set TREE_NO_WARNING if pedwarn | |
2134 | or warning returned true. | |
2135 | ||
66dcb747 JJ |
2136 | 2019-02-28 Jakub Jelinek <jakub@redhat.com> |
2137 | ||
2138 | PR c/89525 | |
2139 | * c-typeck.c (convert_arguments): Call inform_declaration only if | |
2140 | the previous warning_at call returned true. | |
2141 | ||
2263c9f2 TS |
2142 | 2019-02-22 Thomas Schwinge <thomas@codesourcery.com> |
2143 | ||
2144 | * c-parser.c (c_parser_oacc_shape_clause): Add loc formal | |
2145 | parameter. Adjust all users. | |
2146 | (c_parser_oacc_simple_clause): Replace parser with loc formal | |
2147 | parameter. Adjust all users. | |
2148 | ||
ab20d992 | 2149 | 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com> |
19695f4d CLT |
2150 | |
2151 | PR c/87924 | |
2152 | * c-parser.c (c_parser_oacc_clause_wait): Add representation of wait | |
2153 | clause without argument as 'wait (GOMP_ASYNC_NOVAL)', adjust comments. | |
2154 | ||
5f88ba10 JJ |
2155 | 2019-02-15 Jakub Jelinek <jakub@redhat.com> |
2156 | ||
2157 | PR c/89340 | |
2158 | * c-decl.c (start_function): Clear TREE_PUBLIC on nested functions | |
2159 | before c_decl_attributes rather than after it. | |
2160 | ||
cfc30fd1 JJ |
2161 | 2019-02-06 Jakub Jelinek <jakub@redhat.com> |
2162 | ||
2163 | PR c/89211 | |
2164 | * c-parser.c (c_parser_declaration_or_fndef): Don't update | |
2165 | DECL_ARGUMENTS of d if it has been defined already. Use a single if | |
2166 | instead of 3 nested ifs. | |
2167 | ||
fbe83e6b JM |
2168 | 2019-02-06 Joseph Myers <joseph@codesourcery.com> |
2169 | ||
2170 | PR c/88584 | |
2171 | * c-decl.c (finish_decl): Do not complete array types for arrays | |
2172 | with external linkage not at file scope. | |
2173 | ||
f461f938 RB |
2174 | 2019-02-05 Richard Biener <rguenther@suse.de> |
2175 | ||
2176 | PR c/88606 | |
2177 | * c-decl.c (finish_struct): Reset TYPE_TRANSPARENT_AGGR on | |
2178 | all type variants when not supported. | |
2179 | ||
fe509359 JJ |
2180 | 2019-01-30 Jakub Jelinek <jakub@redhat.com> |
2181 | ||
2182 | PR c/89061 | |
2183 | * c-tree.h (C_DECL_COMPOUND_LITERAL_P): Define. | |
2184 | * c-decl.c (decl_jump_unsafe): Return false for | |
2185 | C_DECL_COMPOUND_LITERAL_P decls. | |
2186 | (build_compound_literal): Set C_DECL_COMPOUND_LITERAL_P. | |
2187 | ||
6a335b96 JJ |
2188 | 2019-01-29 Jakub Jelinek <jakub@redhat.com> |
2189 | ||
f4b7e754 JJ |
2190 | PR c/89045 |
2191 | * c-decl.c (build_compound_literal): Don't pushdecl if in parameter | |
2192 | scope. | |
2193 | ||
6a335b96 JJ |
2194 | PR c/86125 |
2195 | * c-decl.c (last_fileptr_type): Remove. | |
2196 | (last_structptr_types): New variable. | |
2197 | (match_builtin_function_types): Compare TYPE_MAIN_VARIANT of | |
2198 | {old,new}rettype instead of the types themselves. Assert | |
2199 | last_structptr_types array has the same number of elements | |
2200 | as builtin_structptr_types array. Use TYPE_MAIN_VARIANT for | |
2201 | argument oldtype and newtype. Instead of handling | |
2202 | just fileptr_type_node specially, handle all builtin_structptr_types | |
2203 | pointer nodes. Formatting fix. | |
2204 | ||
d8b5a1a0 MS |
2205 | 2019-01-24 Martin Sebor <msebor@redhat.com> |
2206 | ||
2207 | PR c/86125 | |
2208 | PR c/88886 | |
2209 | PR middle-end/86308 | |
2210 | * c-decl.c (match_builtin_function_types): Add arguments. | |
2211 | (diagnose_mismatched_decls): Diagnose mismatched declarations | |
2212 | of built-ins more strictly. | |
2213 | ||
e21c4491 JJ |
2214 | 2019-01-24 Jakub Jelinek <jakub@redhat.com> |
2215 | ||
2216 | PR c++/88976 | |
2217 | * c-typeck.c (c_finish_omp_cancel): Diagnose more than one if | |
2218 | on #pragma omp cancel with different modifiers. | |
2219 | ||
420183d9 L |
2220 | 2019-01-18 H.J. Lu <hongjiu.lu@intel.com> |
2221 | ||
2222 | PR c/51628 | |
2223 | PR c/88664 | |
2224 | * c-typeck.c (convert_for_assignment): Upate the | |
2225 | warn_for_address_or_pointer_of_packed_member call. | |
2226 | ||
17ad43dd TH |
2227 | 2019-01-16 Tom Honermann <tom@honermann.net> |
2228 | Jason Merrill <jason@redhat.com> | |
2229 | ||
2230 | * c-typeck.c (digest_init): Revised the error message produced for | |
2231 | ill-formed cases of array initialization with a string literal. | |
2232 | (error_init): Make variadic. | |
2233 | ||
5f07d78a JJ |
2234 | 2019-01-12 Jakub Jelinek <jakub@redhat.com> |
2235 | ||
2236 | * c-typeck.c (convert_for_assignment): Fix a comment typo. | |
2237 | ||
c4581bbf JJ |
2238 | 2019-01-07 Jakub Jelinek <jakub@redhat.com> |
2239 | ||
2240 | PR c/88701 | |
2241 | * c-decl.c (build_compound_literal): If not TREE_STATIC, only pushdecl | |
2242 | if current_function_decl is non-NULL. | |
2243 | ||
65c5b1eb JM |
2244 | 2019-01-07 Joseph Myers <joseph@codesourcery.com> |
2245 | ||
2246 | PR c/88720 | |
2247 | PR c/88726 | |
2248 | * c-decl.c (pop_scope): Use TREE_PUBLIC and b->nested to determine | |
2249 | whether a function is nested, not DECL_EXTERNAL. Diagnose inline | |
2250 | functions declared but never defined only for external scope, not | |
2251 | for other scopes. | |
2252 | ||
d8fcab68 JJ |
2253 | 2019-01-07 Jakub Jelinek <jakub@redhat.com> |
2254 | ||
2255 | PR c++/85052 | |
2256 | * c-parser.c (c_parser_postfix_expression): Parse | |
2257 | __builtin_convertvector. | |
2258 | ||
a5544970 JJ |
2259 | 2019-01-01 Jakub Jelinek <jakub@redhat.com> |
2260 | ||
2261 | Update copyright years. | |
2262 | ||
da77eace L |
2263 | 2018-12-20 H.J. Lu <hongjiu.lu@intel.com> |
2264 | ||
2265 | PR c/51628 | |
2266 | * c-typeck.c (convert_for_assignment): Call | |
2267 | warn_for_address_or_pointer_of_packed_member. | |
2268 | ||
1edf8866 SB |
2269 | 2018-12-19 Segher Boessenkool <segher@kernel.crashing.org> |
2270 | ||
2271 | * c-parser.c (c_parser_asm_statement) <RID_CONST, RID_RESTRICT>: Give | |
2272 | a more specific error message (instead of just falling through). | |
2273 | ||
db4fd626 SB |
2274 | 2018-12-19 Segher Boessenkool <segher@kernel.crashing.org> |
2275 | ||
2276 | * c-parser.c (c_parser_asm_statement): Keep track of the location each | |
2277 | asm qualifier is first seen; use that to give nicer "duplicate asm | |
2278 | qualifier" messages. Delete 'quals" variable, instead pass the | |
2279 | "is_volatile_ flag to build_asm_stmt directly. | |
2280 | * c-tree.h (build_asm_stmt): Make the first arg bool instead of tree. | |
2281 | * c-typeck.c (build_asm_stmt): Ditto; adjust. | |
2282 | ||
9c9cfcbb SB |
2283 | 2018-12-19 Segher Boessenkool <segher@kernel.crashing.org> |
2284 | ||
2285 | * c-parser.c (c_parser_asm_statement): Rewrite the loop to work without | |
2286 | "done" boolean variable. | |
2287 | ||
a14feb3c DM |
2288 | 2018-12-19 David Malcolm <dmalcolm@redhat.com> |
2289 | ||
2290 | PR c++/87504 | |
2291 | * c-typeck.c (class maybe_range_label_for_tree_type_mismatch): | |
2292 | Move from here to gcc-rich-location.h and gcc-rich-location.c. | |
2293 | (build_binary_op): Use struct op_location_t and | |
2294 | class binary_op_rich_location. | |
2295 | ||
6d939173 JJ |
2296 | 2018-12-11 Jakub Jelinek <jakub@redhat.com> |
2297 | ||
2298 | PR sanitizer/88426 | |
2299 | * c-convert.c (convert): Call c_fully_fold before calling | |
2300 | ubsan_instrument_float_cast. | |
2301 | ||
b7055028 SB |
2302 | 2018-12-08 Segher Boessenkool <segher@kernel.crashing.org> |
2303 | ||
2304 | * c-parser (c_parser_asm_statement) [RID_INLINE]: Delete stray line | |
2305 | setting "quals". | |
2306 | ||
5b76e75f SB |
2307 | 2018-12-06 Segher Boessenkool <segher@kernel.crashing.org> |
2308 | ||
2309 | * c-parser.c (c_parser_asm_statement): Detect the inline keyword | |
2310 | after asm. Pass a flag for it to build_asm_expr. | |
2311 | * c-tree.h (build_asm_expr): Update declaration. | |
2312 | * c-typeck.c (build_asm_stmt): Add is_inline parameter. Use it to | |
2313 | set ASM_INLINE_P. | |
2314 | ||
30bd42b9 SB |
2315 | 2018-12-06 Segher Boessenkool <segher@kernel.crashing.org> |
2316 | ||
2317 | PR inline-asm/55681 | |
2318 | * c-parser.c (c_parser_asm_statement): Update grammar. Allow any | |
2319 | combination of volatile and goto, in any order, without repetitions. | |
2320 | ||
9df6c0e4 JB |
2321 | 2018-12-04 James Norris <jnorris@codesourcery.com> |
2322 | Cesar Philippidis <cesar@codesourcery.com> | |
2323 | Julian Brown <julian@codesourcery.com> | |
2324 | ||
2325 | * c-parser.c (c_parser_oacc_wait_list): Remove dead diagnostic | |
2326 | code. | |
2327 | ||
f44697b7 RB |
2328 | 2018-11-30 Richard Biener <rguenther@suse.de> |
2329 | ||
2330 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
2331 | _Literal (type) { ... } as empty aggregate or vector constructor. | |
2332 | ||
550dfbdc MS |
2333 | 2018-11-29 Martin Sebor <msebor@redhat.com> |
2334 | ||
2335 | PR c/88091 | |
2336 | * c-typeck.c (convert_argument): Add a parameter. Adjust indentation. | |
2337 | (convert_arguments): Add comments. Pass additional argument to | |
2338 | the function above. | |
2339 | ||
673670da MS |
2340 | 2018-11-29 Martin Sebor <msebor@redhat.com> |
2341 | ||
2342 | PR c/88172 | |
2343 | PR testsuite/88208 | |
2344 | * c-decl.c (declspec_add_alignas): Adjust call to check_user_alignment. | |
2345 | ||
db1d09b0 MS |
2346 | 2018-11-23 Martin Sebor <msebor@redhat.com> |
2347 | ||
2348 | PR testsuite/88098 | |
2349 | * c-typeck.c (convert_arguments): Call builtin_decl_explicit instead. | |
2350 | (maybe_warn_builtin_no_proto_arg): Handle short enum to int promotion. | |
2351 | ||
98f08eb8 MS |
2352 | 2018-11-20 Martin Sebor <msebor@redhat.com> |
2353 | ||
2354 | * c-parser.c (c_parser_has_attribute_expression): New function. | |
2355 | (c_parser_attribute): New function. | |
2356 | (c_parser_attributes): Move code into c_parser_attribute. | |
2357 | (c_parser_unary_expression): Handle RID_HAS_ATTRIBUTE_EXPRESSION. | |
2358 | ||
cd5da983 MS |
2359 | 2018-11-15 Martin Sebor <msebor@redhat.com> |
2360 | ||
2361 | PR c/83656 | |
2362 | * c-decl.c (header_for_builtin_fn): Declare. | |
2363 | (diagnose_mismatched_decls): Diagnose declarations of built-in | |
2364 | functions without a prototype. | |
2365 | * c-typeck.c (maybe_warn_builtin_no_proto_arg): New function. | |
2366 | (convert_argument): Same. | |
2367 | (convert_arguments): Factor code out into convert_argument. | |
2368 | Detect mismatches between built-in formal arguments in calls | |
2369 | to built-in without prototype. | |
2370 | (build_conditional_expr): Same. | |
2371 | (type_or_builtin_type): New function. | |
2372 | (convert_for_assignment): Add argument. Conditionally issue | |
2373 | warnings instead of errors for mismatches. | |
2374 | ||
620e594b DM |
2375 | 2018-11-13 David Malcolm <dmalcolm@redhat.com> |
2376 | ||
2377 | * c-decl.c: Replace "source_location" with "location_t". | |
2378 | * c-tree.h: Likewise. | |
2379 | * c-typeck.c: Likewise. | |
2380 | * gimple-parser.c: Likewise. | |
2381 | ||
3179ebae JJ |
2382 | 2018-11-09 Jakub Jelinek <jakub@redhat.com> |
2383 | ||
81a227c6 JJ |
2384 | * c-parser.c (c_parser_omp_clause_final): Use |
2385 | c_parser_expr_no_commas, convert_lvalue_to_rvalue, | |
2386 | c_objc_common_truthvalue_conversion, c_fully_fold and parentheses | |
2387 | parsing instead of c_parser_paren_condition. | |
2388 | (c_parser_omp_clause_if): Use c_parser_expr_no_commas, | |
2389 | convert_lvalue_to_rvalue, c_objc_common_truthvalue_conversion and | |
2390 | c_fully_fold instead of c_parser_condition. | |
2391 | (c_parser_omp_clause_num_threads, c_parser_omp_clause_num_tasks, | |
2392 | c_parser_omp_clause_grainsize, c_parser_omp_clause_priority, | |
2393 | c_parser_omp_clause_hint, c_parser_omp_clause_num_teams, | |
2394 | c_parser_omp_clause_thread_limit, c_parser_omp_clause_linear): Use | |
2395 | c_parser_expr_no_commas instead of c_parser_expression. | |
2396 | ||
98c91c56 JJ |
2397 | * c-parser.c (c_parser_omp_clause_reduction): Call sorry_at on |
2398 | reduction clause with inscan modifier. | |
2399 | ||
3179ebae JJ |
2400 | * c-parser.c (c_parser_omp_requires): Call sorry_at on requires |
2401 | clauses other than atomic_default_mem_order. | |
2402 | ||
28567c40 JJ |
2403 | 2018-11-08 Jakub Jelinek <jakub@redhat.com> |
2404 | ||
2405 | * c-parser.c: Include memmode.h. | |
2406 | (c_parser_omp_depobj, c_parser_omp_requires): New functions. | |
2407 | (c_parser_pragma): Handle PRAGMA_OMP_DEPOBJ and PRAGMA_OMP_REQUIRES. | |
2408 | (c_parser_omp_clause_name): Handle nontemporal, in_reduction and | |
2409 | task_reduction clauses. | |
2410 | (c_parser_omp_variable_list): Handle OMP_CLAUSE_{IN,TASK}_REDUCTION. | |
2411 | For OMP_CLAUSE_DEPEND, parse clause operands as either an array | |
2412 | section, or lvalue assignment expression. | |
2413 | (c_parser_omp_clause_if): Handle cancel and simd modifiers. | |
2414 | (c_parser_omp_clause_lastprivate): Parse optional | |
2415 | conditional: modifier. | |
2416 | (c_parser_omp_clause_hint): Require constant integer expression rather | |
2417 | than just integer expression. | |
2418 | (c_parser_omp_clause_defaultmap): Parse new kinds of defaultmap | |
2419 | clause. | |
2420 | (c_parser_omp_clause_reduction): Add IS_OMP and KIND arguments. | |
2421 | Parse reduction modifiers. Pass KIND to c_parser_omp_variable_list. | |
2422 | (c_parser_omp_clause_nontemporal, c_parser_omp_iterators): New | |
2423 | functions. | |
2424 | (c_parser_omp_clause_depend): Parse iterator modifier and handle | |
2425 | iterators. Parse mutexinoutset and depobj kinds. | |
2426 | (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_reduction | |
2427 | callers. | |
2428 | (c_parser_omp_all_clauses): Likewise. Handle | |
2429 | PRAGMA_OMP_CLAUSE_NONTEMPORAL and | |
2430 | PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION. | |
2431 | (c_parser_omp_atomic): Parse hint and memory order clauses. Handle | |
2432 | default memory order from requires directive if any. Adjust | |
2433 | c_finish_omp_atomic caller. | |
2434 | (c_parser_omp_critical): Allow comma in between (name) and hint clause. | |
2435 | (c_parser_omp_flush): Parse flush with memory-order-clause. | |
2436 | (c_parser_omp_for_loop): Allow NE_EXPR even in | |
2437 | OpenMP loops, adjust c_finish_omp_for caller. | |
2438 | (OMP_SIMD_CLAUSE_MASK): Add if and nontemporal clauses. | |
2439 | (c_parser_omp_master): Add p_name, mask and cclauses arguments. | |
2440 | Allow to be called while parsing combined parallel master. | |
2441 | Parse combined master taskloop{, simd}. | |
2442 | (c_parser_omp_parallel): Parse combined | |
2443 | parallel master{, taskloop{, simd}} constructs. | |
2444 | (OMP_TASK_CLAUSE_MASK): Add in_reduction clause. | |
2445 | (OMP_TASKGROUP_CLAUSE_MASK): Define. | |
2446 | (c_parser_omp_taskgroup): Add LOC argument. Parse taskgroup clauses. | |
2447 | (OMP_TASKWAIT_CLAUSE_MASK): Define. | |
2448 | (c_parser_omp_taskwait): Handle taskwait with depend clauses. | |
2449 | (c_parser_omp_teams): Force a BIND_EXPR with BLOCK | |
2450 | around teams body. Use SET_EXPR_LOCATION. | |
2451 | (c_parser_omp_target_data): Allow target data | |
2452 | with only use_device_ptr clauses. | |
2453 | (c_parser_omp_target): Use SET_EXPR_LOCATION. Set | |
2454 | OMP_REQUIRES_TARGET_USED bit in omp_requires_mask. | |
2455 | (c_parser_omp_requires): New function. | |
2456 | (c_finish_taskloop_clauses): New function. | |
2457 | (OMP_TASKLOOP_CLAUSE_MASK): Add reduction and in_reduction clauses. | |
2458 | (c_parser_omp_taskloop): Use c_finish_taskloop_clauses. Add forward | |
2459 | declaration. Disallow in_reduction clause when combined with parallel | |
2460 | master. | |
2461 | (c_parser_omp_construct): Adjust c_parser_omp_master and | |
2462 | c_parser_omp_taskgroup callers. | |
2463 | * c-typeck.c (c_finish_omp_cancel): Diagnose if clause with modifier | |
2464 | other than cancel. | |
2465 | (handle_omp_array_sections_1): Handle OMP_CLAUSE_{IN,TASK}_REDUCTION | |
2466 | like OMP_CLAUSE_REDUCTION. | |
2467 | (handle_omp_array_sections): Likewise. Call save_expr on array | |
2468 | reductions before calling build_index_type. Handle depend clauses | |
2469 | with iterators. | |
2470 | (struct c_find_omp_var_s): New type. | |
2471 | (c_find_omp_var_r, c_omp_finish_iterators): New functions. | |
2472 | (c_finish_omp_clauses): Don't diagnose nonmonotonic clause | |
2473 | with static, runtime or auto schedule kinds. Call save_expr for whole | |
2474 | array reduction sizes. Diagnose reductions with zero sized elements | |
2475 | or variable length structures. Diagnose nogroup clause used with | |
2476 | reduction clause(s). Handle depend clause with | |
2477 | OMP_CLAUSE_DEPEND_DEPOBJ. Diagnose bit-fields. Require | |
2478 | omp_depend_t type for OMP_CLAUSE_DEPEND_DEPOBJ kinds and | |
2479 | some different type for other kinds. Use build_unary_op with | |
2480 | ADDR_EXPR and build_indirect_ref instead of c_mark_addressable. | |
2481 | Handle depend clauses with iterators. Remove no longer needed special | |
2482 | case that predetermined const qualified vars may be specified in | |
2483 | firstprivate clause. Complain if const qualified vars are mentioned | |
2484 | in data-sharing clauses other than firstprivate or shared. Use | |
2485 | error_at with OMP_CLAUSE_LOCATION (c) as first argument instead of | |
2486 | error. Formatting fix. Handle OMP_CLAUSE_NONTEMPORAL and | |
2487 | OMP_CLAUSE_{IN,TASK}_REDUCTION. Allow any lvalue as | |
2488 | OMP_CLAUSE_DEPEND operand (besides array section), adjust diagnostics. | |
2489 | ||
7e2de6df DM |
2490 | 2018-10-29 David Malcolm <dmalcolm@redhat.com> |
2491 | ||
2492 | * c-decl.c (implicit_decl_warning): Update "is there a suggestion" | |
2493 | logic for change to name_hint::operator bool. | |
2494 | (undeclared_variable): Likewise. | |
2495 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. | |
2496 | (c_parser_parameter_declaration): Likewise. | |
2497 | ||
9f936c86 JM |
2498 | 2018-10-17 Joseph Myers <joseph@codesourcery.com> |
2499 | ||
2500 | * c-errors.c (pedwarn_c11): New function. | |
2501 | * c-parser.c (disable_extension_diagnostics): Save | |
2502 | warn_c11_c2x_compat and set it to 0. | |
2503 | (restore_extension_diagnostics): Restore warn_c11_c2x_compat. | |
2504 | (c_parser_static_assert_declaration_no_semi): Handle | |
2505 | _Static_assert without string constant. | |
2506 | * c-tree.h (pedwarn_c11): New prototype. | |
2507 | ||
033eb567 DM |
2508 | 2018-10-17 David Malcolm <dmalcolm@redhat.com> |
2509 | ||
2510 | * Make-lang.in (selftest-c): New. | |
2511 | (C_SELFTEST_FLAGS, C_SELFTEST_DEPS, s-selftest-c, selftest-c-gdb) | |
2512 | (selftest-gdb, selftest-c-valgrind, selftest-valgrind): Move here | |
2513 | from gcc/Makefile.in. | |
2514 | ||
0edf3afe RB |
2515 | 2018-10-02 Richard Biener <rguenther@suse.de> |
2516 | ||
2517 | * c-decl.c (warn_if_shadowing): Do not test DECL_FROM_INLINE. | |
2518 | ||
8313a764 JM |
2519 | 2018-09-26 Joseph Myers <joseph@codesourcery.com> |
2520 | ||
2521 | PR c/87390 | |
2522 | * c-typeck.c (build_binary_op): Use excess precision for | |
2523 | comparisons of integers and floating-point for C11 and later. | |
2524 | ||
ce6f0888 MJ |
2525 | 2018-09-26 Martin Jambor <mjambor@suse.cz> |
2526 | ||
2527 | PR c/87347 | |
2528 | * c-parser.c (warn_for_abs): Bail out if TYPE_ARG_TYPES is NULL. Fix | |
ab20d992 | 2529 | comment. |
ce6f0888 | 2530 | |
9c4a4b3c DM |
2531 | 2018-09-17 David Malcolm <dmalcolm@redhat.com> |
2532 | ||
2533 | * c-objc-common.c (range_label_for_type_mismatch::get_text): | |
2534 | Update for new param. | |
2535 | * c-typeck.c (maybe_range_label_for_tree_type_mismatch::get_text): | |
2536 | Likewise. | |
2537 | ||
80c6d1f4 MJ |
2538 | 2018-09-17 Martin Jambor <mjambor@suse.cz> |
2539 | ||
2540 | PR c/63886 | |
2541 | * c-parser.c: (warn_for_abs): New function. | |
2542 | (c_parser_postfix_expression_after_primary): Call it. | |
2543 | ||
4a426e36 BE |
2544 | 2018-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2545 | ||
2546 | * c-typeck.c (digest_init): Shorten overlength strings. | |
2547 | ||
6d900107 BE |
2548 | 2018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2549 | ||
2550 | * c-decl.c (finish_decl): Call complete_flexible_array_elts. | |
2551 | ||
b5764229 BE |
2552 | 2018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2553 | ||
2554 | * c-decl.c (finish_decl): Call braced_list_to_string here ... | |
2555 | * c-parser.c (c_parser_declaration_or_fndef): ... instead of here. | |
2556 | ||
22eea6b2 AM |
2557 | 2018-08-30 Alexander Monakov <amonakov@ispras.ru> |
2558 | ||
2559 | * gimple-parser.c (c_parser_gimple_binary_expression): Accept infix | |
2560 | "__MULT_HIGHPART" for MULT_HIGHPART_EXPR. | |
2561 | ||
85204e23 DM |
2562 | 2018-08-27 David Malcolm <dmalcolm@redhat.com> |
2563 | ||
2564 | PR 87091 | |
2565 | * c-decl.c (implicitly_declare): Update call to | |
2566 | maybe_add_include_fixit to suggest overriding the location, as it | |
2567 | is for a note. | |
2568 | * c-objc-common.c (c_tree_printer): Update for conversion of | |
2569 | show_caret_p to a tri-state. | |
2570 | ||
3d78e008 ML |
2571 | 2018-08-27 Martin Liska <mliska@suse.cz> |
2572 | ||
2573 | * c-decl.c (locate_old_decl): Use new function | |
92a285c1 ML |
2574 | fndecl_built_in_p and remove check for FUNCTION_DECL if |
2575 | possible. | |
3d78e008 ML |
2576 | (diagnose_mismatched_decls): Likewise. |
2577 | (merge_decls): Likewise. | |
2578 | (warn_if_shadowing): Likewise. | |
2579 | (pushdecl): Likewise. | |
2580 | (implicitly_declare): Likewise. | |
2581 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
2582 | * c-tree.h (C_DECL_ISNT_PROTOTYPE): Likewise. | |
2583 | * c-typeck.c (build_function_call_vec): Likewise. | |
2584 | (convert_arguments): Likewise. | |
2585 | ||
097f82ec DM |
2586 | 2018-08-20 David Malcolm <dmalcolm@redhat.com> |
2587 | ||
2588 | PR other/84889 | |
2589 | * c-decl.c (pushtag): Add auto_diagnostic_group instance. | |
2590 | (diagnose_mismatched_decls): Likewise, in various places. | |
2591 | (warn_if_shadowing): Likewise. | |
2592 | (implicit_decl_warning): Likewise. | |
2593 | (implicitly_declare): Likewise. | |
2594 | (undeclared_variable): Likewise. | |
2595 | (declare_label): Likewise. | |
2596 | (grokdeclarator): Likewise. | |
2597 | (start_function): Likewise. | |
2598 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. | |
2599 | (c_parser_parameter_declaration): Likewise. | |
2600 | (c_parser_binary_expression): Likewise. | |
2601 | * c-typeck.c (c_expr_sizeof_expr): Likewise. | |
2602 | (parser_build_binary_op): Likewise. | |
2603 | (build_unary_op): Likewise. | |
2604 | (error_init): Likewise. | |
2605 | (pedwarn_init): Likewise. | |
2606 | (warning_init): Likewise. | |
2607 | (convert_for_assignment): Likewise. | |
2608 | ||
96e6ae57 DM |
2609 | 2018-08-15 David Malcolm <dmalcolm@redhat.com> |
2610 | ||
2611 | * c-objc-common.c: Include "gcc-rich-location.h". | |
2612 | (c_tree_printer): Move implemenation of '%T' to... | |
2613 | (print_type): ...this new function. | |
2614 | (range_label_for_type_mismatch::get_text): New function. | |
2615 | * c-typeck.c (convert_for_assignment): Add type labels to the rhs | |
2616 | range for the various ic_argpass cases. | |
2617 | (class maybe_range_label_for_tree_type_mismatch): New class. | |
2618 | (build_binary_op): Use it when calling binary_op_error. | |
2619 | ||
0cd020ae | 2620 | 2018-08-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
ab20d992 | 2621 | |
0cd020ae PK |
2622 | * c-decl.c (start_decl): Do not warn if variables is named as main |
2623 | and is a local variable. | |
2624 | ||
72733314 IS |
2625 | 2018-08-15 Iain Sandoe <iain@sandoe.co.uk> |
2626 | ||
2627 | PR c/19315 | |
2628 | * c-decl.c (finish_decl): Don't add the 'extern' storage class to | |
2629 | objects of unknown size. | |
2630 | ||
23aa9f7c MS |
2631 | 2018-08-13 Martin Sebor <msebor@redhat.com> |
2632 | ||
2633 | PR tree-optimization/71625 | |
2634 | * c-parser.c (c_parser_declaration_or_fndef): Call | |
2635 | braced_list_to_string. | |
2636 | ||
e5e7e50d BH |
2637 | 2018-08-03 Bogdan Harjoc <harjoc@gmail.com> |
2638 | ||
2639 | PR c/86690 | |
2640 | * c-typeck.c (lookup_field): Do not use TYPE_LANG_SPECIFIC after | |
2641 | errors. | |
2642 | ||
8a45b051 MS |
2643 | 2018-08-01 Martin Sebor <msebor@redhat.com> |
2644 | ||
2645 | PR tree-optimization/86650 | |
2646 | * c-objc-common.c (c_tree_printer): Move usage of EXPR_LOCATION (t) | |
2647 | and TREE_BLOCK (t) from within percent_K_format to this callsite. | |
2648 | ||
5922dcb5 JJ |
2649 | 2018-08-01 Jakub Jelinek <jakub@redhat.com> |
2650 | ||
2651 | PR c/85704 | |
2652 | * c-typeck.c (init_field_decl_cmp): New function. | |
2653 | (output_pending_init_elements): Use it for field comparisons | |
2654 | instead of pure bit_position comparisons. | |
2655 | ||
9b452033 JJ |
2656 | 2018-07-12 Jakub Jelinek <jakub@redhat.com> |
2657 | ||
2658 | * c-decl.c (c_decl_attributes): Don't diagnose vars without mappable | |
2659 | type here, instead add "omp declare target implicit" attribute. | |
2660 | (finish_decl): Diagnose vars without mappable type here. | |
2661 | ||
ab20d992 JJ |
2662 | 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com> |
2663 | Thomas Schwinge <thomas@codesourcery.com> | |
829c6349 CLT |
2664 | Cesar Philippidis <cesar@codesourcery.com> |
2665 | ||
2666 | * c-parser.c (c_parser_omp_clause_name): Add support for finalize | |
2667 | and if_present. Make present_or_{copy,copyin,copyout,create} aliases | |
2668 | to their non-present_or_* counterparts. Make 'self' an alias to | |
2669 | PRAGMA_OACC_CLAUSE_HOST. | |
2670 | (c_parser_oacc_data_clause): Update GOMP mappings for | |
2671 | PRAGMA_OACC_CLAUSE_{COPY,COPYIN,COPYOUT,CREATE,DELETE}. Remove | |
2672 | PRAGMA_OACC_CLAUSE_{SELF,PRESENT_OR_*}. | |
2673 | (c_parser_oacc_all_clauses): Handle finalize and if_present clauses. | |
2674 | Remove support for present_or_* clauses. | |
2675 | (OACC_KERNELS_CLAUSE_MASK): Remove PRESENT_OR_* clauses. | |
2676 | (OACC_PARALLEL_CLAUSE_MASK): Likewise. | |
2677 | (OACC_DECLARE_CLAUSE_MASK): Likewise. | |
2678 | (OACC_DATA_CLAUSE_MASK): Likewise. | |
2679 | (OACC_ENTER_DATA_CLAUSE_MASK): Remove PRESENT_OR_* clauses. | |
2680 | (OACC_EXIT_DATA_CLAUSE_MASK): Add FINALIZE clause. | |
2681 | (OACC_UPDATE_CLAUSE_MASK): Remove SELF, add IF_PRESENT. | |
2682 | (c_parser_oacc_declare): Remove PRESENT_OR_* clauses. | |
2683 | * c-typeck.c (c_finish_omp_clauses): Handle IF_PRESENT and FINALIZE. | |
2684 | ||
e197e64e KV |
2685 | 2018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org> |
2686 | ||
2687 | * c-typeck.c (build_unary_op): Handle ABSU_EXPR; | |
2688 | * gimple-parser.c (c_parser_gimple_statement): Likewise. | |
2689 | (c_parser_gimple_unary_expression): Likewise. | |
2690 | ||
487f2f61 JJ |
2691 | 2018-06-15 Jakub Jelinek <jakub@redhat.com> |
2692 | ||
2693 | PR c/86093 | |
2694 | * c-typeck.c (pointer_diff): Cast both pointers to unqualified types | |
2695 | before doing POINTER_DIFF_EXPR. | |
2696 | ||
e4d44a37 MP |
2697 | 2018-06-07 Marek Polacek <polacek@redhat.com> |
2698 | ||
2699 | PR c/85318 | |
2700 | * c-decl.c (check_for_loop_decls): Add -Wc90-c99-compat warning about | |
2701 | for loop initial declarations. | |
2702 | ||
b67b9225 DP |
2703 | 2018-05-30 David Pagan <dave.pagan@oracle.com> |
2704 | ||
2705 | PR c/55976 | |
2706 | * c-decl.c (grokdeclarator): Update check for return type warnings. | |
2707 | (start_function): Likewise. | |
2708 | (finish_function): Likewise. | |
2709 | * c-typeck.c (c_finish_return): Update check for return type warnings. | |
2710 | Pass OPT_Wreturn_type to pedwarn when appropriate. | |
2711 | ||
c566cc9f RS |
2712 | 2018-05-18 Richard Sandiford <richard.sandiford@linaro.org> |
2713 | ||
2714 | * gimple-parser.c (c_parser_gimple_postfix_expression): Remove | |
2715 | __FMA_EXPR handlng. | |
2716 | ||
e4f81565 RS |
2717 | 2018-05-17 Richard Sandiford <richard.sandiford@linaro.org> |
2718 | ||
2719 | * gimple-parser.c: Include internal-fn.h. | |
2720 | (c_parser_gimple_statement): Treat a leading CPP_DOT as a call. | |
2721 | (c_parser_gimple_call_internal): New function. | |
2722 | (c_parser_gimple_postfix_expression): Use it to handle CPP_DOT. | |
2723 | Fix typos in comment. | |
2724 | ||
79e7b1fe JJ |
2725 | 2018-05-10 Jakub Jelinek <jakub@redhat.com> |
2726 | ||
2727 | PR c++/85662 | |
2728 | * c-fold.c (c_fully_fold_internal): Use fold_offsetof rather than | |
2729 | fold_offsetof_1, pass TREE_TYPE (expr) as TYPE to it and drop the | |
2730 | fold_convert_loc. | |
2731 | * c-typeck.c (build_unary_op): Use fold_offsetof rather than | |
2732 | fold_offsetof_1, pass argtype as TYPE to it and drop the | |
2733 | fold_convert_loc. | |
2734 | ||
f7584c81 DP |
2735 | 2018-05-02 David Pagan <dave.pagan@oracle.com> |
2736 | ||
2737 | PR c/30552 | |
2738 | * c-decl.c (old_style_parameter_scope): New function. | |
2739 | * c-parser.c (c_parser_postfix_expression): Check for statement | |
2740 | expressions in old-style function parameter list declarations. | |
2741 | * c-parser.h (old_style_parameter_scope): New extern declaration. | |
2742 | ||
b33a0cb3 JJ |
2743 | 2018-04-25 Jakub Jelinek <jakub@redhat.com> |
2744 | ||
2745 | PR sanitizer/84307 | |
2746 | * c-decl.c (build_compound_literal): Call pushdecl (decl) even when | |
2747 | it is not TREE_STATIC. | |
2748 | * c-typeck.c (c_mark_addressable) <case COMPOUND_LITERAL_EXPR>: Mark | |
2749 | not just the COMPOUND_LITERAL_EXPR node itself addressable, but also | |
2750 | its COMPOUND_LITERAL_EXPR_DECL. | |
2751 | ||
c5c5822a JM |
2752 | 2018-03-21 Joseph Myers <joseph@codesourcery.com> |
2753 | ||
2754 | * c-parser.c (c_parser_postfix_expression): For __builtin_tgmath | |
2755 | where all functions return the same _FloatN or _FloatNx type, | |
2756 | treat integer types as _Float64 instead of double. | |
2757 | ||
aa1c9429 JJ |
2758 | 2018-03-21 Jakub Jelinek <jakub@redhat.com> |
2759 | ||
2760 | PR c/84999 | |
2761 | * c-typeck.c (build_binary_op): If c_common_type_for_size fails when | |
2762 | building vector comparison, diagnose it and return error_mark_node. | |
2763 | ||
9bb45a95 JJ |
2764 | 2018-03-15 Jakub Jelinek <jakub@redhat.com> |
2765 | ||
2766 | PR c/84853 | |
2767 | * c-typeck.c (build_binary_op) <case RSHIFT_EXPR, case LSHIFT_EXPR>: | |
2768 | If code1 is INTEGER_TYPE, only allow code0 VECTOR_TYPE if it has | |
2769 | INTEGER_TYPE element type. | |
2770 | ||
ada6bad9 DP |
2771 | 2018-03-13 David Pagan <dave.pagan@oracle.com> |
2772 | ||
2773 | PR c/46921 | |
2774 | * c-typeck.c (output_init_element): Ensure field initializer | |
2775 | expression is always evaluated if there are side effects. | |
2776 | ||
849bbdb9 JJ |
2777 | 2018-03-06 Jakub Jelinek <jakub@redhat.com> |
2778 | ||
2779 | PR c/84721 | |
2780 | * c-parser.c (add_debug_begin_stmt): Don't add DEBUG_BEGIN_STMT if | |
2781 | !building_stmt_list_p (). | |
2782 | ||
d74641bd RS |
2783 | 2018-02-13 Richard Sandiford <richard.sandiford@linaro.org> |
2784 | ||
2785 | PR c/84305 | |
2786 | * c-decl.c (grokdeclarator): Create an anonymous TYPE_DECL | |
2787 | in PARM and TYPENAME contexts too, but attach it to a BIND_EXPR | |
2788 | and include the BIND_EXPR in the list of things that need to be | |
2789 | pre-evaluated. | |
2790 | ||
0444aa9c NS |
2791 | 2018-02-09 Nathan Sidwell <nathan@acm.org> |
2792 | ||
2793 | PR c/84293 | |
2794 | * c-typeck.c (build_indirect_ref, build_c_cast): Pass expr location | |
2795 | to strict_aliasing_warning. | |
2796 | ||
7c30b12a PC |
2797 | 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> |
2798 | ||
2799 | * c-typeck.c (really_start_incremental_init, push_init_level, | |
2800 | set_nonincremental_init, output_init_element, process_init_element): | |
2801 | Use DECL_UNNAMED_BIT_FIELD. | |
2802 | ||
2be4dfcb MP |
2803 | 2018-01-31 Marek Polacek <polacek@redhat.com> |
2804 | ||
2805 | PR c/81779 | |
2806 | * c-parser.c (c_parser_compound_statement_nostart): Call | |
2807 | expansion_point_location_if_in_system_header. | |
2808 | ||
bb9869d5 DM |
2809 | 2018-01-17 David Malcolm <dmalcolm@redhat.com> |
2810 | ||
2811 | PR c++/83814 | |
2812 | * c-fold.c (fold_for_warn): Move from c-common.c, reducing to just | |
2813 | the C part. | |
2814 | ||
b4923738 JJ |
2815 | 2018-01-13 Jakub Jelinek <jakub@redhat.com> |
2816 | ||
2817 | PR c/83801 | |
2818 | * c-tree.h (decl_constant_value_1): Add a bool argument. | |
2819 | * c-typeck.c (decl_constant_value_1): Add IN_INIT argument, allow | |
2820 | returning a CONSTRUCTOR if it is true. Use error_operand_p. | |
2821 | (decl_constant_value): Adjust caller. | |
2822 | * c-fold.c (c_fully_fold_internal): If in_init, pass true to | |
2823 | decl_constant_value_1 as IN_INIT. Otherwise, punt if | |
2824 | decl_constant_value returns initializer that has BLKmode or | |
2825 | array type. | |
2826 | (c_fully_fold_internal) <case COMPONENT_REF>: Fold if !lval. | |
2827 | ||
928686b1 RS |
2828 | 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> |
2829 | Alan Hayward <alan.hayward@arm.com> | |
2830 | David Sherwood <david.sherwood@arm.com> | |
2831 | ||
2832 | * c-typeck.c (comptypes_internal, build_binary_op): Handle polynomial | |
2833 | TYPE_VECTOR_SUBPARTS. | |
2834 | ||
85ec4feb JJ |
2835 | 2018-01-03 Jakub Jelinek <jakub@redhat.com> |
2836 | ||
2837 | Update copyright years. | |
2838 | ||
913884f7 JJ |
2839 | 2018-01-01 Jakub Jelinek <jakub@redhat.com> |
2840 | ||
2841 | PR c/83595 | |
2842 | * c-parser.c (c_parser_braced_init, c_parser_initelt, | |
2843 | c_parser_conditional_expression, c_parser_cast_expression, | |
2844 | c_parser_sizeof_expression, c_parser_alignof_expression, | |
2845 | c_parser_postfix_expression, c_parser_omp_declare_reduction, | |
2846 | c_parser_transaction_expression): Use set_error () method instead | |
2847 | of setting value member to error_mark_node. | |
2848 | ||
c6cfa2bf MM |
2849 | 2017-12-28 Michael Meissner <meissner@linux.vnet.ibm.com> |
2850 | ||
2851 | * c-decl.c (header_for_builtin_fn): Add integer rounding _Float<N> | |
2852 | and _Float<N>X built-in functions. | |
2853 | ||
11d29d63 JJ |
2854 | 2017-12-22 Jakub Jelinek <jakub@redhat.com> |
2855 | ||
14ec014e JJ |
2856 | PR debug/83550 |
2857 | * c-decl.c (finish_struct): Set DECL_SOURCE_LOCATION on | |
2858 | TYPE_STUB_DECL and call rest_of_type_compilation before processing | |
2859 | incomplete vars rather than after it. | |
2860 | ||
11d29d63 JJ |
2861 | PR debug/83547 |
2862 | * c-typeck.c (c_finish_stmt_expr): Ignore !TREE_SIDE_EFFECTS as | |
2863 | indicator of ({ }), instead skip all trailing DEBUG_BEGIN_STMTs first, | |
2864 | and consider empty ones if there are no other stmts. For | |
2865 | -Wunused-value walk all statements before the one only followed by | |
2866 | DEBUG_BEGIN_STMTs. | |
2867 | ||
170a8bd6 | 2868 | 2017-12-22 Mike Stump <mikestump@comcast.net> |
92a285c1 | 2869 | Eric Botcazou <ebotcazou@adacore.com> |
170a8bd6 EB |
2870 | |
2871 | * c-parser.c (c_parser_while_statement): Add unroll parameter and | |
2872 | build ANNOTATE_EXPR if present. Add 3rd operand to ANNOTATE_EXPR. | |
2873 | (c_parser_do_statement): Likewise. | |
2874 | (c_parser_for_statement): Likewise. | |
2875 | (c_parser_statement_after_labels): Adjust calls to above. | |
2876 | (c_parse_pragma_ivdep): New static function. | |
2877 | (c_parser_pragma_unroll): Likewise. | |
2878 | (c_parser_pragma) <PRAGMA_IVDEP>: Add support for pragma Unroll. | |
2879 | <PRAGMA_UNROLL>: New case. | |
2880 | ||
01512446 JJ |
2881 | 2017-12-19 Jakub Jelinek <jakub@redhat.com> |
2882 | ||
2883 | * c-typeck.c (comptypes_internal, function_types_compatible_p, | |
2884 | perform_integral_promotions, digest_init): Replace Yoda conditions | |
2885 | with typical order conditions. | |
2886 | * c-decl.c (check_bitfield_type_and_width): Likewise. | |
2887 | ||
c65e18d3 BE |
2888 | 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de> |
2889 | ||
2890 | * c-typeck.c (c_safe_arg_type_equiv_p, | |
2891 | c_safe_function_type_cast_p): New function. | |
2892 | (build_c_cast): Implement -Wcast-function-type. | |
2893 | ||
b7280579 RB |
2894 | 2017-12-14 Richard Biener <rguenther@suse.de> |
2895 | ||
2896 | PR c/83415 | |
2897 | * c-fold.c (c_fully_fold_internal): Treat VIEW_CONVERT_EXPR | |
2898 | like REALPART_EXPR for the behavior of whether its operand | |
2899 | is an lvalue. | |
2900 | ||
49e6a6c0 MP |
2901 | 2017-12-12 Marek Polacek <polacek@redhat.com> |
2902 | ||
2903 | PR c/82679 | |
2904 | * c-decl.c (grokdeclarator): Check declspecs insted of atomicp. | |
2905 | ||
ab20d992 | 2906 | 2017-12-12 Alexandre Oliva <aoliva@redhat.com> |
96a95ac1 AO |
2907 | |
2908 | * c-objc-common.h (LANG_HOOKS_EMITS_BEGIN_STMT): Redefine as true. | |
2909 | * c-parser.c (add_debug_begin_stmt): New. | |
2910 | (c_parser_declaration_or_fndef): Call it. | |
2911 | (c_parser_compound_statement_nostart): Likewise. | |
2912 | (c_parser_statement_after_labels): Likewise. | |
2913 | * c-typeck (c_finish_stmt_expr): Skip begin stmts markers. | |
2914 | ||
4b2b493f JM |
2915 | 2017-12-07 Joseph Myers <joseph@codesourcery.com> |
2916 | ||
2917 | * c-decl.c (build_compound_literal): Add parameter alignas_align | |
2918 | and set alignment of decl if nonzero. | |
2919 | * c-parser.c (c_keyword_starts_typename): Allow RID_ALIGNAS. | |
2920 | (c_parser_declspecs): Allow RID_ALIGNAS to follow a type, like a | |
2921 | qualifier. | |
2922 | (c_parser_struct_declaration): Update syntax comment. | |
2923 | (c_parser_type_name): Add alignas_ok argument and pass it to | |
2924 | c_parser_declspecs. | |
2925 | (c_parser_cast_expression): Pass true to c_parser_type_name and | |
2926 | give error if a cast used an _Alignas specifier. | |
2927 | (c_parser_sizeof_expression): Pass true to c_parser_type_name and | |
2928 | give error if sizeof (type-name) used an _Alignas specifier. | |
2929 | (c_parser_alignof_expression): Pass true to c_parser_type_name and | |
2930 | give error if _Alignof (type-name) used an _Alignas specifier. | |
2931 | (c_parser_postfix_expression_after_paren_type): Check specified | |
2932 | alignment for a compound literal and pass it to | |
2933 | build_compound_literal. | |
2934 | * c-parser.h (c_parser_type_name): Update prototype. | |
2935 | * c-tree.h (build_compound_literal): Update prototype. | |
2936 | ||
5d9ae53d MS |
2937 | 2017-12-07 Martin Sebor <msebor@redhat.com> |
2938 | ||
2939 | PR c/81544 | |
2940 | * c-decl.c (c_decl_attributes): Look up existing declaration and | |
2941 | pass it to decl_attributes. | |
2942 | ||
c79144f8 DM |
2943 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
2944 | ||
2945 | PR c/83236 | |
2946 | * c-decl.c (lookup_name_fuzzy): Don't suggest names that are | |
2947 | reserved for use by the implementation. | |
2948 | ||
613bc14f DM |
2949 | 2017-12-06 David Malcolm <dmalcolm@redhat.com> |
2950 | ||
2951 | * c-decl.c: Include "c-family/c-spellcheck.h". | |
2952 | ||
05abad4c ML |
2953 | 2017-12-05 Martin Liska <mliska@suse.cz> |
2954 | Jakub Jelinek <jakub@redhat.com> | |
2955 | ||
2956 | * c-typeck.c (pointer_diff): Add new argument and instrument | |
2957 | pointer subtraction. | |
2958 | (build_binary_op): Similar for pointer comparison. | |
2959 | ||
cc6534d4 JJ |
2960 | 2017-12-01 Jakub Jelinek <jakub@redhat.com> |
2961 | ||
65791f42 JJ |
2962 | PR c/79153 |
2963 | * c-parser.c: Include tree-iterator.h. | |
2964 | (c_parser_switch_statement): Emit LABEL_EXPR for the break label | |
2965 | into SWITCH_BODY instead of after it and set SWITCH_BREAK_LABEL_P | |
2966 | on it. | |
2967 | ||
cc6534d4 JJ |
2968 | PR c/83222 |
2969 | * c-tree.h (decl_constant_value_1): Declare. | |
2970 | * c-typeck.c (decl_constant_value_1): New function. | |
2971 | (decl_constant_value): Use it. | |
2972 | * c-fold.c (c_fully_fold_internal): If in_init, use | |
2973 | decl_constant_value_1 instead of decl_constant_value. | |
2974 | ||
5de73c05 JJ |
2975 | 2017-11-30 Jakub Jelinek <jakub@redhat.com> |
2976 | ||
2977 | * c-parser.c (c_parser_postfix_expression): Use ; instead of ;;. | |
2978 | ||
058f0b9e JJ |
2979 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
2980 | ||
2981 | PR sanitizer/81275 | |
2982 | * c-typeck.c (c_finish_case): Set SWITCH_ALL_CASES_P if | |
2983 | c_switch_covers_all_cases_p returns true. | |
2984 | ||
5e9d6aa4 | 2985 | 2017-11-28 Julia Koval <julia.koval@intel.com> |
92a285c1 | 2986 | Sebastian Peryt <sebastian.peryt@intel.com> |
5e9d6aa4 JK |
2987 | |
2988 | * Make-lang.in (c/c-array-notation.o): Remove. | |
2989 | * c-array-notation.c: Delete. | |
2990 | * c-decl.c: Remove cilkplus condition. | |
2991 | * c-parser.c (c_parser_cilk_simd, c_parser_cilk_for, | |
2992 | c_parser_cilk_verify_simd, c_parser_array_notation, | |
2993 | c_parser_cilk_clause_vectorlength, c_parser_cilk_grainsize, | |
2994 | c_parser_cilk_simd_fn_vector_attrs, | |
2995 | c_finish_cilk_simd_fn_tokens): Delete. | |
2996 | (c_parser_declaration_or_fndef): Remove cilkplus condition. | |
2997 | (c_parser_direct_declarator_inner): Ditto. | |
2998 | (CILK_SIMD_FN_CLAUSE_MASK): Delete. | |
2999 | (c_parser_attributes, c_parser_compound_statement, | |
3000 | c_parser_statement_after_labels, c_parser_if_statement, | |
3001 | c_parser_switch_statement, c_parser_while_statement, | |
3002 | c_parser_do_statement, c_parser_for_statement, | |
3003 | c_parser_unary_expression, c_parser_postfix_expression, | |
3004 | c_parser_postfix_expression_after_primary, | |
3005 | c_parser_pragma, c_parser_omp_clause_name, c_parser_omp_all_clauses, | |
3006 | c_parser_omp_for_loop, c_finish_omp_declare_simd): Remove cilkplus | |
3007 | support. | |
3008 | * c-typeck.c (build_array_ref, build_function_call_vec, | |
3009 | convert_arguments, | |
3010 | lvalue_p, build_compound_expr, c_finish_return, c_finish_if_stmt, | |
3011 | c_finish_loop, build_binary_op): Remove cilkplus support. | |
3012 | ||
9e851845 JJ |
3013 | 2017-11-28 Jakub Jelinek <jakub@redhat.com> |
3014 | ||
3015 | * c-typeck.c (c_start_case): Build SWITCH_EXPR using build2 instead | |
3016 | of build3. | |
3017 | ||
ab20d992 | 3018 | 2017-11-14 Boris Kolpackov <boris@codesynthesis.com> |
8c7dbea9 BK |
3019 | |
3020 | * Make-lang.in (c.install-plugin): Install backend import library. | |
3021 | ||
41521dee JJ |
3022 | 2017-11-23 Jakub Jelinek <jakub@redhat.com> |
3023 | ||
3024 | * c-parser.c (c_parser_omp_declare_simd): Reject declare simd in | |
3025 | pragma_stmt context. | |
3026 | ||
ac9effed EB |
3027 | 2017-11-23 Mike Stump <mikestump@comcast.net> |
3028 | Eric Botcazou <ebotcazou@adacore.com> | |
3029 | ||
3030 | * c-parser.c (c_parser_while_statement): Pass 3rd operand to | |
3031 | ANNOTATE_EXPR. | |
3032 | (c_parser_do_statement): Likewise. | |
3033 | (c_parser_for_statement): Likewise. | |
3034 | ||
ce95abc4 DM |
3035 | 2017-11-22 David Malcolm <dmalcolm@redhat.com> |
3036 | ||
3037 | PR c++/62170 | |
3038 | * c-objc-common.c (c_tree_printer): Convert penultimate param from | |
3039 | bool to bool *. Within '%T' handling, if showing an "aka", use | |
3040 | "quoted" param to add appropriate quoting. | |
3041 | ||
974aedcc MP |
3042 | 2017-11-22 Marek Polacek <polacek@redhat.com> |
3043 | ||
3044 | PR c++/60336 | |
3045 | PR middle-end/67239 | |
3046 | PR target/68355 | |
3047 | * c-decl.c (grokdeclarator): Set DECL_PADDING_P on unnamed bit-fields. | |
3048 | ||
d4300cc6 DM |
3049 | 2017-11-21 David Malcolm <dmalcolm@redhat.com> |
3050 | ||
3051 | PR c/83056 | |
3052 | * c-decl.c (lookup_name_fuzzy): Don't suggest names that came from | |
3053 | earlier failed lookups. | |
3054 | ||
1af4ebf5 MG |
3055 | 2017-11-21 Marc Glisse <marc.glisse@inria.fr> |
3056 | ||
3057 | * c-fold.c (c_fully_fold_internal): Handle POINTER_DIFF_EXPR. | |
3058 | * c-typeck.c (pointer_diff): Use POINTER_DIFF_EXPR. | |
3059 | ||
26edace6 DM |
3060 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
3061 | ||
3062 | PR c/81404 | |
3063 | * c-decl.c: Include "c-family/known-headers.h". | |
3064 | (get_c_name_hint): Rename to get_stdlib_header_for_name and move | |
3065 | to known-headers.cc. | |
3066 | (class suggest_missing_header): Move to known-header.h. | |
3067 | (lookup_name_fuzzy): Call get_c_stdlib_header_for_name rather | |
3068 | than get_c_name_hint. | |
3069 | ||
b1212255 DM |
3070 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
3071 | ||
3072 | * c-decl.c (get_c_name_hint): New function. | |
3073 | (class suggest_missing_header): New class. | |
3074 | (lookup_name_fuzzy): Call get_c_name_hint and use it to | |
3075 | suggest missing headers to the user. | |
3076 | ||
6c7a259b DM |
3077 | 2017-11-20 David Malcolm <dmalcolm@redhat.com> |
3078 | ||
3079 | * c-decl.c: Define INCLUDE_UNIQUE_PTR before including system.h. | |
3080 | Include "c-family/name-hint.h" | |
3081 | (implicit_decl_warning): Convert "hint" from | |
3082 | const char * to name_hint. Pass location to | |
3083 | lookup_name_fuzzy. Suppress any deferred diagnostic if the | |
3084 | warning was not printed. | |
3085 | (undeclared_variable): Likewise for "guessed_id". | |
3086 | (lookup_name_fuzzy): Convert return type from const char * | |
3087 | to name_hint. Add location_t param. | |
3088 | * c-parser.c: Define INCLUDE_UNIQUE_PTR before including system.h. | |
3089 | Include "c-family/name-hint.h" | |
3090 | (c_parser_declaration_or_fndef): Convert "hint" from | |
3091 | const char * to name_hint. Pass location to lookup_name_fuzzy. | |
3092 | (c_parser_parameter_declaration): Likewise. | |
3093 | ||
f9c59f7e JJ |
3094 | 2017-11-19 Jakub Jelinek <jakub@redhat.com> |
3095 | ||
3096 | PR c/66618 | |
3097 | PR c/69960 | |
3098 | * c-parser.c (c_parser_omp_atomic): Pass true as LVAL to c_fully_fold | |
3099 | where needed. | |
3100 | * c-typeck.c (build_unary_op, build_modify_expr, build_asm_expr, | |
3101 | handle_omp_array_sections): Likewise. | |
3102 | (digest_init): Don't call decl_constant_value_for_optimization. | |
3103 | * c-tree.h (decl_constant_value_for_optimization): Removed. | |
3104 | * c-fold.c (c_fold_array_ref): New function. | |
3105 | (c_fully_fold_internal): Add LVAL argument, propagate it through | |
3106 | recursive calls. For VAR_P call decl_constant_value and | |
3107 | unshare if not LVAL and either optimizing or IN_INIT. Remove | |
3108 | decl_constant_value_for_optimization calls. If IN_INIT and not LVAL, | |
3109 | fold ARRAY_REF with STRING_CST and INTEGER_CST operands. | |
3110 | (c_fully_fold): Add LVAL argument, pass it through to | |
3111 | c_fully_fold_internal. | |
3112 | (decl_constant_value_for_optimization): Removed. | |
3113 | ||
3ca0dc60 JM |
3114 | 2017-11-15 Joseph Myers <joseph@codesourcery.com> |
3115 | ||
3116 | PR c/81156 | |
3117 | * c-parser.c (check_tgmath_function): New function. | |
3118 | (enum tgmath_parm_kind): New enum. | |
3119 | (c_parser_postfix_expression): Handle __builtin_tgmath. | |
3120 | ||
64a5912c DM |
3121 | 2017-10-31 David Malcolm <dmalcolm@redhat.com> |
3122 | ||
3123 | * c-decl.c (implicit_decl_warning): Update for renaming of | |
3124 | pedwarn_at_rich_loc and warning_at_rich_loc. | |
3125 | (implicitly_declare): Likewise for renaming of inform_at_rich_loc. | |
3126 | (undeclared_variable): Likewise for renaming of error_at_rich_loc. | |
3127 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. | |
3128 | (c_parser_struct_or_union_specifier): Likewise for renaming of | |
3129 | pedwarn_at_rich_loc. | |
3130 | (c_parser_parameter_declaration): Likewise for renaming of | |
3131 | error_at_rich_loc. | |
3132 | * c-typeck.c (build_component_ref): Likewise. | |
3133 | (build_unary_op): Likewise for renaming of inform_at_rich_loc. | |
3134 | (pop_init_level): Likewise for renaming of warning_at_rich_loc. | |
3135 | (set_init_label): Likewise for renaming of error_at_rich_loc. | |
3136 | ||
c1136864 RB |
3137 | 2017-10-30 Richard Biener <rguenther@suse.de> |
3138 | ||
3139 | * gimple-parser.c (c_parser_gimple_statement): Parse conditional | |
3140 | stmts. | |
3141 | ||
ee5fd23a MM |
3142 | 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> |
3143 | ||
3144 | * c-decl.c (header_for_builtin_fn): Add support for copysign, fma, | |
3145 | fmax, fmin, and sqrt _Float<N> and _Float<N>X variants. | |
3146 | ||
1a59ccf2 DM |
3147 | 2017-10-25 David Malcolm <dmalcolm@redhat.com> |
3148 | ||
3149 | PR c/7356 | |
3150 | * c-parser.c (c_parser_declaration_or_fndef): Detect missing | |
3151 | semicolons. | |
3152 | ||
bc1a75dd JJ |
3153 | 2017-10-25 Jakub Jelinek <jakub@redhat.com> |
3154 | ||
3155 | PR libstdc++/81706 | |
3156 | * c-decl.c (merge_decls): Copy "omp declare simd" attributes from | |
3157 | newdecl to corresponding __builtin_ if any. | |
3158 | ||
ff1ff960 PC |
3159 | 2017-10-24 Paolo Carlini <paolo.carlini@oracle.com> |
3160 | ||
3161 | PR c++/82466 | |
3162 | * c-decl.c (diagnose_mismatched_decls): Use | |
3163 | OPT_Wbuiltin_declaration_mismatch. | |
3164 | ||
62e1c678 DM |
3165 | 2017-10-12 David Malcolm <dmalcolm@redhat.com> |
3166 | ||
3167 | * c-parser.c (c_parser_require): Add "type_is_unique" param and | |
3168 | use it to guard calls to maybe_suggest_missing_token_insertion. | |
3169 | (c_parser_parms_list_declarator): Override default value of new | |
3170 | "type_is_unique" param to c_parser_require. | |
3171 | (c_parser_asm_statement): Likewise. | |
3172 | * c-parser.h (c_parser_require): Add "type_is_unique" param, | |
3173 | defaulting to true. | |
3174 | ||
a92f6726 NS |
3175 | 2017-10-11 Nathan Sidwell <nathan@acm.org> |
3176 | ||
3177 | * c-decl.c (grokdeclarator): Check HAS_DECL_ASSEMBLER_NAME_P too. | |
3178 | ||
8e6cdc90 RS |
3179 | 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org> |
3180 | ||
3181 | * c-parser.c (c_parser_cilk_clause_vectorlength): Use wi::to_wide when | |
3182 | operating on trees as wide_ints. | |
3183 | * c-typeck.c (build_c_cast, c_finish_omp_clauses): Likewise. | |
3184 | (c_tree_equal): Likewise. | |
3185 | ||
8139a48e DM |
3186 | 2017-10-04 David Malcolm <dmalcolm@redhat.com> |
3187 | ||
3188 | * c-decl.c (push_parm_decl): Store c_parm's location into the | |
3189 | PARAM_DECL. | |
3190 | (build_c_parm): Add "loc" param and store it within the c_parm. | |
3191 | * c-parser.c (struct c_parser): Add "last_token_location" field. | |
3192 | (c_parser_consume_token): Store location of the token into the | |
3193 | new field. | |
3194 | (c_parser_declaration_or_fndef): Store params into DECL_ARGUMENTS | |
3195 | when handling a FUNCTION_DECL, if it doesn't already have them. | |
3196 | (c_parser_parameter_declaration): Generate a location for the | |
3197 | parameter, and pass it to the call to build_c_parm. | |
3198 | * c-tree.h (struct c_parm): Add field "loc". | |
3199 | (build_c_parm): Add location_t param. | |
3200 | * c-typeck.c (get_fndecl_argument_location): New function. | |
3201 | (inform_for_arg): New function. | |
3202 | (convert_for_assignment): Use inform_for_arg when dealing with | |
3203 | ic_argpass. | |
3204 | ||
2a389958 JJ |
3205 | 2017-09-29 Jakub Jelinek <jakub@redhat.com> |
3206 | ||
7d386d45 JJ |
3207 | * c-decl.c (grokfield): Use SET_DECL_C_BIT_FIELD here if |
3208 | width is non-NULL. | |
3209 | (finish_struct): Test DECL_C_BIT_FIELD instead of DECL_INITIAL, | |
3210 | don't SET_DECL_C_BIT_FIELD here. | |
3211 | ||
2a389958 JJ |
3212 | PR c/82340 |
3213 | * c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl | |
3214 | instead of trying to set just TREE_READONLY manually. | |
3215 | ||
ebc6a85e TV |
3216 | 2017-09-16 Tom de Vries <tom@codesourcery.com> |
3217 | ||
3218 | PR c/81875 | |
3219 | * c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not | |
3220 | cond itself. | |
3221 | ||
bb75facd JM |
3222 | 2017-09-15 Joseph Myers <joseph@codesourcery.com> |
3223 | ||
3224 | PR c/82071 | |
3225 | * c-typeck.c (ep_convert_and_check): Just call convert_and_check | |
3226 | for C11. | |
3227 | (build_conditional_expr): For C11, generate result with excess | |
3228 | precision when one argument is an integer and the other is of a | |
3229 | type using excess precision. | |
3230 | ||
1d933576 BE |
3231 | 2017-09-15 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3232 | ||
3233 | * c-typeck.c (build_c_cast): Implement -Wcast-align=strict. | |
3234 | ||
267bbb6f MP |
3235 | 2017-09-13 Marek Polacek <polacek@redhat.com> |
3236 | ||
3237 | PR c/82167 | |
3238 | * c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather | |
3239 | than expr.original_type. | |
3240 | ||
6836632e NS |
3241 | 2017-09-12 Nathan Sidwell <nathan@acm.org> |
3242 | ||
3243 | * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp, | |
3244 | resort_sorted_fields): Moved from c-family/c-common.c. | |
3245 | * c-lang.h (struct sorted_fields_type): Moved from c-family/c-common.h. | |
3246 | ||
e035be33 JM |
3247 | 2017-09-01 Joseph Myers <joseph@codesourcery.com> |
3248 | ||
3249 | PR c/82071 | |
3250 | * c-typeck.c (build_atomic_assign): Handle argument with excess | |
3251 | precision. Ensure any EXCESS_PRECISION_EXPR is present in | |
3252 | argument passed to build_binary_op and convert_for_assignment but | |
3253 | not for call to c_fully_fold. | |
3254 | (build_modify_expr): Do not remove EXCESS_PRECISION_EXPR early. | |
3255 | Ensure build_binary_op is called with argument with original | |
3256 | semantic type. Avoid calling c_fully_fold with an | |
3257 | EXCESS_PRECISION_EXPR from build_binary_op. | |
3258 | ||
d2e05fcb JJ |
3259 | 2017-09-01 Jakub Jelinek <jakub@redhat.com> |
3260 | ||
3261 | PR c/81887 | |
3262 | * c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd. | |
3263 | ||
b397965c RS |
3264 | 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
3265 | Alan Hayward <alan.hayward@arm.com> | |
3266 | David Sherwood <david.sherwood@arm.com> | |
3267 | ||
3268 | * c-typeck.c (build_binary_op): Use SCALAR_TYPE_MODE. | |
3269 | (c_common_type): Likewise. Use as_a <scalar_mode> when setting | |
3270 | m1 and m2 to the signed equivalent of a fixed-point | |
3271 | SCALAR_TYPE_MODE. | |
3272 | ||
14e18d71 DM |
3273 | 2017-08-24 David Malcolm <dmalcolm@redhat.com> |
3274 | ||
3275 | * c-tree.h (c_expr::get_location) Use EXPR_HAS_LOCATION rather | |
3276 | than CAN_HAVE_LOCATION_P when determining whether to use the | |
3277 | location_t value within "value". | |
3278 | ||
7f204c0f DM |
3279 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
3280 | ||
3281 | * c-parser.c (c_parser_expr_list): Use c_expr::get_location () | |
3282 | rather than peeking the location of the first token. | |
3283 | * c-tree.h (c_expr::get_location): New method. | |
3284 | ||
2f687306 DM |
3285 | 2017-08-21 David Malcolm <dmalcolm@redhat.com> |
3286 | ||
3287 | * c-typeck.c (build_function_call_vec): Pass arg_loc to call | |
3288 | to check_function_arguments. | |
3289 | ||
3e7b80d7 MP |
3290 | 2017-08-18 Marek Polacek <polacek@redhat.com> |
3291 | ||
3292 | * c-parser.c (c_parser_postfix_expression): Remove unused code. Update | |
3293 | commentary. | |
3294 | ||
00aa1fa2 L |
3295 | 2017-08-18 H.J. Lu <hongjiu.lu@intel.com> |
3296 | ||
3297 | PR c/53037 | |
3298 | * c-decl.c (merge_decls): Also merge DECL_WARN_IF_NOT_ALIGN. | |
3299 | (check_bitfield_type_and_width): Don't allow bit-field with | |
3300 | warn_if_not_aligned type. | |
3301 | ||
da67acb9 MS |
3302 | 2017-08-14 Martin Sebor <msebor@redhat.com> |
3303 | ||
3304 | PR c/81117 | |
3305 | * c-objc-common.c (c_objc_common_init): Handle 'G'. | |
3306 | ||
bb85aa74 MP |
3307 | 2017-08-11 Marek Polacek <polacek@redhat.com> |
3308 | ||
3309 | PR c/81795 | |
3310 | * c-decl.c (pushtag): Only print inform if the warning was printed. | |
3311 | (grokdeclarator): Likewise. | |
3312 | ||
32129a17 DM |
3313 | 2017-08-10 David Malcolm <dmalcolm@redhat.com> |
3314 | ||
3315 | * c-parser.c (c_parser_error): Rename to... | |
3316 | (c_parser_error_richloc): ...this, making static, and adding | |
3317 | "richloc" parameter, passing it to the c_parse_error call, | |
3318 | rather than calling c_parser_set_source_position_from_token. | |
3319 | (c_parser_error): Reintroduce, reimplementing in terms of the | |
3320 | above, converting return type from void to bool. | |
3321 | (class token_pair): New class. | |
3322 | (struct matching_paren_traits): New struct. | |
3323 | (matching_parens): New typedef. | |
3324 | (struct matching_brace_traits): New struct. | |
3325 | (matching_braces): New typedef. | |
3326 | (get_matching_symbol): New function. | |
3327 | (c_parser_require): Add param MATCHING_LOCATION, using it to | |
3328 | highlight matching "opening" tokens for missing "closing" tokens. | |
3329 | (c_parser_skip_until_found): Likewise. | |
3330 | (c_parser_static_assert_declaration_no_semi): Convert explicit | |
3331 | parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of | |
3332 | class matching_parens, so that the pertinent open parenthesis is | |
3333 | highlighted when there are problems locating the close | |
3334 | parenthesis. | |
3335 | (c_parser_struct_or_union_specifier): Likewise. | |
3336 | (c_parser_typeof_specifier): Likewise. | |
3337 | (c_parser_alignas_specifier): Likewise. | |
3338 | (c_parser_simple_asm_expr): Likewise. | |
3339 | (c_parser_braced_init): Likewise, for matching_braces. | |
3340 | (c_parser_paren_condition): Likewise, for matching_parens. | |
3341 | (c_parser_switch_statement): Likewise. | |
3342 | (c_parser_for_statement): Likewise. | |
3343 | (c_parser_asm_statement): Likewise. | |
3344 | (c_parser_asm_operands): Likewise. | |
3345 | (c_parser_cast_expression): Likewise. | |
3346 | (c_parser_sizeof_expression): Likewise. | |
3347 | (c_parser_alignof_expression): Likewise. | |
3348 | (c_parser_generic_selection): Likewise. | |
3349 | (c_parser_postfix_expression): Likewise for cases RID_VA_ARG, | |
3350 | RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR, | |
3351 | RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary. | |
3352 | In case CPP_OPEN_PAREN, pass loc_open_paren to the | |
3353 | c_parser_skip_until_found call. | |
3354 | (c_parser_objc_class_definition): Use class matching_parens as | |
3355 | above. | |
3356 | (c_parser_objc_method_decl): Likewise. | |
3357 | (c_parser_objc_try_catch_finally_statement): Likewise. | |
3358 | (c_parser_objc_synchronized_statement): Likewise. | |
3359 | (c_parser_objc_at_property_declaration): Likewise. | |
3360 | (c_parser_oacc_wait_list): Likewise. | |
3361 | (c_parser_omp_var_list_parens): Likewise. | |
3362 | (c_parser_omp_clause_collapse): Likewise. | |
3363 | (c_parser_omp_clause_default): Likewise. | |
3364 | (c_parser_omp_clause_if): Likewise. | |
3365 | (c_parser_omp_clause_num_threads): Likewise. | |
3366 | (c_parser_omp_clause_num_tasks): Likewise. | |
3367 | (c_parser_omp_clause_grainsize): Likewise. | |
3368 | (c_parser_omp_clause_priority): Likewise. | |
3369 | (c_parser_omp_clause_hint): Likewise. | |
3370 | (c_parser_omp_clause_defaultmap): Likewise. | |
3371 | (c_parser_oacc_single_int_clause): Likewise. | |
3372 | (c_parser_omp_clause_ordered): Likewise. | |
3373 | (c_parser_omp_clause_reduction): Likewise. | |
3374 | (c_parser_omp_clause_schedule): Likewise. | |
3375 | (c_parser_omp_clause_num_teams): Likewise. | |
3376 | (c_parser_omp_clause_thread_limit): Likewise. | |
3377 | (c_parser_omp_clause_aligned): Likewise. | |
3378 | (c_parser_omp_clause_linear): Likewise. | |
3379 | (c_parser_omp_clause_safelen): Likewise. | |
3380 | (c_parser_omp_clause_simdlen): Likewise. | |
3381 | (c_parser_omp_clause_depend): Likewise. | |
3382 | (c_parser_omp_clause_map): Likewise. | |
3383 | (c_parser_omp_clause_device): Likewise. | |
3384 | (c_parser_omp_clause_dist_schedule): Likewise. | |
3385 | (c_parser_omp_clause_proc_bind): Likewise. | |
3386 | (c_parser_omp_clause_uniform): Likewise. | |
3387 | (c_parser_omp_for_loop): Likewise. | |
3388 | (c_parser_cilk_clause_vectorlength): Likewise. | |
3389 | (c_parser_cilk_clause_linear): Likewise. | |
3390 | (c_parser_transaction_expression): Likewise. | |
3391 | * c-parser.h (c_parser_require): Add param matching_location with | |
3392 | default UNKNOWN_LOCATION. | |
3393 | (c_parser_error): Convert return type from void to bool. | |
3394 | (c_parser_skip_until_found): Add param matching_location with | |
3395 | default UNKNOWN_LOCATION. | |
3396 | ||
30af3a2b MP |
3397 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
3398 | ||
3399 | * c-decl.c (build_enumerator): Use true/false instead of 1/0. | |
3400 | * c-tree.h (build_external_ref): Update declaration. | |
3401 | * c-typeck.c (build_array_ref): Use true/false instead of 1/0. | |
3402 | (build_external_ref): Change the type of a parameter to bool. | |
3403 | (parser_build_binary_op): Use true/false instead of 1/0. | |
3404 | (pointer_diff): Likewise. | |
3405 | (build_modify_expr): Likewise. | |
3406 | (set_designator): Change the type of a parameter to bool. | |
3407 | (set_init_index): Use true/false instead of 1/0. | |
3408 | (set_init_label): Likewise. | |
3409 | (output_init_element): Change the type of a parameter to bool. | |
3410 | (output_pending_init_elements): Use true/false instead of 1/0. | |
3411 | (process_init_element): Likewise. | |
3412 | (build_binary_op): Change the type of a parameter to bool. | |
3413 | ||
296c53ac MP |
3414 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
3415 | ||
3416 | PR c/81233 | |
3417 | * c-typeck.c (pedwarn_init): Make the function take a variable list. | |
3418 | Call emit_diagnostic_valist instead of pedwarn. | |
3419 | (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro. | |
3420 | Print the relevant types in diagnostics. | |
3421 | ||
a32c8316 MP |
3422 | 2017-08-09 Marek Polacek <polacek@redhat.com> |
3423 | ||
3424 | PR c/81417 | |
3425 | * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to | |
ab20d992 | 3426 | build_conditional_expr. |
a32c8316 MP |
3427 | * c-parser.c (c_parser_conditional_expression): Create locations for |
3428 | EXP1 and EXP2 from their source ranges. Pass the locations down to | |
3429 | build_conditional_expr. | |
3430 | * c-tree.h (build_conditional_expr): Update declaration. | |
3431 | * c-typeck.c (build_conditional_expr): Add location_t parameters. | |
3432 | For -Wsign-compare, also print the types. | |
3433 | ||
314e6352 ML |
3434 | 2017-08-08 Martin Liska <mliska@suse.cz> |
3435 | ||
3436 | * c-convert.c: Include header files. | |
3437 | * c-typeck.c: Likewise. | |
3438 | ||
577eec56 ML |
3439 | 2017-08-07 Martin Liska <mliska@suse.cz> |
3440 | ||
3441 | * c-parser.c (c_parser_attributes): Canonicalize name of an | |
3442 | attribute. | |
3443 | ||
f7b6353a MP |
3444 | 2017-08-02 Marek Polacek <polacek@redhat.com> |
3445 | ||
3446 | PR c/81289 | |
3447 | * c-parser.c (c_parser_unary_expression): Use set_error. | |
3448 | ||
8a6eab34 MP |
3449 | PR c/81448 |
3450 | PR c/81306 | |
3451 | * c-warn.c (warn_for_multistatement_macros): Prevent bogus | |
3452 | warnings. Avoid walking MACRO_MAP_LOCATIONS. | |
3453 | ||
ab20d992 | 3454 | 2017-07-31 Jan Hubicka <hubicka@ucw.cz> |
7fef86d3 JH |
3455 | Martin Liska <mliska@suse.cz> |
3456 | ||
3457 | * c-typeck.c (c_finish_goto_label): Build gimple predict | |
f7b6353a | 3458 | statement. |
7fef86d3 | 3459 | |
f34ebeb2 ML |
3460 | 2017-07-31 Martin Liska <mliska@suse.cz> |
3461 | ||
3462 | PR sanitize/81530 | |
3463 | * c-convert.c (convert): Guard condition with flag_sanitize_p | |
3464 | also with current_function_decl non-null equality. | |
3465 | * c-decl.c (grokdeclarator): Likewise. | |
3466 | * c-typeck.c (build_binary_op): Likewise. | |
3467 | ||
8595f67b MP |
3468 | 2017-07-25 Marek Polacek <polacek@redhat.com> |
3469 | ||
3470 | * c-decl.c (grokfield): Remove local variable. | |
3471 | ||
d49718d6 MP |
3472 | 2017-07-25 Marek Polacek <polacek@redhat.com> |
3473 | ||
3474 | PR c/81364 | |
3475 | * c-parser.c (c_parser_else_body): Don't warn about multistatement | |
3476 | macro expansion if the body is in { }. | |
3477 | (c_parser_while_statement): Likewise. | |
3478 | (c_parser_for_statement): Likewise. | |
3479 | ||
ff22eb12 NS |
3480 | 2017-07-18 Nathan Sidwell <nathan@acm.org> |
3481 | ||
3482 | * c-parser.c (c_parser_array_notation): Use TYPE_{MIN,MAX}_VALUE. | |
3483 | ||
eea77d1f DM |
3484 | 2017-07-14 David Malcolm <dmalcolm@redhat.com> |
3485 | ||
3486 | * c-decl.c (implicitly_declare): When suggesting a missing | |
3487 | #include, provide a fix-it hint. | |
3488 | ||
b6f43128 DM |
3489 | 2017-07-06 David Malcolm <dmalcolm@redhat.com> |
3490 | ||
3491 | * c-lang.c (selftest::run_c_tests): Move body to c_family_tests, | |
3492 | and call that instead. | |
3493 | * c-tree.h (selftest::run_c_tests): New decl. | |
3494 | ||
3e2becc4 MP |
3495 | 2017-06-26 Marek Polacek <polacek@redhat.com> |
3496 | ||
3497 | PR c/80116 | |
3498 | * c-parser.c (c_parser_if_body): Set the location of the | |
3499 | body of the conditional after parsing all the labels. Call | |
3500 | warn_for_multistatement_macros. | |
3501 | (c_parser_else_body): Likewise. | |
3502 | (c_parser_switch_statement): Likewise. | |
3503 | (c_parser_while_statement): Likewise. | |
3504 | (c_parser_for_statement): Likewise. | |
3505 | (c_parser_statement): Add a default argument. Save the location | |
3506 | after labels have been parsed. | |
3507 | (c_parser_c99_block_statement): Likewise. | |
3508 | ||
343ae898 RB |
3509 | 2017-06-19 Richard Biener <rguenther@suse.de> |
3510 | ||
3511 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
3512 | negated _Literals to parse _Literal (int) -1. | |
3513 | ||
45b2222a ML |
3514 | 2017-06-13 Martin Liska <mliska@suse.cz> |
3515 | ||
3516 | PR sanitize/78204 | |
3517 | * c-convert.c (convert): Use sanitize_flags_p. | |
3518 | * c-decl.c (grokdeclarator): Likewise. | |
3519 | * c-typeck.c (convert_for_assignment): Likewise. | |
3520 | (c_finish_return): Likewise. | |
3521 | (build_binary_op): Likewise. | |
3522 | ||
8ab7005b JJ |
3523 | 2017-06-08 Jakub Jelinek <jakub@redhat.com> |
3524 | ||
3525 | PR c/81006 | |
3526 | * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE | |
3527 | to sizetype before size_binop. | |
3528 | ||
363dc72c JJ |
3529 | 2017-06-07 Jakub Jelinek <jakub@redhat.com> |
3530 | ||
3531 | * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead | |
3532 | of TDI_generic. | |
3533 | ||
dc949728 MP |
3534 | 2017-06-06 Marek Polacek <polacek@redhat.com> |
3535 | ||
3536 | PR c/79983 | |
3537 | * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of | |
3538 | ref. | |
3539 | (start_enum): Use the location of TYPE_STUB_DECL of enumtype. | |
3540 | ||
40ffd95f BE |
3541 | 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3542 | ||
3543 | * c-parser.c (c_parser_binary_expression): Implement the | |
3544 | -Wsizeof_pointer_div warning. | |
3545 | (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code | |
3546 | from a parenthesized expression. | |
3547 | (c_parser_expr_list): Use c_last_sizeof_loc. | |
3548 | * c-tree.h (c_last_sizeof_loc): New external. | |
3549 | * c-typeck.c (c_last_sizeof_loc): New variable. | |
3550 | (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc. | |
3551 | ||
9fc5e7a4 MM |
3552 | 2017-05-31 Mikhail Maltsev <maltsevm@gmail.com> |
3553 | ||
3554 | PR testsuite/80580 | |
3555 | * gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels. | |
3556 | ||
f012c8ef DM |
3557 | 2017-05-30 David Malcolm <dmalcolm@redhat.com> |
3558 | ||
3559 | * c-objc-common.c (c_tree_printer): Gain bool and const char ** | |
3560 | parameters. | |
3561 | ||
3cd211af MS |
3562 | 2017-05-24 Martin Sebor <msebor@redhat.com> |
3563 | ||
3564 | PR c/80731 | |
3565 | * c-fold.c (c_fully_fold_internal): Adjust. | |
3566 | * c-typeck.c (parser_build_unary_op): Adjust. | |
3567 | ||
fd71a9a2 TS |
3568 | 2017-05-23 Thomas Schwinge <thomas@codesourcery.com> |
3569 | ||
3570 | * c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add | |
3571 | "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS", | |
3572 | "VECTOR_LENGTH". | |
3573 | ||
92fa0f9e MP |
3574 | 2017-05-23 Marek Polacek <polacek@redhat.com> |
3575 | ||
3576 | * c-parser.c (c_parser_compound_statement_nostart): Remove redundant | |
3577 | quotes. | |
3578 | ||
d11c168a JJ |
3579 | 2017-05-22 Jakub Jelinek <jakub@redhat.com> |
3580 | ||
3581 | * c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal | |
3582 | result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if | |
3583 | it returned invariant. Call tree_invariant_p unconditionally | |
3584 | afterwards to decide whether to return expr or op0. | |
3585 | ||
58aca9d9 NS |
3586 | 2017-05-22 Nathan Sidwell <nathan@acm.org> |
3587 | ||
3588 | * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling. | |
3589 | ||
7fd549d2 TS |
3590 | 2017-05-19 Thomas Schwinge <thomas@codesourcery.com> |
3591 | ||
3592 | * c-parser.c (c_parser_omp_clause_default): Handle | |
3593 | "OMP_CLAUSE_DEFAULT_PRESENT". | |
3594 | ||
6ecd2339 BE |
3595 | 2017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de> |
3596 | ||
3597 | * config-lang.in (gtfiles): Add c-family/c-format.c. | |
3598 | ||
8a57ecff NS |
3599 | 2017-05-18 Nathan Sidwell <nathan@acm.org> |
3600 | ||
3601 | * c-decl.c (pushdecl_top_level): Delete unused function. | |
3602 | ||
6574d78e MP |
3603 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
3604 | ||
3605 | * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0. | |
3606 | (check_earlier_gotos): Likewise. | |
3607 | (define_label): Likewise. | |
3608 | (pending_xref_error): Likewise. | |
3609 | (smallest_type_quals_location): Likewise. | |
3610 | (grokdeclarator): Likewise. | |
3611 | (grokparms): Likewise. | |
3612 | (identifier_global_value): Likewise. | |
3613 | * c-typeck.c (set_nonincremental_init_from_string): Likewise. | |
3614 | (find_init_member): Likewise. | |
3615 | ||
e3455240 MP |
3616 | 2017-05-18 Marek Polacek <polacek@redhat.com> |
3617 | ||
3618 | * c-decl.c (start_decl): Use false/true instead of 0/1. | |
3619 | (grokdeclarator): Likewise. | |
3620 | (finish_struct): Likewise. | |
3621 | (start_function): Change the return type to bool. Use false/true | |
3622 | instead of 0/1. | |
3623 | (declspecs_add_qual): Use UNKNOWN_LOCATION instead of 0. | |
3624 | * c-tree.h (start_function): Update. | |
3625 | * c-typeck.c (same_translation_unit_p): Change the return type to bool. | |
3626 | (set_designator): Change the return type to bool. Use false/true | |
3627 | instead of 0/1. | |
3628 | ||
3fa8871b MP |
3629 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
3630 | ||
3631 | * c-decl.c: Use NULL_TREE instead of 0 where appropriate. | |
3632 | * c-typeck.c: Likewise. | |
3633 | ||
142473df MP |
3634 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
3635 | ||
3636 | PR sanitizer/80659 | |
3637 | * c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and | |
3638 | DECL_IGNORED_P even for non-static compound literals. | |
3639 | ||
1a817418 ML |
3640 | 2017-05-17 Martin Liska <mliska@suse.cz> |
3641 | ||
3642 | * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and | |
3643 | use it instead of int type. | |
3644 | ||
b2fa0a8b MP |
3645 | 2017-05-17 Marek Polacek <polacek@redhat.com> |
3646 | ||
3647 | * c-convert.c (convert): Replace c_save_expr with save_expr. Don't | |
3648 | call c_fully_fold. | |
3649 | (convert) <case COMPLEX_TYPE>: Remove special handling of COMPLEX_TYPEs. | |
ab20d992 | 3650 | * c-decl.c (grokdeclarator): Replace c_save_expr with save_expr. |
b2fa0a8b MP |
3651 | * c-fold.c (c_fully_fold_internal): Handle SAVE_EXPR. |
3652 | * c-parser.c (c_parser_declaration_or_fndef): Replace c_save_expr with | |
3653 | save_expr. | |
3654 | (c_parser_conditional_expression): Likewise. | |
3655 | * c-tree.h (SAVE_EXPR_FOLDED_P): Define. | |
3656 | * c-typeck.c (build_modify_expr): Replace c_save_expr with save_expr. | |
3657 | (process_init_element): Likewise. | |
3658 | (build_binary_op): Likewise. | |
3659 | (handle_omp_array_sections_1): Likewise. | |
3660 | ||
1e47f02b TS |
3661 | 2017-05-12 Thomas Schwinge <thomas@codesourcery.com> |
3662 | ||
3663 | * c-parser.c (c_parser_omp_clause_num_gangs) | |
3664 | (c_parser_omp_clause_num_workers) | |
3665 | (c_parser_omp_clause_vector_length): Merge functions into... | |
3666 | (c_parser_oacc_single_int_clause): ... this new function. Adjust | |
3667 | all users. | |
3668 | ||
c24e924f NS |
3669 | 2017-05-11 Nathan Sidwell <nathan@acm.org> |
3670 | ||
3671 | * gimple-parser.c: Don't #include tree-dump.h. | |
3672 | ||
c587104e MM |
3673 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
3674 | ||
3675 | PR testsuite/80580 | |
3676 | * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base. | |
3677 | ||
67ac9a9d MM |
3678 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
3679 | ||
3680 | PR testsuite/80580 | |
3681 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
3682 | incorrect __MEM syntax. | |
3683 | ||
ac4eb40f MM |
3684 | 2017-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
3685 | ||
3686 | PR testsuite/80580 | |
3687 | * gimple-parser.c (c_parser_gimple_unary_expression): Check argument | |
3688 | type of unary '*'. | |
3689 | ||
641da50a NS |
3690 | 2017-05-09 Nathan Sidwell <nathan@acm.org> |
3691 | ||
3692 | * c-tree.h (pushdecl): Declare. | |
3693 | ||
56d35585 DM |
3694 | 2017-05-05 David Malcolm <dmalcolm@redhat.com> |
3695 | ||
3696 | * c-decl.c (warn_defaults_to): Replace report_diagnostic | |
3697 | with diagnostic_report_diagnostic. | |
3698 | * c-errors.c (pedwarn_c99): Likewise. | |
3699 | (pedwarn_c90): Likewise. | |
3700 | ||
815d9cc6 XR |
3701 | 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> |
3702 | ||
92a285c1 | 3703 | PR c++/80038 |
815d9cc6 XR |
3704 | * c-gimplify.c (c_gimplify_expr): Remove calls to |
3705 | cilk_gimplifY_call_params_in_spawned_fn. | |
3706 | ||
1c4ea66f DM |
3707 | 2017-04-25 David Malcolm <dmalcolm@redhat.com> |
3708 | ||
3709 | * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it | |
3710 | hint for removing extra semicolon. | |
3711 | ||
666f7903 JJ |
3712 | 2017-04-21 Jakub Jelinek <jakub@redhat.com> |
3713 | ||
3714 | PR c/80468 | |
3715 | * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not | |
3716 | enabled, set specs->type to integer_type_node. | |
3717 | ||
5764ee3c JW |
3718 | 2017-04-03 Jonathan Wakely <jwakely@redhat.com> |
3719 | ||
3720 | * c-array-notation.c: Fix typo in comment. | |
3721 | ||
10fa8dfb MP |
3722 | 2017-03-29 Marek Polacek <polacek@redhat.com> |
3723 | ||
3724 | PR c/79730 | |
3725 | * c-decl.c (finish_decl): Check VAR_P. | |
3726 | ||
a9e4a1a5 JJ |
3727 | 2017-03-27 Jakub Jelinek <jakub@redhat.com> |
3728 | ||
3729 | PR middle-end/80162 | |
3730 | * c-tree.h (c_mark_addressable): Add array_ref_p argument. | |
3731 | * c-typeck.c (c_mark_addressable): Likewise. Look through | |
3732 | VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE | |
3733 | to ARRAY_TYPE. | |
3734 | (build_array_ref): Pass true as array_ref_p to c_mark_addressable. | |
3735 | ||
ee3ff394 MP |
3736 | 2017-03-23 Marek Polacek <polacek@redhat.com> |
3737 | ||
3738 | * c-tree.h: Remove a C_RID_YYCODE reference. | |
3739 | ||
4d1b8e70 JJ |
3740 | 2017-03-21 Jakub Jelinek <jakub@redhat.com> |
3741 | ||
3742 | PR c/80097 | |
3743 | * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around | |
3744 | optional COMPOUND_EXPR with ubsan instrumentation. | |
3745 | ||
31dc71a8 MP |
3746 | 2017-03-17 Marek Polacek <polacek@redhat.com> |
3747 | ||
3748 | * c-parser.c: Add C11 references. | |
3749 | ||
d579c385 MP |
3750 | 2017-03-15 Marek Polacek <polacek@redhat.com> |
3751 | ||
3752 | * c-parser.c (c_parser_enum_specifier): Remove redundant line. | |
3753 | ||
85059a38 MP |
3754 | 2017-03-11 Marek Polacek <polacek@redhat.com> |
3755 | ||
3756 | * c-decl.c (implicit_decl_warning): Add a comment. Fix formatting. | |
3757 | ||
2f6f187a DM |
3758 | 2017-03-10 David Malcolm <dmalcolm@redhat.com> |
3759 | ||
3760 | PR translation/79848 | |
3761 | * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to | |
3762 | "%qs". | |
3763 | * c-parser.c (c_parser_oacc_shape_clause): Likewise. | |
3764 | ||
36618428 MP |
3765 | 2017-03-09 Marek Polacek <polacek@redhat.com> |
3766 | ||
3767 | PR sanitizer/79757 | |
3768 | * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style | |
3769 | parameter declarations with initializers. | |
3770 | ||
01e5af5a JJ |
3771 | 2017-03-09 Jakub Jelinek <jakub@redhat.com> |
3772 | ||
3773 | PR c/79969 | |
3774 | * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of | |
3775 | TYPE_STUB_DECL. | |
3776 | ||
a71dbc63 JJ |
3777 | 2017-03-07 Jakub Jelinek <jakub@redhat.com> |
3778 | ||
3779 | PR c/79834 | |
3780 | * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error | |
3781 | for "may only be used in compound statements" diagnostics, change it | |
3782 | such that the same translatable string is used for all pragmas. For | |
3783 | PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the | |
3784 | diagnostics. | |
3785 | (c_parser_omp_cancellation_point, c_parser_omp_target_update, | |
3786 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change | |
3787 | "may only be used in compound statements" diagnostics, such that the | |
3788 | same translatable string is used for all pragmas. | |
3789 | ||
1ff4bae6 MP |
3790 | 2017-03-04 Marek Polacek <polacek@redhat.com> |
3791 | ||
3792 | PR c/79847 | |
3793 | * c-decl.c (implicit_decl_warning): Add missing space. | |
3794 | ||
7f5a7d78 MP |
3795 | 2017-03-03 Marek Polacek <polacek@redhat.com> |
3796 | ||
3797 | PR c/79758 | |
3798 | * c-decl.c (store_parm_decls_oldstyle): Check if the element of | |
3799 | current_function_prototype_arg_types is error_mark_node. Fix | |
3800 | formatting. Use TREE_VALUE instead of TREE_TYPE. | |
3801 | ||
883c8f06 JJ |
3802 | 2017-03-03 Jakub Jelinek <jakub@redhat.com> |
3803 | ||
79c9b7a8 JJ |
3804 | PR c/79837 |
3805 | * c-parser.c (c_parser_omp_clause_reduction): Don't mention | |
3806 | %<min%> or %<max%> in the diagnostics, instead mention identifier. | |
3807 | (c_parser_omp_declare_reduction): Don't mention %<min%> in the | |
3808 | diagnostics. | |
3809 | ||
883c8f06 JJ |
3810 | PR c/79836 |
3811 | * c-parser.c (c_parser_generic_selection): Use %<_Generic%> | |
3812 | instead of %<_Generic>. | |
3813 | (c_parser_omp_ordered): Use %<depend%> instead of %<depend>. | |
3814 | (c_parser_omp_target_exit_data): Use %<release%> instead of | |
3815 | %<release>. | |
3816 | ||
324ff1a0 JJ |
3817 | 2017-02-28 Jakub Jelinek <jakub@redhat.com> |
3818 | ||
3819 | * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...") | |
3820 | instead of just cond ? "..." : "...". | |
3821 | (c_parser_oacc_enter_exit_data): Use %s and ternary operator only | |
3822 | for "enter"/"exit" keyword. | |
3823 | (c_finish_oacc_routine): Don't use %s to supply portions of the | |
3824 | message. | |
3825 | ||
4227c9ad JJ |
3826 | 2017-02-24 Jakub Jelinek <jakub@redhat.com> |
3827 | ||
3828 | PR c++/79588 | |
3829 | * c-parser.c (c_parser_postfix_expression_after_primary): Don't | |
3830 | handle -Wrestrict here. | |
3831 | * c-typeck.c (build_function_call_vec): Adjust | |
3832 | check_function_arguments caller. | |
3833 | ||
5d972e66 RB |
3834 | 2017-02-23 Richard Biener <rguenther@suse.de> |
3835 | ||
3836 | PR c/79684 | |
3837 | * gimple-parser.c (c_parser_gimple_statement): Use set_error | |
3838 | to initialize c_exprs to return. | |
3839 | (c_parser_gimple_binary_expression): Likewise. | |
3840 | (c_parser_gimple_unary_expression): Likewise. | |
3841 | (c_parser_gimple_postfix_expression): Likewise. | |
3842 | ||
61ac5ebe MP |
3843 | 2017-02-22 Marek Polacek <polacek@redhat.com> |
3844 | ||
3845 | PR c/79662 | |
3846 | * c-typeck.c (convert_arguments): Handle error_mark_node. | |
3847 | ||
41d1b0b1 PK |
3848 | 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
3849 | ||
3850 | * gimple-parser.c (c_parser_gimple_postfix_expression): Check return | |
3851 | value of c_parser_parse_ssa_name against error_mark_node and emit | |
3852 | error if ssa name is anonymous and written as default definition. | |
3853 | ||
eab1f169 PK |
3854 | 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
3855 | ||
3856 | * gimple-parser.c (c_parser_gimple_postfix_expression): Handle | |
3857 | FMA_EXPR. | |
3858 | ||
bcac0b4d JJ |
3859 | 2017-02-16 Jakub Jelinek <jakub@redhat.com> |
3860 | ||
3861 | PR c++/79512 | |
3862 | * c-parser.c (c_parser_omp_target): For -fopenmp-simd | |
3863 | ignore #pragma omp target even when not followed by identifier. | |
3864 | ||
1be33173 PK |
3865 | 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
3866 | ||
3867 | * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR. | |
3868 | (c_parser_gimple_unary_expression): Likewise. | |
3869 | ||
aa326bfb JJ |
3870 | 2017-02-13 Jakub Jelinek <jakub@redhat.com> |
3871 | ||
3872 | * c-parser.c (c_parser_oacc_declare): Add missing space in | |
3873 | diagnostics. | |
3874 | ||
8a398bc5 PK |
3875 | 2017-02-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
3876 | ||
3877 | PR c/79478 | |
3878 | * gimple-parser.c (c_parser_gimple_postfix_expression): Call | |
3879 | set_c_expr_source_range when parsing ssa-name. | |
3880 | ||
3dcde5ef | 3881 | 2017-02-10 Prasad Ghangal <prasad.ghangal@gmail.com> |
ab20d992 | 3882 | Richard Biener <rguenther@suse.de> |
3dcde5ef PG |
3883 | |
3884 | * gimple-parser.c (c_parser_gimple_binary_expression): Avoid | |
3885 | building IL when arguments are error_mark_node. | |
3886 | (c_parser_gimple_unary_expression): Likewise. | |
3887 | (c_parser_gimple_if_stmt): Likewise. | |
3888 | (c_parser_gimple_switch_stmt): Likewise. | |
3889 | (c_parser_gimple_return_stmt): Likewise. | |
3890 | (c_parser_parse_ssa_name): When name lookup fails do not build | |
3891 | an SSA name. Use undeclared rather than not declared in error | |
3892 | reporting. | |
3893 | ||
192b048b MP |
3894 | 2017-02-09 Marek Polacek <polacek@redhat.com> |
3895 | ||
3896 | PR c/79428 | |
3897 | * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol | |
3898 | instead of c_parser_skip_until_found. | |
3899 | ||
56f71478 JJ |
3900 | 2017-02-09 Jakub Jelinek <jakub@redhat.com> |
3901 | ||
3902 | PR c/79431 | |
3903 | * c-parser.c (c_parser_omp_declare_target): Don't invoke | |
3904 | symtab_node::get on automatic variables. | |
3905 | ||
02889d23 CLT |
3906 | 2016-02-09 Nathan Sidwell <nathan@codesourcery.com> |
3907 | Chung-Lin Tang <cltang@codesourcery.com> | |
3908 | ||
3909 | * c-parser.c (c_parser_omp_clause_collapse): Disallow tile. | |
3910 | (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and | |
3911 | semantic checking. | |
3912 | * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs. | |
3913 | ||
7af4b20d RB |
3914 | 2017-02-07 Richard Biener <rguenther@suse.de> |
3915 | ||
3916 | * gimple-parser.c (c_parser_gimple_expr_list): Simplify. | |
3917 | (c_parser_gimple_postfix_expression_after_primary): | |
3918 | Do not use c_build_function_call_vec to avoid folding and promotion. | |
3919 | Simplify. | |
3920 | ||
e5e391d6 MO |
3921 | 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com> |
3922 | ||
3923 | PR lto/79061 | |
3924 | * c-decl.c (pop_scope): Pass main_input_filename to | |
3925 | build_translation_unit_decl. | |
3926 | ||
c2e84327 DM |
3927 | 2017-01-24 David Malcolm <dmalcolm@redhat.com> |
3928 | ||
3929 | * c-parser.c: Include "read-rtl-function.h" and | |
3930 | "run-rtl-passes.h". | |
3931 | (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in | |
3932 | grammar to gimple-or-rtl-pass-list. Add rtl-function-definition | |
3933 | production. Update for renaming of field "gimple_pass" to | |
3934 | "gimple_or_rtl_pass". If __RTL was seen, call | |
3935 | c_parser_parse_rtl_body. Convert a timevar_push/pop pair | |
3936 | to an auto_timevar, to cope with early exit. | |
3937 | (c_parser_declspecs): Update RID_GIMPLE handling for renaming of | |
3938 | field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of | |
3939 | c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list. | |
3940 | Handle RID_RTL. | |
3941 | (c_parser_parse_rtl_body): New function. | |
3942 | * c-tree.h (enum c_declspec_word): Add cdw_rtl. | |
3943 | (struct c_declspecs): Rename field "gimple_pass" to | |
3944 | "gimple_or_rtl_pass". Add field "rtl_p". | |
3945 | * gimple-parser.c (c_parser_gimple_pass_list): Rename to... | |
3946 | (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly. | |
3947 | * gimple-parser.h (c_parser_gimple_pass_list): Rename to... | |
3948 | (c_parser_gimple_or_rtl_pass_list): ...this. | |
3949 | ||
2ebd93e1 MP |
3950 | 2017-01-20 Marek Polacek <polacek@redhat.com> |
3951 | ||
3952 | PR c/64279 | |
3953 | * c-typeck.c (build_conditional_expr): Warn about duplicated branches. | |
3954 | ||
b1c95bb5 RB |
3955 | 2017-01-13 Richard Biener <rguenther@suse.de> |
3956 | ||
3957 | * gimple-parser.c (c_parser_gimple_compound_statement): Handle | |
3958 | nops. | |
3959 | ||
25329913 RB |
3960 | 2017-01-13 Richard Biener <rguenther@suse.de> |
3961 | ||
3962 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
3963 | _Literal ( type-name ) number. | |
3964 | ||
6bb4ea5c RB |
3965 | 2017-01-12 Richard Biener <rguenther@suse.de> |
3966 | ||
3967 | * gimple-parser.c (c_parser_gimple_postfix_expression): Parse | |
3968 | __MEM. | |
3969 | ||
6b5b4e9c JJ |
3970 | 2017-01-11 Jakub Jelinek <jakub@redhat.com> |
3971 | ||
3972 | PR c++/72813 | |
3973 | * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing | |
3974 | PCH file. | |
3975 | ||
e3252775 RB |
3976 | 2017-01-11 Richard Biener <rguenther@suse.de> |
3977 | ||
3978 | PR bootstrap/79052 | |
3979 | * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing | |
3980 | returns on parse errors. | |
3981 | ||
a9342885 MP |
3982 | 2017-01-04 Marek Polacek <polacek@redhat.com> |
3983 | ||
3984 | PR c++/64767 | |
3985 | * c-parser.c (c_parser_postfix_expression): Mark zero character | |
3986 | constants by setting original_type in c_expr. | |
3987 | * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared | |
3988 | with a zero character constant. | |
3989 | (char_type_p): New function. | |
3990 | ||
5dd9a9d0 DM |
3991 | 2017-01-04 David Malcolm <dmalcolm@redhat.com> |
3992 | ||
3993 | * c-parser.c (c_parser_declaration_or_fndef): Create a | |
3994 | rich_location at init_loc and parse it to start_init. | |
3995 | (last_init_list_comma): New global. | |
3996 | (c_parser_braced_init): Update last_init_list_comma when parsing | |
3997 | commas. Pass it to pop_init_level. Pass location of closing | |
3998 | brace to pop_init_level. | |
3999 | (c_parser_postfix_expression_after_paren_type): Create a | |
4000 | rich_location at type_loc and parse it to start_init. | |
4001 | (c_parser_omp_declare_reduction): Likewise for loc. | |
4002 | * c-tree.h (start_init): Add rich_location * param. | |
4003 | (pop_init_level): Add location_t param. | |
4004 | * c-typeck.c (struct initializer_stack): Add field | |
4005 | "missing_brace_richloc". | |
4006 | (start_init): Add richloc param, use it to initialize | |
4007 | the stack node's missing_brace_richloc. | |
4008 | (last_init_list_comma): New decl. | |
4009 | (finish_implicit_inits): Pass last_init_list_comma to | |
4010 | pop_init_level. | |
4011 | (push_init_level): When finding missing open braces, add fix-it | |
4012 | hints to the richloc. | |
4013 | (pop_init_level): Add "insert_before" param and pass it | |
4014 | when calling pop_init_level. Add fixits about missing | |
4015 | close braces to any richloc. Use the richloc for the | |
4016 | -Wmissing-braces warning. | |
4017 | (set_designator): Pass last_init_list_comma to pop_init_level. | |
4018 | (process_init_element): Likewise. | |
4019 | ||
cbe34bb5 JJ |
4020 | 2017-01-01 Jakub Jelinek <jakub@redhat.com> |
4021 | ||
4022 | Update copyright years. | |
4023 | ||
d17680f3 JJ |
4024 | 2016-12-21 Jakub Jelinek <jakub@redhat.com> |
4025 | ||
0dba7960 JJ |
4026 | PR bootstrap/78817 |
4027 | * c-typeck.c (build_function_call_vec): If check_function_arguments | |
4028 | returns true, set TREE_NO_WARNING on CALL_EXPR. | |
4029 | ||
d17680f3 JJ |
4030 | PR c/77767 |
4031 | * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression | |
4032 | to *expr instead of overwriting it. | |
4033 | ||
aa90531e RB |
4034 | 2016-12-20 Richard Biener <rguenther@suse.de> |
4035 | ||
4036 | * gimple-parser.c (c_parser_gimple_compound_statement): Improve | |
4037 | error recovery. | |
4038 | (c_parser_gimple_statement): Only build assigns for non-error | |
4039 | stmts. | |
4040 | (c_parser_gimple_postfix_expression_after): Improve error recovery. | |
4041 | ||
629b3d75 MJ |
4042 | 2016-12-14 Martin Jambor <mjambor@suse.cz> |
4043 | ||
4044 | * c-parser.c: Include omp-general.h and omp-offload.h instead of | |
4045 | omp-low.h. | |
4046 | (c_finish_oacc_routine): Adjusted call to | |
4047 | get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib | |
4048 | to use their new names. | |
4049 | (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to | |
4050 | use its new name. | |
4051 | (c_parser_oacc_update): Likewise. | |
4052 | (c_parser_omp_simd): Likewise. | |
4053 | (c_parser_omp_target_update): Likewise. | |
4054 | * c-typeck.c: Include omp-general.h instead of omp-low.h. | |
4055 | (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new | |
4056 | name. | |
4057 | (c_finish_omp_cancellation_point): Likewise. | |
4058 | * gimple-parser.c: Do not include omp-low.h | |
4059 | ||
c5af52eb CP |
4060 | 2016-12-02 Cesar Philippidis <cesar@codesourcery.com> |
4061 | James Norris <jnorris@codesourcery.com> | |
4062 | ||
4063 | * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA, | |
4064 | EXIT_DATA,WAIT} are not used in compound statements. | |
4065 | (c_parser_oacc_enter_exit_data): Update diagnostics. | |
4066 | ||
48330c93 BE |
4067 | 2016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4068 | ||
4069 | PR c++/71973 | |
4070 | * c-decl.c (diagnose_mismatched_decls): Use | |
4071 | OPT_Wbuiltin_declaration_mismatch here too. | |
4072 | ||
899ca90e | 4073 | 2016-11-18 Richard Sandiford <richard.sandiford@arm.com> |
48330c93 BE |
4074 | Alan Hayward <alan.hayward@arm.com> |
4075 | David Sherwood <david.sherwood@arm.com> | |
899ca90e RS |
4076 | |
4077 | * c-decl.c (merge_decls): Use SET_DECL_MODE. | |
4078 | (make_label, finish_struct): Likewise. | |
4079 | ||
1ee62b92 | 4080 | 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com> |
8e745a17 | 4081 | Richard Biener <rguenther@suse.de> |
22b15758 | 4082 | |
8e745a17 JJ |
4083 | * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o. |
4084 | * config-lang.in (gtfiles): Add c/c-parser.h. | |
4085 | * c-tree.h (enum c_declspec_word): Add cdw_gimple. | |
4086 | (struct c_declspecs): Add gimple_pass member and gimple_p flag. | |
4087 | * c-parser.c (enum c_id_kind, struct c_token, | |
4088 | c_parser_next_token_is, c_parser_next_token_is_not, | |
4089 | c_parser_next_token_is_keyword, | |
4090 | enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec): | |
4091 | Split out to ... | |
4092 | * c-parser.h: ... new header. | |
4093 | * c-parser.c: Include c-parser.h and gimple-parser.h. | |
1ee62b92 | 4094 | (c_parser_peek_token, c_parser_peek_2nd_token, |
8e745a17 JJ |
4095 | c_token_starts_typename, c_parser_next_token_starts_declspecs, |
4096 | c_parser_next_tokens_start_declaration, c_parser_consume_token, | |
4097 | c_parser_error, c_parser_require, c_parser_skip_until_found, | |
4098 | c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token, | |
4099 | c_parser_type_name): Export. | |
4100 | (c_parser_tokens_buf): New function. | |
4101 | (c_parser_error): Likewise. | |
4102 | (c_parser_set_error): Likewise. | |
4103 | (c_parser_declspecs): Handle RID_GIMPLE. | |
1ee62b92 PG |
4104 | (c_parser_declaration_or_fndef): Parse __GIMPLE marked body |
4105 | via c_parser_parse_gimple_body. | |
8e745a17 JJ |
4106 | * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token, |
4107 | c_token_starts_typename, c_parser_next_token_starts_declspecs, | |
4108 | c_parser_next_tokens_start_declaration, c_parser_consume_token, | |
4109 | c_parser_error, c_parser_require, c_parser_skip_until_found, | |
4110 | c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token, | |
4111 | c_parser_type_name): Declare. | |
1ee62b92 PG |
4112 | (struct c_parser): Declare forward. |
4113 | (c_parser_tokens_buf): Declare. | |
8e745a17 JJ |
4114 | (c_parser_error): Likewise. |
4115 | (c_parser_set_error): Likewise. | |
4116 | * gimple-parser.c: New file. | |
4117 | * gimple-parser.h: Likewise. | |
1ee62b92 | 4118 | |
22b15758 UB |
4119 | 2016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
4120 | ||
4121 | PR c/35503 | |
4122 | * c-parser.c (c_parser_postfix_expression_after_primary): Call | |
4123 | warn_for_restrict. | |
4124 | ||
84ff4775 LCW |
4125 | 2016-09-11 Le-Chun Wu <lcwu@google.com> |
4126 | Mark Wielaard <mjw@redhat.com> | |
4127 | ||
4128 | * c-decl.c (warn_if_shadowing): Use the warning code corresponding | |
4129 | to the given -Wshadow= variant. | |
4130 | ||
4d0cdd0c TP |
4131 | 2016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com> |
4132 | ||
4133 | * c-typeck.c: Include memmodel.h. | |
4134 | ||
1202f33e JJ |
4135 | 2016-10-13 Jakub Jelinek <jakub@redhat.com> |
4136 | ||
4137 | PR target/77957 | |
4138 | * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null | |
4139 | instead of lhd_return_null_tree_v. | |
4140 | ||
8a14afd0 BS |
4141 | 2016-10-07 Bernd Schmidt <bschmidt@redhat.com> |
4142 | ||
4143 | PR c++/69733 | |
4144 | * c-decl.c (smallest_type_quals_location): New static function. | |
4145 | (grokdeclarator): Try to find the correct location for an ignored | |
4146 | qualifier. | |
4147 | ||
81fea426 MP |
4148 | 2016-09-26 Marek Polacek <polacek@redhat.com> |
4149 | ||
4150 | PR c/7652 | |
4151 | * c-decl.c (pop_scope): Add gcc_fallthrough. | |
4152 | ||
4153 | 2016-09-26 Marek Polacek <polacek@redhat.com> | |
4154 | ||
4155 | PR c/7652 | |
4156 | * c-parser.c (struct c_token): Add flags field. | |
4157 | (c_lex_one_token): Pass it to c_lex_with_flags. | |
4158 | (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough)); | |
4159 | into IFN_FALLTHROUGH. | |
4160 | (c_parser_label): Set FALLTHROUGH_LABEL_P on labels. Handle | |
4161 | attribute fallthrough after a case label or default label. | |
4162 | (c_parser_statement_after_labels): Handle RID_ATTRIBUTE. | |
4163 | ||
9a2300e9 MP |
4164 | 2016-09-24 Marek Polacek <polacek@redhat.com> |
4165 | ||
4166 | PR c/77490 | |
4167 | * c-typeck.c (build_unary_op): Warn about bit not on expressions that | |
4168 | have boolean value. Warn about ++/-- on booleans. | |
4169 | ||
7de76362 JJ |
4170 | 2016-09-23 Jakub Jelinek <jakub@redhat.com> |
4171 | ||
4172 | * c-parser.c (incomplete_record_decls): Remove unnecessary | |
4173 | = vNULL initialization of file scope vec. | |
4174 | ||
5b73d2ab MP |
4175 | 2016-09-16 Marek Polacek <polacek@redhat.com> |
4176 | ||
4177 | * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0. | |
4178 | ||
e51fbec3 MP |
4179 | 2016-09-14 Marek Polacek <polacek@redhat.com> |
4180 | ||
4181 | * c-array-notation.c (create_cmp_incr): Use false instead of 0. | |
4182 | (fix_array_notation_expr): Likewise. | |
4183 | * c-decl.c (finish_decl): Likewise. | |
4184 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
4185 | * c-typeck.c (array_to_pointer_conversion): Use true instead of 1. | |
4186 | (function_to_pointer_conversion): Use false instead of 0. | |
4187 | (convert_lvalue_to_rvalue): Likewise. | |
4188 | (parser_build_unary_op): Likewise. | |
4189 | (build_atomic_assign): Likewise. | |
4190 | (build_unary_op): Change nonconvert parameter type to bool, use | |
4191 | true/false instead of 1/0. | |
4192 | (build_binary_op): Use true instead of 1. | |
4193 | ||
254830ba DM |
4194 | 2016-09-13 David Malcolm <dmalcolm@redhat.com> |
4195 | ||
4196 | * c-parser.c (c_parser_declaration_or_fndef): Update for renaming | |
4197 | of add_fixit_insert to add_fixit_insert_before. | |
4198 | ||
4c13ba17 MP |
4199 | 2016-09-13 Marek Polacek <polacek@redhat.com> |
4200 | ||
4201 | * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT. Use | |
4202 | it. | |
4203 | ||
54dcdb88 BE |
4204 | 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de> |
4205 | ||
4206 | PR c++/77496 | |
4207 | * c-parser.c (c_parser_conditional_expression): Pass the rightmost | |
4208 | COMPOUND_EXPR to warn_for_omitted_condop. | |
4209 | ||
e5106e27 DM |
4210 | 2016-09-07 David Malcolm <dmalcolm@redhat.com> |
4211 | ||
4212 | * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use | |
4213 | c_get_substring_location for this new langhook. | |
4214 | ||
9dc5773f JJ |
4215 | 2016-09-02 Jakub Jelinek <jakub@redhat.com> |
4216 | ||
4217 | PR c/65467 | |
4218 | * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if | |
4219 | flag_openmp. | |
4220 | (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue | |
4221 | instead of mark_exp_read on low_bound/length expression. | |
4222 | (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads, | |
4223 | c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize, | |
4224 | c_parser_omp_clause_priority, c_parser_omp_clause_hint, | |
4225 | c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause, | |
4226 | c_parser_oacc_clause_tile, c_parser_omp_clause_schedule, | |
4227 | c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams, | |
4228 | c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned, | |
4229 | c_parser_omp_clause_linear, c_parser_omp_clause_safelen, | |
4230 | c_parser_omp_clause_simdlen, c_parser_omp_clause_device, | |
4231 | c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue | |
4232 | instead of mark_expr_read. | |
4233 | (c_parser_omp_declare_reduction): Reject _Atomic qualified types. | |
4234 | * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR, | |
4235 | LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine. | |
4236 | * c-tree.h (c_omp_clause_copy_ctor): New prototype. | |
4237 | * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified | |
4238 | array section bases outside of depend clause, for depend clause | |
4239 | use convert_lvalue_to_rvalue on the base. | |
4240 | (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction, | |
4241 | linear, aligned, map, to and from clauses. | |
4242 | (c_omp_clause_copy_ctor): New function. | |
4243 | ||
295844f6 MP |
4244 | 2016-09-01 Marek Polacek <polacek@redhat.com> |
4245 | ||
4246 | PR c/7652 | |
4247 | * c-typeck.c (composite_type): Add FALLTHRU comment. | |
4248 | ||
089af25c DM |
4249 | 2016-08-31 David Malcolm <dmalcolm@redhat.com> |
4250 | ||
4251 | * c-parser.c (c_parser_declaration_or_fndef): Add trailing space | |
4252 | to the insertion fixits for "struct", "union", and "enum". | |
4253 | ||
f9087798 DM |
4254 | 2016-08-30 David Malcolm <dmalcolm@redhat.com> |
4255 | ||
4256 | * c-decl.c (implicit_decl_warning): Use add_fixit_replace | |
4257 | rather than add_fixit_misspelled_id. | |
4258 | (undeclared_variable): Likewise. | |
4259 | * c-parser.c (c_parser_declaration_or_fndef): Likewise. Remove | |
4260 | now-redundant "here" params from add_fixit_insert method calls. | |
4261 | (c_parser_parameter_declaration): Likewise. | |
4262 | * c-typeck.c (build_component_ref): Remove now-redundant range | |
4263 | param from add_fixit_replace method calls. | |
4264 | ||
ebef225f MP |
4265 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
4266 | ||
4267 | * c-typeck.c (parser_build_binary_op): Pass LHS to | |
4268 | warn_logical_not_parentheses. | |
4269 | ||
fe377a48 MP |
4270 | 2016-08-25 Marek Polacek <polacek@redhat.com> |
4271 | ||
4272 | PR c/77323 | |
4273 | * c-decl.c (declspecs_add_type): Set typespec_word even when __intN | |
4274 | or _FloatN or _FloatNx is not supported. | |
4275 | (finish_declspecs): Set type to integer_type_node when _FloatN or | |
4276 | _FloatNx is not supported. | |
4277 | ||
c65699ef JM |
4278 | 2016-08-19 Joseph Myers <joseph@codesourcery.com> |
4279 | ||
4280 | PR c/32187 | |
4281 | * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value. | |
4282 | (struct c_declspecs): Add field floatn_nx_idx. | |
4283 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN | |
4284 | and _FloatNx type specifiers. | |
4285 | * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs) | |
4286 | (c_parser_declspecs, c_parser_attribute_any_word) | |
4287 | (c_parser_objc_selector): Use CASE_RID_FLOATN_NX. | |
4288 | * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types. | |
4289 | (convert_arguments): Avoid promoting _FloatN and _FloatNx types | |
4290 | narrower than double. | |
4291 | ||
2f1364c2 JJ |
4292 | 2016-08-12 Jakub Jelinek <jakub@redhat.com> |
4293 | Martin Liska <mliska@suse.cz> | |
4294 | ||
4295 | PR c/67410 | |
4296 | * c-typeck.c (set_nonincremental_init_from_string): Use / instead of | |
4297 | % to determine val element to change. Assert that | |
4298 | wchar_bytes * charwidth fits into val array. | |
4299 | ||
191816a3 MP |
4300 | 2016-08-12 Marek Polacek <polacek@redhat.com> |
4301 | ||
4302 | PR c/7652 | |
4303 | * c-parser.c (c_parser_external_declaration): Add FALLTHRU. | |
4304 | (c_parser_postfix_expression): Likewise. | |
4305 | * c-typeck.c (build_unary_op): Adjust fall through comment. | |
4306 | (c_mark_addressable): Likewise. | |
4307 | ||
b95a64bb JJ |
4308 | 2016-08-11 Jakub Jelinek <jakub@redhat.com> |
4309 | ||
4310 | PR c/72816 | |
4311 | * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible | |
4312 | array member through typedef, for orig_qual_indirect == 0 clear | |
4313 | orig_qual_type. | |
4314 | ||
895aa8e1 DM |
4315 | 2016-08-08 David Malcolm <dmalcolm@redhat.com> |
4316 | ||
4317 | PR c/64955 | |
4318 | * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire | |
4319 | this up to selftest::run_c_tests. | |
4320 | (selftest::run_c_tests): New function. | |
4321 | ||
0b212d8c TS |
4322 | 2016-08-04 Thomas Schwinge <thomas@codesourcery.com> |
4323 | ||
ae9281fc TS |
4324 | * c-parser.c (struct oacc_routine_data): Add error_seen and |
4325 | fndecl_seen members. | |
4326 | (c_finish_oacc_routine): Use these. | |
4327 | (c_parser_declaration_or_fndef): Adjust. | |
4328 | (c_parser_oacc_routine): Likewise. Support more C language | |
4329 | constructs, and improve diagnostics. Move pragma context | |
4330 | checking... | |
4331 | (c_parser_pragma): ... here. | |
4332 | ||
0b212d8c TS |
4333 | * c-parser.c (struct oacc_routine_data): New. |
4334 | (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it. | |
4335 | Simplify code. | |
4336 | (c_finish_oacc_routine): Likewise. Don't attach clauses to "omp | |
4337 | declare target" attribute. | |
4338 | ||
76e2c821 JB |
4339 | 2016-08-01 Jan Beulich <jbeulich@suse.com> |
4340 | ||
4341 | * c-fold.c (c_fully_fold_internal): Also emit shift count | |
4342 | warnings for vector types. | |
4343 | * c-typeck.c (build_binary_op): Likewise. | |
4344 | ||
f618a472 MP |
4345 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
4346 | ||
4347 | PR c/71742 | |
4348 | * c-decl.c (finish_struct): Rephrase an error message. | |
4349 | ||
efd0786f MP |
4350 | PR c/71853 |
4351 | * c-parser.c (c_parser_switch_statement): Initialize ce.original_type | |
4352 | to error node for invalid code. | |
4353 | ||
e00dceaf MP |
4354 | PR c/71573 |
4355 | * c-decl.c (implicitly_declare): Return decl early not only for | |
4356 | error_mark_nodes, but for anything that is not a FUNCTION_DECL. | |
4357 | ||
673a107a JJ |
4358 | 2016-07-29 Jakub Jelinek <jakub@redhat.com> |
4359 | ||
4360 | PR c/71969 | |
4361 | * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS | |
4362 | on GNU extern inline functions. | |
4363 | ||
a5b5c8b6 MP |
4364 | 2016-07-29 Marek Polacek <polacek@redhat.com> |
4365 | ||
4366 | PR c/71583 | |
4367 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Also | |
4368 | check expr.value. | |
4369 | ||
e3fe09c1 UB |
4370 | 2016-07-22 Uros Bizjak <ubizjak@gmail.com> |
4371 | ||
4372 | * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1, | |
4373 | ||
7c8f7eaa DM |
4374 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
4375 | ||
4376 | * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to | |
4377 | spellcheck-tree.h | |
4378 | (best_macro_match): Likewise, converting from a typedef to a | |
4379 | subclass. | |
4380 | (find_closest_macro_cpp_cb): Move to spellcheck-tree.c. | |
4381 | (lookup_name_fuzzy): Update for change of best_macro_match to a | |
4382 | subclass with a ctor that calls cpp_forall_identifiers. | |
4383 | ||
de6a69ee DM |
4384 | 2016-07-20 David Malcolm <dmalcolm@redhat.com> |
4385 | ||
4386 | * c-decl.c (implicit_decl_warning): Update for conversion of | |
4387 | return type of lookup_name_fuzzy to const char *. | |
4388 | (undeclared_variable): Likewise. | |
4389 | (lookup_name_fuzzy): Convert return type from tree to | |
4390 | const char *. | |
4391 | * c-parser.c (c_parser_declaration_or_fndef): Update for | |
4392 | conversion of return type of lookup_name_fuzzy to const char *. | |
4393 | (c_parser_parameter_declaration): Likewise. | |
4394 | ||
b1c9c068 CP |
4395 | 2016-07-15 Cesar Philippidis <cesar@codesourcery.com> |
4396 | ||
4397 | * c-parser.c (c_parser_oacc_declare): Don't scan for | |
4398 | GOMP_MAP_POINTER. | |
4399 | * c-typeck.c (handle_omp_array_sections): Mark data clauses with | |
4400 | GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having | |
4401 | zero-length subarrays. | |
4402 | ||
ddbbcb19 JJ |
4403 | 2016-07-15 Jakub Jelinek <jakub@redhat.com> |
4404 | ||
4405 | PR c/71858 | |
4406 | * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME | |
4407 | instead of FUZZY_LOOKUP_NAME. | |
4408 | (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider | |
4409 | FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros. | |
4410 | ||
dd36b877 JJ |
4411 | 2016-07-14 Jakub Jelinek <jakub@redhat.com> |
4412 | ||
4413 | PR c/71858 | |
4414 | * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible. | |
4415 | ||
8c681247 TS |
4416 | 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
4417 | ||
4418 | * c-parser.c (c_parser_generic_selection): Make type of variable | |
4419 | auto_vec. | |
4420 | (c_parser_omp_declare_simd): Likewise. | |
4421 | ||
bf4fa671 TS |
4422 | 2016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
4423 | ||
4424 | * c-decl.c (struct c_struct_parse_info): Change member types | |
4425 | from vec to auto_vec. | |
4426 | (start_struct): Adjust. | |
4427 | (finish_struct): Likewise. | |
4428 | ||
557e8c49 JJ |
4429 | 2016-07-02 Jakub Jelinek <jakub@redhat.com> |
4430 | ||
4431 | PR c/71719 | |
4432 | * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR. | |
4433 | ||
54d19c3b TS |
4434 | 2016-06-29 Thomas Schwinge <thomas@codesourcery.com> |
4435 | ||
4436 | * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>: | |
4437 | Move pragma context checking into... | |
4438 | (c_parser_omp_cancellation_point): ... here, and improve | |
4439 | diagnostic messages. | |
4440 | * c-typeck.c (c_finish_omp_cancel) | |
4441 | (c_finish_omp_cancellation_point): Improve diagnostic messages. | |
4442 | ||
152ef731 JJ |
4443 | 2016-06-29 Jakub Jelinek <jakub@redhat.com> |
4444 | ||
4445 | PR c/71685 | |
4446 | * c-typeck.c (c_build_qualified_type): Don't clear | |
4447 | C_TYPE_INCOMPLETE_VARS for the main variant. | |
4448 | ||
4449 | 2016-06-28 Martin Sebor <msebor@redhat.com> | |
4378d117 MS |
4450 | |
4451 | PR c/71552 | |
4452 | * c-typeck.c (output_init_element): Diagnose incompatible types | |
4453 | before non-constant initializers. | |
4454 | ||
e9ac1f86 JJ |
4455 | 2016-06-28 Jakub Jelinek <jakub@redhat.com> |
4456 | ||
4457 | * Make-lang.in: Don't cat ../stage_current if it does not exist. | |
4458 | ||
277d7ee0 AK |
4459 | 2016-06-23 Andi Kleen <ak@linux.intel.com> |
4460 | ||
4461 | * Make-lang.in: Add support for autofdo. | |
4462 | ||
1a4f11c8 DM |
4463 | 2016-06-22 David Malcolm <dmalcolm@redhat.com> |
4464 | ||
4465 | PR c/70339 | |
4466 | * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h. | |
4467 | (implicit_decl_warning): When issuing warnings for implicit | |
4468 | declarations, attempt to provide a suggestion via | |
4469 | lookup_name_fuzzy. | |
4470 | (undeclared_variable): Likewise when issuing errors. | |
4471 | (lookup_name_in_scope): Likewise. | |
4472 | (struct edit_distance_traits<cpp_hashnode *>): New struct. | |
4473 | (best_macro_match): New typedef. | |
4474 | (find_closest_macro_cpp_cb): New function. | |
4475 | (lookup_name_fuzzy): New function. | |
4476 | * c-parser.c: Include gcc-rich-location.h. | |
4477 | (c_token_starts_typename): Split out case CPP_KEYWORD into... | |
4478 | (c_keyword_starts_typename): ...this new function. | |
4479 | (c_parser_declaration_or_fndef): When issuing errors about | |
4480 | missing "struct" etc, add a fixit. For other kinds of errors, | |
4481 | attempt to provide a suggestion via lookup_name_fuzzy. | |
4482 | (c_parser_parms_declarator): When looking ahead to detect typos in | |
4483 | type names, also reject CPP_KEYWORD. | |
4484 | (c_parser_parameter_declaration): When issuing errors about | |
4485 | unknown type names, attempt to provide a suggestion via | |
4486 | lookup_name_fuzzy. | |
4487 | * c-tree.h (c_keyword_starts_typename): New prototype. | |
4488 | ||
5a578671 JM |
4489 | 2016-06-20 Joseph Myers <joseph@codesourcery.com> |
4490 | ||
4491 | PR c/71601 | |
4492 | * c-typeck.c (build_conditional_expr): Return error_mark_node if | |
4493 | c_common_type returns error_mark_node. | |
4494 | ||
3f8257db | 4495 | 2016-06-19 Martin Sebor <msebor@redhat.com> |
aa0db437 MS |
4496 | |
4497 | PR c/69507 | |
4498 | * c-parser.c (c_parser_alignof_expression): Avoid diagnosing | |
4499 | __alignof__ (expression). | |
4500 | ||
6a3f203c DM |
4501 | 2016-06-14 David Malcolm <dmalcolm@redhat.com> |
4502 | ||
4503 | * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h. | |
4504 | ||
264757fb DM |
4505 | 2016-06-14 David Malcolm <dmalcolm@redhat.com> |
4506 | ||
4507 | * c-typeck.c (build_component_ref): Simplify fixit code by | |
4508 | using gcc_rich_location::add_fixit_misspelled_id. | |
4509 | (set_init_label): Likewise. | |
4510 | ||
f7e4f2e3 DM |
4511 | 2016-06-13 David Malcolm <dmalcolm@redhat.com> |
4512 | ||
4513 | * c-parser.c (c_parser_initelt): Provide location of name for new | |
4514 | location_t param of set_init_label. | |
4515 | * c-tree.h (set_init_label): Add location_t param. | |
4516 | * c-typeck.c (set_init_index): Add "fieldname_loc" location_t | |
4517 | param and use it when issuing error messages about unrecognized | |
4518 | field names. Attempt to provide a fixit hint if appropriate, | |
4519 | otherwise update the error message to provide the type name. | |
4520 | ||
4b1ffdb1 TS |
4521 | 2016-06-10 Thomas Schwinge <thomas@codesourcery.com> |
4522 | ||
4523 | PR c/71381 | |
4524 | * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>: | |
4525 | Loosen checking. | |
4526 | ||
44a845ca MS |
4527 | 2016-06-08 Martin Sebor <msebor@redhat.com> |
4528 | Jakub Jelinek <jakub@redhat.com> | |
4529 | ||
4530 | PR c++/70507 | |
4531 | PR c/68120 | |
4532 | * c-typeck.c (convert_arguments): Don't promote last argument | |
4533 | of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P. | |
4534 | ||
92a5f2ba MP |
4535 | 2016-06-08 Marek Polacek <polacek@redhat.com> |
4536 | ||
4537 | PR c/71418 | |
4538 | * c-decl.c (grokdeclarator): Check TYPE_P. | |
4539 | ||
08203f73 MP |
4540 | PR c/71426 |
4541 | * c-decl.c (get_parm_info): Don't crash on an assert on invalid | |
4542 | code. | |
4543 | ||
6ffd47b7 DM |
4544 | 2016-06-07 David Malcolm <dmalcolm@redhat.com> |
4545 | ||
4546 | * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof | |
4547 | and structure element reference, capture the location of the | |
4548 | element name token and pass it to build_component_ref. | |
4549 | (c_parser_postfix_expression_after_primary): Likewise for | |
4550 | structure element dereference. | |
4551 | (c_parser_omp_variable_list): Likewise for | |
4552 | OMP_CLAUSE_{_CACHE, MAP, FROM, TO}, | |
4553 | * c-tree.h (build_component_ref): Add location_t param. | |
4554 | * c-typeck.c (build_component_ref): Add location_t param | |
4555 | COMPONENT_LOC. Use it, if available, when issuing hints about | |
4556 | mispelled member names to provide a fixit replacement hint. | |
4557 | ||
1f40cff3 MP |
4558 | 2016-06-06 Marek Polacek <polacek@redhat.com> |
4559 | ||
4560 | PR c/71362 | |
4561 | * c-parser.c (c_parser_direct_declarator): Set location. | |
4562 | ||
5545a907 MP |
4563 | 2016-06-06 Marek Polacek <polacek@redhat.com> |
4564 | ||
4565 | * c-typeck.c (comptypes_internal): Handle comparisons of | |
4566 | INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes. Don't check | |
4567 | TYPE_REF_CAN_ALIAS_ALL. | |
4568 | ||
b605f663 CLT |
4569 | 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com> |
4570 | ||
4571 | * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction | |
4572 | arguments as addressable when async clause exists. | |
4573 | ||
00631022 JJ |
4574 | 2016-05-30 Jakub Jelinek <jakub@redhat.com> |
4575 | ||
4576 | PR c++/71349 | |
4577 | * c-parser.c (c_parser_omp_for): Don't disallow nowait clause | |
4578 | when combined with target construct. | |
4579 | ||
7211a097 JJ |
4580 | 2016-05-26 Jakub Jelinek <jakub@redhat.com> |
4581 | ||
4582 | * c-parser.c (c_parser_omp_clause_schedule): Warn if | |
4583 | OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive. | |
4584 | ||
95efe6b6 MP |
4585 | 2016-05-25 Marek Polacek <polacek@redhat.com> |
4586 | ||
4587 | PR c/71265 | |
4588 | * c-decl.c (c_make_fname_decl): Don't check seen_error. | |
4589 | ||
a23faf7a MP |
4590 | PR c/71266 |
4591 | * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs. | |
4592 | ||
e46c7770 CP |
4593 | 2016-05-24 Cesar Philippidis <cesar@codesourcery.com> |
4594 | ||
4595 | * c-parser.c (c_parser_oacc_declare): Add support for | |
4596 | GOMP_MAP_FIRSTPRIVATE_POINTER. | |
4597 | * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp | |
4598 | argument with enum c_omp_region_type ort. | |
4599 | (handle_omp_array_sections): Likewise. Update call to | |
4600 | handle_omp_array_sections_1. | |
4601 | (c_finish_omp_clauses): Add specific errors and warning messages for | |
4602 | OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update | |
4603 | call to handle_omp_array_sections. | |
4604 | ||
a04e69c0 TS |
4605 | 2016-05-24 Thomas Schwinge <thomas@codesourcery.com> |
4606 | ||
4607 | * c-parser.c (c_parser_oacc_routine): Tighten syntax checks. | |
4608 | ||
f17a223d RB |
4609 | 2016-05-24 Richard Biener <rguenther@suse.de> |
4610 | ||
4611 | PR middle-end/70434 | |
4612 | PR c/69504 | |
4613 | * c-typeck.c (build_array_ref): Do not complain about indexing | |
4614 | non-lvalue vectors. Adjust for function name change. | |
4615 | ||
79063edd MS |
4616 | 2016-05-20 Martin Sebor <msebor@redhat.com> |
4617 | ||
4618 | PR c/71115 | |
4619 | * c-typeck.c (error_init): Use | |
4620 | expansion_point_location_if_in_system_header. | |
4621 | (warning_init): Same. | |
4622 | ||
8a40fef3 DM |
4623 | 2016-05-19 David Malcolm <dmalcolm@redhat.com> |
4624 | ||
4625 | PR c/71171 | |
4626 | * c-parser.c (c_parser_generic_selection): Use c_expr::set_error | |
4627 | in error-handling. | |
4628 | (c_parser_postfix_expression): Likewise. | |
4629 | * c-tree.h (c_expr::set_error): New method. | |
4630 | * c-typeck.c (parser_build_binary_op): In error-handling, ensure | |
4631 | that result's range is initialized. | |
4632 | ||
e9892350 JG |
4633 | 2016-05-17 James Greenhalgh <james.greenhalgh@arm.com> |
4634 | ||
4635 | * c-typeck.c (parser_build_unary_op): Fix formatting. | |
4636 | ||
8fad45f5 MW |
4637 | 2016-05-16 Matthew Wahab <matthew.wahab@arm.com> |
4638 | ||
4639 | * c-decl.c (grokdeclarator): Remove errmsg and use of | |
4640 | targetm.invalid_return_type. | |
4641 | (grokparms): Remove errmsg and use of | |
4642 | targetm.invalid_parameter_type. | |
4643 | ||
aa4b467b JM |
4644 | 2016-05-13 Joseph Myers <joseph@codesourcery.com> |
4645 | ||
4646 | * c-decl.c (grokdeclarator): For C11, discard qualifiers on | |
4647 | function return type. | |
4648 | ||
4f2e1536 MP |
4649 | 2016-05-12 Marek Polacek <polacek@redhat.com> |
4650 | ||
4651 | PR c/70756 | |
4652 | * c-decl.c (build_compound_literal): Pass LOC down to | |
4653 | c_incomplete_type_error. | |
4654 | * c-tree.h (require_complete_type): Adjust declaration. | |
4655 | (c_incomplete_type_error): Likewise. | |
4656 | * c-typeck.c (require_complete_type): Add location parameter, pass it | |
4657 | down to c_incomplete_type_error. | |
4658 | (c_incomplete_type_error): Add location parameter, pass it down to | |
4659 | error_at. | |
4660 | (build_component_ref): Pass location down to c_incomplete_type_error. | |
4661 | (default_conversion): Pass location down to require_complete_type. | |
4662 | (build_array_ref): Likewise. | |
4663 | (build_function_call_vec): Likewise. | |
4664 | (convert_arguments): Likewise. | |
4665 | (build_unary_op): Likewise. | |
4666 | (build_c_cast): Likewise. | |
4667 | (build_modify_expr): Likewise. | |
4668 | (convert_for_assignment): Likewise. | |
4669 | (c_finish_omp_clauses): Likewise. | |
4670 | ||
d6e83a8d MM |
4671 | 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com> |
4672 | ||
4673 | PR c/43651 | |
4674 | * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier | |
4675 | is enabled. | |
4676 | * c-errors.c (pedwarn_c90): Return true if warned. | |
4677 | * c-tree.h (pedwarn_c90): Change return type to bool. | |
4678 | (enum c_declspec_word): Add new enumerator cdw_atomic. | |
4679 | ||
5c3a10fb MP |
4680 | 2016-05-11 Marek Polacek <polacek@redhat.com> |
4681 | ||
4682 | PR c++/71024 | |
4683 | * c-decl.c (diagnose_mismatched_decls): Factor out code to | |
4684 | diagnose_mismatched_attributes and call it. | |
4685 | ||
cf68d92c MP |
4686 | 2016-05-10 Marek Polacek <polacek@redhat.com> |
4687 | ||
4688 | PR c/70255 | |
4689 | * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute | |
4690 | on a declaration following the definition. | |
4691 | ||
351f85c5 JJ |
4692 | 2016-05-05 Jakub Jelinek <jakub@redhat.com> |
4693 | ||
4694 | * c-parser.c (c_parser_switch_statement): Add IF_P argument, | |
4695 | parse it through to c_parser_c99_block_statement. | |
4696 | (c_parser_statement_after_labels): Adjust c_parser_switch_statement | |
4697 | caller. | |
4698 | ||
deef7113 MP |
4699 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
4700 | ||
4701 | * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with | |
4702 | OPT_Wdangling_else. | |
4703 | ||
de55efd5 MP |
4704 | 2016-05-04 Marek Polacek <polacek@redhat.com> |
4705 | ||
4706 | PR c/48778 | |
4707 | * c-typeck.c (build_binary_op): Don't issue -Waddress warnings | |
4708 | for macro expansions. | |
4709 | ||
79ce98bc MP |
4710 | 2016-05-03 Marek Polacek <polacek@redhat.com> |
4711 | ||
4712 | PR c/70859 | |
4713 | * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to | |
4714 | check_builtin_function_arguments. | |
4715 | ||
fb2647aa RB |
4716 | 2016-05-03 Richard Biener <rguenther@suse.de> |
4717 | ||
4718 | * Make-lang.in (cc1-checksum.c): For stage-final re-use | |
4719 | the checksum from the previous stage. | |
4720 | ||
77886428 CP |
4721 | 2016-05-02 Cesar Philippidis <cesar@codesourcery.com> |
4722 | ||
4723 | * c-parser.c (c_parser_oacc_all_clauses): Update call to | |
4724 | c_finish_omp_clauses. | |
4725 | (c_parser_omp_all_clauses): Likewise. | |
4726 | (c_parser_oacc_cache): Likewise. | |
4727 | (c_parser_oacc_loop): Likewise. | |
4728 | (omp_split_clauses): Likewise. | |
4729 | (c_parser_omp_declare_target): Likewise. | |
4730 | (c_parser_cilk_all_clauses): Likewise. | |
4731 | (c_parser_cilk_for): Likewise. | |
4732 | * c-typeck.c (c_finish_omp_clauses): Replace bool arguments | |
4733 | is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort. | |
4734 | ||
7176a4a0 MP |
4735 | 2016-05-02 Marek Polacek <polacek@redhat.com> |
4736 | ||
4737 | PR c/70851 | |
4738 | * c-decl.c (grokdeclarator): Diagnose when array's size has an | |
4739 | incomplete type. | |
4740 | ||
e7ff0319 CP |
4741 | 2016-04-29 Cesar Philippidis <cesar@codesourcery.com> |
4742 | ||
4743 | PR middle-end/70626 | |
4744 | * c-parser.c (c_parser_oacc_loop): Don't augment mask with | |
4745 | OACC_LOOP_CLAUSE_MASK. | |
4746 | (c_parser_oacc_kernels_parallel): Update call to | |
4747 | c_oacc_split_loop_clauses. | |
4748 | ||
9f405ce1 AM |
4749 | 2016-04-28 Andrew MacLeod <amacleod@redhat.com> |
4750 | ||
4751 | * c-array-notation.c (fix_builtin_array_notation_fn): Fix final | |
4752 | argument to build_modify_expr in two cases. | |
4753 | ||
c1e1f433 BS |
4754 | 2016-04-27 Bernd Schmidt <bschmidt@redhat.com> |
4755 | ||
4756 | * c-parser.c (c_parser_postfix_expression_after_primary): Call | |
4757 | warn_for_memset instead of warning directly here. | |
4758 | ||
2448a956 MP |
4759 | 2016-04-26 Marek Polacek <polacek@redhat.com> |
4760 | ||
4761 | PR c/67784 | |
4762 | * c-parser.c (c_parser_maybe_reclassify_token): New function factored | |
4763 | out of ... | |
4764 | (c_parser_for_statement): ... here. | |
4765 | (c_parser_if_statement): Use it. | |
4766 | (c_parser_switch_statement): Use it. | |
4767 | (c_parser_while_statement): Use it. | |
4768 | ||
b02a5e26 MP |
4769 | PR c/70791 |
4770 | * c-decl.c (pushdecl): Pass LOCUS down to warning. | |
4771 | ||
477d4906 IV |
4772 | 2016-04-20 Ilya Verbin <ilya.verbin@intel.com> |
4773 | ||
4774 | PR c++/69363 | |
4775 | * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses | |
4776 | instead of c_finish_cilk_clauses. | |
4777 | * c-tree.h (c_finish_omp_clauses): Add new default argument. | |
4778 | * c-typeck.c (c_finish_omp_clauses): Add new argument. Allow | |
4779 | floating-point variables in the linear clause for Cilk Plus. | |
4780 | ||
fe37c7af MM |
4781 | 2016-04-18 Michael Matz <matz@suse.de> |
4782 | ||
4783 | * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN. | |
4784 | (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN. | |
4785 | ||
949505a9 MP |
4786 | 2016-04-15 Marek Polacek <polacek@redhat.com> |
4787 | ||
4788 | PR c/70671 | |
4789 | * c-typeck.c (build_unary_op): Pass location down to error and | |
4790 | warning call. | |
4791 | ||
dda1bf61 JJ |
4792 | 2016-04-15 Jakub Jelinek <jakub@redhat.com> |
4793 | ||
4794 | PR c/70436 | |
4795 | * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down | |
4796 | where needed. | |
4797 | (c_parser_external_declaration, c_parser_struct_or_union_specifier, | |
4798 | c_parser_parameter_declaration, c_parser_compound_statement_nostart, | |
4799 | c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist): | |
4800 | Adjust c_parser_pragma callers. | |
4801 | (c_parser_statement_after_labels): Likewise. Adjust c_parser_cilk_for | |
4802 | caller. | |
4803 | (c_parser_omp_structured_block): Add IF_P argument, pass it down to | |
4804 | c_parser_statement. | |
4805 | (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop, | |
4806 | c_parser_oacc_kernels_parallel, c_parser_omp_critical, | |
4807 | c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master, | |
4808 | c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single, | |
4809 | c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute, | |
4810 | c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target, | |
4811 | c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize, | |
4812 | c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it | |
4813 | down where needed. | |
4814 | (c_parser_omp_for_loop): Likewise. Clear IF_P if nbraces. | |
4815 | (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block | |
4816 | calls. | |
4817 | ||
99cd9857 MP |
4818 | 2016-04-13 Marek Polacek <polacek@redhat.com> |
4819 | ||
4820 | PR c/70436 | |
4821 | * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and | |
4822 | adjust callers. | |
4823 | (c_parser_statement): Likewise. | |
4824 | (c_parser_c99_block_statement): Likewise. | |
4825 | (c_parser_while_statement): Likewise. | |
4826 | (c_parser_for_statement): Likewise. | |
4827 | (c_parser_if_body): Don't set IF_P here. | |
4828 | (c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn | |
4829 | about dangling else here. | |
4830 | * c-tree.h (c_finish_if_stmt): Adjust declaration. | |
4831 | * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't | |
4832 | warn about dangling else here. | |
4833 | ||
f13355da MP |
4834 | 2016-04-04 Marek Polacek <polacek@redhat.com> |
4835 | ||
4836 | PR c/70307 | |
4837 | * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR. | |
4838 | ||
5fde6a45 MP |
4839 | 2016-03-31 Marek Polacek <polacek@redhat.com> |
4840 | ||
4841 | PR c/70297 | |
4842 | * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN. | |
4843 | ||
4bbf545b DM |
4844 | 2016-03-18 David Malcolm <dmalcolm@redhat.com> |
4845 | ||
4846 | PR c/70281 | |
4847 | * c-parser.c (c_parser_postfix_expression): Set the source range | |
4848 | for uses of "__builtin_types_compatible_p". | |
4849 | ||
fcc2b74f JJ |
4850 | 2016-03-17 Jakub Jelinek <jakub@redhat.com> |
4851 | ||
4852 | PR c/70280 | |
4853 | * c-typeck.c (composite_type): Don't count void_list_node | |
4854 | into len, if the list is terminated by void_list_node, start | |
4855 | with void_list_node instead of NULL for newargs. Stop | |
4856 | at void_list_node. | |
4857 | ||
ab4c578f MP |
4858 | 2016-03-16 Marek Polacek <polacek@redhat.com> |
4859 | ||
4860 | PR c/70093 | |
4861 | * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for | |
4862 | nested functions returning VM types. | |
4863 | ||
96b3c82d CP |
4864 | 2016-03-09 Cesar Philippidis <cesar@codesourcery.com> |
4865 | ||
4866 | * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses | |
4867 | when calling c_finish_omp_clauses. | |
4868 | ||
29b9828f BS |
4869 | 2016-03-04 Bernd Schmidt <bschmidt@redhat.com> |
4870 | ||
4871 | PR c/69824 | |
4872 | * c-decl.c (get_parm_info): Don't queue implicit function declarations | |
4873 | for later. | |
4874 | ||
7ff6ca38 MP |
4875 | 2016-03-04 Marek Polacek <polacek@redhat.com> |
4876 | ||
4877 | PR c/69798 | |
4878 | * c-parser.c (c_parser_postfix_expression): Call | |
4879 | c_parser_cast_expression rather than c_parser_postfix_expression. | |
4880 | ||
686e2237 JJ |
4881 | 2016-03-01 Jakub Jelinek <jakub@redhat.com> |
4882 | ||
4883 | PR c/69796 | |
4884 | PR c/69974 | |
4885 | * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE | |
4886 | of incomplete decls to error_mark_node. | |
4887 | ||
0b05329b MP |
4888 | 2016-02-24 Marek Polacek <polacek@redhat.com> |
4889 | ||
4890 | PR c/69819 | |
4891 | * c-decl.c (finish_decl): Don't update the copy of the type of a | |
4892 | different decl type. | |
4893 | ||
067fbd8b JJ |
4894 | 2016-02-23 Jakub Jelinek <jakub@redhat.com> |
4895 | ||
4896 | PR objc/69844 | |
4897 | * c-parser.c (c_parser_for_statement): Properly handle ObjC classes | |
4898 | in id_kind reclassification. | |
4899 | ||
bf14eba2 JJ |
4900 | 2016-02-16 Jakub Jelinek <jakub@redhat.com> |
4901 | ||
4902 | PR c/69835 | |
4903 | * c-typeck.c (build_binary_op): Revert 2015-09-09 change. | |
4904 | ||
ba539195 JN |
4905 | 2016-02-16 James Norris <jnorris@codesourcery.com> |
4906 | ||
4907 | PR c/64748 | |
4908 | * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms. | |
4909 | ||
16595a1f BS |
4910 | 2016-02-12 Bernd Schmidt <bschmidt@redhat.com> |
4911 | ||
f48dfe98 BS |
4912 | * c-decl.c (build_null_declspecs): Zero the entire struct. |
4913 | ||
16595a1f BS |
4914 | PR c/69522 |
4915 | * c-parser.c (c_parser_braced_init): New arg outer_obstack. All | |
4916 | callers changed. If nested_p is true, use it to call | |
4917 | finish_implicit_inits. | |
4918 | * c-tree.h (finish_implicit_inits): Declare. | |
4919 | * c-typeck.c (finish_implicit_inits): New function. Move code | |
4920 | from ... | |
4921 | (push_init_level): ... here. | |
4922 | (set_designator, process_init_element): Call finish_implicit_inits. | |
4923 | ||
66756373 JJ |
4924 | 2016-02-11 Jakub Jelinek <jakub@redhat.com> |
4925 | ||
4926 | PR c/69768 | |
4927 | * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop | |
4928 | arguments for -Waddress warning. | |
4929 | ||
1066e9b5 JJ |
4930 | 2016-02-04 Jakub Jelinek <jakub@redhat.com> |
4931 | ||
4932 | PR c/69669 | |
4933 | * c-decl.c (finish_enum): When honoring mode attribute, | |
4934 | make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE. | |
4935 | ||
3a5d2ba4 JJ |
4936 | 2016-01-29 Jakub Jelinek <jakub@redhat.com> |
4937 | ||
4938 | PR debug/69518 | |
4939 | * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in | |
4940 | all type variants, not just TYPE_MAIN_VARIANT. | |
4941 | ||
cbdd8ae0 JJ |
4942 | 2016-01-27 Jakub Jelinek <jakub@redhat.com> |
4943 | ||
4944 | PR debug/66869 | |
4945 | * c-decl.c (c_write_global_declarations_1): Warn with | |
4946 | warn_unused_function if static prototype without definition | |
4947 | is not C_DECL_USED. | |
4948 | ||
fa74a4bc MP |
4949 | 2016-01-27 Marek Polacek <polacek@redhat.com> |
4950 | ||
4951 | PR c/68062 | |
4952 | * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand | |
4953 | to unsigned, if needed. Add -Wsign-compare warning. | |
4954 | ||
13f92e8d JJ |
4955 | 2016-01-26 Jakub Jelinek <jakub@redhat.com> |
4956 | ||
4957 | PR tree-optimization/69483 | |
4958 | * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT. | |
4959 | ||
cd8e73dc | 4960 | 2016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
d25c7690 PK |
4961 | |
4962 | PR c/24293 | |
4963 | * c-tree.h (incomplete_record_decls): Declare. | |
4964 | * c-parser.c (incomplete_record_decls): Define. | |
4965 | (c_parser_translation_unit): Iterate through incomplete_record_decls and | |
4966 | report error if any decl has zero size. | |
4967 | * c-decl.c (finish_decl): Append static decl with incomplete struct/union | |
4968 | or enum type to incomplete_record_decls. | |
4969 | ||
e6d6ec9e TV |
4970 | 2016-01-14 Tom de Vries <tom@codesourcery.com> |
4971 | ||
4972 | PR tree-optimization/68773 | |
4973 | * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't | |
4974 | set force_output. | |
4975 | ||
00083992 MP |
4976 | 2016-01-14 Marek Polacek <polacek@redhat.com> |
4977 | ||
4978 | PR c/69262 | |
4979 | * c-decl.c (grokdeclarator): Provide more information for invalid | |
4980 | array declarations. | |
4981 | ||
7443cf13 DM |
4982 | 2016-01-06 David Malcolm <dmalcolm@redhat.com> |
4983 | ||
4984 | * c-parser.c (c_parser_unary_expression): For dereferences, build | |
4985 | a combined location before calling build_indirect_ref, so that | |
4986 | error reports cover the full range, manually updating the c_expr | |
4987 | src_range. | |
4988 | ||
6b131d5b MP |
4989 | 2016-01-06 Marek Polacek <polacek@redhat.com> |
4990 | ||
4991 | PR sanitizer/69099 | |
4992 | * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to | |
4993 | ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of | |
4994 | NULL. | |
4995 | ||
818ab71a JJ |
4996 | 2016-01-04 Jakub Jelinek <jakub@redhat.com> |
4997 | ||
4998 | Update copyright years. | |
4999 | ||
2fe0a208 MP |
5000 | 2016-01-04 Marek Polacek <polacek@redhat.com> |
5001 | ||
5002 | PR c/68908 | |
5003 | * c-typeck.c (build_atomic_assign): Improve commentary. Add | |
5004 | optimization to use __atomic_fetch_* built-in if possible. | |
5005 | ||
c7b48c8a TS |
5006 | 2015-12-23 Thomas Schwinge <thomas@codesourcery.com> |
5007 | ||
5008 | * c-parser.c (c_parser_oacc_clause_use_device): Merge function | |
5009 | into... | |
5010 | (c_parser_omp_clause_use_device_ptr): ... this function. Adjust | |
5011 | all users. | |
5012 | ||
fda5652f MP |
5013 | 2015-12-22 Marek Polacek <polacek@redhat.com> |
5014 | ||
5015 | PR c/69002 | |
5016 | * c-typeck.c (build_component_ref): Warn when acessing elements of | |
5017 | atomic structures or unions. | |
5018 | ||
745e411d DM |
5019 | 2015-12-21 David Malcolm <dmalcolm@redhat.com> |
5020 | ||
5021 | * c-typeck.c: Include "gcc-rich-location.h". | |
5022 | (build_binary_op): In the two places that call binary_op_error, | |
5023 | create a gcc_rich_location and populate it with the location of | |
5024 | the binary op and its two operands. | |
5025 | ||
94c40e19 DM |
5026 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
5027 | ||
5028 | * c-parser.c (c_parser_statement_after_labels): When calling | |
5029 | c_finish_return, Use the return expression's location if it has | |
5030 | one, falling back to the location of the first token within it. | |
5031 | * c-typeck.c (c_finish_return): When issuing warnings about | |
5032 | the incorrect presence/absence of a return value, issue a note | |
5033 | showing the declaration of the function. | |
5034 | ||
de67c4c3 DM |
5035 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
5036 | ||
5037 | * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2 | |
5038 | to 4. | |
5039 | (c_parser_peek_nth_token): New function. | |
5040 | (c_parser_peek_conflict_marker): New function. | |
5041 | (c_parser_error): Detect conflict markers and report them as such. | |
5042 | ||
a10704e1 DM |
5043 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
5044 | ||
5045 | * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC | |
5046 | to preserve range information for the primary expression | |
5047 | in the call to c_parser_postfix_expression_after_primary. | |
5048 | ||
8062bca6 DM |
5049 | 2015-12-16 David Malcolm <dmalcolm@redhat.com> |
5050 | ||
5051 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the | |
5052 | expression location, falling back on the first token location, | |
5053 | rather than always using the latter. | |
5054 | ||
d06f8b75 MP |
5055 | 2015-12-16 Marek Polacek <polacek@redhat.com> |
5056 | ||
5057 | PR c/64637 | |
5058 | * c-typeck.c (c_process_expr_stmt): Use location of the expression if | |
5059 | available. | |
5060 | ||
2994fb91 MP |
5061 | 2015-12-15 Marek Polacek <polacek@redhat.com> |
5062 | ||
5063 | PR c/68907 | |
5064 | * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an | |
5065 | artificial decl. | |
5066 | ||
a1b93f8d DM |
5067 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
5068 | ||
5069 | * c-parser.c (c_parser_alignof_expression): Capture location of | |
5070 | closing parenthesis (if any), or of end of unary expression, and | |
5071 | use it to build a src_range for the expression. | |
5072 | ||
46c6e1e2 DM |
5073 | 2015-12-08 David Malcolm <dmalcolm@redhat.com> |
5074 | ||
5075 | PR c/68757 | |
5076 | * c-parser.c (c_parser_get_builtin_args): Add | |
5077 | "out_close_paren_loc" param, and write back to it. | |
5078 | (c_parser_postfix_expression): Capture the closing | |
5079 | parenthesis location for RID_CHOOSE_EXPR, | |
5080 | RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX, | |
5081 | RID_BUILTIN_SHUFFLE and use it to set the source range | |
5082 | for such expressions; within RID_BUILTIN_COMPLEX set | |
5083 | the underlying location. | |
5084 | ||
66189108 MP |
5085 | 2015-12-07 Marek Polacek <polacek@redhat.com> |
5086 | ||
5087 | PR c/68668 | |
5088 | * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use | |
5089 | TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT. | |
5090 | ||
f187980b EB |
5091 | 2015-12-04 Eric Botcazou <ebotcazou@adacore.com> |
5092 | ||
5093 | * c-tree.h (c_build_va_arg): Adjust prototype. | |
5094 | * c-parser.c (c_parser_postfix_expression): Adjust call to above. | |
5095 | * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1 | |
5096 | parameter, adjust throughout and issue an error if EXPR is a component | |
5097 | with reverse storage order. | |
5098 | ||
4250754e JM |
5099 | 2015-12-02 Jason Merrill <jason@redhat.com> |
5100 | ||
5101 | * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold) | |
5102 | (c_fully_fold_internal, decl_constant_value_for_optimization): | |
5103 | Move from c-common.c. | |
5104 | * c-tree.h: Declare decl_constant_value_for_optimization. | |
5105 | * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o. | |
5106 | ||
e9e32ee6 JM |
5107 | 2015-12-02 Joseph Myers <joseph@codesourcery.com> |
5108 | ||
5109 | PR c/68162 | |
5110 | * c-decl.c (grokdeclarator): Set first_non_attr_kind before | |
5111 | following link from declarator to next declarator. Track original | |
5112 | qualified type and pass it to c_build_qualified_type. | |
5113 | * c-typeck.c (c_build_qualified_type): Add arguments | |
5114 | orig_qual_type and orig_qual_indirect. | |
5115 | ||
ff7a55bf TS |
5116 | 2015-12-02 Thomas Schwinge <thomas@codesourcery.com> |
5117 | ||
5118 | * c-parser.c (c_parser_omp_clause_name) | |
5119 | (c_parser_oacc_all_clauses): Alphabetical sorting. | |
5120 | ||
657e4e47 JJ |
5121 | 2015-12-02 Jakub Jelinek <jakub@redhat.com> |
5122 | ||
5123 | PR c/68533 | |
5124 | * c-decl.c (get_parm_info): Use b->locus instead of input_location | |
5125 | for diagnostics. | |
5126 | ||
37d5ad46 JB |
5127 | 2015-12-01 Julian Brown <julian@codesourcery.com> |
5128 | Cesar Philippidis <cesar@codesourcery.com> | |
5129 | James Norris <James_Norris@mentor.com> | |
5130 | ||
5131 | * c-parser.c (c_parser_omp_clause_name): Add use_device support. | |
5132 | (c_parser_oacc_clause_use_device): New function. | |
5133 | (c_parser_oacc_all_clauses): Add use_device support. | |
5134 | (OACC_HOST_DATA_CLAUSE_MASK): New macro. | |
5135 | (c_parser_oacc_host_data): New function. | |
5136 | (c_parser_omp_construct): Add host_data support. | |
5137 | * c-tree.h (c_finish_oacc_host_data): Add prototype. | |
5138 | * c-typeck.c (c_finish_oacc_host_data): New function. | |
5139 | (c_finish_omp_clauses): Add use_device support. | |
5140 | ||
a4850ce9 JH |
5141 | 2015-11-29 Jan Hubicka <hubicka@ucw.cz> |
5142 | ||
5143 | PR c/67106 | |
5144 | * c-decl.c: Set TYPE_PACKED in variants. | |
5145 | ||
b58d3df2 ML |
5146 | 2015-11-27 Martin Liska <mliska@suse.cz> |
5147 | ||
5148 | PR c++/68312 | |
5149 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
5150 | Use release_vec_vec instead of vec::release. | |
5151 | (build_array_notation_expr): Likewise. | |
5152 | (fix_conditional_array_notations_1): Likewise. | |
5153 | (fix_array_notation_expr): Likewise. | |
5154 | (fix_array_notation_call_expr): Likewise. | |
5155 | ||
aec17bfe JJ |
5156 | 2015-11-27 Jakub Jelinek <jakub@redhat.com> |
5157 | ||
5158 | PR c/63326 | |
5159 | * c-parser.c (c_parser_compound_statement_nostart): If | |
5160 | last_label is true, use pragma_stmt instead of pragma_compound | |
5161 | as second c_parser_pragma argument. | |
5162 | (c_parser_omp_ordered, c_parser_omp_target_update, | |
5163 | c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass | |
5164 | false as second argument to c_parser_skip_to_pragma_eol after | |
5165 | diagnosing standalone directives used in pragma_stmt context. | |
5166 | ||
688c4de0 IV |
5167 | 2015-11-24 Ilya Verbin <ilya.verbin@intel.com> |
5168 | ||
5169 | * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING" | |
5170 | with "if (ENABLE_OFFLOADING)". | |
5171 | ||
cbd03aee DM |
5172 | 2015-11-23 David Malcolm <dmalcolm@redhat.com> |
5173 | ||
5174 | PR objc/68438 | |
5175 | * c-parser.c (c_parser_postfix_expression): Set up source ranges | |
5176 | for various Objective-C constructs: Class.name syntax, | |
5177 | @selector(), @protocol(), @encode(), and [] message syntax. | |
5178 | ||
a87a86e1 DM |
5179 | 2015-11-20 David Malcolm <dmalcolm@redhat.com> |
5180 | ||
5181 | PR 62314 | |
5182 | * c-typeck.c (should_suggest_deref_p): New function. | |
5183 | (build_component_ref): Special-case POINTER_TYPE when | |
5184 | generating a "not a structure of union" error message, and | |
5185 | suggest a "->" rather than a ".", providing a fix-it hint. | |
5186 | ||
8ece8dfb DM |
5187 | 2015-11-19 David Malcolm <dmalcolm@redhat.com> |
5188 | ||
5189 | * c-typeck.c (lookup_field_fuzzy): Move determination of closest | |
5190 | candidate into a new function, find_closest_identifier. | |
5191 | ||
433068cc MP |
5192 | 2015-11-19 Marek Polacek <polacek@redhat.com> |
5193 | ||
5194 | PR c/68412 | |
5195 | * c-typeck.c (parser_build_binary_op): Properly handle | |
5196 | C_MAYBE_CONST_EXPR before calling warn_tautological_cmp. | |
5197 | ||
bef08b71 DM |
5198 | 2015-11-17 David Malcolm <dmalcolm@redhat.com> |
5199 | ||
5200 | * c-parser.c (set_c_expr_source_range): Bulletproof both | |
5201 | overloaded implementations against NULL expr->value. | |
5202 | (c_parser_braced_init): Set src_range for "ret" to a sane pair of | |
5203 | values. | |
5204 | (c_parser_unary_expression): Likewise when handling addresses of | |
5205 | labels. | |
5206 | (c_parser_postfix_expression): Likewise for statement expressions, | |
5207 | for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for | |
5208 | __builtin_va_arg, and for __builtin_offset_of. | |
5209 | (c_parser_postfix_expression_after_paren_type): Initialize expr's | |
5210 | src_range using the range of the braced initializer. | |
5211 | (c_parser_transaction_expression): Set src_range for "ret" to a | |
5212 | sane pair of values. | |
5213 | ||
fff77217 KY |
5214 | 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com> |
5215 | ||
5216 | * c-parser.c (c_finish_omp_declare_simd): Look for | |
5217 | "simd" attribute as well. Update error message. | |
5218 | ||
1d899da2 TS |
5219 | 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> |
5220 | ||
5221 | * c-parser.c (c_parser_omp_declare_target): Adjust. | |
5222 | ||
e4606348 JJ |
5223 | 2015-11-14 Jakub Jelinek <jakub@redhat.com> |
5224 | ||
5225 | * c-typeck.c (c_finish_omp_clauses): Don't mark | |
5226 | GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable. | |
5227 | ||
3e636daf MP |
5228 | 2015-11-14 Marek Polacek <polacek@redhat.com> |
5229 | ||
5230 | * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout. | |
5231 | * c-typeck.c: Likewise. | |
5232 | ||
ebedc9a3 DM |
5233 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
5234 | ||
5235 | * c-decl.c (warn_defaults_to): Pass line_table to | |
5236 | rich_location ctor. | |
5237 | * c-errors.c (pedwarn_c99): Likewise. | |
5238 | (pedwarn_c90): Likewise. | |
5239 | * c-parser.c (set_c_expr_source_range): New functions. | |
5240 | (c_token::get_range): New method. | |
5241 | (c_token::get_finish): New method. | |
5242 | (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret | |
5243 | based on the range from the start of the LHS to the end of the | |
5244 | RHS. | |
5245 | (c_parser_conditional_expression): Likewise, based on the range | |
5246 | from the start of the cond.value to the end of exp2.value. | |
5247 | (c_parser_binary_expression): Call set_c_expr_source_range on | |
5248 | the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR. | |
5249 | (c_parser_cast_expression): Call set_c_expr_source_range on ret | |
5250 | based on the cast_loc through to the end of the expr. | |
5251 | (c_parser_unary_expression): Likewise, based on the | |
5252 | op_loc through to the end of op. | |
5253 | (c_parser_sizeof_expression) Likewise, based on the start of the | |
5254 | sizeof token through to either the closing paren or the end of | |
5255 | expr. | |
5256 | (c_parser_postfix_expression): Likewise, using the token range, | |
5257 | or from the open paren through to the close paren for | |
5258 | parenthesized expressions. | |
5259 | (c_parser_postfix_expression_after_primary): Likewise, for | |
5260 | various kinds of expression. | |
5261 | * c-tree.h (struct c_expr): Add field "src_range". | |
5262 | (c_expr::get_start): New method. | |
5263 | (c_expr::get_finish): New method. | |
5264 | (set_c_expr_source_range): New decls. | |
5265 | * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range | |
5266 | on ret for prefix unary ops. | |
5267 | (parser_build_binary_op): Likewise, running from the start of | |
5268 | arg1.value through to the end of arg2.value. | |
5269 | ||
ec8b536f MP |
5270 | 2015-11-13 Marek Polacek <polacek@redhat.com> |
5271 | ||
5272 | PR c/68320 | |
5273 | * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs. | |
5274 | ||
277fe616 DM |
5275 | 2015-11-13 David Malcolm <dmalcolm@redhat.com> |
5276 | ||
5277 | * c-typeck.c: Include spellcheck.h. | |
5278 | (lookup_field_fuzzy_find_candidates): New function. | |
5279 | (lookup_field_fuzzy): New function. | |
5280 | (build_component_ref): If the field was not found, try using | |
5281 | lookup_field_fuzzy and potentially offer a suggestion. | |
5282 | ||
6e232ba4 JN |
5283 | 2015-11-12 James Norris <jnorris@codesourcery.com> |
5284 | Joseph Myers <joseph@codesourcery.com> | |
5285 | ||
5286 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE. | |
5287 | (c_parser_omp_clause_name): Handle 'device_resident' clause. | |
5288 | (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
5289 | and PRAGMA_OMP_CLAUSE_LINK. | |
5290 | (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT | |
5291 | and PRAGMA_OACC_CLAUSE_LINK. | |
5292 | (OACC_DECLARE_CLAUSE_MASK): New definition. | |
5293 | (c_parser_oacc_declare): New function. | |
5294 | ||
9be4f715 MP |
5295 | 2015-11-12 Marek Polacek <polacek@redhat.com> |
5296 | ||
5297 | PR c/67784 | |
5298 | * c-parser.c (c_parser_for_statement): Reclassify the token in | |
5299 | a correct scope. | |
5300 | ||
e78bede6 MP |
5301 | 2015-11-11 Marek Polacek <polacek@redhat.com> |
5302 | ||
5303 | PR c/68107 | |
5304 | PR c++/68266 | |
5305 | * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code | |
5306 | checking the size of an array. | |
5307 | ||
69f293c9 AM |
5308 | 2015-11-11 Andrew MacLeod <amacleod@redhat.com> |
5309 | ||
5310 | * c-array-notation.c: Remove unused header files. | |
5311 | * c-aux-info.c: Likewise. | |
5312 | * c-convert.c: Likewise. | |
5313 | * c-decl.c: Likewise. | |
5314 | * c-errors.c: Likewise. | |
5315 | * c-lang.c: Likewise. | |
5316 | * c-objc-common.c: Likewise. | |
5317 | * c-parser.c: Likewise. | |
5318 | * c-typeck.c: Likewise. | |
5319 | * gccspec.c: Likewise. | |
5320 | ||
3a40d81d NS |
5321 | 2015-11-09 Thomas Schwinge <thomas@codesourcery.com> |
5322 | Cesar Philippidis <cesar@codesourcery.com> | |
5323 | James Norris <jnorris@codesourcery.com> | |
5324 | Julian Brown <julian@codesourcery.com> | |
5325 | Nathan Sidwell <nathan@codesourcery.com> | |
5326 | ||
3a40d81d NS |
5327 | * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC |
5328 | routine arg. | |
5329 | (c_parser_declaration_or_fndef): Call c_finish_oacc_routine. | |
5330 | (c_parser_pragma): Parse 'acc routine'. | |
5331 | (OACC_ROUTINE_CLAUSE_MARK): Define. | |
5332 | (c_parser_oacc_routine, (c_finish_oacc_routine): New. | |
5333 | ||
fc402eec AA |
5334 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5335 | ||
5336 | PR debug/67192 | |
5337 | * c-typeck.c (c_finish_loop): For unconditional loops, set the | |
5338 | location of the backward-goto to the start of the loop body. | |
5339 | ||
f6b0b3db AA |
5340 | 2015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com> |
5341 | ||
5342 | PR debug/67192 | |
5343 | * c-parser.c (c_parser_while_statement): Finish the loop before | |
5344 | parsing ahead for misleading indentation. | |
5345 | (c_parser_for_statement): Likewise. | |
5346 | ||
ee45a32d EB |
5347 | 2015-11-08 Eric Botcazou <ebotcazou@adacore.com> |
5348 | ||
5349 | * c-decl.c (finish_struct): If the structure has reverse storage | |
5350 | order, rewrite the type of array fields with scalar component. Call | |
5351 | maybe_apply_pragma_scalar_storage_order on entry. | |
5352 | * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue | |
5353 | errors on bit-fields and reverse SSO here and not... | |
5354 | (c_mark_addressable): ...here. | |
5355 | (output_init_element): Adjust call to initializer_constant_valid_p. | |
5356 | (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER. | |
5357 | ||
8a645150 DM |
5358 | 2015-11-06 David Malcolm <dmalcolm@redhat.com> |
5359 | ||
5360 | * c-decl.c (warn_defaults_to): Update for change in signature | |
5361 | of diagnostic_set_info. | |
5362 | * c-errors.c (pedwarn_c99): Likewise. | |
5363 | (pedwarn_c90): Likewise. | |
5364 | * c-objc-common.c (c_tree_printer): Update for new "caret_p" param | |
5365 | for textinfo::set_location. | |
5366 | ||
7a5e4956 CP |
5367 | 2015-11-05 Cesar Philippidis <cesar@codesourcery.com> |
5368 | Thomas Schwinge <thomas@codesourcery.com> | |
5369 | James Norris <jnorris@codesourcery.com> | |
5370 | ||
5371 | * c-parser.c (c_parser_omp_clause_name): Add support for | |
5372 | PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE. | |
5373 | (c_parser_omp_clause_default): Add is_oacc argument. Handle | |
5374 | default(none) in OpenACC. | |
5375 | (c_parser_oacc_shape_clause): Allow pointer variables as gang static | |
5376 | arguments. | |
5377 | (c_parser_oacc_clause_tile): New function. | |
5378 | (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT, | |
5379 | OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE. | |
5380 | (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT, | |
5381 | TILE}. | |
5382 | (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT. | |
5383 | (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE, | |
5384 | FIRSTPRIVATE}. | |
5385 | (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default. | |
5386 | (c_parser_oacc_update): Update the error message for missing clauses. | |
5387 | * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE | |
5388 | and OMP_CLAUSE_INDEPENDENT. | |
5389 | ||
bfcfbfa0 MP |
5390 | 2015-11-05 Marek Polacek <polacek@redhat.com> |
5391 | ||
5392 | PR c/68090 | |
5393 | * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't | |
5394 | deal with pre-evaluation on invalid types. | |
5395 | ||
e01d41e5 JJ |
5396 | 2015-11-05 Jakub Jelinek <jakub@redhat.com> |
5397 | Ilya Verbin <ilya.verbin@intel.com> | |
5398 | ||
5399 | * c-parser.c: Include context.h and gimple-expr.h. | |
5400 | (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose | |
5401 | monotonic together with nonmonotonic. | |
5402 | (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here. | |
5403 | (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause. | |
5404 | (c_parser_omp_target_data, c_parser_omp_target_enter_data, | |
5405 | c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER. | |
5406 | (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit | |
5407 | expressions on combined target teams before the target. | |
5408 | (c_parser_omp_declare_target): If decl has "omp declare target" or | |
5409 | "omp declare target link" attribute, and cgraph or varpool node already | |
5410 | exists, then set corresponding flags. Call c_finish_omp_clauses | |
5411 | in the parenthesized extended-list syntax case. | |
5412 | * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside | |
5413 | declare target. | |
5414 | * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound | |
5415 | on OMP_CLAUSE_REDUCTION array sections. | |
5416 | (handle_omp_array_sections): Encode low-bound into the MEM_REF, either | |
5417 | into the constant offset, or for variable low-bound using | |
5418 | POINTER_PLUS_EXPR. For structure element based array sections use | |
5419 | GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER. | |
5420 | (c_finish_omp_clauses): Drop generic_field_head, structure | |
5421 | elements are now always mapped even as array section bases, | |
5422 | diagnose same var in data sharing and mapping clauses. Diagnose if | |
5423 | linear step on declare simd is neither a constant nor a uniform | |
5424 | parameter. Look through POINTER_PLUS_EXPR for array section | |
5425 | reductions. Diagnose the same var or function appearing multiple | |
5426 | times on the same directive. Fix up wording for the to clause if t | |
5427 | is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic | |
5428 | modifier on kinds other than dynamic or guided or nonmonotonic | |
5429 | modifier together with ordered clause. | |
5430 | ||
4bf9e5a8 TS |
5431 | 2015-11-03 Thomas Schwinge <thomas@codesourcery.com> |
5432 | Chung-Lin Tang <cltang@codesourcery.com> | |
5433 | ||
5434 | * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC. | |
5435 | ||
2adfab87 AM |
5436 | 2015-10-29 Andrew MacLeod <amacleod@redhat.com> |
5437 | ||
5438 | * c-array-notation.c: Reorder #include's and remove duplicates. | |
5439 | * c-aux-info.c: Likewise. | |
5440 | * c-convert.c: Likewise. | |
5441 | * c-decl.c: Likewise. | |
5442 | * c-errors.c: Likewise. | |
5443 | * c-lang.c: Likewise. | |
5444 | * c-objc-common.c: Likewise. | |
5445 | * c-parser.c: Likewise. | |
5446 | * c-typeck.c: Likewise. | |
5447 | ||
e922069e JW |
5448 | 2015-10-26 Jim Wilson <jim.wilson@linaro.org> |
5449 | ||
5450 | PR debug/66068 | |
5451 | * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS | |
5452 | after calling build_qualified_type. | |
5453 | ||
765dd391 CP |
5454 | 2015-10-27 Cesar Philippidis <cesar@codesourcery.com> |
5455 | Thomas Schwinge <thomas@codesourcery.com> | |
5456 | James Norris <jnorris@codesourcery.com> | |
5457 | Joseph Myers <joseph@codesourcery.com> | |
5458 | Julian Brown <julian@codesourcery.com> | |
5459 | Bernd Schmidt <bschmidt@redhat.com> | |
5460 | ||
5461 | * c-parser.c (c_parser_oacc_shape_clause): New. | |
5462 | (c_parser_oacc_simple_clause): New. | |
5463 | (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker. | |
5464 | (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq. | |
5465 | ||
88bae6f4 TS |
5466 | 2015-10-27 Thomas Schwinge <thomas@codesourcery.com> |
5467 | James Norris <jnorris@codesourcery.com> | |
5468 | Cesar Philippidis <cesar@codesourcery.com> | |
5469 | ||
5470 | PR c/64765 | |
5471 | PR c/64880 | |
5472 | * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal | |
5473 | parameters, and handle these. Adjust all users. | |
5474 | (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions | |
5475 | into... | |
5476 | (c_parser_oacc_kernels_parallel): ... this new function. Adjust | |
5477 | all users. | |
5478 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't | |
5479 | declare functions. | |
5480 | (c_finish_omp_construct): Declare function. | |
5481 | * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels): | |
5482 | Merge functions into... | |
5483 | (c_finish_omp_construct): ... this new function. | |
5484 | ||
a8fc2579 RB |
5485 | 2015-10-22 Richard Biener <rguenther@suse.de> |
5486 | ||
5487 | * c-typeck.c (c_finish_omp_clauses): Properly convert operands | |
5488 | before folding a MINUS_EXPR. | |
5489 | ||
e9122ef6 MP |
5490 | 2015-10-21 Marek Polacek <polacek@redhat.com> |
5491 | ||
5492 | PR c/68024 | |
5493 | * c-decl.c (start_function): Warn about vararg functions without | |
5494 | a prototype. | |
5495 | ||
9f47c7e5 IE |
5496 | 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com> |
5497 | ||
5498 | * c-typeck.c (build_conditional_expr): Use boolean vector | |
5499 | type for vector comparison. | |
5500 | (build_vec_cmp): New. | |
5501 | (build_binary_op): Use build_vec_cmp for comparison. | |
5502 | ||
fa60eeb9 MP |
5503 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
5504 | ||
5505 | * c-parser.c (is_cilkplus_vector_p): Don't define here. | |
5506 | ||
2c7020eb MP |
5507 | 2015-10-20 Marek Polacek <polacek@redhat.com> |
5508 | ||
5509 | PR c/67964 | |
5510 | * c-parser.c (c_parser_attributes): Break out of the loop if the | |
5511 | token after an attribute isn't a comma. | |
5512 | ||
d9a6bd32 JJ |
5513 | 2015-10-13 Jakub Jelinek <jakub@redhat.com> |
5514 | Aldy Hernandez <aldyh@redhat.com> | |
5515 | ||
5516 | * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here. | |
5517 | (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses. | |
5518 | (c_parser_omp_variable_list): Handle structure elements for | |
5519 | map, to and from clauses. Handle array sections in reduction | |
5520 | clause. Formatting fixes. | |
5521 | (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of | |
5522 | if clause modifiers. | |
5523 | (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize, | |
5524 | c_parser_omp_clause_priority, c_parser_omp_clause_hint, | |
5525 | c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr, | |
5526 | c_parser_omp_clause_is_device_ptr): New functions. | |
5527 | (c_parser_omp_clause_ordered): Parse optional parameter. | |
5528 | (c_parser_omp_clause_reduction): Handle array reductions. | |
5529 | (c_parser_omp_clause_schedule): Parse optional simd modifier. | |
5530 | (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New | |
5531 | functions. | |
5532 | (c_parser_omp_clause_linear): Parse linear clause modifiers. | |
5533 | (c_parser_omp_clause_depend_sink): New function. | |
5534 | (c_parser_omp_clause_depend): Parse source/sink depend kinds. | |
5535 | (c_parser_omp_clause_map): Parse release/delete map kinds and | |
5536 | optional always modifier. | |
5537 | (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if | |
5538 | and c_finish_omp_clauses callers. | |
5539 | (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses. | |
5540 | Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive. | |
5541 | (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller. | |
5542 | (OMP_CRITICAL_CLAUSE_MASK): Define. | |
5543 | (c_parser_omp_critical): Parse critical clauses. | |
5544 | (c_parser_omp_for_loop): Handle doacross loops, adjust | |
5545 | c_finish_omp_for and c_finish_omp_clauses callers. | |
5546 | (OMP_SIMD_CLAUSE_MASK): Add simdlen clause. | |
5547 | (c_parser_omp_simd): Allow ordered clause if it has no parameter. | |
5548 | (OMP_FOR_CLAUSE_MASK): Add linear clause. | |
5549 | (c_parser_omp_for): Disallow ordered clause when combined with | |
5550 | distribute. Disallow linear clause when combined with distribute | |
5551 | and not combined with simd. | |
5552 | (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define. | |
5553 | (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument, | |
5554 | parse clauses and if depend clause is found, don't parse a body. | |
5555 | (c_parser_omp_parallel): Disallow copyin clause on target parallel. | |
5556 | Allow target parallel without for after it. | |
5557 | (OMP_TASK_CLAUSE_MASK): Add priority clause. | |
5558 | (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause. | |
5559 | (c_parser_omp_target_data): Diagnose no map clauses or clauses with | |
5560 | invalid kinds. | |
5561 | (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses. | |
5562 | (OMP_TARGET_ENTER_DATA_CLAUSE_MASK, | |
5563 | OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define. | |
5564 | (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New | |
5565 | functions. | |
5566 | (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate, | |
5567 | defaultmap and is_device_ptr clauses. | |
5568 | (c_parser_omp_target): Parse target parallel and target simd. Set | |
5569 | OMP_TARGET_COMBINED on combined constructs. Parse target enter data | |
5570 | and target exit data. Diagnose invalid map kinds. | |
5571 | (OMP_DECLARE_TARGET_CLAUSE_MASK): Define. | |
5572 | (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this | |
5573 | construct. | |
5574 | (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for | |
5575 | &omp_priv. | |
5576 | (OMP_TASKLOOP_CLAUSE_MASK): Define. | |
5577 | (c_parser_omp_taskloop): New function. | |
5578 | (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here, | |
5579 | handle PRAGMA_OMP_TASKLOOP. | |
5580 | (c_parser_cilk_for): Adjust c_finish_omp_clauses callers. | |
5581 | * c-tree.h (c_finish_omp_clauses): Add two new arguments. | |
5582 | * c-typeck.c (handle_omp_array_sections_1): Fix comment typo. | |
5583 | Add IS_OMP argument, handle structure element bases, diagnose | |
5584 | bitfields, pass IS_OMP recursively, diagnose known zero length | |
5585 | array sections in depend clauses, handle array sections in reduction | |
5586 | clause, diagnose negative length even for pointers. | |
5587 | (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for | |
5588 | types, pass IS_OMP down to handle_omp_array_sections_1, handle | |
5589 | array sections in reduction clause, set | |
5590 | OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero | |
5591 | length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP. | |
5592 | (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments. | |
5593 | Handle new OpenMP 4.5 clauses and new restrictions for the old ones. | |
5594 | ||
21ba0cea MP |
5595 | 2015-10-06 Marek Polacek <polacek@redhat.com> |
5596 | ||
5597 | * c-parser.c (c_parser_statement_after_labels): Use | |
5598 | protected_set_expr_location. | |
5599 | (c_parser_omp_clause_num_gangs): Likewise. | |
5600 | (c_parser_omp_clause_num_threads): Likewise. | |
5601 | (c_parser_omp_clause_num_workers): Likewise. | |
5602 | (c_parser_omp_clause_vector_length): Likewise. | |
5603 | (c_parser_omp_clause_num_teams): Likewise. | |
5604 | (c_parser_omp_clause_thread_limit): Likewise. | |
5605 | * c-typeck.c (build_c_cast): Likewise. | |
5606 | (c_cast_expr): Likewise. | |
5607 | ||
624d31fe RS |
5608 | 2015-10-05 Richard Sandiford <richard.sandiford@arm.com> |
5609 | ||
5610 | * c-typeck.c (c_tree_equal): Use real_equal instead of | |
5611 | REAL_VALUES_EQUAL. | |
5612 | ||
b8fd7909 JM |
5613 | 2015-10-04 Jason Merrill <jason@redhat.com> |
5614 | ||
5615 | * c-parser.c (c_lex_one_token): Handle @synchronized. | |
5616 | * c-decl.c (match_builtin_function_types): A declaration of a built-in | |
5617 | can change whether the function is transaction_safe. | |
5618 | ||
1c7485af MP |
5619 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
5620 | ||
5621 | PR c/67730 | |
5622 | * c-typeck.c (convert_for_assignment): Use the expansion point | |
5623 | location throughout. | |
5624 | ||
3e3b8d63 MP |
5625 | 2015-10-02 Marek Polacek <polacek@redhat.com> |
5626 | ||
5627 | PR c/64249 | |
5628 | * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter | |
5629 | and pass it down to c_parser_if_statement. | |
5630 | (c_parser_else_body): Add CHAIN parameter and pass it down to | |
5631 | c_parser_statement_after_labels. | |
5632 | (c_parser_if_statement): Add CHAIN parameter. Add code to warn about | |
5633 | duplicated if-else-if conditions. | |
5634 | ||
aabef2de MP |
5635 | 2015-10-01 Marek Polacek <polacek@redhat.com> |
5636 | ||
5637 | * c-typeck.c (convert_for_assignment): Improve commentary. | |
5638 | ||
de8ddd5f MP |
5639 | 2015-09-30 Marek Polacek <polacek@redhat.com> |
5640 | ||
5641 | PR c/67730 | |
5642 | * c-typeck.c (c_finish_return): Use the expansion point location for | |
5643 | certain "return with value" warnings. | |
5644 | ||
c4914de6 MLI |
5645 | 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5646 | ||
5647 | * c-parser.c (pragma_lex): Add loc argument. | |
5648 | ||
0e36f5c7 MP |
5649 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
5650 | ||
5651 | PR c/67580 | |
5652 | * c-decl.c (tag_exists_p): New function. | |
5653 | * c-parser.c (c_parser_declaration_or_fndef): Give a hint when | |
5654 | struct/union/enum keywords are missing. | |
5655 | * c-tree.h (tag_exists_p): Declare. | |
5656 | ||
2f3bb934 MP |
5657 | 2015-09-15 Marek Polacek <polacek@redhat.com> |
5658 | ||
5659 | * c-decl.c (lookup_label): Return NULL_TREE instead of 0. | |
5660 | (lookup_tag): Change the type of THISLEVEL_ONLY to bool. | |
5661 | Return NULL_TREE instead of 0. | |
5662 | (lookup_name): Return NULL_TREE instead of 0. | |
5663 | (lookup_name_in_scope): Likewise. | |
5664 | (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0. | |
5665 | (parser_xref_tag): Use false instead of 0. | |
5666 | (start_struct): Use true instead of 1. | |
5667 | (start_enum): Use true instead of 1 and NULL_TREE instead of 0. | |
5668 | ||
aa256c4a MP |
5669 | 2015-09-14 Marek Polacek <polacek@redhat.com> |
5670 | ||
5671 | * c-typeck.c (set_nonincremental_init_from_string): Use | |
5672 | HOST_WIDE_INT_M1U when shifting a negative value. | |
5673 | ||
dbb68221 MW |
5674 | 2015-09-09 Mark Wielaard <mjw@redhat.com> |
5675 | ||
5676 | * c-typeck.c (build_binary_op): Check and warn when nonnull arg | |
5677 | parm against NULL. | |
5678 | ||
a8a098ac JJ |
5679 | 2015-09-10 Jakub Jelinek <jakub@redhat.com> |
5680 | ||
5681 | PR c/67502 | |
5682 | * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts | |
5683 | into OMP_FOR_PRE_BODY rather than before the loop. | |
5684 | ||
f4b189d5 JJ |
5685 | 2015-09-09 Jakub Jelinek <jakub@redhat.com> |
5686 | ||
0bb99c11 JJ |
5687 | PR c/67501 |
5688 | * c-parser.c (c_parser_oacc_all_clauses, | |
5689 | c_parser_omp_all_clauses): Remove invalid clause from | |
5690 | list of clauses even if parser->error is set. | |
5691 | ||
fce5e5e3 JJ |
5692 | PR c/67500 |
5693 | * c-parser.c (c_parser_omp_clause_aligned, | |
5694 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up | |
5695 | test for errors. | |
5696 | * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to | |
5697 | error_mark_node. | |
5698 | ||
f4b189d5 JJ |
5699 | PR c/67495 |
5700 | * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression | |
5701 | instead of c_parser_unary_expression. If the result is !lvalue_p, | |
5702 | wrap the result of c_fully_fold into NON_LVALUE_EXPR. | |
5703 | ||
b2aaf235 MP |
5704 | 2015-09-04 Marek Polacek <polacek@redhat.com> |
5705 | ||
5706 | PR sanitizer/67279 | |
5707 | * c-typeck.c (build_binary_op): Don't instrument static initializers. | |
5708 | ||
1807ffc1 MS |
5709 | 2015-09-03 Martin Sebor <msebor@redhat.com> |
5710 | ||
5711 | PR c/66516 | |
8b652e65 JJ |
5712 | * c-typeck.c (convert_arguments, parser_build_unary_op, |
5713 | build_conditional_expr, c_cast_expr, convert_for_assignment, | |
5714 | build_binary_op, _objc_common_truthvalue_conversion): Call | |
1807ffc1 MS |
5715 | reject_gcc_builtin. |
5716 | (c_decl_implicit): Define. | |
5717 | ||
d04ff417 MP |
5718 | 2015-09-02 Marek Polacek <polacek@redhat.com> |
5719 | ||
5720 | PR c/67432 | |
5721 | * c-parser.c (c_parser_enum_specifier): Give a better error for | |
5722 | an empty enum. | |
5723 | ||
a79683d5 TS |
5724 | 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org> |
5725 | ||
5726 | * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs. | |
5727 | ||
191a6b94 MP |
5728 | 2015-08-12 Marek Polacek <polacek@redhat.com> |
5729 | ||
5730 | * c-decl.c (grokdeclarator): Call error_at instead of error and pass | |
5731 | LOC to it. | |
5732 | ||
420a9d9b MP |
5733 | 2015-08-03 Marek Polacek <polacek@redhat.com> |
5734 | ||
5735 | PR c/67088 | |
5736 | * c-decl.c (check_bitfield_type_and_width): Add location parameter. | |
5737 | Use it. | |
5738 | (grokdeclarator): Pass LOC down to check_bitfield_type_and_width. | |
5739 | ||
992118a1 PP |
5740 | 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org> |
5741 | ||
5742 | * c-parser.c (c_parser_if_body): Take token_indent_info | |
5743 | argument. Call warn_for_misleading_indentation even when the | |
5744 | body is a semicolon. Extract token_indent_infos corresponding | |
5745 | to the guard, body and next tokens. Adjust call to | |
5746 | warn_for_misleading_indentation accordingly. | |
5747 | (c_parser_else_body): Likewise. | |
5748 | (c_parser_if_statement): Likewise. | |
5749 | (c_parser_while_statement): Likewise. | |
5750 | (c_parser_for_statement): Likewise. | |
5751 | ||
46308474 LFSM |
5752 | 2015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com> |
5753 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
5754 | ||
5755 | * c-decl.c (get_parm_info): Remove static var. Update warning | |
5756 | message. | |
5757 | ||
05b28fd6 MP |
5758 | 2015-07-27 Marek Polacek <polacek@redhat.com> |
5759 | ||
5760 | PR c++/66555 | |
5761 | PR c/54979 | |
5762 | * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp. | |
5763 | ||
451b5e48 MP |
5764 | 2015-07-20 Marek Polacek <polacek@redhat.com> |
5765 | ||
5766 | PR c++/55095 | |
5767 | * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init. | |
5768 | (build_binary_op): Warn about left shift overflows. | |
5769 | ||
1916bcb5 AM |
5770 | 2015-07-09 Andrew MacLeod <amacleod@redhat.com> |
5771 | ||
5772 | * c-array-notation.c: Adjust includes for flags.h changes. | |
5773 | * c-objc-common.c: Likewise. | |
5774 | ||
c7131fb2 AM |
5775 | 2015-07-07 Andrew MacLeod <amacleod@redhat.com> |
5776 | ||
5777 | * c-array-notation.c: Adjust includes. | |
5778 | * c-aux-info.c: Likewise. | |
5779 | * c-convert.c: Likewise. | |
5780 | * c-decl.c: Likewise. | |
5781 | * c-errors.c: Likewise. | |
5782 | * c-lang.c: Likewise. | |
5783 | * c-objc-common.c: Likewise. | |
5784 | * c-parser.c: Likewise. | |
5785 | * c-typeck.c: Likewise. | |
5786 | ||
da2e71c9 MLI |
5787 | 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5788 | ||
5789 | PR fortran/66605 | |
5790 | * c-decl.c (finish_function): Call do_warn_unused_parameter. | |
5791 | ||
b155cfd9 MP |
5792 | 2015-06-29 Marek Polacek <polacek@redhat.com> |
5793 | ||
5794 | PR c/66322 | |
5795 | * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P. | |
5796 | (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn | |
5797 | about -Wswitch-bool here. | |
5798 | (do_case): Update c_add_case_label call. | |
5799 | (c_finish_case): Update c_do_switch_warnings call. | |
5800 | ||
31521951 MP |
5801 | 2015-06-27 Marek Polacek <polacek@redhat.com> |
5802 | ||
5803 | * c-typeck.c: Use VECTOR_TYPE_P throughout. | |
5804 | ||
22d03525 MP |
5805 | 2015-06-26 Marek Polacek <polacek@redhat.com> |
5806 | ||
5807 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
5808 | INDIRECT_REF_P. | |
5809 | * c-typeck.c (array_to_pointer_conversion): Likewise. | |
5810 | (build_unary_op): Likewise. | |
5811 | (c_finish_return): Likewise. | |
5812 | ||
f0889939 AM |
5813 | 2015-06-25 Andrew MacLeod <amacleod@redhat.com> |
5814 | ||
5815 | * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list. | |
5816 | * c-parser.c: Likewise. | |
5817 | ||
8d67ee55 RS |
5818 | 2015-06-25 Richard Sandiford <richard.sandiford@arm.com> |
5819 | ||
5820 | * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash | |
5821 | instead of pointer_hash. | |
5822 | (detect_field_duplicates): Likewise. | |
5823 | ||
0ae9bd27 MP |
5824 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
5825 | ||
5826 | * c-array-notation.c: Use VAR_P throughout. | |
5827 | * c-decl.c: Likewise. | |
5828 | * c-objc-common.c: Likewise. | |
5829 | * c-parser.c: Likewise. | |
5830 | * c-typeck.c: Likewise. | |
5831 | ||
62f9079a MP |
5832 | 2015-06-25 Marek Polacek <polacek@redhat.com> |
5833 | ||
5834 | * c-decl.c: Use is_global_var throughout. | |
5835 | * c-parser.c: Likewise. | |
5836 | * c-typeck.c: Likewise. | |
5837 | ||
abb226c9 AM |
5838 | 2015-06-17 Andrew MacLeod <amacleod@redhat.com> |
5839 | ||
5840 | * c-array-notation.c: Do not include input.h, line-map.h or is-a.h. | |
5841 | * c-aux-info.c: Likewise. | |
5842 | * c-convert.c: Likewise. | |
5843 | * c-decl.c: Likewise. | |
5844 | * c-errors.c: Likewise. | |
5845 | * c-lang.c: Likewise. | |
5846 | * c-objc-common.c: Likewise. | |
5847 | * c-parser.c: Likewise. | |
5848 | * c-typeck.c: Likewise. | |
5849 | ||
8cbababc JH |
5850 | 2015-06-11 Jan Hubicka <hubicka@ucw.cz> |
5851 | ||
5852 | PR middle-end/66325 | |
5853 | * c-decl.c (start_enum): Set TYPE_PACKED consistently among type | |
5854 | variants. | |
5855 | ||
a0349665 PMR |
5856 | 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com> |
5857 | ||
5858 | * c-decl.c (pop_scope): Register the main translation unit | |
5859 | through the new debug hook. | |
5860 | ||
13fdf2e2 AM |
5861 | 2015-06-08 Andrew MacLeod <amacleod@redhat.com> |
5862 | ||
5863 | * c-array-notation.c : Adjust include files. | |
5864 | * c-aux-info.c : Likewise. | |
5865 | * c-convert.c : Likewise. | |
5866 | * c-decl.c : Likewise. | |
5867 | * c-errors.c : Likewise. | |
5868 | * c-lang.c : Likewise. | |
5869 | * c-lang.h : Likewise. | |
5870 | * c-objc-common.c : Likewise. | |
5871 | * c-parser.c : Likewise. | |
5872 | * c-typeck.c : Likewise. | |
5873 | ||
d7438551 AH |
5874 | 2015-06-05 Aldy Hernandez <aldyh@redhat.com> |
5875 | ||
5876 | * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and | |
5877 | immediately clobber it. | |
5878 | (c_write_global_declarations_1): Remove call to | |
5879 | check_global_declaration_1. | |
5880 | (c_write_global_declarations_2): Remove. | |
5881 | (c_write_final_cleanups): Rename from c_write_global_declarations. | |
5882 | Remove call to finalize_compilation_unit. | |
5883 | Remove calls to debugging hooks. | |
5884 | * c-objc-common.c: Adjust comment for c_warn_unused_global_decl. | |
5885 | * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS. | |
5886 | * c-tree.h: Remove c_write_global_declarations. | |
5887 | ||
ecb9f223 AM |
5888 | 2015-06-04 Andrew MacLeod <amacleod@redhat.com> |
5889 | ||
5890 | * c-array-notation.c: Adjust includes for restructured coretypes.h. | |
5891 | * c-aux-info.c: Likewise. | |
5892 | * c-convert.c: Likewise. | |
5893 | * c-decl.c: Likewise. | |
5894 | * c-errors.c: Likewise. | |
5895 | * c-lang.c: Likewise. | |
5896 | * c-objc-common.c: Likewise. | |
5897 | * c-parser.c: Likewise. | |
5898 | * c-typeck.c: Likewise. | |
5899 | ||
9482b620 MP |
5900 | 2015-06-04 Marek Polacek <polacek@redhat.com> |
5901 | ||
5902 | PR c/66341 | |
5903 | * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if | |
5904 | it is a lvalue. | |
5905 | ||
bc51ace3 PK |
5906 | 2015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
5907 | ||
5908 | * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc. | |
5909 | Warn for empty struct. | |
5910 | (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct. | |
5911 | ||
ea5b45b6 AT |
5912 | 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com> |
5913 | ||
5914 | * c-decl.c (start_function): Call plugin before parsing. | |
5915 | (finish_function): Call plugin after parsing. | |
5916 | ||
c2d47482 PK |
5917 | 2015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> |
5918 | ||
5919 | PR c/49551 | |
5920 | * c-decl.c (merge_decls): Merge DECL_COMMON. | |
5921 | ||
a95492ab JW |
5922 | 2015-05-22 Jim Wilson <jim.wilson@linaro.org> |
5923 | ||
5924 | * Make-lang.in (check_gcc_pallelize): Define. | |
5925 | ||
fd5c817a MP |
5926 | 2015-05-22 Marek Polacek <polacek@redhat.com> |
5927 | ||
5928 | PR c/47043 | |
5929 | * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator | |
5930 | attributes. | |
5931 | ||
c7b70a3c MP |
5932 | 2015-05-21 Marek Polacek <polacek@redhat.com> |
5933 | ||
5934 | * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of | |
5935 | DECL_BUILT_IN. | |
5936 | ||
21b634ae MP |
5937 | 2015-05-20 Marek Polacek <polacek@redhat.com> |
5938 | ||
5939 | * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout. | |
5940 | * c-typeck.c: Likewise. | |
5941 | ||
296a8c2f MP |
5942 | 2015-05-19 Marek Polacek <polacek@redhat.com> |
5943 | ||
5944 | * c-typeck.c (start_init): Use AGGREGATE_TYPE_P. | |
5945 | ||
41b37d5e JJ |
5946 | 2015-05-19 Jakub Jelinek <jakub@redhat.com> |
5947 | ||
5948 | PR middle-end/66199 | |
5949 | * c-parser.c (c_parser_omp_for_loop): Don't add | |
5950 | OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving | |
5951 | OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES. | |
5952 | (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined | |
5953 | constructs. | |
5954 | ||
fab27f52 MM |
5955 | 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com> |
5956 | ||
5957 | * c-typeck.c (build_array_ref): Use std::swap instead of explicit | |
296a8c2f | 5958 | swaps. |
fab27f52 | 5959 | |
40de31cf MLI |
5960 | 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org> |
5961 | ||
5962 | PR fortran/44054 | |
5963 | * c-objc-common.c (c_tree_printer): Replace locus pointer with | |
5964 | accessor function. | |
5965 | ||
3aa3c9fc MP |
5966 | 2015-05-14 Marek Polacek <polacek@redhat.com> |
5967 | ||
5968 | PR c/66066 | |
5969 | PR c/66127 | |
5970 | * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic | |
5971 | rather than with 0. | |
5972 | ||
c3388e62 DM |
5973 | 2015-05-12 David Malcolm <dmalcolm@redhat.com> |
5974 | ||
5975 | * c-parser.c (c_parser_if_body): Add param "if_loc", use it | |
5976 | to add a call to warn_for_misleading_indentation. | |
5977 | (c_parser_else_body): Likewise, adding param "else_loc". | |
5978 | (c_parser_if_statement): Check for misleading indentation. | |
5979 | (c_parser_while_statement): Likewise. | |
5980 | (c_parser_for_statement): Likewise. | |
5981 | ||
755e528f MP |
5982 | 2015-05-08 Marek Polacek <polacek@redhat.com> |
5983 | ||
5984 | PR c/64918 | |
5985 | * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects. | |
5986 | (output_init_element): Likewise. | |
5987 | ||
0173bd2a MP |
5988 | 2015-05-07 Marek Polacek <polacek@redhat.com> |
5989 | ||
5990 | PR c/65179 | |
5991 | * c-typeck.c (build_binary_op): Warn when left shifting a negative | |
5992 | value. | |
5993 | ||
9babc352 MP |
5994 | 2015-04-30 Marek Polacek <polacek@redhat.com> |
5995 | ||
5996 | * c-typeck.c (set_init_label): Call error_at instead of error and | |
5997 | pass LOC to it. | |
5998 | ||
ac9f18db MP |
5999 | * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print |
6000 | the type of a decl. | |
6001 | ||
ec3fba51 MP |
6002 | * c-typeck.c (c_build_va_arg): Clarify the error message. |
6003 | ||
b811915d TS |
6004 | 2015-04-29 Thomas Schwinge <thomas@codesourcery.com> |
6005 | ||
6006 | * c-parser.c (c_parser_oacc_enter_exit_data): Use | |
6007 | OMP_STANDALONE_CLAUSES. | |
6008 | ||
f3075008 MP |
6009 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
6010 | ||
6011 | * c-parser.c (c_parser_binary_expression): Remove duplicate line. | |
6012 | ||
4e81b788 MP |
6013 | 2015-04-28 Marek Polacek <polacek@redhat.com> |
6014 | ||
6015 | PR c/65901 | |
6016 | * c-typeck.c (c_build_va_arg): Require TYPE be a complete type. | |
6017 | ||
6c1db78e MP |
6018 | 2015-04-25 Marek Polacek <polacek@redhat.com> |
6019 | ||
6020 | PR c/52085 | |
6021 | * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode" | |
6022 | attribute. | |
6023 | ||
5c4abbb8 MP |
6024 | 2015-04-23 Marek Polacek <polacek@redhat.com> |
6025 | ||
6026 | PR c/65345 | |
6027 | * c-decl.c (set_labels_context_r): New function. | |
6028 | (store_parm_decls): Call it via walk_tree_without_duplicates. | |
6029 | * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw | |
6030 | instead of create_tmp_var. Build TARGET_EXPR instead of | |
6031 | COMPOUND_EXPR. | |
6032 | (build_atomic_assign): Use create_tmp_var_raw instead of | |
6033 | create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR. | |
6034 | ||
06aca1d5 IV |
6035 | 2015-04-20 Ilya Verbin <ilya.verbin@intel.com> |
6036 | ||
6037 | * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon. | |
6038 | (c_parser_omp_target_update): Add missed %> to error_at (). | |
6039 | ||
8fba1830 BRF |
6040 | 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> |
6041 | ||
6042 | PR target/55143 | |
6043 | * c-decl.c (c_default_pointer_mode): Remove definition. | |
6044 | * c-tree.h (c_default_pointer_mode): Remove declaration. | |
6045 | ||
62021f64 TB |
6046 | 2015-03-27 Tobias Burnus <burnus@net-b.de> |
6047 | ||
6048 | PR c/65586 | |
6049 | * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't | |
6050 | error out. | |
6051 | (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute, | |
6052 | c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare): | |
6053 | Update calls to not error for skipped omp pragmas with -fopenmp-simd. | |
6054 | ||
9b65e171 JJ |
6055 | 2015-03-19 Jakub Jelinek <jakub@redhat.com> |
6056 | ||
6057 | * c-decl.c (c_decl_attributes): Also add "omp declare target" | |
6058 | attribute for DECL_EXTERNAL VAR_DECLs. | |
6059 | ||
17958621 JJ |
6060 | 2015-03-11 Jakub Jelinek <jakub@redhat.com> |
6061 | ||
6062 | * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier | |
6063 | argument. | |
6064 | ||
7ccb1a11 JJ |
6065 | 2015-03-10 Jakub Jelinek <jakub@redhat.com> |
6066 | ||
6067 | PR c/65120 | |
6068 | * c-typeck.c (parser_build_binary_op): Check for tcc_comparison | |
6069 | before preparing arguments to warn_logical_not_parentheses. | |
6070 | ||
01177669 JJ |
6071 | 2015-03-09 Jakub Jelinek <jakub@redhat.com> |
6072 | ||
6073 | PR c/65120 | |
6074 | * c-typeck.c (parser_build_binary_op): Don't warn for | |
6075 | !!x == y or !b == y where b is _Bool. | |
6076 | ||
802ac282 MP |
6077 | 2015-03-09 Marek Polacek <polacek@redhat.com> |
6078 | ||
6079 | * c-convert.c (convert): Make use of do_ubsan_in_current_function. | |
6080 | * c-decl.c (grokdeclarator): Likewise. | |
6081 | * c-typeck.c (build_binary_op): Likewise. | |
6082 | ||
e5165b60 MP |
6083 | 2015-02-27 Marek Polacek <polacek@redhat.com> |
6084 | ||
6085 | PR c/65228 | |
6086 | * c-decl.c (start_decl): Return NULL_TREE if decl is an error node. | |
6087 | ||
065d214c MP |
6088 | 2015-02-14 Marek Polacek <polacek@redhat.com> |
6089 | ||
6090 | PR c/64768 | |
6091 | * c-decl.c (grokdeclarator): Set the range of a flexible array member | |
6092 | declared through a typedef name. | |
6093 | ||
e5d9235b MP |
6094 | 2015-02-13 Marek Polacek <polacek@redhat.com> |
6095 | ||
6096 | PR c/65050 | |
6097 | * c-decl.c (grokdeclarator): Print also the type when giving | |
6098 | the error message about array's incomplete element type. | |
6099 | ||
fa01ffcc JJ |
6100 | 2015-02-11 Jakub Jelinek <jakub@redhat.com> |
6101 | ||
6102 | PR c/64824 | |
6103 | * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec | |
6104 | check in the POP macro. | |
6105 | ||
c3e38a03 MP |
6106 | 2015-02-09 Marek Polacek <polacek@redhat.com> |
6107 | ||
6108 | PR c/64856 | |
6109 | * c-typeck.c (process_init_element): Don't always wrap | |
6110 | COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when | |
6111 | initializing a range of elements. | |
6112 | ||
4886ec8e JJ |
6113 | 2015-02-04 Jakub Jelinek <jakub@redhat.com> |
6114 | ||
6115 | PR c/64824 | |
6116 | PR c/64868 | |
6117 | * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR. | |
6118 | ||
c3e38a03 | 6119 | 2015-02-02 Bruno Loff <bruno.loff@gmail.com> |
a4bb6959 BL |
6120 | |
6121 | * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after | |
6122 | processing enum declaration. | |
6123 | ||
7b33f0c8 MP |
6124 | 2015-01-29 Marek Polacek <polacek@redhat.com> |
6125 | ||
6126 | PR c/64709 | |
6127 | * c-typeck.c (pop_init_level): If constructor_elements has | |
6128 | exactly one element with integer_zerop value, set constructor_zeroinit | |
6129 | to 1. Remove braces around warning_init call. | |
6130 | ||
dea63e49 JJ |
6131 | 2015-01-27 Jakub Jelinek <jakub@redhat.com> |
6132 | ||
6133 | PR c/64766 | |
6134 | * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL | |
6135 | of FUNCTION_DECLs with error_mark_node. | |
6136 | ||
d38f7dce JJ |
6137 | 2015-01-26 Jakub Jelinek <jakub@redhat.com> |
6138 | ||
6139 | PR c/64778 | |
6140 | * c-typeck.c (convert_arguments): Return -1 if there are | |
6141 | error_args, even if we've diagnosed too many arguments. | |
6142 | ||
cbf5d0e7 RB |
6143 | 2015-01-21 Richard Biener <rguenther@suse.de> |
6144 | ||
6145 | PR middle-end/64313 | |
6146 | * c-decl.c (merge_decls): Call set_builtin_decl_declared_p | |
6147 | for builtins the user declared correctly. | |
6148 | ||
41dbbb37 TS |
6149 | 2015-01-15 Thomas Schwinge <thomas@codesourcery.com> |
6150 | Bernd Schmidt <bernds@codesourcery.com> | |
6151 | Cesar Philippidis <cesar@codesourcery.com> | |
6152 | James Norris <jnorris@codesourcery.com> | |
6153 | Jakub Jelinek <jakub@redhat.com> | |
6154 | Ilmir Usmanov <i.usmanov@samsung.com> | |
6155 | ||
6156 | * c-parser.c: Include "gomp-constants.h". | |
6157 | (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum | |
6158 | omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. | |
6159 | Use OMP_CLAUSE_SET_MAP_KIND. | |
6160 | (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA, | |
6161 | PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE. | |
6162 | (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE, | |
6163 | PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, | |
6164 | PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT. | |
6165 | (c_parser_omp_clause_name): Handle "auto", "async", "copy", | |
6166 | "copyout", "create", "delete", "deviceptr", "gang", "host", | |
6167 | "num_gangs", "num_workers", "present", "present_or_copy", "pcopy", | |
6168 | "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout", | |
6169 | "present_or_create", "pcreate", "seq", "self", "vector", | |
6170 | "vector_length", "wait", "worker". | |
6171 | (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK) | |
6172 | (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK) | |
6173 | (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK) | |
6174 | (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros. | |
6175 | (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_. | |
6176 | (c_parser_oacc_wait_list, c_parser_oacc_data_clause) | |
6177 | (c_parser_oacc_data_clause_deviceptr) | |
6178 | (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers) | |
6179 | (c_parser_oacc_clause_async, c_parser_oacc_clause_wait) | |
6180 | (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses) | |
6181 | (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels) | |
6182 | (c_parser_oacc_enter_exit_data, c_parser_oacc_loop) | |
6183 | (c_parser_oacc_parallel, c_parser_oacc_update) | |
6184 | (c_parser_oacc_wait): New functions. | |
6185 | * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
6186 | (c_finish_oacc_data): New prototypes. | |
6187 | * c-typeck.c: Include "gomp-constants.h". | |
6188 | (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use | |
6189 | GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use | |
6190 | OMP_CLAUSE_SET_MAP_KIND. | |
6191 | (c_finish_oacc_parallel, c_finish_oacc_kernels) | |
6192 | (c_finish_oacc_data): New functions. | |
6193 | (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_, | |
6194 | OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS, | |
6195 | OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, | |
6196 | OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG, | |
6197 | OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's | |
6198 | GOMP_MAP_FORCE_DEVICEPTR. | |
6199 | ||
adfac8df JJ |
6200 | 2015-01-09 Michael Collison <michael.collison@linaro.org> |
6201 | ||
6202 | * c-array-notation.c: Include hash-set.h, machmode.h, | |
6203 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
6204 | fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h. | |
6205 | * c-aux-info.c: Ditto. | |
6206 | * c-convert.c: Ditto. | |
6207 | * c-decl.c: Ditto. | |
6208 | * c-errors.c: Ditto. | |
6209 | * c-lang.c: Dittoxs. | |
6210 | * c-objc-common.c: Ditto. | |
6211 | * c-parser.c: Ditto. | |
6212 | * c-typeck.c: Include hash-set.h, machmode.h, | |
6213 | vec.h, double-int.h, input.h, alias.h, symtab.h, options.h | |
6214 | fold-const.h, wide-int.h, inchash.h, real.h and | |
6215 | fixed-value.h due to flattening of tree.h. | |
6216 | ||
2cc901dc MP |
6217 | 2015-01-07 Marek Polacek <polacek@redhat.com> |
6218 | ||
6219 | PR c/64417 | |
6220 | * c-typeck.c (process_init_element): Disallow initialization of | |
6221 | a flexible array member with a string constant if the structure | |
6222 | is in an array. | |
6223 | ||
5624e564 JJ |
6224 | 2015-01-05 Jakub Jelinek <jakub@redhat.com> |
6225 | ||
e5341100 JJ |
6226 | PR sanitizer/64344 |
6227 | * c-typeck.c (convert_for_assignment, c_finish_return): For | |
6228 | -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum | |
6229 | types also set in_late_binary_op around convert call. | |
6230 | * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE | |
6231 | to integral type casts, if not in_late_binary_op, pass c_fully_fold | |
6232 | result on expr as last argument to ubsan_instrument_float_cast, | |
6233 | if in_late_binary_op, don't use c_save_expr but save_expr. | |
6234 | ||
5624e564 JJ |
6235 | Update copyright years. |
6236 | ||
5bd012f8 MP |
6237 | 2015-01-05 Marek Polacek <polacek@redhat.com> |
6238 | ||
6239 | PR c/64423 | |
6240 | * c-typeck.c (build_array_ref): Pass loc down to | |
6241 | warn_array_subscript_with_type_char. | |
6242 | ||
3f8257db | 6243 | 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu> |
768952be MU |
6244 | |
6245 | * c-typeck.c: New behavious for pointers to arrays with qualifiers | |
8e745a17 | 6246 | (common-pointer-type): For pointers to arrays take qualifiers from |
768952be | 6247 | element type. |
8e745a17 | 6248 | (build_conditional_expr): Add warnings for lost qualifiers. |
768952be | 6249 | (comp-target-types): Allow pointers to arrays with different qualifiers. |
8e745a17 | 6250 | (convert-for-assignment): Adapt warnings for discarded qualifiers. Add |
768952be | 6251 | WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS |
8e745a17 | 6252 | to PEDWARN_FOR_QUALIFIERS. |
768952be | 6253 | |
8f94a8c4 JJ |
6254 | 2014-12-17 Jakub Jelinek <jakub@redhat.com> |
6255 | ||
6256 | PR sanitizer/64289 | |
6257 | * c-convert.c: Include ubsan.h. | |
6258 | (convert): For real -> integral casts and | |
6259 | -fsanitize=float-cast-overflow don't call convert_to_integer, but | |
6260 | instead instrument the float cast directly. | |
6261 | ||
b731b390 JJ |
6262 | 2014-11-29 Jakub Jelinek <jakub@redhat.com> |
6263 | ||
6264 | * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign, | |
6265 | c_finish_stmt_expr): Remove NULL last argument from | |
6266 | create_tmp_var_raw and create_tmp_var calls. | |
6267 | * c-array-notation.c (fix_builtin_array_notation_fn, | |
6268 | build_array_notation_expr, fix_conditional_array_notations_1, | |
6269 | fix_array_notation_expr, fix_array_notation_call_expr): Likewise. | |
6270 | ||
541e35a6 MP |
6271 | 2014-11-28 Marek Polacek <polacek@redhat.com> |
6272 | ||
6273 | PR c/63862 | |
6274 | * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't | |
6275 | convert the right operand to integer type. | |
6276 | ||
b286be94 MP |
6277 | 2014-11-25 Marek Polacek <polacek@redhat.com> |
6278 | ||
6279 | PR c/63877 | |
6280 | * c-decl.c (start_function): Disable -Wmissing-declarations warning | |
6281 | for inline functions. | |
6282 | ||
aa7da51a JJ |
6283 | 2014-11-21 Jakub Jelinek <jakub@redhat.com> |
6284 | ||
6285 | PR target/63764 | |
6286 | * c-typeck.c (build_array_ref): Adjust | |
6287 | convert_vector_to_pointer_for_subscript caller. If it returns true, | |
6288 | call non_lvalue_loc on the result. | |
6289 | ||
d876207f RB |
6290 | 2014-11-11 Richard Biener <rguenther@suse.de> |
6291 | ||
6292 | * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues | |
6293 | to true. | |
6294 | ||
e5e44252 AK |
6295 | 2014-11-10 Andi Kleen <ak@linux.intel.com> |
6296 | ||
6297 | PR c/60804 | |
6298 | * c-parser.c (c_parser_statement_after_labels): Call | |
6299 | check_no_cilk. | |
6300 | (c_parser_if_statement): Dito. | |
6301 | (c_parser_switch_statement): Dito. | |
6302 | (c_parser_while_statement): Dito. | |
6303 | (c_parser_do_statement): Dito. | |
6304 | (c_parser_for_statement): Dito. | |
6305 | * c-typeck.c (c_finish_loop): Dito. | |
6306 | ||
13c21655 PC |
6307 | 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com> |
6308 | ||
6309 | * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and | |
6310 | OPT_Wshift_count_overflow in the warnings. | |
6311 | ||
2d51fcef MP |
6312 | 2014-10-30 Marek Polacek <polacek@redhat.com> |
6313 | ||
6314 | * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name, | |
6315 | print the stripped version as well, if they're not the same. | |
6316 | ||
ef4bddc2 RS |
6317 | 2014-10-29 Richard Sandiford <richard.sandiford@arm.com> |
6318 | ||
6319 | * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from | |
6320 | machine_mode. | |
6321 | ||
c582198b AM |
6322 | 2014-10-28 Andrew MacLeod <amacleod@redhat.com> |
6323 | ||
6324 | * c-decl.c: Adjust include files. | |
6325 | * c-parser.c: Ditto. | |
6326 | ||
ddc8de03 PM |
6327 | 2014-10-27 Phil Muldoon <pmuldoon@redhat.com> |
6328 | Tom Tromey <tromey@redhat.com> | |
6329 | ||
6330 | * c-tree.h (enum c_oracle_request): New. | |
6331 | (c_binding_oracle_function): New typedef. | |
6332 | (c_binding_oracle, c_pushtag, c_bind): Declare. | |
6333 | * c-decl.c (c_binding_oracle): New global. | |
6334 | (I_SYMBOL_CHECKED): New macro. | |
6335 | (i_symbol_binding): New function. | |
6336 | (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine. | |
6337 | (I_TAG_CHECKED): New macro. | |
6338 | (i_tag_binding): New function. | |
6339 | (I_TAG_BINDING, I_TAG_DECL): Redefine. | |
6340 | (I_LABEL_CHECKED): New macro. | |
6341 | (i_label_binding): New function. | |
6342 | (I_LABEL_BINDING, I_LABEL_DECL): Redefine. | |
6343 | (c_print_identifier): Save and restore c_binding_oracle. | |
6344 | (c_pushtag, c_bind): New functions. | |
6345 | ||
60393bbc AM |
6346 | 2014-10-27 Andrew MacLeod <amacleod@redhat.com> |
6347 | ||
6348 | * c-typeck.c: Adjust include files. | |
6349 | ||
d723bb7c MLI |
6350 | 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org> |
6351 | ||
6352 | PR c++/53061 | |
6353 | * c-objc-common.c (c_objc_common_init): Do not do diagnostics | |
6354 | initialization here... | |
6355 | (c_initialize_diagnostics): ... but here. Set defaults after | |
6356 | building pretty-printer. | |
6357 | ||
1bc5a451 MP |
6358 | 2014-10-23 Marek Polacek <polacek@redhat.com> |
6359 | ||
6360 | PR c/63626 | |
6361 | * c-decl.c (pop_scope): Don't print warning in external_scope. | |
6362 | ||
4435bb92 MP |
6363 | 2014-10-19 Marek Polacek <polacek@redhat.com> |
6364 | ||
6365 | PR c/63567 | |
6366 | * c-typeck.c (output_init_element): Allow initializing objects with | |
6367 | static storage duration with compound literals even in C99 and add | |
6368 | pedwarn for it. | |
6369 | ||
7278465e MP |
6370 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
6371 | ||
6372 | PR c/63567 | |
6373 | * c-typeck.c (digest_init): Allow initializing objects with static | |
6374 | storage duration with compound literals even in C99 and add pedwarn | |
6375 | for it. | |
6376 | ||
d9b7be2e MP |
6377 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
6378 | ||
6379 | PR c/63543 | |
6380 | * c-tree.h (C_TYPE_ERROR_REPORTED): Define. | |
6381 | * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..." | |
6382 | error multiple times. Print the type. | |
6383 | ||
f406ae1f MP |
6384 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
6385 | ||
6386 | PR c/63549 | |
6387 | * c-typeck.c (build_array_ref): Bail if the index in an incomplete | |
6388 | type. | |
6389 | ||
92574c7c MP |
6390 | 2014-10-17 Marek Polacek <polacek@redhat.com> |
6391 | ||
6392 | * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally. | |
6393 | (start_function): Use OPT_Wimplicit_int instead of 0. | |
6394 | (store_parm_decls_oldstyle): Likewise. | |
6395 | ||
1bc4a978 MT |
6396 | 2014-10-17 Alan Modra <amodra@gmail.com> |
6397 | ||
6398 | PR middle-end/61848 | |
6399 | * c-decl.c (merge_decls): Don't merge section name or tls model | |
6400 | to newdecl symtab node, instead merge to olddecl. Override | |
6401 | existing olddecl section name. Set tls_model for all thread-local | |
6402 | vars, not just OMP thread-private ones. Remove incorrect comment. | |
6403 | ||
83685514 AM |
6404 | 2014-10-16 Andrew MacLeod <amacleod@redhat.com> |
6405 | ||
6406 | * c-decl.c: Adjust include files. | |
6407 | ||
78a7c317 DD |
6408 | 2014-10-14 DJ Delorie <dj@redhat.com> |
6409 | ||
6410 | * c-parser.c (c_parse_init): Add RID entries for each __intN. | |
6411 | (c_token_starts_typename): Check all __intN, not just __int128. | |
6412 | (c_token_starts_declspecs): Likewise. | |
6413 | (c_parser_declspecs): Likewise. | |
6414 | (c_parser_attribute_any_word): Likewise. | |
6415 | (c_parser_objc_selector): Likewise. | |
6416 | * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n. | |
6417 | (struct c_declspecs): Add int_n_idx field to record *which* __intN | |
6418 | is specified. | |
6419 | * c-decl.c (declspecs_add_type): Check for all __intN, not just | |
6420 | __int128. | |
6421 | (finish_declspecs): Likewise. | |
6422 | ||
74d98c1e AB |
6423 | 2014-10-13 Anthony Brandon <anthony.brandon@gmail.com> |
6424 | ||
8e745a17 | 6425 | * c-parser.c (c_parser_all_labels): New function to replace |
74d98c1e | 6426 | the duplicate code. |
8e745a17 | 6427 | (c_parser_statement): Call the new function. |
74d98c1e | 6428 | |
84937de2 MP |
6429 | 2014-10-09 Marek Polacek <polacek@redhat.com> |
6430 | ||
6431 | PR c/63480 | |
6432 | * c-typeck.c (pop_init_level): Don't warn about initializing | |
6433 | with { }. | |
6434 | ||
0382aaa0 MP |
6435 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
6436 | ||
6437 | PR c/59717 | |
6438 | * c-decl.c (header_for_builtin_fn): New function. | |
6439 | (implicitly_declare): Suggest which header to include. | |
6440 | ||
7a0ca710 MP |
6441 | 2014-10-07 Marek Polacek <polacek@redhat.com> |
6442 | ||
6443 | * c-convert.c (convert): Use error_operand_p. | |
6444 | * c-typeck.c (require_complete_type): Likewise. | |
6445 | (really_atomic_lvalue): Likewise. | |
6446 | (digest_init): Likewise. | |
6447 | (handle_omp_array_sections_1): Likewise. | |
6448 | ||
6bc8a126 MP |
6449 | 2014-10-03 Marek Polacek <polacek@redhat.com> |
6450 | ||
6451 | PR c/63453 | |
6452 | * c-decl.c (pop_scope): Don't warn about "inline function declared | |
6453 | but never defined" for functions marked with gnu_inline attribute. | |
6454 | ||
d90c0a59 JJ |
6455 | 2014-09-25 Jakub Jelinek <jakub@redhat.com> |
6456 | ||
6457 | PR c++/63249 | |
6458 | * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read | |
6459 | on low_bound and length. | |
6460 | ||
083e891e MP |
6461 | 2014-09-24 Marek Polacek <polacek@redhat.com> |
6462 | ||
6463 | PR c/61405 | |
6464 | PR c/53874 | |
6465 | * c-parser.c: Don't define CPP_KEYWORD. | |
6466 | (c_parser_switch_statement): Pass original type to c_finish_case. | |
6467 | * c-tree.h (c_finish_case): Update declaration. | |
6468 | * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it | |
6469 | conditionally to c_do_switch_warnings. | |
6470 | ||
8d95fe25 MP |
6471 | 2014-09-03 Marek Polacek <polacek@redhat.com> |
6472 | ||
6473 | PR c/62024 | |
6474 | * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op | |
6475 | conversions. | |
6476 | ||
9a771876 JJ |
6477 | 2014-09-02 Jakub Jelinek <jakub@redhat.com> |
6478 | Balaji V. Iyer <balaji.v.iyer@intel.com> | |
6479 | Igor Zamyatin <igor.zamyatin@intel.com> | |
6480 | ||
6481 | * c-parser.c (c_parser_cilk_for): New function. | |
6482 | (c_parser_cilk_grainsize): Likewise. | |
6483 | (c_get_temp_regvar): Likewise. | |
6484 | (c_parser_statement_after_labels): Added RID_CILK_FOR case. | |
6485 | (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case. | |
6486 | (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks. | |
6487 | * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ | |
6488 | case. | |
6489 | ||
b7679d96 CG |
6490 | 2014-08-27 Chen Gang <gang.chen.5i5j@gmail.com> |
6491 | ||
6492 | * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes, | |
6493 | with using HOST_WIDE_INT without truncation to 'int' | |
6494 | ||
59ea0364 MP |
6495 | 2014-08-22 Marek Polacek <polacek@redhat.com> |
6496 | ||
6497 | PR c++/62199 | |
6498 | * c-typeck.c (parser_build_binary_op): Adjust call to | |
6499 | warn_logical_not_parentheses. | |
6500 | ||
671a475e IZ |
6501 | 2014-08-22 Igor Zamyatin <igor.zamyatin@intel.com> |
6502 | ||
6503 | PR other/62008 | |
6504 | * c-parser.c (c_parser_array_notation): Check for correct | |
6505 | type of an array added. | |
6506 | ||
04159acf MP |
6507 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
6508 | ||
6509 | PR c++/62153 | |
6510 | * c-typeck.c (build_binary_op): If either operand of a comparison | |
6511 | is a boolean expression, call maybe_warn_bool_compare. | |
6512 | ||
c77935ee PP |
6513 | 2014-08-19 Patrick Palka <ppalka@gcc.gnu.org> |
6514 | ||
6515 | PR c/45584 | |
6516 | * c-typeck.c (build_c_cast): Do a conversion even when the | |
6517 | TYPE_MAIN_VARIANTs are the same. | |
6518 | ||
35aff4fb MP |
6519 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
6520 | ||
6521 | * c-decl.c (diagnose_mismatched_decls): Unconditionally call | |
6522 | pedwarn_c99 instead of pedwarn. | |
6523 | (grokfield): Likewise. | |
6524 | (warn_defaults_to): New function. | |
6525 | (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99. | |
6526 | Unconditionally call pedwarn_c99 instead of pedwarn. | |
6527 | (start_function): Call warn_defaults_to instead of pedwarn_c99. | |
6528 | (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't | |
6529 | check flag_isoc11 before. | |
6530 | * c-errors.c (pedwarn_c99): Change the return type to bool. | |
6531 | Handle -Wc99-c11-compat. | |
6532 | * c-parser.c (disable_extension_diagnostics): Handle | |
6533 | warn_c99_c11_compat. | |
6534 | (restore_extension_diagnostics): Likewise. | |
6535 | (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99 | |
6536 | instead of pedwarn, don't check flag_isoc11 before. | |
6537 | (c_parser_declspecs): Likewise. | |
6538 | (c_parser_alignas_specifier): Likewise. | |
6539 | (c_parser_alignof_expression): Likewise. | |
6540 | (c_parser_generic_selection): Likewise. | |
6541 | * c-tree.h (pedwarn_c99): Update declaration. | |
6542 | * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead | |
6543 | of pedwarn_c99. | |
6544 | ||
177cce46 MP |
6545 | 2014-08-19 Marek Polacek <polacek@redhat.com> |
6546 | ||
6547 | * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally | |
6548 | to pedwarn_c90. | |
6549 | * c-errors.c: Include "opts.h". | |
6550 | (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better. | |
6551 | * c-parser.c (disable_extension_diagnostics): Handle negative value | |
6552 | of warn_c90_c99_compat, too. | |
6553 | (restore_extension_diagnostics): Likewise. | |
6554 | (c_parser_compound_statement_nostart): Pass | |
6555 | OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90. | |
6556 | ||
6dc99c33 MP |
6557 | 2014-08-12 Marek Polacek <polacek@redhat.com> |
6558 | ||
6559 | * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>: | |
6560 | Add pedwarn. | |
6561 | (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>: | |
6562 | Likewise. | |
6563 | (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise. | |
6564 | ||
3f8257db | 6565 | 2014-08-10 Marek Polacek <polacek@redhat.com> |
f3bede71 MP |
6566 | |
6567 | PR c/51849 | |
6568 | * c-decl.c (build_array_declarator): Remove check for !flag_isoc99. | |
6569 | Call pedwarn_c90 instead of pedwarn. | |
6570 | (check_bitfield_type_and_width): Likewise. | |
6571 | (declspecs_add_qual): Likewise. | |
6572 | (declspecs_add_type): Likewise. | |
6573 | (warn_variable_length_array): Unify function for -pedantic and -Wvla. | |
6574 | Adjust to only call pedwarn_c90. | |
6575 | (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call | |
6576 | pedwarn_c90 instead of pedwarn. | |
6577 | * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat. | |
6578 | * c-parser.c (disable_extension_diagnostics): Handle | |
6579 | warn_c90_c99_compat. | |
6580 | (restore_extension_diagnostics): Likewise. | |
6581 | (c_parser_enum_specifier): Remove check for !flag_isoc99. Call | |
6582 | pedwarn_c90 instead of pedwarn. | |
6583 | (c_parser_initelt): Likewise. | |
6584 | (c_parser_postfix_expression): Likewise. | |
6585 | (c_parser_postfix_expression_after_paren_type): Likewise. | |
6586 | (c_parser_compound_statement_nostart): Remove check for !flag_isoc99. | |
6587 | * c-tree.h: Fix formatting. | |
6588 | * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call | |
6589 | pedwarn_c90 instead of pedwarn. | |
6590 | ||
9f25a338 TS |
6591 | 2014-08-07 Trevor Saunders <tsaunders@mozilla.com> |
6592 | ||
6593 | * c-typeck.c: Remove include of pointer-set.h. | |
6594 | ||
044331a8 MP |
6595 | 2014-08-07 Marek Polacek <polacek@redhat.com> |
6596 | ||
6597 | * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization. | |
6598 | ||
b787e7a2 TS |
6599 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
6600 | ||
6601 | * c-typeck.c: Use hash_map instead of pointer_map. | |
6602 | ||
6e2830c3 TS |
6603 | 2014-08-02 Trevor Saunders <tsaunders@mozilla.com> |
6604 | ||
6605 | * c-decl.c: Use hash_set instead of pointer_set. | |
6606 | ||
a7ee52fb IZ |
6607 | 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com> |
6608 | ||
6609 | PR middle-end/61455 | |
6610 | * c-array-notation.c (expand_array_notations): Handling | |
6611 | of DECL_EXPR added. | |
6612 | ||
b4dfdc11 MG |
6613 | 2014-07-31 Marc Glisse <marc.glisse@inria.fr> |
6614 | ||
6615 | PR c++/60517 | |
6616 | * c-typeck.c (c_finish_return): Return 0 instead of the address of | |
6617 | a local variable. | |
6618 | ||
976d5a22 TT |
6619 | 2014-07-30 Tom Tromey <tromey@redhat.com> |
6620 | ||
6621 | * c-typeck.c (struct constructor_stack) <designator_depth>: New | |
6622 | field. | |
6623 | (really_start_incremental_init, push_init_level): Initialize | |
6624 | designator_depth. | |
6625 | (pop_init_level): Set global designator_depth. | |
6626 | (process_init_element): Check for designated_init attribute. | |
6627 | ||
30281de2 MP |
6628 | 2014-07-20 Marek Polacek <polacek@redhat.com> |
6629 | ||
6630 | PR c/61852 | |
6631 | * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it. | |
6632 | (implicitly_declare): Pass location to implicit_decl_warning. | |
6633 | ||
b108f48f JJ |
6634 | 2014-07-14 Jakub Jelinek <jakub@redhat.com> |
6635 | ||
6636 | PR middle-end/61294 | |
6637 | * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask. | |
6638 | If non-NULL, call c_parser_check_literal_zero. | |
6639 | (c_parser_check_literal_zero): New function. | |
6640 | (c_parser_postfix_expression_after_primary): Adjust | |
6641 | c_parser_expr_list caller, handle -Wmemset-transposed-args. | |
6642 | ||
773ec47f MP |
6643 | 2014-07-06 Marek Polacek <polacek@redhat.com> |
6644 | ||
6645 | PR c/6940 | |
6646 | * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER. | |
6647 | * c-tree.h (C_ARRAY_PARAMETER): Define. | |
6648 | * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array | |
6649 | function parameter. | |
6650 | ||
22e1cf1c | 6651 | 2014-07-02 Jan Hubicka <hubicka@ucw.cz> |
3f8257db | 6652 | Chen Gang <gang.chen.5i5j@gmail.com> |
22e1cf1c JH |
6653 | |
6654 | * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before | |
6655 | releasing symbol. | |
6656 | ||
52ec0ea3 MP |
6657 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
6658 | ||
6659 | * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion | |
6660 | instead of 0 to WARN_FOR_ASSIGNMENT. | |
6661 | ||
d5c3d343 MP |
6662 | 2014-07-01 Marek Polacek <polacek@redhat.com> |
6663 | ||
6664 | PR c/58286 | |
6665 | * c-typeck.c (convert_for_assignment): Pass | |
6666 | OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT. | |
6667 | ||
6a7253a4 MP |
6668 | 2014-06-30 Marek Polacek <polacek@redhat.com> |
6669 | ||
6670 | * c-decl.c (grokdeclarator): Don't instrument VLAs if the function | |
6671 | has no_sanitize_undefined attribute. | |
6672 | ||
5e88a8f4 IZ |
6673 | 2014-06-30 Igor Zamyatin <igor.zamyatin@intel.com> |
6674 | ||
6675 | PR middle-end/57541 | |
6676 | * c-array-notation.c (fix_builtin_array_notation_fn): | |
6677 | Check for 0 arguments in builtin call. Check that bultin argument is | |
6678 | correct. | |
6679 | * c-parser.c (c_parser_array_notation): Check for incorrect initial | |
6680 | index. | |
6681 | ||
9698b078 SH |
6682 | 2014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de> |
6683 | ||
6684 | * c-parser.c (c_parser_declaration_or_fndef): Discard all type | |
6685 | qualifiers in __auto_type for atomic types. | |
6686 | (c_parser_typeof_specifier): Discard all type qualifiers in | |
6687 | __typeof__ for atomic types. | |
6688 | ||
6e07c515 MP |
6689 | 2014-06-25 Marek Polacek <polacek@redhat.com> |
6690 | ||
6691 | PR c/61162 | |
6692 | * c-parser.c (c_parser_statement_after_labels): Pass the location of | |
6693 | the return expression to c_finish_return. | |
6694 | ||
da6f124d JJ |
6695 | 2014-06-25 Jakub Jelinek <jakub@redhat.com> |
6696 | ||
6697 | * c-typeck.c (c_finish_omp_clauses): Make sure | |
6698 | OMP_CLAUSE_LINEAR_STEP has correct type. | |
6699 | ||
c203e8a7 TS |
6700 | 2014-06-24 Trevor Saunders <tsaunders@mozilla.com> |
6701 | ||
6702 | * c-decl.c: Adjust. | |
6703 | ||
56ad0e38 JJ |
6704 | 2014-06-24 Jakub Jelinek <jakub@redhat.com> |
6705 | ||
6706 | * c-parser.c (c_parser_omp_for_loop): For | |
6707 | #pragma omp parallel for simd move lastprivate clause from parallel | |
6708 | to for rather than simd. | |
6709 | ||
47c2554f MP |
6710 | 2014-06-23 Marek Polacek <polacek@redhat.com> |
6711 | ||
6712 | * c-typeck.c (parser_build_binary_op): Don't call | |
6713 | warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR. | |
6714 | ||
56363ffd JH |
6715 | 2014-06-15 Jan Hubicka <hubicka@ucw.cz> |
6716 | ||
6717 | * c-parser.c (c_parser_omp_threadprivate): Likewise. | |
6718 | * c-decl.c (merge_decls): Likewise. | |
6719 | ||
d7ff7ae5 MP |
6720 | 2014-06-09 Marek Polacek <polacek@redhat.com> |
6721 | ||
6722 | PR c/36446 | |
6723 | * c-typeck.c (error_init): Call inform instead of error_at. | |
6724 | (pedwarn_init): Call inform instead of pedwarn. | |
6725 | (warning_init): Call inform instead of warning_at. | |
6726 | ||
24d047a3 JH |
6727 | 2014-06-07 Jan Hubicka <hubicka@ucw.cz> |
6728 | ||
6729 | * c-decl.c (merge_decls): Use set_decl_section_name. | |
6730 | (duplicate_decls): Remove node if it exists. | |
6731 | ||
9bac5cbb G |
6732 | 2014-06-05 S. Gilles <sgilles@terpmail.umd.edu> |
6733 | ||
6734 | PR c/53119 | |
6735 | * c-typeck.c (push_init_level, process_init_element, | |
6736 | pop_init_level): Correct check for zero initialization, move | |
6737 | missing brace warning to respect zero initialization. | |
6738 | ||
8ffcdea8 MP |
6739 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
6740 | ||
6741 | PR c/56724 | |
6742 | * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass. | |
6743 | ||
742938c9 MP |
6744 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
6745 | ||
6746 | PR c/49706 | |
6747 | * c-typeck.c (parser_build_binary_op): Warn when logical not is used | |
ab20d992 | 6748 | on the left hand side operand of a comparison. |
742938c9 | 6749 | |
6447c55d MP |
6750 | 2014-06-05 Marek Polacek <polacek@redhat.com> |
6751 | ||
6752 | PR c/48062 | |
6753 | * c-decl.c (warn_if_shadowing): Call inform instead of warning_at. | |
6754 | Print note only if the warning was printed. | |
6755 | ||
9dc7743c IZ |
6756 | 2014-06-04 Igor Zamyatin <igor.zamyatin@intel.com> |
6757 | ||
6758 | PR c/58942 | |
6759 | * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case | |
6760 | with a pointer. | |
6761 | ||
fedfecef MP |
6762 | 2014-06-03 Marek Polacek <polacek@redhat.com> |
6763 | ||
6764 | PR c/60439 | |
6765 | * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to | |
6766 | c_start_case. | |
6767 | * c-tree.h (c_start_case): Update. | |
6768 | * c-typeck.c (c_start_case): Add new boolean parameter. Warn if | |
6769 | switch condition has boolean value. | |
6770 | ||
9b2b7279 AM |
6771 | 2014-06-02 Andrew MacLeod <amacleod@redhat.com> |
6772 | ||
6773 | * c-decl.c: Include builtins.h. | |
6774 | * c-parser.c: Likewise. | |
6775 | ||
5c1bc275 MP |
6776 | 2014-05-27 Marek Polacek <polacek@redhat.com> |
6777 | ||
6778 | PR c/56724 | |
6779 | * c-typeck.c (convert_arguments): Get location of a parameter. Change | |
6780 | error and warning calls to error_at and warning_at. Pass location of | |
6781 | a parameter to it. Call warning_at with OPT_Wtraditional_conversion. | |
6782 | (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and | |
6783 | WARN_FOR_QUALIFIERS. Pass expr_loc to those. | |
6784 | ||
97563bc8 IZ |
6785 | 2014-05-26 Igor Zamyatin <igor.zamyatin@intel.com> |
6786 | ||
6787 | PR c/61191 | |
6788 | * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid | |
6789 | function parameters. | |
6790 | ||
aede2c10 JH |
6791 | 2014-05-23 Jan Hubicka <hubicka@ucw.cz> |
6792 | ||
6793 | * c-decl.c (merge_decls): Preserve symtab node pointers. | |
6794 | (duplicate_decls): Free new decl. | |
6795 | ||
edbba2ce TS |
6796 | 2014-05-23 Thomas Schwinge <thomas@codesourcery.com> |
6797 | ||
f3316c6d TS |
6798 | * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable |
6799 | initialization. | |
6800 | ||
edbba2ce TS |
6801 | * c-parser.c (c_parser_omp_target): Return bool values. |
6802 | ||
68c81f24 TS |
6803 | 2014-05-22 Thomas Schwinge <thomas@codesourcery.com> |
6804 | ||
6805 | * c-parser.c (c_parser_omp_clause_thread_limit): Rename | |
6806 | num_teams_loc variable to num_thread_limit_loc. | |
6807 | ||
632f2871 RS |
6808 | 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com> |
6809 | ||
6810 | * c-array-notation.c (expand_array_notations): Use void_node | |
6811 | instead of void_zero_node. | |
6812 | ||
766090c2 TS |
6813 | 2014-05-17 Trevor Saunders <tsaunders@mozilla.com> |
6814 | ||
6815 | * c-decl.c (finish_struct): Adjust. | |
6816 | (finish_enum): Likewise. | |
6817 | (bind): Adjust. | |
6818 | (record_inline_static): Likewise. | |
6819 | (push_scope): Likewise. | |
6820 | (make_label): Likewise. | |
6821 | (lookup_label_for_goto): Likewise. | |
6822 | (finish_struct): Likewise. | |
6823 | (finish_enum): Likewise. | |
6824 | (store_parm_decls): Likewise. | |
6825 | (c_push_function_context): Likewise. | |
6826 | * c-lang.h: Remove usage of variable_size gty attribute. | |
6827 | * c-parser.c (c_parse_init): Adjust. | |
6828 | (c_parse_file): Likewise. | |
6829 | ||
2b107f6b MP |
6830 | 2014-05-13 Marek Polacek <polacek@redhat.com> |
6831 | ||
6832 | PR c/61162 | |
6833 | * c-typeck.c (convert_for_assignment): Pass location to | |
6834 | WARN_FOR_ASSIGNMENT instead of input_location. | |
6835 | ||
d033409e MP |
6836 | 2014-05-10 Marek Polacek <polacek@redhat.com> |
6837 | ||
6838 | * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to | |
6839 | maybe_warn_string_init. | |
6840 | (c_parser_postfix_expression_after_paren_type): Pass type_loc to | |
6841 | maybe_warn_string_init. | |
6842 | * c-tree.h (maybe_warn_string_init): Update declaration. | |
6843 | * c-typeck.c (maybe_warn_string_init): Add location parameter. | |
6844 | Call pedwarn_init with loc instead of with input_location. | |
6845 | (digest_init): Pass init_loc to maybe_warn_string_init. | |
6846 | (pop_init_level): Call pedwarn_init with loc instead of with | |
6847 | input_location. | |
6848 | (set_init_index): Likewise. | |
6849 | (process_init_element): Likewise. | |
6850 | ||
ea58ef42 MP |
6851 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
6852 | ||
6853 | PR c/61096 | |
6854 | * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level. | |
6855 | (c_parser_initelt): Pass location to set_init_label. Pass array index | |
6856 | location to set_init_index. | |
6857 | * c-tree.h (push_init_level): Update declaration. | |
6858 | (pop_init_level): Likewise. | |
6859 | (set_init_index): Likewise. | |
6860 | (set_init_label): Likewise. | |
6861 | * c-typeck.c (error_init): Add location parameter. Call error_at | |
6862 | instead of error. | |
6863 | (digest_init): Pass init_loc to error_init. | |
6864 | (really_start_incremental_init): | |
6865 | (push_init_level): Add location parameter. Pass loc to pop_init_level | |
6866 | and error_init. | |
6867 | (pop_init_level): Likewise. | |
6868 | (set_designator): Add location parameter. Pass loc to pop_init_level, | |
6869 | push_init_level, and error_init. | |
6870 | (set_init_index): Add location parameter. Pass loc to error_init and | |
6871 | set_designator. | |
6872 | (set_init_label): Likewise. | |
6873 | (output_init_element): Pass loc to error_init. | |
6874 | (process_init_element): Pass loc to error_init, pop_init_level, | |
6875 | pedwarn_init, and push_init_level. | |
6876 | ||
661a0813 MP |
6877 | 2014-05-09 Marek Polacek <polacek@redhat.com> |
6878 | ||
6879 | PR c/50459 | |
6880 | * c-parser.c (c_parser_attributes): Parse the arguments as an | |
6881 | expression-list if the attribute takes identifier. | |
6882 | ||
2793eeab MP |
6883 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
6884 | ||
6885 | PR c/61053 | |
6886 | * c-decl.c (grokdeclarator): Use min_align_of_type instead of | |
6887 | TYPE_ALIGN_UNIT. | |
6888 | ||
f827930a MP |
6889 | 2014-05-08 Marek Polacek <polacek@redhat.com> |
6890 | ||
6891 | PR c/61077 | |
6892 | * c-decl.c (start_function): Warn for _Atomic-qualified return type | |
6893 | of main. | |
6894 | ||
1d60af08 KZ |
6895 | 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com> |
6896 | Mike Stump <mikestump@comcast.net> | |
6897 | Richard Sandiford <rdsandiford@googlemail.com> | |
6898 | ||
6899 | * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN. | |
6900 | (finish_enum): Use wide-int interfaces. | |
6901 | * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise. | |
6902 | * c-typeck.c (build_c_cast): Likewise. | |
6903 | (set_nonincremental_init_from_string): Likewise. | |
6904 | (c_tree_equal): Likewise. | |
6905 | ||
a0e24419 MP |
6906 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
6907 | ||
6908 | PR c/25801 | |
6909 | * c-typeck.c (c_size_in_bytes): Update comment. Don't call error. | |
6910 | Return size_one_node when the type is not complete. | |
6911 | (pointer_diff): Remove comment. | |
6912 | (build_unary_op): Improve error messages. | |
6913 | ||
19fc9faa MP |
6914 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
6915 | ||
6916 | * c-typeck.c (c_finish_return): Separate warning_at calls. | |
6917 | ||
63bc4e87 MP |
6918 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
6919 | ||
6920 | * c-tree.h (error_init): Remove declaration. | |
6921 | (pedwarn_init): Likewise. | |
6922 | * c-typeck.c (error_init): Make static and move above. | |
6923 | (pedwarn_init): Likewise. | |
6924 | (warning_init): Move above. | |
6925 | (maybe_warn_string_init): Likewise. | |
6926 | ||
4bd2511b JL |
6927 | 2014-05-01 Jeff Law <law@redhat.com> |
6928 | ||
6929 | Revert: | |
6930 | ||
6931 | 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> | |
6932 | * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to | |
6933 | avoid goto. | |
6934 | ||
6a358dcb MP |
6935 | 2014-05-02 Marek Polacek <polacek@redhat.com> |
6936 | ||
6937 | PR c/60784 | |
6938 | * c-typeck.c (push_init_level): Set constructor_designated to | |
6939 | p->designated for structures. | |
6940 | ||
ae5ebda4 MP |
6941 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
6942 | ||
6943 | PR c/60915 | |
6944 | * c-parser.c (c_parser_declaration_or_fndef): Give better error if | |
6945 | function-definition has an attribute after the declarator. | |
6946 | ||
96b40f8d MP |
6947 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
6948 | ||
6949 | PR c/60257 | |
6950 | * c-typeck.c (warning_init): Add location_t parameter. Call | |
6951 | warning_at instead of warning. | |
6952 | (push_init_level): Pass input_location to warning_init. | |
6953 | (add_pending_init): Add location_t parameter. Pass loc to | |
6954 | warning_init. | |
6955 | (set_nonincremental_init): Pass input_location to add_pending_init. | |
6956 | (set_nonincremental_init_from_string): Likewise. | |
6957 | (output_init_element): Pass loc to warning_init and to | |
6958 | add_pending_init. | |
6959 | ||
32e00768 MP |
6960 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
6961 | ||
6962 | PR c/43395 | |
6963 | * c-typeck.c (c_finish_return): Distinguish between label and variable | |
6964 | when warning about returning local address. | |
6965 | ||
c9379ce2 MP |
6966 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
6967 | ||
6968 | PR c/29467 | |
6969 | * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used | |
6970 | in C89 mode. | |
6971 | ||
d00887e8 MP |
6972 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
6973 | ||
6974 | PR c/43245 | |
6975 | * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers | |
6976 | instead of 0 to WARN_FOR_QUALIFIERS. | |
6977 | ||
5436fa2e MP |
6978 | 2014-05-01 Marek Polacek <polacek@redhat.com> |
6979 | ||
6980 | PR c/56989 | |
6981 | * c-typeck.c (default_conversion): Use better location for | |
6982 | error call. | |
6983 | ||
f8ed5150 MP |
6984 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
6985 | ||
6986 | * c-typeck.c (build_binary_op): Call ubsan_instrument_division | |
6987 | also when SANITIZE_FLOAT_DIVIDE is on. | |
6988 | ||
8337d1db MP |
6989 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
6990 | ||
6991 | PR c/60139 | |
6992 | * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn | |
6993 | and pedwarn_init. Use loc insted of input_location. | |
6994 | ||
c4bdc42f MP |
6995 | 2014-04-30 Marek Polacek <polacek@redhat.com> |
6996 | ||
6997 | PR c/60351 | |
6998 | * c-typeck.c (build_binary_op): Use location when warning about | |
6999 | shift count. | |
7000 | ||
45484dcf MP |
7001 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
7002 | ||
7003 | PR c/18079 | |
7004 | * c-decl.c (diagnose_mismatched_decls): Warn for mismatched | |
7005 | always_inline/noinline and hot/cold attributes. | |
7006 | ||
34cf811f MP |
7007 | 2014-04-25 Marek Polacek <polacek@redhat.com> |
7008 | ||
7009 | PR c/60114 | |
7010 | * c-parser.c (c_parser_initelt): Pass input_location to | |
7011 | process_init_element. | |
7012 | (c_parser_initval): Pass loc to process_init_element. | |
7013 | * c-tree.h (process_init_element): Adjust declaration. | |
7014 | * c-typeck.c (push_init_level): Pass input_location to | |
7015 | process_init_element. | |
7016 | (pop_init_level): Likewise. | |
7017 | (set_designator): Likewise. | |
7018 | (output_init_element): Add location_t parameter. Pass loc to | |
7019 | digest_init. | |
7020 | (output_pending_init_elements): Pass input_location to | |
7021 | output_init_element. | |
7022 | (process_init_element): Add location_t parameter. Pass loc to | |
7023 | output_init_element. | |
7024 | ||
42056eac JJ |
7025 | 2014-04-24 Jakub Jelinek <jakub@redhat.com> |
7026 | ||
7027 | * c-parser.c (c_parser_omp_atomic): Allow seq_cst before | |
7028 | atomic-clause, allow comma in between atomic-clause and | |
7029 | seq_cst. | |
7030 | ||
e162a134 JJ |
7031 | 2014-04-22 Jakub Jelinek <jakub@redhat.com> |
7032 | ||
7033 | PR c/59073 | |
7034 | * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for | |
7035 | fails, don't set OM_PARALLEL_COMBINED and return NULL. | |
7036 | ||
2f6babac IZ |
7037 | 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com> |
7038 | ||
7039 | PR middle-end/60469 | |
7040 | * c-array-notation.c (fix_builtin_array_notation_fn): Use | |
7041 | create_tmp_var instead build_decl for creating temps. | |
7042 | (build_array_notation_expr): Likewise. | |
7043 | (fix_conditional_array_notations_1): Likewise. | |
7044 | (fix_array_notation_expr): Likewise. | |
7045 | (fix_array_notation_call_expr): Likewise. | |
7046 | ||
8edbfaa6 JJ |
7047 | 2014-03-28 Jakub Jelinek <jakub@redhat.com> |
7048 | ||
7049 | PR c++/60689 | |
7050 | * c-tree.h (c_build_function_call_vec): New prototype. | |
7051 | * c-typeck.c (build_function_call_vec): Don't call | |
7052 | resolve_overloaded_builtin here. | |
7053 | (c_build_function_call_vec): New wrapper function around | |
7054 | build_function_call_vec. Call resolve_overloaded_builtin here. | |
7055 | (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign): | |
7056 | Call c_build_function_call_vec instead of build_function_call_vec. | |
7057 | * c-parser.c (c_parser_postfix_expression_after_primary): Likewise. | |
7058 | * c-decl.c (finish_decl): Likewise. | |
7059 | ||
7485aeea MLI |
7060 | 2014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org> |
7061 | ||
7062 | PR c/55383 | |
7063 | * c-typeck.c: Use correct format string in cast-qual warning | |
7064 | ||
b17a8b07 TS |
7065 | 2014-03-07 Thomas Schwinge <thomas@codesourcery.com> |
7066 | ||
7067 | * c-decl.c (c_decl_attributes): Use | |
7068 | lang_hooks.types.omp_mappable_type. | |
7069 | * c-typeck.c (c_finish_omp_clauses): Likewise. | |
7070 | ||
3af9c5e9 MP |
7071 | 2014-03-06 Marek Polacek <polacek@redhat.com> |
7072 | ||
7073 | PR c/60197 | |
7074 | * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead | |
7075 | of checking tree code. | |
7076 | ||
1c9f5f33 PK |
7077 | 2014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
7078 | ||
7079 | * c-parser.c (c_parser_declspecs): Replace call to error by error_at. | |
7080 | (c_parser_parameter_declaration): Likewise. | |
7081 | ||
cc28fc7f MP |
7082 | 2014-02-19 Marek Polacek <polacek@redhat.com> |
7083 | ||
7084 | PR c/60195 | |
7085 | * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp. | |
7086 | Call mark_exp_read on exp.value. | |
7087 | (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set | |
7088 | TREE_ADDRESSABLE on old instead of val. | |
7089 | (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING. | |
7090 | ||
b581c05c PK |
7091 | 2014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com> |
7092 | ||
7093 | * c-parser.c (c_parser_get_builtin_args): Replace calls to | |
7094 | C_EXPR_APPEND by vec_safe_push. | |
7095 | * c-tree.h (C_EXPR_APPEND): Remove. | |
7096 | ||
81e5eca8 MP |
7097 | 2014-01-31 Marek Polacek <polacek@redhat.com> |
7098 | ||
7099 | PR c/59963 | |
7100 | * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to | |
7101 | build_function_call_vec. | |
7102 | (build_function_call): Likewise. | |
7103 | (build_atomic_assign): Likewise. | |
7104 | (build_function_call_vec): Add arg_loc parameter. Use it. | |
7105 | (convert_arguments): Likewise. | |
7106 | (convert_for_assignment): Rename rhs_loc to expr_loc. | |
7107 | * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list. | |
7108 | (c_parser_objc_keywordexpr): Likewise. | |
7109 | (c_parser_postfix_expression_after_primary): Call | |
7110 | build_function_call_vec with expr_loc rather than op_loc. | |
7111 | Call c_parser_expr_list to fill arg_loc. Pass arg_loc to | |
7112 | build_function_call_vec. | |
7113 | (c_parser_expr_list): Add locations parameter. Fill it with locations | |
7114 | of function arguments. | |
7115 | * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec. | |
7116 | ||
68fca595 MP |
7117 | 2014-01-30 Marek Polacek <polacek@redhat.com> |
7118 | ||
7119 | PR c/59940 | |
7120 | * c-typeck.c (build_function_call_vec): Use loc parameter. | |
7121 | (convert_arguments): Add location parameter. Use it. | |
7122 | (ep_convert_and_check): Likewise. | |
7123 | (build_atomic_assign): Adjust convert_for_assignment call. | |
7124 | (build_modify_expr): Likewise. | |
7125 | (digest_init): Likewise. | |
7126 | (c_finish_return): Likewise. | |
7127 | (build_conditional_expr): Adjust ep_convert_and_check calls. | |
7128 | (convert_for_assignment): Add rhs_loc parameter. Use it. | |
7129 | (build_binary_op): Adjust convert_and_check and ep_convert_and_check | |
7130 | calls. | |
7131 | ||
fa337f3a RB |
7132 | 2014-01-30 Richard Biener <rguenther@suse.de> |
7133 | ||
7134 | PR c/59905 | |
7135 | * c-typeck.c (build_function_call_vec): Do not replace calls | |
7136 | to a function via an incompatible type with a runtime abort. | |
7137 | ||
b72271b9 BI |
7138 | 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7139 | ||
7140 | * c-parser.c (c_parser_declaration_or_fndef): Replaced | |
7141 | flag_enable_cilkplus with flag_cilkplus. | |
7142 | (c_parser_direct_declarator_inner): Likewise. | |
7143 | (c_parser_attribute_any_word): Likewise. | |
7144 | (c_parser_attributes): Likewise. | |
7145 | (c_parser_compound_statement): Likewise. | |
7146 | (c_parser_statement_after_labels): Likewise. | |
7147 | (c_parser_if_statement): Likewise. | |
7148 | (c_parser_switch_statement): Likewise. | |
7149 | (c_parser_do_statement): Likewise. | |
7150 | (c_parser_for_statement): Likewise. | |
7151 | (c_parser_unary_expression): Likewise. | |
7152 | (c_parser_postfix_expression): Likewise. | |
7153 | (c_parser_postfix_expression_after_primary): Likewise. | |
7154 | (c_parser_postfix_expression_after_primary): Likewise. | |
7155 | (c_parser_omp_clause_name): Likewise. | |
7156 | (c_finish_omp_declare_simd): Likewise. | |
7157 | (c_parser_cilk_verify_simd): Likewise. | |
7158 | * c-typeck.c (build_array_ref): Likewise. | |
7159 | (build_function_call_vec): Likewise. | |
7160 | (convert_arguments): Likewise. | |
7161 | (build_compound_expr): Likewise. | |
7162 | (c_finish_return): Likewise. | |
7163 | (c_finish_if_stmt): Likewise. | |
7164 | (c_finish_loop): Likewise. | |
7165 | (build_binary_op): Likewise. | |
7166 | ||
393e8e8b MP |
7167 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
7168 | ||
7169 | PR c/59846 | |
7170 | * c-typeck.c (parser_build_binary_op): Use location instead of | |
7171 | input_location. | |
7172 | (build_binary_op): Pass location to shorten_compare. | |
7173 | ||
f04dda30 MP |
7174 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
7175 | ||
7176 | PR c/58346 | |
7177 | * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to | |
7178 | an empty aggregate. | |
7179 | ||
789eadcd MP |
7180 | 2014-01-23 Marek Polacek <polacek@redhat.com> |
7181 | ||
7182 | PR c/59871 | |
7183 | * c-typeck.c (build_compound_expr): Warn even for right-hand operand | |
7184 | of a comma expression. | |
7185 | (emit_side_effect_warnings): Likewise. | |
7186 | ||
40f14e9f BI |
7187 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7188 | ||
7189 | PR c/59825 | |
7190 | * c-array-notation.c (expand_array_notation_exprs): Rewrote this | |
7191 | function to use walk_tree and moved a lot of its functionality to | |
7192 | expand_array_notations. | |
7193 | (expand_array_notations): New function. | |
7194 | ||
74558dd9 BI |
7195 | 2014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7196 | ||
7197 | * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function" | |
7198 | attribute an attribute without value. | |
7199 | ||
652fea39 JJ |
7200 | 2014-01-23 Jakub Jelinek <jakub@redhat.com> |
7201 | ||
7202 | PR middle-end/58809 | |
7203 | * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR, | |
7204 | BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs. | |
7205 | ||
f34f1c87 MP |
7206 | 2014-01-22 Marek Polacek <polacek@redhat.com> |
7207 | ||
7208 | PR c/59891 | |
7209 | * c-typeck.c (build_conditional_expr): Call c_fully_fold instead | |
7210 | of remove_c_maybe_const_expr on op1 and op2. | |
7211 | ||
241f845a JJ |
7212 | 2014-01-15 Jakub Jelinek <jakub@redhat.com> |
7213 | ||
7214 | PR c/58943 | |
7215 | * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side | |
7216 | effects, preevaluate rhs using SAVE_EXPR first. | |
7217 | ||
9a74f20c BI |
7218 | 2014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7219 | ||
7220 | PR c++/59631 | |
7221 | * c-parser.c (c_parser_postfix_expression): Replaced consecutive if | |
7222 | statements with if-elseif statements. | |
7223 | ||
96066ce1 MP |
7224 | 2014-01-06 Marek Polacek <polacek@redhat.com> |
7225 | ||
7226 | PR c/57773 | |
7227 | * c-decl.c (check_bitfield_type_and_width): Warn for implementation | |
7228 | defined bit-field types only in ISO C. | |
7229 | ||
23a5b65a RS |
7230 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
7231 | ||
7232 | Update copyright years | |
7233 | ||
f9030485 RS |
7234 | 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com> |
7235 | ||
7236 | * c-array-notation.c: Use the standard form for the copyright notice. | |
7237 | ||
41958c28 BI |
7238 | 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7239 | ||
7240 | * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field. | |
7241 | (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens | |
7242 | field in parser is not empty. If not-empty, call the function | |
7243 | c_parser_finish_omp_declare_simd. | |
7244 | (c_parser_cilk_clause_vectorlength): Modified function to be shared | |
7245 | between SIMD-enabled functions and #pragma simd. Added new parameter. | |
7246 | (c_parser_cilk_all_clauses): Modified the usage of the function | |
7247 | c_parser_cilk_clause_vectorlength as mentioned above. | |
7248 | (c_parser_cilk_simd_fn_vector_attrs): New function. | |
7249 | (c_finish_cilk_simd_fn_tokens): Likewise. | |
7250 | (is_cilkplus_vector_p): Likewise. | |
7251 | (c_parser_omp_clause_name): Added checking for "vectorlength," | |
7252 | "nomask," and "mask" strings in clause name. | |
7253 | (c_parser_omp_all_clauses): Added 3 new case statements: | |
7254 | PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and | |
7255 | PRAGMA_CILK_CLAUSE_NOMASK. | |
7256 | (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a | |
7257 | check for vector attribute and if so call the function | |
7258 | c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled, | |
7259 | called the function c_finish_cilk_simd_fn_tokens. | |
7260 | (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in | |
7261 | parser field is non-empty. If so, parse them as you would parse | |
7262 | the omp declare simd pragma. | |
7263 | (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn. | |
7264 | Added a check when step is a parameter and flag it as error. | |
7265 | (CILK_SIMD_FN_CLAUSE_MASK): New #define. | |
7266 | (c_parser_cilk_clause_name): Changed pragma_cilk_clause to | |
7267 | pragma_omp_clause. | |
7268 | ||
cef0fd0e TS |
7269 | 2013-12-17 Thomas Schwinge <thomas@codesourcery.com> |
7270 | ||
7271 | * c-parser.c (c_parser_omp_parallel): Fix description. | |
7272 | ||
12893402 BI |
7273 | 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7274 | ||
7275 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove. | |
7276 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
7277 | (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise. | |
7278 | * c-typeck.c (cilk_install_body_with_frame_cleanup): New function. | |
7279 | ||
296674db JM |
7280 | 2013-12-04 Joseph Myers <joseph@codesourcery.com> |
7281 | ||
7282 | PR c/52023 | |
7283 | * c-parser.c (c_parser_alignas_specifier): Use | |
7284 | c_sizeof_or_alignof_type instead of c_alignof. | |
7285 | (c_parser_alignof_expression): Likewise, with min_alignof | |
7286 | parameter depending on alignof spelling used. | |
7287 | ||
edd28054 MP |
7288 | 2013-12-04 Marek Polacek <polacek@redhat.com> |
7289 | ||
7290 | PR c/54113 | |
7291 | * c-decl.c (start_function): Don't warn for missing prototype for | |
7292 | inline functions. | |
7293 | ||
da0fc454 MP |
7294 | 2013-12-03 Marek Polacek <polacek@redhat.com> |
7295 | ||
7296 | PR c/59351 | |
7297 | * c-decl.c (build_compound_literal): Allow compound literals with | |
7298 | empty initial value. | |
7299 | ||
4c2ecab0 JM |
7300 | 2013-12-02 Joseph Myers <joseph@codesourcery.com> |
7301 | ||
7302 | PR c/58235 | |
7303 | * c-typeck.c (build_modify_expr): Diagnose assignment to | |
7304 | expression with array type. | |
7305 | ||
340baef7 JM |
7306 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
7307 | ||
7308 | PR c/42262 | |
7309 | * c-typeck.c (process_init_element): Do not treat a string as | |
7310 | initializing a whole array when used with a designator for an | |
7311 | individual element. | |
7312 | ||
6763b9f7 JM |
7313 | 2013-11-29 Joseph Myers <joseph@codesourcery.com> |
7314 | ||
7315 | PR c/57574 | |
7316 | * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of | |
7317 | an inline function following a static declaration. | |
7318 | ||
e7bd1de1 JJ |
7319 | 2013-11-28 Jakub Jelinek <jakub@redhat.com> |
7320 | ||
7321 | PR c/59310 | |
7322 | * c-parser.c (c_parser_omp_target): Copy "#pragma omp target" | |
7323 | to p_name before calling c_parser_omp_teams instead of after. | |
7324 | (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser | |
7325 | argument. Remove unused p_name variable. | |
7326 | ||
0136f8f0 AH |
7327 | 2013-11-27 Aldy Hernandez <aldyh@redhat.com> |
7328 | Jakub Jelinek <jakub@redhat.com> | |
7329 | ||
7330 | * c-decl.c (c_builtin_function_ext_scope): Avoid binding if | |
7331 | external_scope is NULL. | |
7332 | ||
241b71bb TV |
7333 | 2013-11-27 Tom de Vries <tom@codesourcery.com> |
7334 | Marc Glisse <marc.glisse@inria.fr> | |
7335 | ||
7336 | PR c++/59032 | |
7337 | * c-typeck.c (build_unary_op): Allow vector increment and decrement. | |
7338 | ||
2fb9a547 AM |
7339 | 2013-11-22 Andrew MacLeod <amacleod@redhat.com> |
7340 | ||
7341 | * c-typeck.c: Add required include files from gimple.h. | |
7342 | ||
8400e75e DM |
7343 | 2013-11-22 David Malcolm <dmalcolm@redhat.com> |
7344 | ||
7345 | * c-decl.c (define_label, shadow_tag_warned) | |
7346 | (check_bitfield_type_and_width, grokdeclarator, grokparms, | |
7347 | store_parm_decls_newstyle, store_parm_decls_oldstyle) | |
7348 | (declspecs_add_type): Remove use of in_system_header macro. | |
7349 | * c-parser.c (c_parser_unary_expression): Likewise. | |
7350 | * c-typeck.c (store_init_value, process_init_element) | |
7351 | (c_start_case): Likewise. | |
7352 | ||
7353 | * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE | |
7354 | macro. | |
7355 | ||
7356 | * c-parser.c (c_parser_set_source_position_from_token): Remove | |
7357 | reference to in_system_header from comment. | |
7358 | ||
386b1f1f RS |
7359 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
7360 | ||
7361 | * c-decl.c (grokdeclarator): Update comment to refer to | |
7362 | tree_to_[su]hwi rather than tree_low_cst. | |
7363 | ||
ae7e9ddd RS |
7364 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
7365 | ||
7366 | * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with | |
7367 | tree_to_uhwi throughout. | |
7368 | ||
9439e9a1 RS |
7369 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
7370 | ||
7371 | * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi | |
7372 | throughout. | |
7373 | ||
9541ffee RS |
7374 | 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com> |
7375 | ||
7376 | * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p | |
7377 | throughout. | |
7378 | ||
c02065fc AH |
7379 | 2013-11-15 Aldy Hernandez <aldyh@redhat.com> |
7380 | ||
7381 | * c-parser.c (c_parser_cilk_simd): New. | |
7382 | (c_parser_cilk_verify_simd): New. | |
7383 | (c_parser_pragma): Add case for PRAGMA_CILK_SIMD. | |
7384 | (c_parser_omp_for_loop): Add case for NE_EXPR. | |
7385 | Set c_break_label for CILK_SIMD. | |
7386 | (c_parser_cilk_clause_vectorlength): New. | |
7387 | (c_parser_cilk_clause_linear): New. | |
7388 | (c_parser_cilk_clause_name): New. | |
7389 | (c_parser_cilk_all_clauses): New. | |
7390 | * c-typeck.c (build_unary_op): Pass location argument to | |
7391 | readonly_error. | |
7392 | (build_modify_expr): Same. | |
7393 | (build_asm_expr): Same. | |
7394 | (c_finish_bc_stmt): Error on break/continue in loops. | |
7395 | ||
18f429e2 AM |
7396 | 2013-11-14 Andrew MacLeod <amacleod@redhat.com> |
7397 | ||
7398 | * c-typeck.c: Include only gimplify.h and gimple.h as needed. | |
7399 | ||
d8a2d370 DN |
7400 | 2013-11-14 Diego Novillo <dnovillo@google.com> |
7401 | ||
7402 | * c-decl.c: Include print-tree.h. | |
7403 | Include stor-layout.h. | |
7404 | Include varasm.h. | |
7405 | Include attribs.h. | |
7406 | Include stringpool.h. | |
7407 | * c-lang.c: Include fold-const.h. | |
7408 | * c-parser.c: Include stringpool.h. | |
7409 | Include attribs.h. | |
7410 | Include stor-layout.h. | |
7411 | Include varasm.h. | |
7412 | Include trans-mem.h. | |
7413 | * c-typeck.c: Include stor-layout.h. | |
7414 | Include trans-mem.h. | |
7415 | Include varasm.h. | |
7416 | Include stmt.h. | |
7417 | ||
38b7bc7f JM |
7418 | 2013-11-13 Joseph Myers <joseph@codesourcery.com> |
7419 | ||
7420 | * c-tree.h (c_typespec_keyword): Add cts_auto_type. | |
7421 | * c-decl.c (declspecs_add_type, finish_declspecs): Handle | |
7422 | __auto_type. | |
7423 | * c-parser.c (c_token_starts_typename, c_token_starts_declspecs) | |
7424 | (c_parser_attribute_any_word, c_parser_objc_selector): Handle | |
7425 | RID_AUTO_TYPE. | |
7426 | (c_parser_declspecs): Take argument AUTO_TYPE_OK. | |
7427 | (c_parser_declaration_or_fndef, c_parser_struct_declaration) | |
7428 | (c_parser_declarator, c_parser_direct_declarator_inner) | |
7429 | (c_parser_parameter_declaration, c_parser_type_name): All callers | |
7430 | changed. | |
7431 | (c_parser_declaration_or_fndef): Handle declarations with type | |
7432 | determined from the initializer. | |
7433 | ||
45b0be94 AM |
7434 | 2013-11-12 Andrew MacLeod <amacleod@redhat.com> |
7435 | ||
18f429e2 | 7436 | * c-typeck.c: Include gimplify.h. |
45b0be94 | 7437 | |
582d9b50 JM |
7438 | 2013-11-12 Joseph Myers <joseph@codesourcery.com> |
7439 | ||
7440 | * c-tree.h (struct c_declspecs): Add thread_gnu_p field. | |
7441 | * c-parser.c (c_parser_declspecs): Mention _Thread_local in | |
7442 | comment. | |
7443 | * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread | |
7444 | or _Thread_local as appropriate in diagnostics. | |
7445 | (build_null_declspecs): Initialize ret->thread_gnu_p. | |
7446 | (declspecs_add_scspec): Handle either __thread or _Thread_local | |
7447 | for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if | |
7448 | pedantic. Do not disallow _Thread_local extern and _Thread_local | |
7449 | static. | |
7450 | ||
267bac10 JM |
7451 | 2013-11-07 Joseph Myers <joseph@codesourcery.com> |
7452 | Andrew MacLeod <amacleod@redhat.com> | |
7453 | ||
7454 | * c-aux-info.c (gen_type): Handle atomic qualifier. | |
7455 | * c-decl.c (validate_proto_after_old_defn): Do not remove atomic | |
7456 | qualifiers when compating types. | |
7457 | (shadow_tag_warned): Handle atomic_p in declspecs. | |
7458 | (quals_from_declspecs): Likewise. | |
7459 | (start_decl): Use c_type_promotes_to when promoting argument | |
7460 | types. | |
7461 | (grokdeclarator): Handle _Atomic. | |
7462 | (get_parm_info): Diagnose any qualifier on "void" as only | |
7463 | parameter. | |
7464 | (store_parm_decls_oldstyle): Do not remove atomic qualifiers when | |
7465 | comparing types. Use c_type_promotes_to when promoting argument | |
7466 | types. | |
7467 | (finish_function): Use c_type_promotes_to when promoting argument | |
7468 | types. | |
7469 | (build_null_declspecs): Handle atomic_p in declspecs. | |
7470 | (declspecs_add_qual): Handle RID_ATOMIC. | |
7471 | * c-parser.c (c_token_starts_typename, c_token_is_qualifier) | |
7472 | (c_token_starts_declspecs): Handle RID_ATOMIC. | |
7473 | (c_parser_declspecs): Handle atomic type specifiers and | |
7474 | qualifiers. | |
7475 | (c_parser_typeof_specifier): Remove const and _Atomic qualifiers | |
7476 | from types of expressions with atomic type. | |
7477 | (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue. | |
7478 | (c_parser_attribute_any_word): Handle RID_ATOMIC. | |
7479 | (c_parser_initializer, c_parser_initelt, c_parser_initval) | |
7480 | (c_parser_statement_after_labels, c_parser_switch_statement) | |
7481 | (c_parser_for_statement, c_parser_expr_no_commas) | |
7482 | (c_parser_conditional_expression, c_parser_binary_expression) | |
7483 | (c_parser_cast_expression, c_parser_unary_expression) | |
7484 | (c_parser_postfix_expression) | |
7485 | (c_parser_postfix_expression_after_primary, c_parser_expression): | |
7486 | Use convert_lvalue_to_rvalue. | |
7487 | (c_parser_expression_conv, c_parser_expr_list): Document | |
7488 | conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue. | |
7489 | (c_parser_objc_synchronized_statement): Use | |
7490 | convert_lvalue_to_rvalue. | |
7491 | (c_parser_objc_selector): Handle RID_ATOMIC. | |
7492 | (c_parser_objc_receiver, c_parser_array_notation): Use | |
7493 | convert_lvalue_to_rvalue. | |
7494 | * c-tree.h (ctsk_typeof): Adjust comment to mention use for | |
7495 | _Atomic (type-name). | |
7496 | (struct c_declspecs): Add atomic_p field. | |
7497 | (convert_lvalue_to_rvalue): Declare. | |
7498 | * c-typeck.c (c_type_promotes_to): Promote atomic types to | |
7499 | corresponding atomic types. | |
7500 | (qualify_type): Don't add _Atomic qualifiers from second argument. | |
7501 | (comp_target_types): Do not allow _Atomic mismatches. | |
7502 | (type_lists_compatible_p): Do not remove atomic qualifiers when | |
7503 | comparing types. | |
7504 | (really_atomic_lvalue, convert_lvalue_to_rvalue) | |
7505 | (build_atomic_assign): New functions. | |
7506 | (build_unary_op): Use build_atomic_assign for atomic increment and | |
7507 | decrement. | |
7508 | (build_conditional_expr): Do not treat _Atomic void as a qualified | |
7509 | version of void. | |
7510 | (build_modify_expr): Use build_atomic_assign for atomic LHS. | |
7511 | (find_anonymous_field_with_type, convert_to_anonymous_field) | |
7512 | (convert_for_assignment): Do not remove atomic qualifiers when | |
7513 | comparing types. | |
7514 | (digest_init): Do not accept initialization of arrays of atomic | |
7515 | elements by string constants. | |
7516 | (build_asm_expr): Use convert_lvalue_to_rvalue. | |
7517 | (build_binary_op): Do not treat _Atomic void as a qualified | |
7518 | version of void. | |
7519 | ||
0c249d4b DD |
7520 | 2013-11-06 DJ Delorie <dj@redhat.com> |
7521 | ||
7522 | * c-decl.c (locate_old_decl): If a previous conflicting decl is | |
7523 | both explicit and builtin, print the location of the explicit one. | |
7524 | ||
6d7f7e0a TB |
7525 | 2013-11-05 Tobias Burnus <burnus@net-b.de> |
7526 | ||
7527 | * c-parser.c (c_parser_omp_for, c_parser_omp_parallel, | |
7528 | c_parser_omp_distribute, c_parser_omp_teams, | |
7529 | c_parser_omp_target, c_parser_omp_declare): Handle | |
7530 | -fopenmp-simd. | |
7531 | ||
b906f4ca MP |
7532 | 2013-11-03 Marek Polacek <polacek@redhat.com> |
7533 | ||
7534 | * c-decl.c (grokdeclarator): Add VLA instrumentation. | |
7535 | ||
ee1d5a02 JJ |
7536 | 2013-11-01 Jakub Jelinek <jakub@redhat.com> |
7537 | ||
7538 | * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to | |
7539 | check_dup_generic at the end, unless remove is true. | |
7540 | (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after | |
7541 | remove = true;. | |
7542 | (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise. | |
7543 | ||
5a9785fb JJ |
7544 | 2013-10-31 Jakub Jelinek <jakub@redhat.com> |
7545 | ||
7546 | * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause | |
7547 | with decl that is not pointer nor array. | |
7548 | ||
939b37da BI |
7549 | 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7550 | ||
7551 | * c-decl.c (finish_function): Added a call for insert_cilk_frame when | |
7552 | a spawning function is found. | |
7553 | * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define. | |
7554 | (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise. | |
7555 | (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise. | |
7556 | * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC | |
7557 | case. | |
7558 | (c_parser_postfix_expression): Added RID_CILK_SPAWN case. | |
7559 | * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma | |
7560 | expr. | |
7561 | (c_finish_return): Added a check to reject _Cilk_spawn in return | |
7562 | expression. | |
7563 | (build_cilk_spawn): New function. | |
7564 | (build_cilk_sync): Likewise. | |
7565 | * Makefile.in (c-decl.o): Added cilk.h in dependency list. | |
ab20d992 | 7566 | |
d4af74d4 TB |
7567 | 2013-10-27 Tobias Burnus <burnus@net-b.de> |
7568 | ||
7569 | PR other/33426 | |
7570 | * c-parser.c (c_parser_while_statement, c_parser_while_statement, | |
7571 | c_parser_pragma): Add GCC ivdep support to 'do' and 'while'. | |
7572 | (c_parser_statement_after_labels): Update calls. | |
7573 | ||
d73749df | 7574 | 2013-10-24 Tobias Burnus <burnus@net-b.de> |
8170608b TB |
7575 | |
7576 | PR other/33426 | |
7577 | * c-parser.c (c_parser_pragma, c_parser_for_statement): | |
7578 | Handle PRAGMA_IVDEP. | |
7579 | (c_parser_statement_after_labels): Update call. | |
7580 | ||
f28aa681 MP |
7581 | 2013-10-24 Marek Polacek <polacek@redhat.com> |
7582 | ||
7583 | * c-parser.c (c_parser_struct_declaration): Add a comment. | |
7584 | (c_parser_declarator): Don't allow _Alignas here. | |
7585 | ||
0645c1a2 AM |
7586 | 2013-10-17 Andrew MacLeod <amacleod@redhat.com> |
7587 | ||
7588 | * c-parser.c: Include omp-low.h. | |
7589 | * c-typeck.c: Likewise. | |
7590 | ||
568a31f2 MP |
7591 | 2013-10-17 Marek Polacek <polacek@redhat.com> |
7592 | ||
7593 | PR c/58267 | |
7594 | * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter. | |
7595 | Document syntax of the array-declarator. | |
7596 | (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs | |
7597 | are not permitted. | |
7598 | (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call. | |
7599 | (c_parser_struct_declaration): Likewise. | |
7600 | (c_parser_declarator): Likewise. | |
7601 | (c_parser_direct_declarator_inner): Likewise. | |
7602 | (c_parser_parameter_declaration): Likewise. | |
7603 | (c_parser_type_name): Likewise. | |
7604 | ||
acf0174b JJ |
7605 | 2013-10-11 Jakub Jelinek <jakub@redhat.com> |
7606 | ||
7607 | * c-lang.h (current_omp_declare_target_attribute): New extern | |
7608 | decl. | |
7609 | * c-parser.c: Include c-lang.h. | |
7610 | (struct c_parser): Change tokens to c_token *. | |
7611 | Add tokens_buf field. Change tokens_avail type to unsigned int. | |
7612 | (c_parser_consume_token): If parser->tokens isn't | |
7613 | &parser->tokens_buf[0], increment parser->tokens. | |
7614 | (c_parser_consume_pragma): Likewise. | |
7615 | (enum pragma_context): Add pragma_struct and pragma_param. | |
7616 | (c_parser_external_declaration): Adjust | |
7617 | c_parser_declaration_or_fndef caller. | |
7618 | (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses | |
7619 | argument, if it is non-vNULL vector, call c_finish_omp_declare_simd. | |
7620 | Adjust recursive call. | |
7621 | (c_parser_struct_or_union_specifier): Use pragma_struct instead | |
7622 | of pragma_external. | |
7623 | (c_parser_parameter_declaration): Use pragma_param instead of | |
7624 | pragma_external. | |
7625 | (c_parser_compound_statement_nostart, c_parser_label, | |
7626 | c_parser_for_statement): Adjust | |
7627 | c_parser_declaration_or_fndef callers. | |
7628 | (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass | |
7629 | it through to c_parser_conditional_expression. | |
7630 | (c_parser_conditional_expression): Add omp_atomic_lhs argument, | |
7631 | pass it through to c_parser_binary_expression. Adjust recursive | |
7632 | call. | |
7633 | (c_parser_binary_expression): Remove prec argument, add | |
7634 | omp_atomic_lhs argument instead. Always start from PREC_NONE, if | |
7635 | omp_atomic_lhs is non-NULL and one of the arguments of toplevel | |
7636 | binop matches it, use build2 instead of parser_build_binary_op. | |
7637 | (c_parser_pragma): Handle PRAGMA_OMP_CANCEL, | |
7638 | PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET, | |
7639 | PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION. | |
7640 | Handle pragma_struct and pragma_param the same as pragma_external. | |
7641 | (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names. | |
7642 | (c_parser_omp_variable_list): Parse array sections for | |
7643 | OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses. | |
7644 | (c_parser_omp_clause_collapse): Fully fold collapse expression. | |
7645 | (c_parser_omp_clause_reduction): Handle user defined reductions. | |
7646 | (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind, | |
7647 | c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit, | |
7648 | c_parser_omp_clause_aligned, c_parser_omp_clause_linear, | |
7649 | c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen, | |
7650 | c_parser_omp_clause_depend, c_parser_omp_clause_map, | |
7651 | c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule, | |
7652 | c_parser_omp_clause_proc_bind, c_parser_omp_clause_to, | |
7653 | c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions. | |
7654 | (c_parser_omp_all_clauses): Add finish_p argument. Don't call | |
7655 | c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses. | |
7656 | (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is | |
7657 | present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms. | |
7658 | (c_parser_omp_for_loop): Add CODE argument, pass it through | |
7659 | to c_finish_omp_for. Change last argument to cclauses, | |
7660 | and adjust uses to grab parallel clauses from the array of all | |
7661 | the split clauses. Adjust c_parser_binary_expression, | |
7662 | c_parser_declaration_or_fndef and c_finish_omp_for callers. | |
7663 | (omp_split_clauses): New function. | |
7664 | (c_parser_omp_simd): New function. | |
7665 | (c_parser_omp_for): Add p_name, mask and cclauses arguments. | |
7666 | Allow the function to be called also when parsing combined constructs, | |
7667 | and call c_parser_omp_simd when parsing for simd. | |
7668 | (c_parser_omp_sections_scope): If section-sequence doesn't start with | |
7669 | #pragma omp section, require exactly one structured-block instead of | |
7670 | sequence of statements. | |
7671 | (c_parser_omp_sections): Add p_name, mask and cclauses arguments. | |
7672 | Allow the function to be called also when parsing combined constructs. | |
7673 | (c_parser_omp_parallel): Add p_name, mask and cclauses arguments. | |
7674 | Allow the function to be called also when parsing combined | |
7675 | constructs. | |
7676 | (c_parser_omp_taskgroup, c_parser_omp_cancel, | |
7677 | c_parser_omp_cancellation_point, c_parser_omp_distribute, | |
7678 | c_parser_omp_teams, c_parser_omp_target_data, | |
7679 | c_parser_omp_target_update, c_parser_omp_target, | |
7680 | c_parser_omp_declare_simd, c_finish_omp_declare_simd, | |
7681 | c_parser_omp_declare_target, c_parser_omp_end_declare_target, | |
7682 | c_parser_omp_declare_reduction, c_parser_omp_declare): New functions. | |
7683 | (c_parser_omp_construct): Add p_name and mask vars. Handle | |
7684 | PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP, | |
7685 | PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel | |
7686 | and c_parser_omp_sections callers. | |
7687 | (c_parse_file): Initialize tparser.tokens and the_parser->tokens here. | |
7688 | (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK, | |
7689 | OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. | |
7690 | (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND. | |
7691 | (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add | |
7692 | OMP_CLAUSE_DEPEND. | |
7693 | (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK, | |
7694 | OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK, | |
7695 | OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK, | |
7696 | OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK, | |
7697 | OMP_DECLARE_SIMD_CLAUSE_MASK): Define. | |
7698 | * c-typeck.c: Include tree-inline.h. | |
7699 | (c_finish_omp_cancel, c_finish_omp_cancellation_point, | |
7700 | handle_omp_array_sections_1, handle_omp_array_sections, | |
7701 | c_clone_omp_udr, c_find_omp_placeholder_r): New functions. | |
7702 | (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and | |
7703 | user defined reductions. | |
7704 | (c_tree_equal): New function. | |
7705 | * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls, | |
7706 | c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal, | |
7707 | c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup, | |
7708 | c_check_omp_declare_reduction_r): New prototypes. | |
7709 | * c-decl.c (current_omp_declare_target_attribute): New variable. | |
7710 | (c_decl_attributes): New function. | |
7711 | (start_decl, start_function): Use it instead of decl_attributes. | |
7712 | (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id, | |
7713 | c_omp_reduction_decl, c_omp_reduction_lookup, | |
7714 | c_check_omp_declare_reduction_r): New functions. | |
7715 | ||
0a6c2227 TT |
7716 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
7717 | ||
7718 | * Make-lang.in (c/gccspec.o): Remove. | |
7719 | (CFLAGS-c/gccspec.o): New variable. | |
7720 | (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o) | |
7721 | (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o) | |
7722 | (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove. | |
7723 | ||
f3bc55f0 TT |
7724 | 2013-09-25 Tom Tromey <tromey@redhat.com> |
7725 | ||
7726 | * Make-lang.in (c/gccspec.o): Don't use subshell. | |
7727 | ||
a24d975c MP |
7728 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
7729 | ||
7730 | PR sanitize/58443 | |
7731 | * c-typeck.c (build_binary_op): Properly honor -fsanitize options. | |
7732 | Remove unnecessary check. | |
7733 | ||
ce6923c5 MP |
7734 | 2013-09-18 Marek Polacek <polacek@redhat.com> |
7735 | ||
7736 | PR sanitizer/58411 | |
7737 | * c-typeck.c (build_binary_op): Don't sanitize function if it has the | |
7738 | no_sanitize_undefined attribute. | |
7739 | ||
a1e51df9 KT |
7740 | 2013-09-13 Kai Tietz <ktietz@redhat.com> |
7741 | ||
7742 | PR target/57848 | |
7743 | * c-decl.c (c_builtin_function_ext_scope): Remove | |
7744 | wrong assumption that it is never called on prexisting | |
7745 | symbol. | |
7746 | ||
0af94e6f JR |
7747 | 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com> |
7748 | ||
7749 | * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p. | |
7750 | ||
20059c8b GDR |
7751 | 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net> |
7752 | ||
7753 | * c-objc-common.c (c_tree_printer): Tidy. | |
7754 | ||
de5a5fa1 MP |
7755 | 2013-08-30 Marek Polacek <polacek@redhat.com> |
7756 | ||
7757 | * c-typeck.c (build_binary_op): Add division by zero and shift | |
7758 | instrumentation. | |
7759 | ||
2531a1d9 | 7760 | 2013-08-26 Joern Rennecke <joern.rennecke@embecosm.com> |
0fdd4508 | 7761 | Joseph Myers <joseph@codesourcery.com> |
2531a1d9 | 7762 | |
6e2bcc98 | 7763 | PR c/35649 |
2531a1d9 JR |
7764 | * c-typeck.c (c_common_type): Prefer double_type_node over |
7765 | other REAL_TYPE types with the same precision. | |
7766 | (convert_arguments): Likewise. | |
7767 | ||
025311c4 GDR |
7768 | 2013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net> |
7769 | ||
7770 | * c-objc-common.c (c_tree_printer): Document the nature of the cast. | |
7771 | (c_initialize_diagnostics): Call a destructor for the early printer. | |
7772 | ||
da6ca2b5 GDR |
7773 | 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> |
7774 | ||
7775 | * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty | |
7776 | printer initialization. | |
7777 | ||
318cda85 | 7778 | 2013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com> |
da6ca2b5 | 7779 | |
318cda85 BI |
7780 | PR c/57490 |
7781 | * c-array-notation.c (fix_conditional_array_notations_1): Added a | |
7782 | check for truth values. | |
7783 | (expand_array_notation_exprs): Added truth values case. Removed an | |
7784 | unwanted else. Added for-loop to walk through subtrees in default | |
7785 | case. | |
7786 | ||
b066401f GDR |
7787 | 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net> |
7788 | ||
7789 | * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base. | |
7790 | ||
fb48aadc JM |
7791 | 2013-07-23 Joseph Myers <joseph@codesourcery.com> |
7792 | ||
7793 | * c-parser.c (struct c_generic_association): Fix typo. | |
7794 | ||
433cc7b0 TT |
7795 | 2013-07-23 Tom Tromey <tromey@redhat.com> |
7796 | Joseph Myers <joseph@codesourcery.com> | |
7797 | ||
7798 | * c-parser.c (struct c_generic_association): New. | |
7799 | (c_generic_association_d): New typedef. | |
7800 | (c_parser_generic_selection): New function. | |
7801 | (c_parser_postfix_expression): Handle RID_GENERIC. | |
7802 | ||
26d40c3d JM |
7803 | 2013-07-13 Jason Merrill <jason@redhat.com> |
7804 | ||
7805 | PR c++/57793 | |
7806 | * c-decl.c (finish_struct): Check for too-large class. | |
7807 | ||
ecdbd01a | 7808 | 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com> |
40d3d530 JR |
7809 | |
7810 | PR c/57821 | |
7811 | * c-typeck.c (set_init_index): When folding, check for index overflow. | |
7812 | ||
1141ed3f BI |
7813 | 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7814 | ||
7815 | * c-parser.c (c_parser_array_notation): Removed rejection of array | |
7816 | notations in an array of function pointers. | |
7817 | ||
713b46fa BI |
7818 | 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7819 | ||
7820 | * c-array-notation.c (make_triplet_val_inv): New function. | |
7821 | (create_cmp_incr): Likewise. | |
7822 | (create_array_refs): Likewise. | |
7823 | (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec. | |
7824 | Also modularized common parts between functions and called the function. | |
7825 | (build_array_notation_expr): Likewise. | |
7826 | (fix_conditional_array_notations_1): Likewise. | |
7827 | (fix_array_notation_expr): Likewise. | |
7828 | (fix_array_notation_call_expr): Likewise. | |
7829 | ||
92f20202 MP |
7830 | 2013-06-18 Marek Polacek <polacek@redhat.com> |
7831 | ||
7832 | PR c/57630 | |
7833 | * c-decl.c (check_for_loop_decls): Improve diagnostics messages. | |
7834 | ||
73a23b06 BI |
7835 | 2013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7836 | ||
7837 | * c-array-notation.c (build_array_notation_expr): Reject array notation | |
7838 | mismatch between LHS and RHS even inside a call_expr. Also, removed | |
7839 | a couple while statements that were dead code. | |
7840 | ||
00b8517d BI |
7841 | 2013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7842 | ||
7843 | * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded | |
7844 | excessive precision expressions in function parameters. Also removed | |
7845 | couple unwanted while statements. | |
7846 | ||
1509bdda BI |
7847 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7848 | ||
7849 | * c-array-notation.c (expand_array_notation_exprs): Added | |
7850 | ARRAY_NOTATION_REF case. | |
ab20d992 | 7851 | |
d60f1706 BI |
7852 | 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7853 | ||
7854 | * c-array-notation.c (length_mismatch_in_expr_p): Moved this | |
7855 | function to c-family/array-notation-common.c. | |
7856 | (is_cilkplus_reduce_builtin): Likewise. | |
7857 | (find_rank): Likewise. | |
7858 | (extract_array_notation_exprs): Likewise. | |
7859 | (replace_array_notations): Likewise. | |
7860 | (find_inv_trees): Likewise. | |
7861 | (replace_inv_trees): Likewise. | |
7862 | (contains_array_notation_expr): Likewise. | |
7863 | (find_correct_array_notation_type): Likewise. | |
7864 | (replace_invariant_exprs): Initialized additional_tcodes to NULL. | |
7865 | (struct inv_list): Moved this to c-family/array-notation-common.c. | |
7866 | * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype. | |
ab20d992 | 7867 | |
6d6efbb3 BI |
7868 | 2013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7869 | ||
7870 | * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus | |
7871 | reduction functions outside the for-loop. Added a check if the fundecl | |
7872 | is non-NULL. Finally, removed an unwanted if-statement, and made the | |
7873 | body unconditional. | |
7874 | ||
25c22937 BI |
7875 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7876 | ||
7877 | * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the | |
7878 | condition of the if-statement matches the rank of else-block and then- | |
7879 | block when array notations are used. | |
7880 | * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation | |
7881 | expression after the entire function body is parsed. | |
7882 | (c_parser_expr_no_commas): Delayed creating array notation expressions | |
7883 | to the end of function parsing. | |
7884 | * c-array-notation.c (fix_conditional_array_notations_1): Expanded the | |
7885 | whole if-statement instead of just the condition. | |
ab20d992 | 7886 | (expand_array_notation_exprs): Added MODIFY_EXPR case. |
25c22937 | 7887 | |
edd25645 BI |
7888 | 2013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7889 | ||
7890 | PR c/57474 | |
7891 | * c-array-notation.c (build_array_notation_expr): Initialized rhs_length | |
7892 | array to NULL_TREE if they are unused. Also added a check for the | |
7893 | field to be NULL before its fields are used in future. | |
ab20d992 | 7894 | |
065ce7f1 RO |
7895 | 2013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> |
7896 | ||
7897 | PR bootstrap/57450 | |
7898 | * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi. | |
7899 | (build_array_notation_expr): Likewise. | |
7900 | ||
36536d79 BI |
7901 | 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com> |
7902 | ||
7903 | * c-typeck.c (build_array_ref): Added a check to see if array's | |
7904 | index is greater than one. If true, then emit an error. | |
7905 | (build_function_call_vec): Exclude error reporting and checking | |
7906 | for builtin array-notation functions. | |
7907 | (convert_arguments): Likewise. | |
7908 | (c_finish_return): Added a check for array notations as a return | |
7909 | expression. If true, then emit an error. | |
7910 | (c_finish_loop): Added a check for array notations in a loop | |
7911 | condition. If true then emit an error. | |
7912 | (lvalue_p): Added a ARRAY_NOTATION_REF case. | |
7913 | (build_binary_op): Added a check for array notation expr inside | |
7914 | op1 and op0. If present, we call another function to find correct | |
7915 | type. | |
7916 | * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o. | |
7917 | * c-parser.c (c_parser_compound_statement): Check if array | |
7918 | notation code is used in tree, if so, then transform them into | |
7919 | appropriate C code. | |
7920 | (c_parser_expr_no_commas): Check if array notation is used in LHS | |
7921 | or RHS, if so, then build array notation expression instead of | |
7922 | regular modify. | |
7923 | (c_parser_postfix_expression_after_primary): Added a check for | |
7924 | colon(s) after square braces, if so then handle it like an array | |
7925 | notation. Also, break up array notations in unary op if found. | |
7926 | (c_parser_direct_declarator_inner): Added a check for array | |
7927 | notation. | |
7928 | (c_parser_compound_statement): Added a check for array notation in | |
7929 | a stmt. If one is present, then expand array notation expr. | |
7930 | (c_parser_if_statement): Likewise. | |
7931 | (c_parser_switch_statement): Added a check for array notations in | |
7932 | a switch statement's condition. If true, then output an error. | |
7933 | (c_parser_while_statement): Similarly, but for a while. | |
7934 | (c_parser_do_statement): Similarly, but for a do-while. | |
7935 | (c_parser_for_statement): Similarly, but for a for-loop. | |
7936 | (c_parser_unary_expression): Check if array notation is used in a | |
7937 | pre-increment or pre-decrement expression. If true, then expand | |
7938 | them. | |
7939 | (c_parser_array_notation): New function. | |
7940 | * c-array-notation.c: New file. | |
7941 | * c-tree.h (is_cilkplus_reduce_builtin): Protoize. | |
ab20d992 | 7942 | |
cd192ccc MS |
7943 | 2013-05-23 Mike Stump <mikestump@comcast.net> |
7944 | ||
7945 | * c-typeck.c (convert_for_assignment): Handle references to memory | |
7946 | spaces better. | |
7947 | ||
427b248d JM |
7948 | 2013-05-16 Jason Merrill <jason@redhat.com> |
7949 | ||
7950 | * Make-lang.in (cc1$(exeext)): Use link mutex. | |
7951 | ||
44d90fe1 PC |
7952 | 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com> |
7953 | ||
7954 | * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns | |
7955 | to simply use OPT_Wpointer_arith. | |
7956 | (build_unary_op): Likewise. | |
7957 | ||
4e7d7b3d JJ |
7958 | 2013-04-03 Jakub Jelinek <jakub@redhat.com> |
7959 | ||
7960 | PR c/19449 | |
7961 | * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p | |
7962 | argument. If set, or it temporarily for parsing of the first | |
7963 | argument into force_folding_builtin_constant_p. | |
7964 | (c_parser_postfix_expression): Adjust callers. | |
7965 | ||
839b422f RB |
7966 | 2013-03-21 Richard Biener <rguenther@suse.de> |
7967 | ||
7968 | * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P | |
7969 | instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly. | |
7970 | ||
2ee028f1 MP |
7971 | 2013-02-12 Marek Polacek <polacek@redhat.com> |
7972 | ||
7973 | PR c/44938 | |
7974 | * c-parser.c (c_parser_postfix_expression_after_primary): Initialize | |
7975 | origtypes to NULL. | |
7976 | ||
8824edff JJ |
7977 | 2013-01-24 Jakub Jelinek <jakub@redhat.com> |
7978 | ||
7979 | PR c/56078 | |
7980 | * c-typeck.c (set_nonincremental_init_from_string): If | |
7981 | constructor_max_index is NULL, treat it as if tree_int_cst_lt | |
7982 | returned false. | |
7983 | (process_init_element): Likewise. | |
7984 | ||
eadd3d0d JJ |
7985 | 2012-12-20 Jakub Jelinek <jakub@redhat.com> |
7986 | ||
7987 | PR c++/55619 | |
7988 | * c-parser.c (c_parser_asm_operands): Remove CONVERT_P | |
7989 | argument, don't call default_function_array_conversion | |
7990 | nor c_fully_fold here. | |
7991 | (c_parser_asm_statement): Adjust callers. | |
7992 | * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs | |
7993 | and outputs here, and call default_function_array_conversion | |
7994 | on inputs that don't need to be addressable. | |
7995 | ||
f8a93a2e JJ |
7996 | 2012-12-18 Jakub Jelinek <jakub@redhat.com> |
7997 | ||
7998 | PR c/39464 | |
7999 | * c-typeck.c (convert_for_assignment): For -Wpointer-sign | |
8000 | warning require that both c_common_unsigned_type as well as | |
8001 | c_common_signed_type is the same for both mvl and mvr types. | |
8002 | ||
9771b263 DN |
8003 | 2012-11-16 Diego Novillo <dnovillo@google.com> |
8004 | ||
8005 | Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec) | |
8006 | ||
8007 | * c-common.c: Use new vec API in vec.h. | |
8008 | * c-common.h: Likewise. | |
8009 | * c-gimplify.c: Likewise. | |
8010 | * c-pragma.c: Likewise. | |
8011 | * c-pretty-print.c: Likewise. | |
8012 | * c-pretty-print.h: Likewise. | |
8013 | * c-semantics.c: Likewise. | |
8014 | * c-decl.c: Likewise. | |
8015 | * c-parser.c: Likewise. | |
8016 | * c-tree.h: Likewise. | |
8017 | * c-typeck.c: Likewise. | |
8018 | ||
880661a4 JW |
8019 | 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com> |
8020 | ||
8021 | PR c++/54930 | |
8022 | * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr. | |
8023 | ||
077d1abe MLI |
8024 | 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> |
8025 | ||
8026 | PR c/53066 | |
8027 | * c-decl.c (warn_if_shadowing): Do not warn if a variable | |
8028 | shadows a function, unless the variable is a function or a | |
8029 | pointer-to-function. | |
8030 | ||
3a785c97 JJ |
8031 | 2012-10-12 Jakub Jelinek <jakub@redhat.com> |
8032 | ||
8033 | PR c/54381 | |
8034 | * c-parser.c (struct c_tree_loc_pair): Removed. | |
8035 | (c_parser_expr_list): Remove struct c_tree_loc_pair * argument, | |
8036 | add location_t * and tree * arguments, fill in array of 3 | |
8037 | sizeof_arg trees and corresponding locs. | |
8038 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust | |
8039 | c_parser_expr_list callers. | |
8040 | (c_parser_postfix_expression_after_primary): Likewise. Pass | |
8041 | array of 3 sizeof_arg trees and locs (corresponding to first | |
8042 | 3 arguments) to sizeof_pointer_memaccess_warning. | |
8043 | ||
703c8606 LC |
8044 | 2012-10-09 Lawrence Crowl <crowl@google.com> |
8045 | ||
8046 | * Make-lang.in (c-decl.o): Add dependence on hash-table.h. | |
8047 | * c-decl.c (detect_field_duplicates_hash): Change to new type-safe | |
8048 | hash table. | |
8049 | ||
5d9de0d0 PC |
8050 | 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com> |
8051 | ||
8052 | PR c++/54194 | |
8053 | * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses | |
8054 | call. | |
8055 | ||
a212e43f MG |
8056 | 2012-10-09 Marc Glisse <marc.glisse@inria.fr> |
8057 | ||
8058 | PR c++/54427 | |
8059 | * c-typeck.c: Include c-common.h. | |
8060 | (enum stv_conv): Moved to c-common.h. | |
8061 | (scalar_to_vector): Moved to c-common.c. | |
8062 | (build_binary_op): Adapt to scalar_to_vector's new prototype. | |
8063 | * Make-lang.in: c-typeck.c depends on c-common.h. | |
8064 | ||
3b78de56 AC |
8065 | 2012-10-04 Arnaud Charlet <charlet@adacore.com> |
8066 | ||
8067 | * c-decl.c (c_write_global_declarations): Fix handling of | |
8068 | -fdump-ada-spec*. | |
8069 | ||
78c60e3d SS |
8070 | 2012-09-30 Sharad Singhai <singhai@google.com> |
8071 | ||
8072 | * c-decl.c (c_write_global_declarations): Use a different method | |
8073 | to determine if the dump has ben initialized. | |
8074 | ||
9f33203d JM |
8075 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
8076 | ||
8077 | PR c/54552 | |
8078 | * c-typeck.c (c_cast_expr): When casting to a type requiring | |
8079 | C_MAYBE_CONST_EXPR to be created, pass the inner expression to | |
8080 | c_fully_fold first. | |
8081 | ||
a27d595d JM |
8082 | 2012-09-14 Joseph Myers <joseph@codesourcery.com> |
8083 | ||
8084 | PR c/54103 | |
8085 | * c-typeck.c (build_unary_op): Pass original argument of | |
8086 | TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove | |
8087 | any C_MAYBE_CONST_EXPR, if it has integer operands. | |
8088 | (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR, | |
8089 | TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR | |
8090 | to c_objc_common_truthvalue_conversion, then remove any | |
8091 | C_MAYBE_CONST_EXPR, if they have integer operands. Use | |
8092 | c_objc_common_truthvalue_conversion not | |
8093 | c_common_truthvalue_conversion. | |
8094 | (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and | |
8095 | call note_integer_operands for arguments with integer operands | |
8096 | that are not integer constants. | |
8097 | ||
9feb29df JJ |
8098 | 2012-09-13 Jakub Jelinek <jakub@redhat.com> |
8099 | ||
8100 | PR c/54559 | |
8101 | * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or | |
8102 | COMPLEX_TYPE with in_late_binary_op set temporarily to true. | |
8103 | ||
d409320c JJ |
8104 | 2012-08-31 Jakub Jelinek <jakub@redhat.com> |
8105 | ||
8106 | PR c/54428 | |
8107 | * c-convert.c (convert): Don't call fold_convert_loc if | |
8108 | TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e | |
8109 | is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from | |
8110 | COMPLEX_TYPE -> COMPLEX_TYPE conversion. | |
8111 | ||
6265d07c JJ |
8112 | 2012-08-24 Jakub Jelinek <jakub@redhat.com> |
8113 | ||
8114 | PR c/54355 | |
8115 | * c-decl.c (c_parser_label): Pass true as nested and fix up comments | |
8116 | for nested and empty_ok arguments in the call to | |
8117 | c_parser_declaration_or_fndef. | |
8118 | ||
1a4049e7 JJ |
8119 | 2012-08-17 Jakub Jelinek <jakub@redhat.com> |
8120 | ||
8121 | * c-tree.h (c_last_sizeof_arg): Declare. | |
8122 | * c-parser.c (struct c_tree_loc_pair): New type. | |
8123 | (c_parser_expr_list): Add sizeof_arg argument. Fill it in if | |
8124 | non-NULL. | |
8125 | (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers. | |
8126 | (c_parser_postfix_expression_after_primary): Likewise. Call | |
8127 | sizeof_pointer_memaccess_warning if needed. | |
8128 | (sizeof_ptr_memacc_comptypes): New function. | |
8129 | * c-typeck.c (c_last_sizeof_arg): New global variable. | |
8130 | (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it. | |
8131 | ||
0229aee9 UB |
8132 | 2012-07-24 Uros Bizjak <ubizjak@gmail.com> |
8133 | ||
8134 | * c-lang.h (lang_decl): Add variable_size GTY option. | |
8135 | ||
7ee2468b SB |
8136 | 2012-07-16 Steven Bosscher <steven@gcc.gnu.org> |
8137 | ||
8138 | * c-decl.c: Include dumpfile.h instead of tree-dump.h. | |
8139 | * Make-lang.in: Fix dependencies. | |
8140 | ||
d4a10d0a SB |
8141 | 2012-06-29 Steven Bosscher <steven@gcc.gnu.org> |
8142 | ||
8143 | * Make-lang.in: New file, rules migrated from gcc/Makefile.in | |
8144 | and add language Makefile hooks. | |
8145 | * config-lang.in: New file. | |
8146 | * c-config-lang.in: Moved from gcc/config-lang.in to here, and | |
8147 | add the required "normal" config-lang.in rules. | |
8148 | * c-lang.h: Moved from gcc/ to here. | |
8149 | * c-tree.h: Likewise. | |
8150 | * c-objc-common.c: Likewise. | |
8151 | * c-objc-common.h: Likewise. | |
8152 | * c-typeck.c: Likewise. | |
8153 | * c-convert.c: Likewise. | |
8154 | * c-lang.c: Likewise. | |
8155 | * c-aux-info.c: Likewise. | |
8156 | * c-errors.c: Likewise. | |
8157 | * gccspec.c: Likewise. | |
8158 | * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h. | |
8159 | * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h. | |
8160 | \f | |
877e3c2a | 8161 | Copyright (C) 2012-2022 Free Software Foundation, Inc. |
d4a10d0a SB |
8162 | |
8163 | Copying and distribution of this file, with or without modification, | |
8164 | are permitted in any medium without royalty provided the copyright | |
8165 | notice and this notice are preserved. |