]> gcc.gnu.org Git - gcc.git/blame - gcc/c/ChangeLog
* doc/invoke.texi: Fix typo.
[gcc.git] / gcc / c / ChangeLog
CommitLineData
56d35585
DM
12017-05-05 David Malcolm <dmalcolm@redhat.com>
2
3 * c-decl.c (warn_defaults_to): Replace report_diagnostic
4 with diagnostic_report_diagnostic.
5 * c-errors.c (pedwarn_c99): Likewise.
6 (pedwarn_c90): Likewise.
7
815d9cc6
XR
82017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
9
10 PR c++/80038
11 * c-gimplify.c (c_gimplify_expr): Remove calls to
12 cilk_gimplifY_call_params_in_spawned_fn.
13
1c4ea66f
DM
142017-04-25 David Malcolm <dmalcolm@redhat.com>
15
16 * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it
17 hint for removing extra semicolon.
18
666f7903
JJ
192017-04-21 Jakub Jelinek <jakub@redhat.com>
20
21 PR c/80468
22 * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not
23 enabled, set specs->type to integer_type_node.
24
5764ee3c
JW
252017-04-03 Jonathan Wakely <jwakely@redhat.com>
26
27 * c-array-notation.c: Fix typo in comment.
28
10fa8dfb
MP
292017-03-29 Marek Polacek <polacek@redhat.com>
30
31 PR c/79730
32 * c-decl.c (finish_decl): Check VAR_P.
33
a9e4a1a5
JJ
342017-03-27 Jakub Jelinek <jakub@redhat.com>
35
36 PR middle-end/80162
37 * c-tree.h (c_mark_addressable): Add array_ref_p argument.
38 * c-typeck.c (c_mark_addressable): Likewise. Look through
39 VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE
40 to ARRAY_TYPE.
41 (build_array_ref): Pass true as array_ref_p to c_mark_addressable.
42
ee3ff394
MP
432017-03-23 Marek Polacek <polacek@redhat.com>
44
45 * c-tree.h: Remove a C_RID_YYCODE reference.
46
4d1b8e70
JJ
472017-03-21 Jakub Jelinek <jakub@redhat.com>
48
49 PR c/80097
50 * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around
51 optional COMPOUND_EXPR with ubsan instrumentation.
52
31dc71a8
MP
532017-03-17 Marek Polacek <polacek@redhat.com>
54
55 * c-parser.c: Add C11 references.
56
d579c385
MP
572017-03-15 Marek Polacek <polacek@redhat.com>
58
59 * c-parser.c (c_parser_enum_specifier): Remove redundant line.
60
85059a38
MP
612017-03-11 Marek Polacek <polacek@redhat.com>
62
63 * c-decl.c (implicit_decl_warning): Add a comment. Fix formatting.
64
2f6f187a
DM
652017-03-10 David Malcolm <dmalcolm@redhat.com>
66
67 PR translation/79848
68 * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to
69 "%qs".
70 * c-parser.c (c_parser_oacc_shape_clause): Likewise.
71
36618428
MP
722017-03-09 Marek Polacek <polacek@redhat.com>
73
74 PR sanitizer/79757
75 * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style
76 parameter declarations with initializers.
77
01e5af5a
JJ
782017-03-09 Jakub Jelinek <jakub@redhat.com>
79
80 PR c/79969
81 * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of
82 TYPE_STUB_DECL.
83
a71dbc63
JJ
842017-03-07 Jakub Jelinek <jakub@redhat.com>
85
86 PR c/79834
87 * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error
88 for "may only be used in compound statements" diagnostics, change it
89 such that the same translatable string is used for all pragmas. For
90 PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the
91 diagnostics.
92 (c_parser_omp_cancellation_point, c_parser_omp_target_update,
93 c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change
94 "may only be used in compound statements" diagnostics, such that the
95 same translatable string is used for all pragmas.
96
1ff4bae6
MP
972017-03-04 Marek Polacek <polacek@redhat.com>
98
99 PR c/79847
100 * c-decl.c (implicit_decl_warning): Add missing space.
101
7f5a7d78
MP
1022017-03-03 Marek Polacek <polacek@redhat.com>
103
104 PR c/79758
105 * c-decl.c (store_parm_decls_oldstyle): Check if the element of
106 current_function_prototype_arg_types is error_mark_node. Fix
107 formatting. Use TREE_VALUE instead of TREE_TYPE.
108
883c8f06
JJ
1092017-03-03 Jakub Jelinek <jakub@redhat.com>
110
79c9b7a8
JJ
111 PR c/79837
112 * c-parser.c (c_parser_omp_clause_reduction): Don't mention
113 %<min%> or %<max%> in the diagnostics, instead mention identifier.
114 (c_parser_omp_declare_reduction): Don't mention %<min%> in the
115 diagnostics.
116
883c8f06
JJ
117 PR c/79836
118 * c-parser.c (c_parser_generic_selection): Use %<_Generic%>
119 instead of %<_Generic>.
120 (c_parser_omp_ordered): Use %<depend%> instead of %<depend>.
121 (c_parser_omp_target_exit_data): Use %<release%> instead of
122 %<release>.
123
324ff1a0
JJ
1242017-02-28 Jakub Jelinek <jakub@redhat.com>
125
126 * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...")
127 instead of just cond ? "..." : "...".
128 (c_parser_oacc_enter_exit_data): Use %s and ternary operator only
129 for "enter"/"exit" keyword.
130 (c_finish_oacc_routine): Don't use %s to supply portions of the
131 message.
132
4227c9ad
JJ
1332017-02-24 Jakub Jelinek <jakub@redhat.com>
134
135 PR c++/79588
136 * c-parser.c (c_parser_postfix_expression_after_primary): Don't
137 handle -Wrestrict here.
138 * c-typeck.c (build_function_call_vec): Adjust
139 check_function_arguments caller.
140
5d972e66
RB
1412017-02-23 Richard Biener <rguenther@suse.de>
142
143 PR c/79684
144 * gimple-parser.c (c_parser_gimple_statement): Use set_error
145 to initialize c_exprs to return.
146 (c_parser_gimple_binary_expression): Likewise.
147 (c_parser_gimple_unary_expression): Likewise.
148 (c_parser_gimple_postfix_expression): Likewise.
149
61ac5ebe
MP
1502017-02-22 Marek Polacek <polacek@redhat.com>
151
152 PR c/79662
153 * c-typeck.c (convert_arguments): Handle error_mark_node.
154
41d1b0b1
PK
1552017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
156
157 * gimple-parser.c (c_parser_gimple_postfix_expression): Check return
158 value of c_parser_parse_ssa_name against error_mark_node and emit
159 error if ssa name is anonymous and written as default definition.
160
eab1f169
PK
1612017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
162
163 * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
164 FMA_EXPR.
165
bcac0b4d
JJ
1662017-02-16 Jakub Jelinek <jakub@redhat.com>
167
168 PR c++/79512
169 * c-parser.c (c_parser_omp_target): For -fopenmp-simd
170 ignore #pragma omp target even when not followed by identifier.
171
1be33173
PK
1722017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
173
174 * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR.
175 (c_parser_gimple_unary_expression): Likewise.
176
aa326bfb
JJ
1772017-02-13 Jakub Jelinek <jakub@redhat.com>
178
179 * c-parser.c (c_parser_oacc_declare): Add missing space in
180 diagnostics.
181
8a398bc5
PK
1822017-02-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
183
184 PR c/79478
185 * gimple-parser.c (c_parser_gimple_postfix_expression): Call
186 set_c_expr_source_range when parsing ssa-name.
187
3dcde5ef
PG
1882017-02-10 Prasad Ghangal <prasad.ghangal@gmail.com>
189 Richard Biener <rguenther@suse.de>
190
191 * gimple-parser.c (c_parser_gimple_binary_expression): Avoid
192 building IL when arguments are error_mark_node.
193 (c_parser_gimple_unary_expression): Likewise.
194 (c_parser_gimple_if_stmt): Likewise.
195 (c_parser_gimple_switch_stmt): Likewise.
196 (c_parser_gimple_return_stmt): Likewise.
197 (c_parser_parse_ssa_name): When name lookup fails do not build
198 an SSA name. Use undeclared rather than not declared in error
199 reporting.
200
192b048b
MP
2012017-02-09 Marek Polacek <polacek@redhat.com>
202
203 PR c/79428
204 * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
205 instead of c_parser_skip_until_found.
206
56f71478
JJ
2072017-02-09 Jakub Jelinek <jakub@redhat.com>
208
209 PR c/79431
210 * c-parser.c (c_parser_omp_declare_target): Don't invoke
211 symtab_node::get on automatic variables.
212
02889d23
CLT
2132016-02-09 Nathan Sidwell <nathan@codesourcery.com>
214 Chung-Lin Tang <cltang@codesourcery.com>
215
216 * c-parser.c (c_parser_omp_clause_collapse): Disallow tile.
217 (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and
218 semantic checking.
219 * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs.
220
7af4b20d
RB
2212017-02-07 Richard Biener <rguenther@suse.de>
222
223 * gimple-parser.c (c_parser_gimple_expr_list): Simplify.
224 (c_parser_gimple_postfix_expression_after_primary):
225 Do not use c_build_function_call_vec to avoid folding and promotion.
226 Simplify.
227
e5e391d6
MO
2282017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
229
230 PR lto/79061
231 * c-decl.c (pop_scope): Pass main_input_filename to
232 build_translation_unit_decl.
233
c2e84327
DM
2342017-01-24 David Malcolm <dmalcolm@redhat.com>
235
236 * c-parser.c: Include "read-rtl-function.h" and
237 "run-rtl-passes.h".
238 (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in
239 grammar to gimple-or-rtl-pass-list. Add rtl-function-definition
240 production. Update for renaming of field "gimple_pass" to
241 "gimple_or_rtl_pass". If __RTL was seen, call
242 c_parser_parse_rtl_body. Convert a timevar_push/pop pair
243 to an auto_timevar, to cope with early exit.
244 (c_parser_declspecs): Update RID_GIMPLE handling for renaming of
245 field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of
246 c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list.
247 Handle RID_RTL.
248 (c_parser_parse_rtl_body): New function.
249 * c-tree.h (enum c_declspec_word): Add cdw_rtl.
250 (struct c_declspecs): Rename field "gimple_pass" to
251 "gimple_or_rtl_pass". Add field "rtl_p".
252 * gimple-parser.c (c_parser_gimple_pass_list): Rename to...
253 (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly.
254 * gimple-parser.h (c_parser_gimple_pass_list): Rename to...
255 (c_parser_gimple_or_rtl_pass_list): ...this.
256
2ebd93e1
MP
2572017-01-20 Marek Polacek <polacek@redhat.com>
258
259 PR c/64279
260 * c-typeck.c (build_conditional_expr): Warn about duplicated branches.
261
b1c95bb5
RB
2622017-01-13 Richard Biener <rguenther@suse.de>
263
264 * gimple-parser.c (c_parser_gimple_compound_statement): Handle
265 nops.
266
25329913
RB
2672017-01-13 Richard Biener <rguenther@suse.de>
268
269 * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
270 _Literal ( type-name ) number.
271
6bb4ea5c
RB
2722017-01-12 Richard Biener <rguenther@suse.de>
273
274 * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
275 __MEM.
276
6b5b4e9c
JJ
2772017-01-11 Jakub Jelinek <jakub@redhat.com>
278
279 PR c++/72813
280 * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing
281 PCH file.
282
e3252775
RB
2832017-01-11 Richard Biener <rguenther@suse.de>
284
285 PR bootstrap/79052
286 * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing
287 returns on parse errors.
288
a9342885
MP
2892017-01-04 Marek Polacek <polacek@redhat.com>
290
291 PR c++/64767
292 * c-parser.c (c_parser_postfix_expression): Mark zero character
293 constants by setting original_type in c_expr.
294 * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared
295 with a zero character constant.
296 (char_type_p): New function.
297
5dd9a9d0
DM
2982017-01-04 David Malcolm <dmalcolm@redhat.com>
299
300 * c-parser.c (c_parser_declaration_or_fndef): Create a
301 rich_location at init_loc and parse it to start_init.
302 (last_init_list_comma): New global.
303 (c_parser_braced_init): Update last_init_list_comma when parsing
304 commas. Pass it to pop_init_level. Pass location of closing
305 brace to pop_init_level.
306 (c_parser_postfix_expression_after_paren_type): Create a
307 rich_location at type_loc and parse it to start_init.
308 (c_parser_omp_declare_reduction): Likewise for loc.
309 * c-tree.h (start_init): Add rich_location * param.
310 (pop_init_level): Add location_t param.
311 * c-typeck.c (struct initializer_stack): Add field
312 "missing_brace_richloc".
313 (start_init): Add richloc param, use it to initialize
314 the stack node's missing_brace_richloc.
315 (last_init_list_comma): New decl.
316 (finish_implicit_inits): Pass last_init_list_comma to
317 pop_init_level.
318 (push_init_level): When finding missing open braces, add fix-it
319 hints to the richloc.
320 (pop_init_level): Add "insert_before" param and pass it
321 when calling pop_init_level. Add fixits about missing
322 close braces to any richloc. Use the richloc for the
323 -Wmissing-braces warning.
324 (set_designator): Pass last_init_list_comma to pop_init_level.
325 (process_init_element): Likewise.
326
cbe34bb5
JJ
3272017-01-01 Jakub Jelinek <jakub@redhat.com>
328
329 Update copyright years.
330
d17680f3
JJ
3312016-12-21 Jakub Jelinek <jakub@redhat.com>
332
0dba7960
JJ
333 PR bootstrap/78817
334 * c-typeck.c (build_function_call_vec): If check_function_arguments
335 returns true, set TREE_NO_WARNING on CALL_EXPR.
336
d17680f3
JJ
337 PR c/77767
338 * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
339 to *expr instead of overwriting it.
340
aa90531e
RB
3412016-12-20 Richard Biener <rguenther@suse.de>
342
343 * gimple-parser.c (c_parser_gimple_compound_statement): Improve
344 error recovery.
345 (c_parser_gimple_statement): Only build assigns for non-error
346 stmts.
347 (c_parser_gimple_postfix_expression_after): Improve error recovery.
348
629b3d75
MJ
3492016-12-14 Martin Jambor <mjambor@suse.cz>
350
351 * c-parser.c: Include omp-general.h and omp-offload.h instead of
352 omp-low.h.
353 (c_finish_oacc_routine): Adjusted call to
354 get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib
355 to use their new names.
356 (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to
357 use its new name.
358 (c_parser_oacc_update): Likewise.
359 (c_parser_omp_simd): Likewise.
360 (c_parser_omp_target_update): Likewise.
361 * c-typeck.c: Include omp-general.h instead of omp-low.h.
362 (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new
363 name.
364 (c_finish_omp_cancellation_point): Likewise.
365 * gimple-parser.c: Do not include omp-low.h
366
c5af52eb
CP
3672016-12-02 Cesar Philippidis <cesar@codesourcery.com>
368 James Norris <jnorris@codesourcery.com>
369
370 * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
371 EXIT_DATA,WAIT} are not used in compound statements.
372 (c_parser_oacc_enter_exit_data): Update diagnostics.
373
48330c93
BE
3742016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
375
376 PR c++/71973
377 * c-decl.c (diagnose_mismatched_decls): Use
378 OPT_Wbuiltin_declaration_mismatch here too.
379
899ca90e 3802016-11-18 Richard Sandiford <richard.sandiford@arm.com>
48330c93
BE
381 Alan Hayward <alan.hayward@arm.com>
382 David Sherwood <david.sherwood@arm.com>
899ca90e
RS
383
384 * c-decl.c (merge_decls): Use SET_DECL_MODE.
385 (make_label, finish_struct): Likewise.
386
1ee62b92 3872016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17 388 Richard Biener <rguenther@suse.de>
22b15758 389
8e745a17
JJ
390 * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o.
391 * config-lang.in (gtfiles): Add c/c-parser.h.
392 * c-tree.h (enum c_declspec_word): Add cdw_gimple.
393 (struct c_declspecs): Add gimple_pass member and gimple_p flag.
394 * c-parser.c (enum c_id_kind, struct c_token,
395 c_parser_next_token_is, c_parser_next_token_is_not,
396 c_parser_next_token_is_keyword,
397 enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec):
398 Split out to ...
399 * c-parser.h: ... new header.
400 * c-parser.c: Include c-parser.h and gimple-parser.h.
1ee62b92 401 (c_parser_peek_token, c_parser_peek_2nd_token,
8e745a17
JJ
402 c_token_starts_typename, c_parser_next_token_starts_declspecs,
403 c_parser_next_tokens_start_declaration, c_parser_consume_token,
404 c_parser_error, c_parser_require, c_parser_skip_until_found,
405 c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
406 c_parser_type_name): Export.
407 (c_parser_tokens_buf): New function.
408 (c_parser_error): Likewise.
409 (c_parser_set_error): Likewise.
410 (c_parser_declspecs): Handle RID_GIMPLE.
1ee62b92
PG
411 (c_parser_declaration_or_fndef): Parse __GIMPLE marked body
412 via c_parser_parse_gimple_body.
8e745a17
JJ
413 * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token,
414 c_token_starts_typename, c_parser_next_token_starts_declspecs,
415 c_parser_next_tokens_start_declaration, c_parser_consume_token,
416 c_parser_error, c_parser_require, c_parser_skip_until_found,
417 c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
418 c_parser_type_name): Declare.
1ee62b92
PG
419 (struct c_parser): Declare forward.
420 (c_parser_tokens_buf): Declare.
8e745a17
JJ
421 (c_parser_error): Likewise.
422 (c_parser_set_error): Likewise.
423 * gimple-parser.c: New file.
424 * gimple-parser.h: Likewise.
1ee62b92 425
22b15758
UB
4262016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
427
428 PR c/35503
429 * c-parser.c (c_parser_postfix_expression_after_primary): Call
430 warn_for_restrict.
431
84ff4775
LCW
4322016-09-11 Le-Chun Wu <lcwu@google.com>
433 Mark Wielaard <mjw@redhat.com>
434
435 * c-decl.c (warn_if_shadowing): Use the warning code corresponding
436 to the given -Wshadow= variant.
437
4d0cdd0c
TP
4382016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
439
440 * c-typeck.c: Include memmodel.h.
441
1202f33e
JJ
4422016-10-13 Jakub Jelinek <jakub@redhat.com>
443
444 PR target/77957
445 * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
446 instead of lhd_return_null_tree_v.
447
8a14afd0
BS
4482016-10-07 Bernd Schmidt <bschmidt@redhat.com>
449
450 PR c++/69733
451 * c-decl.c (smallest_type_quals_location): New static function.
452 (grokdeclarator): Try to find the correct location for an ignored
453 qualifier.
454
81fea426
MP
4552016-09-26 Marek Polacek <polacek@redhat.com>
456
457 PR c/7652
458 * c-decl.c (pop_scope): Add gcc_fallthrough.
459
4602016-09-26 Marek Polacek <polacek@redhat.com>
461
462 PR c/7652
463 * c-parser.c (struct c_token): Add flags field.
464 (c_lex_one_token): Pass it to c_lex_with_flags.
465 (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough));
466 into IFN_FALLTHROUGH.
467 (c_parser_label): Set FALLTHROUGH_LABEL_P on labels. Handle
468 attribute fallthrough after a case label or default label.
469 (c_parser_statement_after_labels): Handle RID_ATTRIBUTE.
470
9a2300e9
MP
4712016-09-24 Marek Polacek <polacek@redhat.com>
472
473 PR c/77490
474 * c-typeck.c (build_unary_op): Warn about bit not on expressions that
475 have boolean value. Warn about ++/-- on booleans.
476
7de76362
JJ
4772016-09-23 Jakub Jelinek <jakub@redhat.com>
478
479 * c-parser.c (incomplete_record_decls): Remove unnecessary
480 = vNULL initialization of file scope vec.
481
5b73d2ab
MP
4822016-09-16 Marek Polacek <polacek@redhat.com>
483
484 * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
485
e51fbec3
MP
4862016-09-14 Marek Polacek <polacek@redhat.com>
487
488 * c-array-notation.c (create_cmp_incr): Use false instead of 0.
489 (fix_array_notation_expr): Likewise.
490 * c-decl.c (finish_decl): Likewise.
491 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
492 * c-typeck.c (array_to_pointer_conversion): Use true instead of 1.
493 (function_to_pointer_conversion): Use false instead of 0.
494 (convert_lvalue_to_rvalue): Likewise.
495 (parser_build_unary_op): Likewise.
496 (build_atomic_assign): Likewise.
497 (build_unary_op): Change nonconvert parameter type to bool, use
498 true/false instead of 1/0.
499 (build_binary_op): Use true instead of 1.
500
254830ba
DM
5012016-09-13 David Malcolm <dmalcolm@redhat.com>
502
503 * c-parser.c (c_parser_declaration_or_fndef): Update for renaming
504 of add_fixit_insert to add_fixit_insert_before.
505
4c13ba17
MP
5062016-09-13 Marek Polacek <polacek@redhat.com>
507
508 * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT. Use
509 it.
510
54dcdb88
BE
5112016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
512
513 PR c++/77496
514 * c-parser.c (c_parser_conditional_expression): Pass the rightmost
515 COMPOUND_EXPR to warn_for_omitted_condop.
516
e5106e27
DM
5172016-09-07 David Malcolm <dmalcolm@redhat.com>
518
519 * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use
520 c_get_substring_location for this new langhook.
521
9dc5773f
JJ
5222016-09-02 Jakub Jelinek <jakub@redhat.com>
523
524 PR c/65467
525 * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if
526 flag_openmp.
527 (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue
528 instead of mark_exp_read on low_bound/length expression.
529 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads,
530 c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
531 c_parser_omp_clause_priority, c_parser_omp_clause_hint,
532 c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause,
533 c_parser_oacc_clause_tile, c_parser_omp_clause_schedule,
534 c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams,
535 c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned,
536 c_parser_omp_clause_linear, c_parser_omp_clause_safelen,
537 c_parser_omp_clause_simdlen, c_parser_omp_clause_device,
538 c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue
539 instead of mark_expr_read.
540 (c_parser_omp_declare_reduction): Reject _Atomic qualified types.
541 * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
542 LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine.
543 * c-tree.h (c_omp_clause_copy_ctor): New prototype.
544 * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified
545 array section bases outside of depend clause, for depend clause
546 use convert_lvalue_to_rvalue on the base.
547 (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction,
548 linear, aligned, map, to and from clauses.
549 (c_omp_clause_copy_ctor): New function.
550
295844f6
MP
5512016-09-01 Marek Polacek <polacek@redhat.com>
552
553 PR c/7652
554 * c-typeck.c (composite_type): Add FALLTHRU comment.
555
089af25c
DM
5562016-08-31 David Malcolm <dmalcolm@redhat.com>
557
558 * c-parser.c (c_parser_declaration_or_fndef): Add trailing space
559 to the insertion fixits for "struct", "union", and "enum".
560
f9087798
DM
5612016-08-30 David Malcolm <dmalcolm@redhat.com>
562
563 * c-decl.c (implicit_decl_warning): Use add_fixit_replace
564 rather than add_fixit_misspelled_id.
565 (undeclared_variable): Likewise.
566 * c-parser.c (c_parser_declaration_or_fndef): Likewise. Remove
567 now-redundant "here" params from add_fixit_insert method calls.
568 (c_parser_parameter_declaration): Likewise.
569 * c-typeck.c (build_component_ref): Remove now-redundant range
570 param from add_fixit_replace method calls.
571
ebef225f
MP
5722016-08-25 Marek Polacek <polacek@redhat.com>
573
574 * c-typeck.c (parser_build_binary_op): Pass LHS to
575 warn_logical_not_parentheses.
576
fe377a48
MP
5772016-08-25 Marek Polacek <polacek@redhat.com>
578
579 PR c/77323
580 * c-decl.c (declspecs_add_type): Set typespec_word even when __intN
581 or _FloatN or _FloatNx is not supported.
582 (finish_declspecs): Set type to integer_type_node when _FloatN or
583 _FloatNx is not supported.
584
c65699ef
JM
5852016-08-19 Joseph Myers <joseph@codesourcery.com>
586
587 PR c/32187
588 * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value.
589 (struct c_declspecs): Add field floatn_nx_idx.
590 * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN
591 and _FloatNx type specifiers.
592 * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs)
593 (c_parser_declspecs, c_parser_attribute_any_word)
594 (c_parser_objc_selector): Use CASE_RID_FLOATN_NX.
595 * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types.
596 (convert_arguments): Avoid promoting _FloatN and _FloatNx types
597 narrower than double.
598
2f1364c2
JJ
5992016-08-12 Jakub Jelinek <jakub@redhat.com>
600 Martin Liska <mliska@suse.cz>
601
602 PR c/67410
603 * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
604 % to determine val element to change. Assert that
605 wchar_bytes * charwidth fits into val array.
606
191816a3
MP
6072016-08-12 Marek Polacek <polacek@redhat.com>
608
609 PR c/7652
610 * c-parser.c (c_parser_external_declaration): Add FALLTHRU.
611 (c_parser_postfix_expression): Likewise.
612 * c-typeck.c (build_unary_op): Adjust fall through comment.
613 (c_mark_addressable): Likewise.
614
b95a64bb
JJ
6152016-08-11 Jakub Jelinek <jakub@redhat.com>
616
617 PR c/72816
618 * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
619 array member through typedef, for orig_qual_indirect == 0 clear
620 orig_qual_type.
621
895aa8e1
DM
6222016-08-08 David Malcolm <dmalcolm@redhat.com>
623
624 PR c/64955
625 * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire
626 this up to selftest::run_c_tests.
627 (selftest::run_c_tests): New function.
628
0b212d8c
TS
6292016-08-04 Thomas Schwinge <thomas@codesourcery.com>
630
ae9281fc
TS
631 * c-parser.c (struct oacc_routine_data): Add error_seen and
632 fndecl_seen members.
633 (c_finish_oacc_routine): Use these.
634 (c_parser_declaration_or_fndef): Adjust.
635 (c_parser_oacc_routine): Likewise. Support more C language
636 constructs, and improve diagnostics. Move pragma context
637 checking...
638 (c_parser_pragma): ... here.
639
0b212d8c
TS
640 * c-parser.c (struct oacc_routine_data): New.
641 (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it.
642 Simplify code.
643 (c_finish_oacc_routine): Likewise. Don't attach clauses to "omp
644 declare target" attribute.
645
76e2c821
JB
6462016-08-01 Jan Beulich <jbeulich@suse.com>
647
648 * c-fold.c (c_fully_fold_internal): Also emit shift count
649 warnings for vector types.
650 * c-typeck.c (build_binary_op): Likewise.
651
f618a472
MP
6522016-07-29 Marek Polacek <polacek@redhat.com>
653
654 PR c/71742
655 * c-decl.c (finish_struct): Rephrase an error message.
656
efd0786f
MP
657 PR c/71853
658 * c-parser.c (c_parser_switch_statement): Initialize ce.original_type
659 to error node for invalid code.
660
e00dceaf
MP
661 PR c/71573
662 * c-decl.c (implicitly_declare): Return decl early not only for
663 error_mark_nodes, but for anything that is not a FUNCTION_DECL.
664
673a107a
JJ
6652016-07-29 Jakub Jelinek <jakub@redhat.com>
666
667 PR c/71969
668 * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS
669 on GNU extern inline functions.
670
a5b5c8b6
MP
6712016-07-29 Marek Polacek <polacek@redhat.com>
672
673 PR c/71583
674 * c-parser.c (c_parser_postfix_expression_after_paren_type): Also
675 check expr.value.
676
e3fe09c1
UB
6772016-07-22 Uros Bizjak <ubizjak@gmail.com>
678
679 * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
680
7c8f7eaa
DM
6812016-07-20 David Malcolm <dmalcolm@redhat.com>
682
683 * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to
684 spellcheck-tree.h
685 (best_macro_match): Likewise, converting from a typedef to a
686 subclass.
687 (find_closest_macro_cpp_cb): Move to spellcheck-tree.c.
688 (lookup_name_fuzzy): Update for change of best_macro_match to a
689 subclass with a ctor that calls cpp_forall_identifiers.
690
de6a69ee
DM
6912016-07-20 David Malcolm <dmalcolm@redhat.com>
692
693 * c-decl.c (implicit_decl_warning): Update for conversion of
694 return type of lookup_name_fuzzy to const char *.
695 (undeclared_variable): Likewise.
696 (lookup_name_fuzzy): Convert return type from tree to
697 const char *.
698 * c-parser.c (c_parser_declaration_or_fndef): Update for
699 conversion of return type of lookup_name_fuzzy to const char *.
700 (c_parser_parameter_declaration): Likewise.
701
b1c9c068
CP
7022016-07-15 Cesar Philippidis <cesar@codesourcery.com>
703
704 * c-parser.c (c_parser_oacc_declare): Don't scan for
705 GOMP_MAP_POINTER.
706 * c-typeck.c (handle_omp_array_sections): Mark data clauses with
707 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
708 zero-length subarrays.
709
ddbbcb19
JJ
7102016-07-15 Jakub Jelinek <jakub@redhat.com>
711
712 PR c/71858
713 * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME
714 instead of FUZZY_LOOKUP_NAME.
715 (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider
716 FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros.
717
dd36b877
JJ
7182016-07-14 Jakub Jelinek <jakub@redhat.com>
719
720 PR c/71858
721 * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible.
722
8c681247
TS
7232016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
724
725 * c-parser.c (c_parser_generic_selection): Make type of variable
726 auto_vec.
727 (c_parser_omp_declare_simd): Likewise.
728
bf4fa671
TS
7292016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
730
731 * c-decl.c (struct c_struct_parse_info): Change member types
732 from vec to auto_vec.
733 (start_struct): Adjust.
734 (finish_struct): Likewise.
735
557e8c49
JJ
7362016-07-02 Jakub Jelinek <jakub@redhat.com>
737
738 PR c/71719
739 * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
740
54d19c3b
TS
7412016-06-29 Thomas Schwinge <thomas@codesourcery.com>
742
743 * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
744 Move pragma context checking into...
745 (c_parser_omp_cancellation_point): ... here, and improve
746 diagnostic messages.
747 * c-typeck.c (c_finish_omp_cancel)
748 (c_finish_omp_cancellation_point): Improve diagnostic messages.
749
152ef731
JJ
7502016-06-29 Jakub Jelinek <jakub@redhat.com>
751
752 PR c/71685
753 * c-typeck.c (c_build_qualified_type): Don't clear
754 C_TYPE_INCOMPLETE_VARS for the main variant.
755
7562016-06-28 Martin Sebor <msebor@redhat.com>
4378d117
MS
757
758 PR c/71552
759 * c-typeck.c (output_init_element): Diagnose incompatible types
760 before non-constant initializers.
761
e9ac1f86
JJ
7622016-06-28 Jakub Jelinek <jakub@redhat.com>
763
764 * Make-lang.in: Don't cat ../stage_current if it does not exist.
765
277d7ee0
AK
7662016-06-23 Andi Kleen <ak@linux.intel.com>
767
768 * Make-lang.in: Add support for autofdo.
769
1a4f11c8
DM
7702016-06-22 David Malcolm <dmalcolm@redhat.com>
771
772 PR c/70339
773 * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h.
774 (implicit_decl_warning): When issuing warnings for implicit
775 declarations, attempt to provide a suggestion via
776 lookup_name_fuzzy.
777 (undeclared_variable): Likewise when issuing errors.
778 (lookup_name_in_scope): Likewise.
779 (struct edit_distance_traits<cpp_hashnode *>): New struct.
780 (best_macro_match): New typedef.
781 (find_closest_macro_cpp_cb): New function.
782 (lookup_name_fuzzy): New function.
783 * c-parser.c: Include gcc-rich-location.h.
784 (c_token_starts_typename): Split out case CPP_KEYWORD into...
785 (c_keyword_starts_typename): ...this new function.
786 (c_parser_declaration_or_fndef): When issuing errors about
787 missing "struct" etc, add a fixit. For other kinds of errors,
788 attempt to provide a suggestion via lookup_name_fuzzy.
789 (c_parser_parms_declarator): When looking ahead to detect typos in
790 type names, also reject CPP_KEYWORD.
791 (c_parser_parameter_declaration): When issuing errors about
792 unknown type names, attempt to provide a suggestion via
793 lookup_name_fuzzy.
794 * c-tree.h (c_keyword_starts_typename): New prototype.
795
5a578671
JM
7962016-06-20 Joseph Myers <joseph@codesourcery.com>
797
798 PR c/71601
799 * c-typeck.c (build_conditional_expr): Return error_mark_node if
800 c_common_type returns error_mark_node.
801
3f8257db 8022016-06-19 Martin Sebor <msebor@redhat.com>
aa0db437
MS
803
804 PR c/69507
805 * c-parser.c (c_parser_alignof_expression): Avoid diagnosing
806 __alignof__ (expression).
807
6a3f203c
DM
8082016-06-14 David Malcolm <dmalcolm@redhat.com>
809
810 * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h.
811
264757fb
DM
8122016-06-14 David Malcolm <dmalcolm@redhat.com>
813
814 * c-typeck.c (build_component_ref): Simplify fixit code by
815 using gcc_rich_location::add_fixit_misspelled_id.
816 (set_init_label): Likewise.
817
f7e4f2e3
DM
8182016-06-13 David Malcolm <dmalcolm@redhat.com>
819
820 * c-parser.c (c_parser_initelt): Provide location of name for new
821 location_t param of set_init_label.
822 * c-tree.h (set_init_label): Add location_t param.
823 * c-typeck.c (set_init_index): Add "fieldname_loc" location_t
824 param and use it when issuing error messages about unrecognized
825 field names. Attempt to provide a fixit hint if appropriate,
826 otherwise update the error message to provide the type name.
827
4b1ffdb1
TS
8282016-06-10 Thomas Schwinge <thomas@codesourcery.com>
829
830 PR c/71381
831 * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
832 Loosen checking.
833
44a845ca
MS
8342016-06-08 Martin Sebor <msebor@redhat.com>
835 Jakub Jelinek <jakub@redhat.com>
836
837 PR c++/70507
838 PR c/68120
839 * c-typeck.c (convert_arguments): Don't promote last argument
840 of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
841
92a5f2ba
MP
8422016-06-08 Marek Polacek <polacek@redhat.com>
843
844 PR c/71418
845 * c-decl.c (grokdeclarator): Check TYPE_P.
846
08203f73
MP
847 PR c/71426
848 * c-decl.c (get_parm_info): Don't crash on an assert on invalid
849 code.
850
6ffd47b7
DM
8512016-06-07 David Malcolm <dmalcolm@redhat.com>
852
853 * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
854 and structure element reference, capture the location of the
855 element name token and pass it to build_component_ref.
856 (c_parser_postfix_expression_after_primary): Likewise for
857 structure element dereference.
858 (c_parser_omp_variable_list): Likewise for
859 OMP_CLAUSE_{_CACHE, MAP, FROM, TO},
860 * c-tree.h (build_component_ref): Add location_t param.
861 * c-typeck.c (build_component_ref): Add location_t param
862 COMPONENT_LOC. Use it, if available, when issuing hints about
863 mispelled member names to provide a fixit replacement hint.
864
1f40cff3
MP
8652016-06-06 Marek Polacek <polacek@redhat.com>
866
867 PR c/71362
868 * c-parser.c (c_parser_direct_declarator): Set location.
869
5545a907
MP
8702016-06-06 Marek Polacek <polacek@redhat.com>
871
872 * c-typeck.c (comptypes_internal): Handle comparisons of
873 INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes. Don't check
874 TYPE_REF_CAN_ALIAS_ALL.
875
b605f663
CLT
8762016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
877
878 * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
879 arguments as addressable when async clause exists.
880
00631022
JJ
8812016-05-30 Jakub Jelinek <jakub@redhat.com>
882
883 PR c++/71349
884 * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
885 when combined with target construct.
886
7211a097
JJ
8872016-05-26 Jakub Jelinek <jakub@redhat.com>
888
889 * c-parser.c (c_parser_omp_clause_schedule): Warn if
890 OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.
891
95efe6b6
MP
8922016-05-25 Marek Polacek <polacek@redhat.com>
893
894 PR c/71265
895 * c-decl.c (c_make_fname_decl): Don't check seen_error.
896
a23faf7a
MP
897 PR c/71266
898 * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
899
e46c7770
CP
9002016-05-24 Cesar Philippidis <cesar@codesourcery.com>
901
902 * c-parser.c (c_parser_oacc_declare): Add support for
903 GOMP_MAP_FIRSTPRIVATE_POINTER.
904 * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
905 argument with enum c_omp_region_type ort.
906 (handle_omp_array_sections): Likewise. Update call to
907 handle_omp_array_sections_1.
908 (c_finish_omp_clauses): Add specific errors and warning messages for
909 OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update
910 call to handle_omp_array_sections.
911
a04e69c0
TS
9122016-05-24 Thomas Schwinge <thomas@codesourcery.com>
913
914 * c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
915
f17a223d
RB
9162016-05-24 Richard Biener <rguenther@suse.de>
917
918 PR middle-end/70434
919 PR c/69504
920 * c-typeck.c (build_array_ref): Do not complain about indexing
921 non-lvalue vectors. Adjust for function name change.
922
79063edd
MS
9232016-05-20 Martin Sebor <msebor@redhat.com>
924
925 PR c/71115
926 * c-typeck.c (error_init): Use
927 expansion_point_location_if_in_system_header.
928 (warning_init): Same.
929
8a40fef3
DM
9302016-05-19 David Malcolm <dmalcolm@redhat.com>
931
932 PR c/71171
933 * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
934 in error-handling.
935 (c_parser_postfix_expression): Likewise.
936 * c-tree.h (c_expr::set_error): New method.
937 * c-typeck.c (parser_build_binary_op): In error-handling, ensure
938 that result's range is initialized.
939
e9892350
JG
9402016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
941
942 * c-typeck.c (parser_build_unary_op): Fix formatting.
943
8fad45f5
MW
9442016-05-16 Matthew Wahab <matthew.wahab@arm.com>
945
946 * c-decl.c (grokdeclarator): Remove errmsg and use of
947 targetm.invalid_return_type.
948 (grokparms): Remove errmsg and use of
949 targetm.invalid_parameter_type.
950
aa4b467b
JM
9512016-05-13 Joseph Myers <joseph@codesourcery.com>
952
953 * c-decl.c (grokdeclarator): For C11, discard qualifiers on
954 function return type.
955
4f2e1536
MP
9562016-05-12 Marek Polacek <polacek@redhat.com>
957
958 PR c/70756
959 * c-decl.c (build_compound_literal): Pass LOC down to
960 c_incomplete_type_error.
961 * c-tree.h (require_complete_type): Adjust declaration.
962 (c_incomplete_type_error): Likewise.
963 * c-typeck.c (require_complete_type): Add location parameter, pass it
964 down to c_incomplete_type_error.
965 (c_incomplete_type_error): Add location parameter, pass it down to
966 error_at.
967 (build_component_ref): Pass location down to c_incomplete_type_error.
968 (default_conversion): Pass location down to require_complete_type.
969 (build_array_ref): Likewise.
970 (build_function_call_vec): Likewise.
971 (convert_arguments): Likewise.
972 (build_unary_op): Likewise.
973 (build_c_cast): Likewise.
974 (build_modify_expr): Likewise.
975 (convert_for_assignment): Likewise.
976 (c_finish_omp_clauses): Likewise.
977
d6e83a8d
MM
9782016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
979
980 PR c/43651
981 * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
982 is enabled.
983 * c-errors.c (pedwarn_c90): Return true if warned.
984 * c-tree.h (pedwarn_c90): Change return type to bool.
985 (enum c_declspec_word): Add new enumerator cdw_atomic.
986
5c3a10fb
MP
9872016-05-11 Marek Polacek <polacek@redhat.com>
988
989 PR c++/71024
990 * c-decl.c (diagnose_mismatched_decls): Factor out code to
991 diagnose_mismatched_attributes and call it.
992
cf68d92c
MP
9932016-05-10 Marek Polacek <polacek@redhat.com>
994
995 PR c/70255
996 * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
997 on a declaration following the definition.
998
351f85c5
JJ
9992016-05-05 Jakub Jelinek <jakub@redhat.com>
1000
1001 * c-parser.c (c_parser_switch_statement): Add IF_P argument,
1002 parse it through to c_parser_c99_block_statement.
1003 (c_parser_statement_after_labels): Adjust c_parser_switch_statement
1004 caller.
1005
deef7113
MP
10062016-05-04 Marek Polacek <polacek@redhat.com>
1007
1008 * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
1009 OPT_Wdangling_else.
1010
de55efd5
MP
10112016-05-04 Marek Polacek <polacek@redhat.com>
1012
1013 PR c/48778
1014 * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
1015 for macro expansions.
1016
79ce98bc
MP
10172016-05-03 Marek Polacek <polacek@redhat.com>
1018
1019 PR c/70859
1020 * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
1021 check_builtin_function_arguments.
1022
fb2647aa
RB
10232016-05-03 Richard Biener <rguenther@suse.de>
1024
1025 * Make-lang.in (cc1-checksum.c): For stage-final re-use
1026 the checksum from the previous stage.
1027
77886428
CP
10282016-05-02 Cesar Philippidis <cesar@codesourcery.com>
1029
1030 * c-parser.c (c_parser_oacc_all_clauses): Update call to
1031 c_finish_omp_clauses.
1032 (c_parser_omp_all_clauses): Likewise.
1033 (c_parser_oacc_cache): Likewise.
1034 (c_parser_oacc_loop): Likewise.
1035 (omp_split_clauses): Likewise.
1036 (c_parser_omp_declare_target): Likewise.
1037 (c_parser_cilk_all_clauses): Likewise.
1038 (c_parser_cilk_for): Likewise.
1039 * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
1040 is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
1041
7176a4a0
MP
10422016-05-02 Marek Polacek <polacek@redhat.com>
1043
1044 PR c/70851
1045 * c-decl.c (grokdeclarator): Diagnose when array's size has an
1046 incomplete type.
1047
e7ff0319
CP
10482016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1049
1050 PR middle-end/70626
1051 * c-parser.c (c_parser_oacc_loop): Don't augment mask with
1052 OACC_LOOP_CLAUSE_MASK.
1053 (c_parser_oacc_kernels_parallel): Update call to
1054 c_oacc_split_loop_clauses.
1055
9f405ce1
AM
10562016-04-28 Andrew MacLeod <amacleod@redhat.com>
1057
1058 * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
1059 argument to build_modify_expr in two cases.
1060
c1e1f433
BS
10612016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1062
1063 * c-parser.c (c_parser_postfix_expression_after_primary): Call
1064 warn_for_memset instead of warning directly here.
1065
2448a956
MP
10662016-04-26 Marek Polacek <polacek@redhat.com>
1067
1068 PR c/67784
1069 * c-parser.c (c_parser_maybe_reclassify_token): New function factored
1070 out of ...
1071 (c_parser_for_statement): ... here.
1072 (c_parser_if_statement): Use it.
1073 (c_parser_switch_statement): Use it.
1074 (c_parser_while_statement): Use it.
1075
b02a5e26
MP
1076 PR c/70791
1077 * c-decl.c (pushdecl): Pass LOCUS down to warning.
1078
477d4906
IV
10792016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1080
1081 PR c++/69363
1082 * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
1083 instead of c_finish_cilk_clauses.
1084 * c-tree.h (c_finish_omp_clauses): Add new default argument.
1085 * c-typeck.c (c_finish_omp_clauses): Add new argument. Allow
1086 floating-point variables in the linear clause for Cilk Plus.
1087
fe37c7af
MM
10882016-04-18 Michael Matz <matz@suse.de>
1089
1090 * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1091 (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
1092
949505a9
MP
10932016-04-15 Marek Polacek <polacek@redhat.com>
1094
1095 PR c/70671
1096 * c-typeck.c (build_unary_op): Pass location down to error and
1097 warning call.
1098
dda1bf61
JJ
10992016-04-15 Jakub Jelinek <jakub@redhat.com>
1100
1101 PR c/70436
1102 * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
1103 where needed.
1104 (c_parser_external_declaration, c_parser_struct_or_union_specifier,
1105 c_parser_parameter_declaration, c_parser_compound_statement_nostart,
1106 c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
1107 Adjust c_parser_pragma callers.
1108 (c_parser_statement_after_labels): Likewise. Adjust c_parser_cilk_for
1109 caller.
1110 (c_parser_omp_structured_block): Add IF_P argument, pass it down to
1111 c_parser_statement.
1112 (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
1113 c_parser_oacc_kernels_parallel, c_parser_omp_critical,
1114 c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
1115 c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
1116 c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
1117 c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
1118 c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
1119 c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
1120 down where needed.
1121 (c_parser_omp_for_loop): Likewise. Clear IF_P if nbraces.
1122 (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
1123 calls.
1124
99cd9857
MP
11252016-04-13 Marek Polacek <polacek@redhat.com>
1126
1127 PR c/70436
1128 * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
1129 adjust callers.
1130 (c_parser_statement): Likewise.
1131 (c_parser_c99_block_statement): Likewise.
1132 (c_parser_while_statement): Likewise.
1133 (c_parser_for_statement): Likewise.
1134 (c_parser_if_body): Don't set IF_P here.
1135 (c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn
1136 about dangling else here.
1137 * c-tree.h (c_finish_if_stmt): Adjust declaration.
1138 * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't
1139 warn about dangling else here.
1140
f13355da
MP
11412016-04-04 Marek Polacek <polacek@redhat.com>
1142
1143 PR c/70307
1144 * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
1145
5fde6a45
MP
11462016-03-31 Marek Polacek <polacek@redhat.com>
1147
1148 PR c/70297
1149 * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
1150
4bbf545b
DM
11512016-03-18 David Malcolm <dmalcolm@redhat.com>
1152
1153 PR c/70281
1154 * c-parser.c (c_parser_postfix_expression): Set the source range
1155 for uses of "__builtin_types_compatible_p".
1156
fcc2b74f
JJ
11572016-03-17 Jakub Jelinek <jakub@redhat.com>
1158
1159 PR c/70280
1160 * c-typeck.c (composite_type): Don't count void_list_node
1161 into len, if the list is terminated by void_list_node, start
1162 with void_list_node instead of NULL for newargs. Stop
1163 at void_list_node.
1164
ab4c578f
MP
11652016-03-16 Marek Polacek <polacek@redhat.com>
1166
1167 PR c/70093
1168 * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
1169 nested functions returning VM types.
1170
96b3c82d
CP
11712016-03-09 Cesar Philippidis <cesar@codesourcery.com>
1172
1173 * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
1174 when calling c_finish_omp_clauses.
1175
29b9828f
BS
11762016-03-04 Bernd Schmidt <bschmidt@redhat.com>
1177
1178 PR c/69824
1179 * c-decl.c (get_parm_info): Don't queue implicit function declarations
1180 for later.
1181
7ff6ca38
MP
11822016-03-04 Marek Polacek <polacek@redhat.com>
1183
1184 PR c/69798
1185 * c-parser.c (c_parser_postfix_expression): Call
1186 c_parser_cast_expression rather than c_parser_postfix_expression.
1187
686e2237
JJ
11882016-03-01 Jakub Jelinek <jakub@redhat.com>
1189
1190 PR c/69796
1191 PR c/69974
1192 * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
1193 of incomplete decls to error_mark_node.
1194
0b05329b
MP
11952016-02-24 Marek Polacek <polacek@redhat.com>
1196
1197 PR c/69819
1198 * c-decl.c (finish_decl): Don't update the copy of the type of a
1199 different decl type.
1200
067fbd8b
JJ
12012016-02-23 Jakub Jelinek <jakub@redhat.com>
1202
1203 PR objc/69844
1204 * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
1205 in id_kind reclassification.
1206
bf14eba2
JJ
12072016-02-16 Jakub Jelinek <jakub@redhat.com>
1208
1209 PR c/69835
1210 * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
1211
ba539195
JN
12122016-02-16 James Norris <jnorris@codesourcery.com>
1213
1214 PR c/64748
1215 * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
1216
16595a1f
BS
12172016-02-12 Bernd Schmidt <bschmidt@redhat.com>
1218
f48dfe98
BS
1219 * c-decl.c (build_null_declspecs): Zero the entire struct.
1220
16595a1f
BS
1221 PR c/69522
1222 * c-parser.c (c_parser_braced_init): New arg outer_obstack. All
1223 callers changed. If nested_p is true, use it to call
1224 finish_implicit_inits.
1225 * c-tree.h (finish_implicit_inits): Declare.
1226 * c-typeck.c (finish_implicit_inits): New function. Move code
1227 from ...
1228 (push_init_level): ... here.
1229 (set_designator, process_init_element): Call finish_implicit_inits.
1230
66756373
JJ
12312016-02-11 Jakub Jelinek <jakub@redhat.com>
1232
1233 PR c/69768
1234 * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
1235 arguments for -Waddress warning.
1236
1066e9b5
JJ
12372016-02-04 Jakub Jelinek <jakub@redhat.com>
1238
1239 PR c/69669
1240 * c-decl.c (finish_enum): When honoring mode attribute,
1241 make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
1242
3a5d2ba4
JJ
12432016-01-29 Jakub Jelinek <jakub@redhat.com>
1244
1245 PR debug/69518
1246 * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
1247 all type variants, not just TYPE_MAIN_VARIANT.
1248
cbdd8ae0
JJ
12492016-01-27 Jakub Jelinek <jakub@redhat.com>
1250
1251 PR debug/66869
1252 * c-decl.c (c_write_global_declarations_1): Warn with
1253 warn_unused_function if static prototype without definition
1254 is not C_DECL_USED.
1255
fa74a4bc
MP
12562016-01-27 Marek Polacek <polacek@redhat.com>
1257
1258 PR c/68062
1259 * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
1260 to unsigned, if needed. Add -Wsign-compare warning.
1261
13f92e8d
JJ
12622016-01-26 Jakub Jelinek <jakub@redhat.com>
1263
1264 PR tree-optimization/69483
1265 * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
1266
cd8e73dc 12672016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
d25c7690
PK
1268
1269 PR c/24293
1270 * c-tree.h (incomplete_record_decls): Declare.
1271 * c-parser.c (incomplete_record_decls): Define.
1272 (c_parser_translation_unit): Iterate through incomplete_record_decls and
1273 report error if any decl has zero size.
1274 * c-decl.c (finish_decl): Append static decl with incomplete struct/union
1275 or enum type to incomplete_record_decls.
1276
e6d6ec9e
TV
12772016-01-14 Tom de Vries <tom@codesourcery.com>
1278
1279 PR tree-optimization/68773
1280 * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
1281 set force_output.
1282
00083992
MP
12832016-01-14 Marek Polacek <polacek@redhat.com>
1284
1285 PR c/69262
1286 * c-decl.c (grokdeclarator): Provide more information for invalid
1287 array declarations.
1288
7443cf13
DM
12892016-01-06 David Malcolm <dmalcolm@redhat.com>
1290
1291 * c-parser.c (c_parser_unary_expression): For dereferences, build
1292 a combined location before calling build_indirect_ref, so that
1293 error reports cover the full range, manually updating the c_expr
1294 src_range.
1295
6b131d5b
MP
12962016-01-06 Marek Polacek <polacek@redhat.com>
1297
1298 PR sanitizer/69099
1299 * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to
1300 ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of
1301 NULL.
1302
818ab71a
JJ
13032016-01-04 Jakub Jelinek <jakub@redhat.com>
1304
1305 Update copyright years.
1306
2fe0a208
MP
13072016-01-04 Marek Polacek <polacek@redhat.com>
1308
1309 PR c/68908
1310 * c-typeck.c (build_atomic_assign): Improve commentary. Add
1311 optimization to use __atomic_fetch_* built-in if possible.
1312
c7b48c8a
TS
13132015-12-23 Thomas Schwinge <thomas@codesourcery.com>
1314
1315 * c-parser.c (c_parser_oacc_clause_use_device): Merge function
1316 into...
1317 (c_parser_omp_clause_use_device_ptr): ... this function. Adjust
1318 all users.
1319
fda5652f
MP
13202015-12-22 Marek Polacek <polacek@redhat.com>
1321
1322 PR c/69002
1323 * c-typeck.c (build_component_ref): Warn when acessing elements of
1324 atomic structures or unions.
1325
745e411d
DM
13262015-12-21 David Malcolm <dmalcolm@redhat.com>
1327
1328 * c-typeck.c: Include "gcc-rich-location.h".
1329 (build_binary_op): In the two places that call binary_op_error,
1330 create a gcc_rich_location and populate it with the location of
1331 the binary op and its two operands.
1332
94c40e19
DM
13332015-12-16 David Malcolm <dmalcolm@redhat.com>
1334
1335 * c-parser.c (c_parser_statement_after_labels): When calling
1336 c_finish_return, Use the return expression's location if it has
1337 one, falling back to the location of the first token within it.
1338 * c-typeck.c (c_finish_return): When issuing warnings about
1339 the incorrect presence/absence of a return value, issue a note
1340 showing the declaration of the function.
1341
de67c4c3
DM
13422015-12-16 David Malcolm <dmalcolm@redhat.com>
1343
1344 * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
1345 to 4.
1346 (c_parser_peek_nth_token): New function.
1347 (c_parser_peek_conflict_marker): New function.
1348 (c_parser_error): Detect conflict markers and report them as such.
1349
a10704e1
DM
13502015-12-16 David Malcolm <dmalcolm@redhat.com>
1351
1352 * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
1353 to preserve range information for the primary expression
1354 in the call to c_parser_postfix_expression_after_primary.
1355
8062bca6
DM
13562015-12-16 David Malcolm <dmalcolm@redhat.com>
1357
1358 * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
1359 expression location, falling back on the first token location,
1360 rather than always using the latter.
1361
d06f8b75
MP
13622015-12-16 Marek Polacek <polacek@redhat.com>
1363
1364 PR c/64637
1365 * c-typeck.c (c_process_expr_stmt): Use location of the expression if
1366 available.
1367
2994fb91
MP
13682015-12-15 Marek Polacek <polacek@redhat.com>
1369
1370 PR c/68907
1371 * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
1372 artificial decl.
1373
a1b93f8d
DM
13742015-12-08 David Malcolm <dmalcolm@redhat.com>
1375
1376 * c-parser.c (c_parser_alignof_expression): Capture location of
1377 closing parenthesis (if any), or of end of unary expression, and
1378 use it to build a src_range for the expression.
1379
46c6e1e2
DM
13802015-12-08 David Malcolm <dmalcolm@redhat.com>
1381
1382 PR c/68757
1383 * c-parser.c (c_parser_get_builtin_args): Add
1384 "out_close_paren_loc" param, and write back to it.
1385 (c_parser_postfix_expression): Capture the closing
1386 parenthesis location for RID_CHOOSE_EXPR,
1387 RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
1388 RID_BUILTIN_SHUFFLE and use it to set the source range
1389 for such expressions; within RID_BUILTIN_COMPLEX set
1390 the underlying location.
1391
66189108
MP
13922015-12-07 Marek Polacek <polacek@redhat.com>
1393
1394 PR c/68668
1395 * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
1396 TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
1397
f187980b
EB
13982015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1399
1400 * c-tree.h (c_build_va_arg): Adjust prototype.
1401 * c-parser.c (c_parser_postfix_expression): Adjust call to above.
1402 * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
1403 parameter, adjust throughout and issue an error if EXPR is a component
1404 with reverse storage order.
1405
4250754e
JM
14062015-12-02 Jason Merrill <jason@redhat.com>
1407
1408 * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1409 (c_fully_fold_internal, decl_constant_value_for_optimization):
1410 Move from c-common.c.
1411 * c-tree.h: Declare decl_constant_value_for_optimization.
1412 * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
1413
e9e32ee6
JM
14142015-12-02 Joseph Myers <joseph@codesourcery.com>
1415
1416 PR c/68162
1417 * c-decl.c (grokdeclarator): Set first_non_attr_kind before
1418 following link from declarator to next declarator. Track original
1419 qualified type and pass it to c_build_qualified_type.
1420 * c-typeck.c (c_build_qualified_type): Add arguments
1421 orig_qual_type and orig_qual_indirect.
1422
ff7a55bf
TS
14232015-12-02 Thomas Schwinge <thomas@codesourcery.com>
1424
1425 * c-parser.c (c_parser_omp_clause_name)
1426 (c_parser_oacc_all_clauses): Alphabetical sorting.
1427
657e4e47
JJ
14282015-12-02 Jakub Jelinek <jakub@redhat.com>
1429
1430 PR c/68533
1431 * c-decl.c (get_parm_info): Use b->locus instead of input_location
1432 for diagnostics.
1433
37d5ad46
JB
14342015-12-01 Julian Brown <julian@codesourcery.com>
1435 Cesar Philippidis <cesar@codesourcery.com>
1436 James Norris <James_Norris@mentor.com>
1437
1438 * c-parser.c (c_parser_omp_clause_name): Add use_device support.
1439 (c_parser_oacc_clause_use_device): New function.
1440 (c_parser_oacc_all_clauses): Add use_device support.
1441 (OACC_HOST_DATA_CLAUSE_MASK): New macro.
1442 (c_parser_oacc_host_data): New function.
1443 (c_parser_omp_construct): Add host_data support.
1444 * c-tree.h (c_finish_oacc_host_data): Add prototype.
1445 * c-typeck.c (c_finish_oacc_host_data): New function.
1446 (c_finish_omp_clauses): Add use_device support.
1447
a4850ce9
JH
14482015-11-29 Jan Hubicka <hubicka@ucw.cz>
1449
1450 PR c/67106
1451 * c-decl.c: Set TYPE_PACKED in variants.
1452
b58d3df2
ML
14532015-11-27 Martin Liska <mliska@suse.cz>
1454
1455 PR c++/68312
1456 * c-array-notation.c (fix_builtin_array_notation_fn):
1457 Use release_vec_vec instead of vec::release.
1458 (build_array_notation_expr): Likewise.
1459 (fix_conditional_array_notations_1): Likewise.
1460 (fix_array_notation_expr): Likewise.
1461 (fix_array_notation_call_expr): Likewise.
1462
aec17bfe
JJ
14632015-11-27 Jakub Jelinek <jakub@redhat.com>
1464
1465 PR c/63326
1466 * c-parser.c (c_parser_compound_statement_nostart): If
1467 last_label is true, use pragma_stmt instead of pragma_compound
1468 as second c_parser_pragma argument.
1469 (c_parser_omp_ordered, c_parser_omp_target_update,
1470 c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
1471 false as second argument to c_parser_skip_to_pragma_eol after
1472 diagnosing standalone directives used in pragma_stmt context.
1473
688c4de0
IV
14742015-11-24 Ilya Verbin <ilya.verbin@intel.com>
1475
1476 * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
1477 with "if (ENABLE_OFFLOADING)".
1478
cbd03aee
DM
14792015-11-23 David Malcolm <dmalcolm@redhat.com>
1480
1481 PR objc/68438
1482 * c-parser.c (c_parser_postfix_expression): Set up source ranges
1483 for various Objective-C constructs: Class.name syntax,
1484 @selector(), @protocol(), @encode(), and [] message syntax.
1485
a87a86e1
DM
14862015-11-20 David Malcolm <dmalcolm@redhat.com>
1487
1488 PR 62314
1489 * c-typeck.c (should_suggest_deref_p): New function.
1490 (build_component_ref): Special-case POINTER_TYPE when
1491 generating a "not a structure of union" error message, and
1492 suggest a "->" rather than a ".", providing a fix-it hint.
1493
8ece8dfb
DM
14942015-11-19 David Malcolm <dmalcolm@redhat.com>
1495
1496 * c-typeck.c (lookup_field_fuzzy): Move determination of closest
1497 candidate into a new function, find_closest_identifier.
1498
433068cc
MP
14992015-11-19 Marek Polacek <polacek@redhat.com>
1500
1501 PR c/68412
1502 * c-typeck.c (parser_build_binary_op): Properly handle
1503 C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
1504
bef08b71
DM
15052015-11-17 David Malcolm <dmalcolm@redhat.com>
1506
1507 * c-parser.c (set_c_expr_source_range): Bulletproof both
1508 overloaded implementations against NULL expr->value.
1509 (c_parser_braced_init): Set src_range for "ret" to a sane pair of
1510 values.
1511 (c_parser_unary_expression): Likewise when handling addresses of
1512 labels.
1513 (c_parser_postfix_expression): Likewise for statement expressions,
1514 for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
1515 __builtin_va_arg, and for __builtin_offset_of.
1516 (c_parser_postfix_expression_after_paren_type): Initialize expr's
1517 src_range using the range of the braced initializer.
1518 (c_parser_transaction_expression): Set src_range for "ret" to a
1519 sane pair of values.
1520
fff77217
KY
15212015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1522
1523 * c-parser.c (c_finish_omp_declare_simd): Look for
1524 "simd" attribute as well. Update error message.
1525
1d899da2
TS
15262015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1527
1528 * c-parser.c (c_parser_omp_declare_target): Adjust.
1529
e4606348
JJ
15302015-11-14 Jakub Jelinek <jakub@redhat.com>
1531
1532 * c-typeck.c (c_finish_omp_clauses): Don't mark
1533 GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
1534
3e636daf
MP
15352015-11-14 Marek Polacek <polacek@redhat.com>
1536
1537 * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
1538 * c-typeck.c: Likewise.
1539
ebedc9a3
DM
15402015-11-13 David Malcolm <dmalcolm@redhat.com>
1541
1542 * c-decl.c (warn_defaults_to): Pass line_table to
1543 rich_location ctor.
1544 * c-errors.c (pedwarn_c99): Likewise.
1545 (pedwarn_c90): Likewise.
1546 * c-parser.c (set_c_expr_source_range): New functions.
1547 (c_token::get_range): New method.
1548 (c_token::get_finish): New method.
1549 (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
1550 based on the range from the start of the LHS to the end of the
1551 RHS.
1552 (c_parser_conditional_expression): Likewise, based on the range
1553 from the start of the cond.value to the end of exp2.value.
1554 (c_parser_binary_expression): Call set_c_expr_source_range on
1555 the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
1556 (c_parser_cast_expression): Call set_c_expr_source_range on ret
1557 based on the cast_loc through to the end of the expr.
1558 (c_parser_unary_expression): Likewise, based on the
1559 op_loc through to the end of op.
1560 (c_parser_sizeof_expression) Likewise, based on the start of the
1561 sizeof token through to either the closing paren or the end of
1562 expr.
1563 (c_parser_postfix_expression): Likewise, using the token range,
1564 or from the open paren through to the close paren for
1565 parenthesized expressions.
1566 (c_parser_postfix_expression_after_primary): Likewise, for
1567 various kinds of expression.
1568 * c-tree.h (struct c_expr): Add field "src_range".
1569 (c_expr::get_start): New method.
1570 (c_expr::get_finish): New method.
1571 (set_c_expr_source_range): New decls.
1572 * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
1573 on ret for prefix unary ops.
1574 (parser_build_binary_op): Likewise, running from the start of
1575 arg1.value through to the end of arg2.value.
1576
ec8b536f
MP
15772015-11-13 Marek Polacek <polacek@redhat.com>
1578
1579 PR c/68320
1580 * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
1581
277fe616
DM
15822015-11-13 David Malcolm <dmalcolm@redhat.com>
1583
1584 * c-typeck.c: Include spellcheck.h.
1585 (lookup_field_fuzzy_find_candidates): New function.
1586 (lookup_field_fuzzy): New function.
1587 (build_component_ref): If the field was not found, try using
1588 lookup_field_fuzzy and potentially offer a suggestion.
1589
6e232ba4
JN
15902015-11-12 James Norris <jnorris@codesourcery.com>
1591 Joseph Myers <joseph@codesourcery.com>
1592
1593 * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
1594 (c_parser_omp_clause_name): Handle 'device_resident' clause.
1595 (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
1596 and PRAGMA_OMP_CLAUSE_LINK.
1597 (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
1598 and PRAGMA_OACC_CLAUSE_LINK.
1599 (OACC_DECLARE_CLAUSE_MASK): New definition.
1600 (c_parser_oacc_declare): New function.
1601
9be4f715
MP
16022015-11-12 Marek Polacek <polacek@redhat.com>
1603
1604 PR c/67784
1605 * c-parser.c (c_parser_for_statement): Reclassify the token in
1606 a correct scope.
1607
e78bede6
MP
16082015-11-11 Marek Polacek <polacek@redhat.com>
1609
1610 PR c/68107
1611 PR c++/68266
1612 * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code
1613 checking the size of an array.
1614
69f293c9
AM
16152015-11-11 Andrew MacLeod <amacleod@redhat.com>
1616
1617 * c-array-notation.c: Remove unused header files.
1618 * c-aux-info.c: Likewise.
1619 * c-convert.c: Likewise.
1620 * c-decl.c: Likewise.
1621 * c-errors.c: Likewise.
1622 * c-lang.c: Likewise.
1623 * c-objc-common.c: Likewise.
1624 * c-parser.c: Likewise.
1625 * c-typeck.c: Likewise.
1626 * gccspec.c: Likewise.
1627
3a40d81d
NS
16282015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1629 Cesar Philippidis <cesar@codesourcery.com>
1630 James Norris <jnorris@codesourcery.com>
1631 Julian Brown <julian@codesourcery.com>
1632 Nathan Sidwell <nathan@codesourcery.com>
1633
1634 c/
1635 * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
1636 routine arg.
1637 (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
1638 (c_parser_pragma): Parse 'acc routine'.
1639 (OACC_ROUTINE_CLAUSE_MARK): Define.
1640 (c_parser_oacc_routine, (c_finish_oacc_routine): New.
1641
fc402eec
AA
16422015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1643
1644 PR debug/67192
1645 * c-typeck.c (c_finish_loop): For unconditional loops, set the
1646 location of the backward-goto to the start of the loop body.
1647
f6b0b3db
AA
16482015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1649
1650 PR debug/67192
1651 * c-parser.c (c_parser_while_statement): Finish the loop before
1652 parsing ahead for misleading indentation.
1653 (c_parser_for_statement): Likewise.
1654
ee45a32d
EB
16552015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1656
1657 * c-decl.c (finish_struct): If the structure has reverse storage
1658 order, rewrite the type of array fields with scalar component. Call
1659 maybe_apply_pragma_scalar_storage_order on entry.
1660 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue
1661 errors on bit-fields and reverse SSO here and not...
1662 (c_mark_addressable): ...here.
1663 (output_init_element): Adjust call to initializer_constant_valid_p.
1664 (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
1665
8a645150
DM
16662015-11-06 David Malcolm <dmalcolm@redhat.com>
1667
1668 * c-decl.c (warn_defaults_to): Update for change in signature
1669 of diagnostic_set_info.
1670 * c-errors.c (pedwarn_c99): Likewise.
1671 (pedwarn_c90): Likewise.
1672 * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
1673 for textinfo::set_location.
1674
7a5e4956
CP
16752015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1676 Thomas Schwinge <thomas@codesourcery.com>
1677 James Norris <jnorris@codesourcery.com>
1678
1679 * c-parser.c (c_parser_omp_clause_name): Add support for
1680 PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
1681 (c_parser_omp_clause_default): Add is_oacc argument. Handle
1682 default(none) in OpenACC.
1683 (c_parser_oacc_shape_clause): Allow pointer variables as gang static
1684 arguments.
1685 (c_parser_oacc_clause_tile): New function.
1686 (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
1687 OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
1688 (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
1689 TILE}.
1690 (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
1691 (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
1692 FIRSTPRIVATE}.
1693 (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
1694 (c_parser_oacc_update): Update the error message for missing clauses.
1695 * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
1696 and OMP_CLAUSE_INDEPENDENT.
1697
bfcfbfa0
MP
16982015-11-05 Marek Polacek <polacek@redhat.com>
1699
1700 PR c/68090
1701 * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
1702 deal with pre-evaluation on invalid types.
1703
e01d41e5
JJ
17042015-11-05 Jakub Jelinek <jakub@redhat.com>
1705 Ilya Verbin <ilya.verbin@intel.com>
1706
1707 * c-parser.c: Include context.h and gimple-expr.h.
1708 (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
1709 monotonic together with nonmonotonic.
1710 (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here.
1711 (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
1712 (c_parser_omp_target_data, c_parser_omp_target_enter_data,
1713 c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
1714 (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit
1715 expressions on combined target teams before the target.
1716 (c_parser_omp_declare_target): If decl has "omp declare target" or
1717 "omp declare target link" attribute, and cgraph or varpool node already
1718 exists, then set corresponding flags. Call c_finish_omp_clauses
1719 in the parenthesized extended-list syntax case.
1720 * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
1721 declare target.
1722 * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
1723 on OMP_CLAUSE_REDUCTION array sections.
1724 (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
1725 into the constant offset, or for variable low-bound using
1726 POINTER_PLUS_EXPR. For structure element based array sections use
1727 GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
1728 (c_finish_omp_clauses): Drop generic_field_head, structure
1729 elements are now always mapped even as array section bases,
1730 diagnose same var in data sharing and mapping clauses. Diagnose if
1731 linear step on declare simd is neither a constant nor a uniform
1732 parameter. Look through POINTER_PLUS_EXPR for array section
1733 reductions. Diagnose the same var or function appearing multiple
1734 times on the same directive. Fix up wording for the to clause if t
1735 is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic
1736 modifier on kinds other than dynamic or guided or nonmonotonic
1737 modifier together with ordered clause.
1738
4bf9e5a8
TS
17392015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1740 Chung-Lin Tang <cltang@codesourcery.com>
1741
1742 * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
1743
2adfab87
AM
17442015-10-29 Andrew MacLeod <amacleod@redhat.com>
1745
1746 * c-array-notation.c: Reorder #include's and remove duplicates.
1747 * c-aux-info.c: Likewise.
1748 * c-convert.c: Likewise.
1749 * c-decl.c: Likewise.
1750 * c-errors.c: Likewise.
1751 * c-lang.c: Likewise.
1752 * c-objc-common.c: Likewise.
1753 * c-parser.c: Likewise.
1754 * c-typeck.c: Likewise.
1755
e922069e
JW
17562015-10-26 Jim Wilson <jim.wilson@linaro.org>
1757
1758 PR debug/66068
1759 * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
1760 after calling build_qualified_type.
1761
765dd391
CP
17622015-10-27 Cesar Philippidis <cesar@codesourcery.com>
1763 Thomas Schwinge <thomas@codesourcery.com>
1764 James Norris <jnorris@codesourcery.com>
1765 Joseph Myers <joseph@codesourcery.com>
1766 Julian Brown <julian@codesourcery.com>
1767 Bernd Schmidt <bschmidt@redhat.com>
1768
1769 * c-parser.c (c_parser_oacc_shape_clause): New.
1770 (c_parser_oacc_simple_clause): New.
1771 (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
1772 (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
1773
88bae6f4
TS
17742015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1775 James Norris <jnorris@codesourcery.com>
1776 Cesar Philippidis <cesar@codesourcery.com>
1777
1778 PR c/64765
1779 PR c/64880
1780 * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
1781 parameters, and handle these. Adjust all users.
1782 (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
1783 into...
1784 (c_parser_oacc_kernels_parallel): ... this new function. Adjust
1785 all users.
1786 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
1787 declare functions.
1788 (c_finish_omp_construct): Declare function.
1789 * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
1790 Merge functions into...
1791 (c_finish_omp_construct): ... this new function.
1792
a8fc2579
RB
17932015-10-22 Richard Biener <rguenther@suse.de>
1794
1795 * c-typeck.c (c_finish_omp_clauses): Properly convert operands
1796 before folding a MINUS_EXPR.
1797
e9122ef6
MP
17982015-10-21 Marek Polacek <polacek@redhat.com>
1799
1800 PR c/68024
1801 * c-decl.c (start_function): Warn about vararg functions without
1802 a prototype.
1803
9f47c7e5
IE
18042015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1805
1806 * c-typeck.c (build_conditional_expr): Use boolean vector
1807 type for vector comparison.
1808 (build_vec_cmp): New.
1809 (build_binary_op): Use build_vec_cmp for comparison.
1810
fa60eeb9
MP
18112015-10-20 Marek Polacek <polacek@redhat.com>
1812
1813 * c-parser.c (is_cilkplus_vector_p): Don't define here.
1814
2c7020eb
MP
18152015-10-20 Marek Polacek <polacek@redhat.com>
1816
1817 PR c/67964
1818 * c-parser.c (c_parser_attributes): Break out of the loop if the
1819 token after an attribute isn't a comma.
1820
d9a6bd32
JJ
18212015-10-13 Jakub Jelinek <jakub@redhat.com>
1822 Aldy Hernandez <aldyh@redhat.com>
1823
1824 * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
1825 (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
1826 (c_parser_omp_variable_list): Handle structure elements for
1827 map, to and from clauses. Handle array sections in reduction
1828 clause. Formatting fixes.
1829 (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
1830 if clause modifiers.
1831 (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
1832 c_parser_omp_clause_priority, c_parser_omp_clause_hint,
1833 c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
1834 c_parser_omp_clause_is_device_ptr): New functions.
1835 (c_parser_omp_clause_ordered): Parse optional parameter.
1836 (c_parser_omp_clause_reduction): Handle array reductions.
1837 (c_parser_omp_clause_schedule): Parse optional simd modifier.
1838 (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
1839 functions.
1840 (c_parser_omp_clause_linear): Parse linear clause modifiers.
1841 (c_parser_omp_clause_depend_sink): New function.
1842 (c_parser_omp_clause_depend): Parse source/sink depend kinds.
1843 (c_parser_omp_clause_map): Parse release/delete map kinds and
1844 optional always modifier.
1845 (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
1846 and c_finish_omp_clauses callers.
1847 (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses.
1848 Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
1849 (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
1850 (OMP_CRITICAL_CLAUSE_MASK): Define.
1851 (c_parser_omp_critical): Parse critical clauses.
1852 (c_parser_omp_for_loop): Handle doacross loops, adjust
1853 c_finish_omp_for and c_finish_omp_clauses callers.
1854 (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
1855 (c_parser_omp_simd): Allow ordered clause if it has no parameter.
1856 (OMP_FOR_CLAUSE_MASK): Add linear clause.
1857 (c_parser_omp_for): Disallow ordered clause when combined with
1858 distribute. Disallow linear clause when combined with distribute
1859 and not combined with simd.
1860 (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
1861 (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
1862 parse clauses and if depend clause is found, don't parse a body.
1863 (c_parser_omp_parallel): Disallow copyin clause on target parallel.
1864 Allow target parallel without for after it.
1865 (OMP_TASK_CLAUSE_MASK): Add priority clause.
1866 (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
1867 (c_parser_omp_target_data): Diagnose no map clauses or clauses with
1868 invalid kinds.
1869 (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
1870 (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
1871 OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
1872 (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
1873 functions.
1874 (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
1875 defaultmap and is_device_ptr clauses.
1876 (c_parser_omp_target): Parse target parallel and target simd. Set
1877 OMP_TARGET_COMBINED on combined constructs. Parse target enter data
1878 and target exit data. Diagnose invalid map kinds.
1879 (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
1880 (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
1881 construct.
1882 (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
1883 &omp_priv.
1884 (OMP_TASKLOOP_CLAUSE_MASK): Define.
1885 (c_parser_omp_taskloop): New function.
1886 (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
1887 handle PRAGMA_OMP_TASKLOOP.
1888 (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
1889 * c-tree.h (c_finish_omp_clauses): Add two new arguments.
1890 * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
1891 Add IS_OMP argument, handle structure element bases, diagnose
1892 bitfields, pass IS_OMP recursively, diagnose known zero length
1893 array sections in depend clauses, handle array sections in reduction
1894 clause, diagnose negative length even for pointers.
1895 (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
1896 types, pass IS_OMP down to handle_omp_array_sections_1, handle
1897 array sections in reduction clause, set
1898 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
1899 length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
1900 (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
1901 Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
1902
21ba0cea
MP
19032015-10-06 Marek Polacek <polacek@redhat.com>
1904
1905 * c-parser.c (c_parser_statement_after_labels): Use
1906 protected_set_expr_location.
1907 (c_parser_omp_clause_num_gangs): Likewise.
1908 (c_parser_omp_clause_num_threads): Likewise.
1909 (c_parser_omp_clause_num_workers): Likewise.
1910 (c_parser_omp_clause_vector_length): Likewise.
1911 (c_parser_omp_clause_num_teams): Likewise.
1912 (c_parser_omp_clause_thread_limit): Likewise.
1913 * c-typeck.c (build_c_cast): Likewise.
1914 (c_cast_expr): Likewise.
1915
624d31fe
RS
19162015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1917
1918 * c-typeck.c (c_tree_equal): Use real_equal instead of
1919 REAL_VALUES_EQUAL.
1920
b8fd7909
JM
19212015-10-04 Jason Merrill <jason@redhat.com>
1922
1923 * c-parser.c (c_lex_one_token): Handle @synchronized.
1924 * c-decl.c (match_builtin_function_types): A declaration of a built-in
1925 can change whether the function is transaction_safe.
1926
1c7485af
MP
19272015-10-02 Marek Polacek <polacek@redhat.com>
1928
1929 PR c/67730
1930 * c-typeck.c (convert_for_assignment): Use the expansion point
1931 location throughout.
1932
3e3b8d63
MP
19332015-10-02 Marek Polacek <polacek@redhat.com>
1934
1935 PR c/64249
1936 * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
1937 and pass it down to c_parser_if_statement.
1938 (c_parser_else_body): Add CHAIN parameter and pass it down to
1939 c_parser_statement_after_labels.
1940 (c_parser_if_statement): Add CHAIN parameter. Add code to warn about
1941 duplicated if-else-if conditions.
1942
aabef2de
MP
19432015-10-01 Marek Polacek <polacek@redhat.com>
1944
1945 * c-typeck.c (convert_for_assignment): Improve commentary.
1946
de8ddd5f
MP
19472015-09-30 Marek Polacek <polacek@redhat.com>
1948
1949 PR c/67730
1950 * c-typeck.c (c_finish_return): Use the expansion point location for
1951 certain "return with value" warnings.
1952
c4914de6
MLI
19532015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1954
1955 * c-parser.c (pragma_lex): Add loc argument.
1956
0e36f5c7
MP
19572015-09-15 Marek Polacek <polacek@redhat.com>
1958
1959 PR c/67580
1960 * c-decl.c (tag_exists_p): New function.
1961 * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
1962 struct/union/enum keywords are missing.
1963 * c-tree.h (tag_exists_p): Declare.
1964
2f3bb934
MP
19652015-09-15 Marek Polacek <polacek@redhat.com>
1966
1967 * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
1968 (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
1969 Return NULL_TREE instead of 0.
1970 (lookup_name): Return NULL_TREE instead of 0.
1971 (lookup_name_in_scope): Likewise.
1972 (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
1973 (parser_xref_tag): Use false instead of 0.
1974 (start_struct): Use true instead of 1.
1975 (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
1976
aa256c4a
MP
19772015-09-14 Marek Polacek <polacek@redhat.com>
1978
1979 * c-typeck.c (set_nonincremental_init_from_string): Use
1980 HOST_WIDE_INT_M1U when shifting a negative value.
1981
dbb68221
MW
19822015-09-09 Mark Wielaard <mjw@redhat.com>
1983
1984 * c-typeck.c (build_binary_op): Check and warn when nonnull arg
1985 parm against NULL.
1986
a8a098ac
JJ
19872015-09-10 Jakub Jelinek <jakub@redhat.com>
1988
1989 PR c/67502
1990 * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
1991 into OMP_FOR_PRE_BODY rather than before the loop.
1992
f4b189d5
JJ
19932015-09-09 Jakub Jelinek <jakub@redhat.com>
1994
0bb99c11
JJ
1995 PR c/67501
1996 * c-parser.c (c_parser_oacc_all_clauses,
1997 c_parser_omp_all_clauses): Remove invalid clause from
1998 list of clauses even if parser->error is set.
1999
fce5e5e3
JJ
2000 PR c/67500
2001 * c-parser.c (c_parser_omp_clause_aligned,
2002 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
2003 test for errors.
2004 * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
2005 error_mark_node.
2006
f4b189d5
JJ
2007 PR c/67495
2008 * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
2009 instead of c_parser_unary_expression. If the result is !lvalue_p,
2010 wrap the result of c_fully_fold into NON_LVALUE_EXPR.
2011
b2aaf235
MP
20122015-09-04 Marek Polacek <polacek@redhat.com>
2013
2014 PR sanitizer/67279
2015 * c-typeck.c (build_binary_op): Don't instrument static initializers.
2016
1807ffc1
MS
20172015-09-03 Martin Sebor <msebor@redhat.com>
2018
2019 PR c/66516
8b652e65
JJ
2020 * c-typeck.c (convert_arguments, parser_build_unary_op,
2021 build_conditional_expr, c_cast_expr, convert_for_assignment,
2022 build_binary_op, _objc_common_truthvalue_conversion): Call
1807ffc1
MS
2023 reject_gcc_builtin.
2024 (c_decl_implicit): Define.
2025
d04ff417
MP
20262015-09-02 Marek Polacek <polacek@redhat.com>
2027
2028 PR c/67432
2029 * c-parser.c (c_parser_enum_specifier): Give a better error for
2030 an empty enum.
2031
a79683d5
TS
20322015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
2033
2034 * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
2035
191a6b94
MP
20362015-08-12 Marek Polacek <polacek@redhat.com>
2037
2038 * c-decl.c (grokdeclarator): Call error_at instead of error and pass
2039 LOC to it.
2040
420a9d9b
MP
20412015-08-03 Marek Polacek <polacek@redhat.com>
2042
2043 PR c/67088
2044 * c-decl.c (check_bitfield_type_and_width): Add location parameter.
2045 Use it.
2046 (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
2047
992118a1
PP
20482015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2049
2050 * c-parser.c (c_parser_if_body): Take token_indent_info
2051 argument. Call warn_for_misleading_indentation even when the
2052 body is a semicolon. Extract token_indent_infos corresponding
2053 to the guard, body and next tokens. Adjust call to
2054 warn_for_misleading_indentation accordingly.
2055 (c_parser_else_body): Likewise.
2056 (c_parser_if_statement): Likewise.
2057 (c_parser_while_statement): Likewise.
2058 (c_parser_for_statement): Likewise.
2059
46308474
LFSM
20602015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com>
2061 Manuel López-Ibáñez <manu@gcc.gnu.org>
2062
2063 * c-decl.c (get_parm_info): Remove static var. Update warning
2064 message.
2065
05b28fd6
MP
20662015-07-27 Marek Polacek <polacek@redhat.com>
2067
2068 PR c++/66555
2069 PR c/54979
2070 * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
2071
451b5e48
MP
20722015-07-20 Marek Polacek <polacek@redhat.com>
2073
2074 PR c++/55095
2075 * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
2076 (build_binary_op): Warn about left shift overflows.
2077
1916bcb5
AM
20782015-07-09 Andrew MacLeod <amacleod@redhat.com>
2079
2080 * c-array-notation.c: Adjust includes for flags.h changes.
2081 * c-objc-common.c: Likewise.
2082
c7131fb2
AM
20832015-07-07 Andrew MacLeod <amacleod@redhat.com>
2084
2085 * c-array-notation.c: Adjust includes.
2086 * c-aux-info.c: Likewise.
2087 * c-convert.c: Likewise.
2088 * c-decl.c: Likewise.
2089 * c-errors.c: Likewise.
2090 * c-lang.c: Likewise.
2091 * c-objc-common.c: Likewise.
2092 * c-parser.c: Likewise.
2093 * c-typeck.c: Likewise.
2094
da2e71c9
MLI
20952015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2096
2097 PR fortran/66605
2098 * c-decl.c (finish_function): Call do_warn_unused_parameter.
2099
b155cfd9
MP
21002015-06-29 Marek Polacek <polacek@redhat.com>
2101
2102 PR c/66322
2103 * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
2104 (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn
2105 about -Wswitch-bool here.
2106 (do_case): Update c_add_case_label call.
2107 (c_finish_case): Update c_do_switch_warnings call.
2108
31521951
MP
21092015-06-27 Marek Polacek <polacek@redhat.com>
2110
2111 * c-typeck.c: Use VECTOR_TYPE_P throughout.
2112
22d03525
MP
21132015-06-26 Marek Polacek <polacek@redhat.com>
2114
2115 * c-array-notation.c (fix_builtin_array_notation_fn): Use
2116 INDIRECT_REF_P.
2117 * c-typeck.c (array_to_pointer_conversion): Likewise.
2118 (build_unary_op): Likewise.
2119 (c_finish_return): Likewise.
2120
f0889939
AM
21212015-06-25 Andrew MacLeod <amacleod@redhat.com>
2122
2123 * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
2124 * c-parser.c: Likewise.
2125
8d67ee55
RS
21262015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2127
2128 * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
2129 instead of pointer_hash.
2130 (detect_field_duplicates): Likewise.
2131
0ae9bd27
MP
21322015-06-25 Marek Polacek <polacek@redhat.com>
2133
2134 * c-array-notation.c: Use VAR_P throughout.
2135 * c-decl.c: Likewise.
2136 * c-objc-common.c: Likewise.
2137 * c-parser.c: Likewise.
2138 * c-typeck.c: Likewise.
2139
62f9079a
MP
21402015-06-25 Marek Polacek <polacek@redhat.com>
2141
2142 * c-decl.c: Use is_global_var throughout.
2143 * c-parser.c: Likewise.
2144 * c-typeck.c: Likewise.
2145
abb226c9
AM
21462015-06-17 Andrew MacLeod <amacleod@redhat.com>
2147
2148 * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
2149 * c-aux-info.c: Likewise.
2150 * c-convert.c: Likewise.
2151 * c-decl.c: Likewise.
2152 * c-errors.c: Likewise.
2153 * c-lang.c: Likewise.
2154 * c-objc-common.c: Likewise.
2155 * c-parser.c: Likewise.
2156 * c-typeck.c: Likewise.
2157
8cbababc
JH
21582015-06-11 Jan Hubicka <hubicka@ucw.cz>
2159
2160 PR middle-end/66325
2161 * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
2162 variants.
2163
a0349665
PMR
21642015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
2165
2166 * c-decl.c (pop_scope): Register the main translation unit
2167 through the new debug hook.
2168
13fdf2e2
AM
21692015-06-08 Andrew MacLeod <amacleod@redhat.com>
2170
2171 * c-array-notation.c : Adjust include files.
2172 * c-aux-info.c : Likewise.
2173 * c-convert.c : Likewise.
2174 * c-decl.c : Likewise.
2175 * c-errors.c : Likewise.
2176 * c-lang.c : Likewise.
2177 * c-lang.h : Likewise.
2178 * c-objc-common.c : Likewise.
2179 * c-parser.c : Likewise.
2180 * c-typeck.c : Likewise.
2181
d7438551
AH
21822015-06-05 Aldy Hernandez <aldyh@redhat.com>
2183
2184 * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
2185 immediately clobber it.
2186 (c_write_global_declarations_1): Remove call to
2187 check_global_declaration_1.
2188 (c_write_global_declarations_2): Remove.
2189 (c_write_final_cleanups): Rename from c_write_global_declarations.
2190 Remove call to finalize_compilation_unit.
2191 Remove calls to debugging hooks.
2192 * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
2193 * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
2194 * c-tree.h: Remove c_write_global_declarations.
2195
ecb9f223
AM
21962015-06-04 Andrew MacLeod <amacleod@redhat.com>
2197
2198 * c-array-notation.c: Adjust includes for restructured coretypes.h.
2199 * c-aux-info.c: Likewise.
2200 * c-convert.c: Likewise.
2201 * c-decl.c: Likewise.
2202 * c-errors.c: Likewise.
2203 * c-lang.c: Likewise.
2204 * c-objc-common.c: Likewise.
2205 * c-parser.c: Likewise.
2206 * c-typeck.c: Likewise.
2207
9482b620
MP
22082015-06-04 Marek Polacek <polacek@redhat.com>
2209
2210 PR c/66341
2211 * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
2212 it is a lvalue.
2213
bc51ace3
PK
22142015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2215
2216 * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
2217 Warn for empty struct.
2218 (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
2219
ea5b45b6
AT
22202015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
2221
2222 * c-decl.c (start_function): Call plugin before parsing.
2223 (finish_function): Call plugin after parsing.
2224
c2d47482
PK
22252015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2226
2227 PR c/49551
2228 * c-decl.c (merge_decls): Merge DECL_COMMON.
2229
a95492ab
JW
22302015-05-22 Jim Wilson <jim.wilson@linaro.org>
2231
2232 * Make-lang.in (check_gcc_pallelize): Define.
2233
fd5c817a
MP
22342015-05-22 Marek Polacek <polacek@redhat.com>
2235
2236 PR c/47043
2237 * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
2238 attributes.
2239
c7b70a3c
MP
22402015-05-21 Marek Polacek <polacek@redhat.com>
2241
2242 * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
2243 DECL_BUILT_IN.
2244
21b634ae
MP
22452015-05-20 Marek Polacek <polacek@redhat.com>
2246
2247 * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2248 * c-typeck.c: Likewise.
2249
296a8c2f
MP
22502015-05-19 Marek Polacek <polacek@redhat.com>
2251
2252 * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
2253
41b37d5e
JJ
22542015-05-19 Jakub Jelinek <jakub@redhat.com>
2255
2256 PR middle-end/66199
2257 * c-parser.c (c_parser_omp_for_loop): Don't add
2258 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
2259 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
2260 (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
2261 constructs.
2262
fab27f52
MM
22632015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2264
2265 * c-typeck.c (build_array_ref): Use std::swap instead of explicit
296a8c2f 2266 swaps.
fab27f52 2267
40de31cf
MLI
22682015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2269
2270 PR fortran/44054
2271 * c-objc-common.c (c_tree_printer): Replace locus pointer with
2272 accessor function.
2273
3aa3c9fc
MP
22742015-05-14 Marek Polacek <polacek@redhat.com>
2275
2276 PR c/66066
2277 PR c/66127
2278 * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
2279 rather than with 0.
2280
c3388e62
DM
22812015-05-12 David Malcolm <dmalcolm@redhat.com>
2282
2283 * c-parser.c (c_parser_if_body): Add param "if_loc", use it
2284 to add a call to warn_for_misleading_indentation.
2285 (c_parser_else_body): Likewise, adding param "else_loc".
2286 (c_parser_if_statement): Check for misleading indentation.
2287 (c_parser_while_statement): Likewise.
2288 (c_parser_for_statement): Likewise.
2289
755e528f
MP
22902015-05-08 Marek Polacek <polacek@redhat.com>
2291
2292 PR c/64918
2293 * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
2294 (output_init_element): Likewise.
2295
0173bd2a
MP
22962015-05-07 Marek Polacek <polacek@redhat.com>
2297
2298 PR c/65179
2299 * c-typeck.c (build_binary_op): Warn when left shifting a negative
2300 value.
2301
9babc352
MP
23022015-04-30 Marek Polacek <polacek@redhat.com>
2303
2304 * c-typeck.c (set_init_label): Call error_at instead of error and
2305 pass LOC to it.
2306
ac9f18db
MP
2307 * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print
2308 the type of a decl.
2309
ec3fba51
MP
2310 * c-typeck.c (c_build_va_arg): Clarify the error message.
2311
b811915d
TS
23122015-04-29 Thomas Schwinge <thomas@codesourcery.com>
2313
2314 * c-parser.c (c_parser_oacc_enter_exit_data): Use
2315 OMP_STANDALONE_CLAUSES.
2316
f3075008
MP
23172015-04-28 Marek Polacek <polacek@redhat.com>
2318
2319 * c-parser.c (c_parser_binary_expression): Remove duplicate line.
2320
4e81b788
MP
23212015-04-28 Marek Polacek <polacek@redhat.com>
2322
2323 PR c/65901
2324 * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
2325
6c1db78e
MP
23262015-04-25 Marek Polacek <polacek@redhat.com>
2327
2328 PR c/52085
2329 * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode"
2330 attribute.
2331
5c4abbb8
MP
23322015-04-23 Marek Polacek <polacek@redhat.com>
2333
2334 PR c/65345
2335 * c-decl.c (set_labels_context_r): New function.
2336 (store_parm_decls): Call it via walk_tree_without_duplicates.
2337 * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
2338 instead of create_tmp_var. Build TARGET_EXPR instead of
2339 COMPOUND_EXPR.
2340 (build_atomic_assign): Use create_tmp_var_raw instead of
2341 create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR.
2342
06aca1d5
IV
23432015-04-20 Ilya Verbin <ilya.verbin@intel.com>
2344
2345 * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
2346 (c_parser_omp_target_update): Add missed %> to error_at ().
2347
8fba1830
BRF
23482015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2349
2350 PR target/55143
2351 * c-decl.c (c_default_pointer_mode): Remove definition.
2352 * c-tree.h (c_default_pointer_mode): Remove declaration.
2353
62021f64
TB
23542015-03-27 Tobias Burnus <burnus@net-b.de>
2355
2356 PR c/65586
2357 * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
2358 error out.
2359 (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
2360 c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
2361 Update calls to not error for skipped omp pragmas with -fopenmp-simd.
2362
9b65e171
JJ
23632015-03-19 Jakub Jelinek <jakub@redhat.com>
2364
2365 * c-decl.c (c_decl_attributes): Also add "omp declare target"
2366 attribute for DECL_EXTERNAL VAR_DECLs.
2367
17958621
JJ
23682015-03-11 Jakub Jelinek <jakub@redhat.com>
2369
2370 * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
2371 argument.
2372
7ccb1a11
JJ
23732015-03-10 Jakub Jelinek <jakub@redhat.com>
2374
2375 PR c/65120
2376 * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
2377 before preparing arguments to warn_logical_not_parentheses.
2378
01177669
JJ
23792015-03-09 Jakub Jelinek <jakub@redhat.com>
2380
2381 PR c/65120
2382 * c-typeck.c (parser_build_binary_op): Don't warn for
2383 !!x == y or !b == y where b is _Bool.
2384
802ac282
MP
23852015-03-09 Marek Polacek <polacek@redhat.com>
2386
2387 * c-convert.c (convert): Make use of do_ubsan_in_current_function.
2388 * c-decl.c (grokdeclarator): Likewise.
2389 * c-typeck.c (build_binary_op): Likewise.
2390
e5165b60
MP
23912015-02-27 Marek Polacek <polacek@redhat.com>
2392
2393 PR c/65228
2394 * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
2395
065d214c
MP
23962015-02-14 Marek Polacek <polacek@redhat.com>
2397
2398 PR c/64768
2399 * c-decl.c (grokdeclarator): Set the range of a flexible array member
2400 declared through a typedef name.
2401
e5d9235b
MP
24022015-02-13 Marek Polacek <polacek@redhat.com>
2403
2404 PR c/65050
2405 * c-decl.c (grokdeclarator): Print also the type when giving
2406 the error message about array's incomplete element type.
2407
fa01ffcc
JJ
24082015-02-11 Jakub Jelinek <jakub@redhat.com>
2409
2410 PR c/64824
2411 * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
2412 check in the POP macro.
2413
c3e38a03
MP
24142015-02-09 Marek Polacek <polacek@redhat.com>
2415
2416 PR c/64856
2417 * c-typeck.c (process_init_element): Don't always wrap
2418 COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
2419 initializing a range of elements.
2420
4886ec8e
JJ
24212015-02-04 Jakub Jelinek <jakub@redhat.com>
2422
2423 PR c/64824
2424 PR c/64868
2425 * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
2426
c3e38a03 24272015-02-02 Bruno Loff <bruno.loff@gmail.com>
a4bb6959
BL
2428
2429 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
2430 processing enum declaration.
2431
7b33f0c8
MP
24322015-01-29 Marek Polacek <polacek@redhat.com>
2433
2434 PR c/64709
2435 * c-typeck.c (pop_init_level): If constructor_elements has
2436 exactly one element with integer_zerop value, set constructor_zeroinit
2437 to 1. Remove braces around warning_init call.
2438
dea63e49
JJ
24392015-01-27 Jakub Jelinek <jakub@redhat.com>
2440
2441 PR c/64766
2442 * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
2443 of FUNCTION_DECLs with error_mark_node.
2444
d38f7dce
JJ
24452015-01-26 Jakub Jelinek <jakub@redhat.com>
2446
2447 PR c/64778
2448 * c-typeck.c (convert_arguments): Return -1 if there are
2449 error_args, even if we've diagnosed too many arguments.
2450
cbf5d0e7
RB
24512015-01-21 Richard Biener <rguenther@suse.de>
2452
2453 PR middle-end/64313
2454 * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
2455 for builtins the user declared correctly.
2456
41dbbb37
TS
24572015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2458 Bernd Schmidt <bernds@codesourcery.com>
2459 Cesar Philippidis <cesar@codesourcery.com>
2460 James Norris <jnorris@codesourcery.com>
2461 Jakub Jelinek <jakub@redhat.com>
2462 Ilmir Usmanov <i.usmanov@samsung.com>
2463
2464 * c-parser.c: Include "gomp-constants.h".
2465 (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
2466 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
2467 Use OMP_CLAUSE_SET_MAP_KIND.
2468 (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
2469 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
2470 (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
2471 PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
2472 PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
2473 (c_parser_omp_clause_name): Handle "auto", "async", "copy",
2474 "copyout", "create", "delete", "deviceptr", "gang", "host",
2475 "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
2476 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
2477 "present_or_create", "pcreate", "seq", "self", "vector",
2478 "vector_length", "wait", "worker".
2479 (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
2480 (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
2481 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
2482 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
2483 (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
2484 (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
2485 (c_parser_oacc_data_clause_deviceptr)
2486 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
2487 (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
2488 (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
2489 (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
2490 (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
2491 (c_parser_oacc_parallel, c_parser_oacc_update)
2492 (c_parser_oacc_wait): New functions.
2493 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
2494 (c_finish_oacc_data): New prototypes.
2495 * c-typeck.c: Include "gomp-constants.h".
2496 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
2497 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2498 OMP_CLAUSE_SET_MAP_KIND.
2499 (c_finish_oacc_parallel, c_finish_oacc_kernels)
2500 (c_finish_oacc_data): New functions.
2501 (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
2502 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2503 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2504 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
2505 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
2506 GOMP_MAP_FORCE_DEVICEPTR.
2507
adfac8df
JJ
25082015-01-09 Michael Collison <michael.collison@linaro.org>
2509
2510 * c-array-notation.c: Include hash-set.h, machmode.h,
2511 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2512 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2513 * c-aux-info.c: Ditto.
2514 * c-convert.c: Ditto.
2515 * c-decl.c: Ditto.
2516 * c-errors.c: Ditto.
2517 * c-lang.c: Dittoxs.
2518 * c-objc-common.c: Ditto.
2519 * c-parser.c: Ditto.
2520 * c-typeck.c: Include hash-set.h, machmode.h,
2521 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2522 fold-const.h, wide-int.h, inchash.h, real.h and
2523 fixed-value.h due to flattening of tree.h.
2524
2cc901dc
MP
25252015-01-07 Marek Polacek <polacek@redhat.com>
2526
2527 PR c/64417
2528 * c-typeck.c (process_init_element): Disallow initialization of
2529 a flexible array member with a string constant if the structure
2530 is in an array.
2531
5624e564
JJ
25322015-01-05 Jakub Jelinek <jakub@redhat.com>
2533
e5341100
JJ
2534 PR sanitizer/64344
2535 * c-typeck.c (convert_for_assignment, c_finish_return): For
2536 -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
2537 types also set in_late_binary_op around convert call.
2538 * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
2539 to integral type casts, if not in_late_binary_op, pass c_fully_fold
2540 result on expr as last argument to ubsan_instrument_float_cast,
2541 if in_late_binary_op, don't use c_save_expr but save_expr.
2542
5624e564
JJ
2543 Update copyright years.
2544
5bd012f8
MP
25452015-01-05 Marek Polacek <polacek@redhat.com>
2546
2547 PR c/64423
2548 * c-typeck.c (build_array_ref): Pass loc down to
2549 warn_array_subscript_with_type_char.
2550
3f8257db 25512014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2552
2553 * c-typeck.c: New behavious for pointers to arrays with qualifiers
8e745a17 2554 (common-pointer-type): For pointers to arrays take qualifiers from
768952be 2555 element type.
8e745a17 2556 (build_conditional_expr): Add warnings for lost qualifiers.
768952be 2557 (comp-target-types): Allow pointers to arrays with different qualifiers.
8e745a17 2558 (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
768952be 2559 WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
8e745a17 2560 to PEDWARN_FOR_QUALIFIERS.
768952be 2561
8f94a8c4
JJ
25622014-12-17 Jakub Jelinek <jakub@redhat.com>
2563
2564 PR sanitizer/64289
2565 * c-convert.c: Include ubsan.h.
2566 (convert): For real -> integral casts and
2567 -fsanitize=float-cast-overflow don't call convert_to_integer, but
2568 instead instrument the float cast directly.
2569
b731b390
JJ
25702014-11-29 Jakub Jelinek <jakub@redhat.com>
2571
2572 * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
2573 c_finish_stmt_expr): Remove NULL last argument from
2574 create_tmp_var_raw and create_tmp_var calls.
2575 * c-array-notation.c (fix_builtin_array_notation_fn,
2576 build_array_notation_expr, fix_conditional_array_notations_1,
2577 fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
2578
541e35a6
MP
25792014-11-28 Marek Polacek <polacek@redhat.com>
2580
2581 PR c/63862
2582 * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
2583 convert the right operand to integer type.
2584
b286be94
MP
25852014-11-25 Marek Polacek <polacek@redhat.com>
2586
2587 PR c/63877
2588 * c-decl.c (start_function): Disable -Wmissing-declarations warning
2589 for inline functions.
2590
aa7da51a
JJ
25912014-11-21 Jakub Jelinek <jakub@redhat.com>
2592
2593 PR target/63764
2594 * c-typeck.c (build_array_ref): Adjust
2595 convert_vector_to_pointer_for_subscript caller. If it returns true,
2596 call non_lvalue_loc on the result.
2597
d876207f
RB
25982014-11-11 Richard Biener <rguenther@suse.de>
2599
2600 * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
2601 to true.
2602
e5e44252
AK
26032014-11-10 Andi Kleen <ak@linux.intel.com>
2604
2605 PR c/60804
2606 * c-parser.c (c_parser_statement_after_labels): Call
2607 check_no_cilk.
2608 (c_parser_if_statement): Dito.
2609 (c_parser_switch_statement): Dito.
2610 (c_parser_while_statement): Dito.
2611 (c_parser_do_statement): Dito.
2612 (c_parser_for_statement): Dito.
2613 * c-typeck.c (c_finish_loop): Dito.
2614
13c21655
PC
26152014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2616
2617 * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
2618 OPT_Wshift_count_overflow in the warnings.
2619
2d51fcef
MP
26202014-10-30 Marek Polacek <polacek@redhat.com>
2621
2622 * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
2623 print the stripped version as well, if they're not the same.
2624
ef4bddc2
RS
26252014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2626
2627 * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
2628 machine_mode.
2629
c582198b
AM
26302014-10-28 Andrew MacLeod <amacleod@redhat.com>
2631
2632 * c-decl.c: Adjust include files.
2633 * c-parser.c: Ditto.
2634
ddc8de03
PM
26352014-10-27 Phil Muldoon <pmuldoon@redhat.com>
2636 Tom Tromey <tromey@redhat.com>
2637
2638 * c-tree.h (enum c_oracle_request): New.
2639 (c_binding_oracle_function): New typedef.
2640 (c_binding_oracle, c_pushtag, c_bind): Declare.
2641 * c-decl.c (c_binding_oracle): New global.
2642 (I_SYMBOL_CHECKED): New macro.
2643 (i_symbol_binding): New function.
2644 (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
2645 (I_TAG_CHECKED): New macro.
2646 (i_tag_binding): New function.
2647 (I_TAG_BINDING, I_TAG_DECL): Redefine.
2648 (I_LABEL_CHECKED): New macro.
2649 (i_label_binding): New function.
2650 (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
2651 (c_print_identifier): Save and restore c_binding_oracle.
2652 (c_pushtag, c_bind): New functions.
2653
60393bbc
AM
26542014-10-27 Andrew MacLeod <amacleod@redhat.com>
2655
2656 * c-typeck.c: Adjust include files.
2657
d723bb7c
MLI
26582014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2659
2660 PR c++/53061
2661 * c-objc-common.c (c_objc_common_init): Do not do diagnostics
2662 initialization here...
2663 (c_initialize_diagnostics): ... but here. Set defaults after
2664 building pretty-printer.
2665
1bc5a451
MP
26662014-10-23 Marek Polacek <polacek@redhat.com>
2667
2668 PR c/63626
2669 * c-decl.c (pop_scope): Don't print warning in external_scope.
2670
4435bb92
MP
26712014-10-19 Marek Polacek <polacek@redhat.com>
2672
2673 PR c/63567
2674 * c-typeck.c (output_init_element): Allow initializing objects with
2675 static storage duration with compound literals even in C99 and add
2676 pedwarn for it.
2677
7278465e
MP
26782014-10-17 Marek Polacek <polacek@redhat.com>
2679
2680 PR c/63567
2681 * c-typeck.c (digest_init): Allow initializing objects with static
2682 storage duration with compound literals even in C99 and add pedwarn
2683 for it.
2684
d9b7be2e
MP
26852014-10-17 Marek Polacek <polacek@redhat.com>
2686
2687 PR c/63543
2688 * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
2689 * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
2690 error multiple times. Print the type.
2691
f406ae1f
MP
26922014-10-17 Marek Polacek <polacek@redhat.com>
2693
2694 PR c/63549
2695 * c-typeck.c (build_array_ref): Bail if the index in an incomplete
2696 type.
2697
92574c7c
MP
26982014-10-17 Marek Polacek <polacek@redhat.com>
2699
2700 * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
2701 (start_function): Use OPT_Wimplicit_int instead of 0.
2702 (store_parm_decls_oldstyle): Likewise.
2703
1bc4a978
MT
27042014-10-17 Alan Modra <amodra@gmail.com>
2705
2706 PR middle-end/61848
2707 * c-decl.c (merge_decls): Don't merge section name or tls model
2708 to newdecl symtab node, instead merge to olddecl. Override
2709 existing olddecl section name. Set tls_model for all thread-local
2710 vars, not just OMP thread-private ones. Remove incorrect comment.
2711
83685514
AM
27122014-10-16 Andrew MacLeod <amacleod@redhat.com>
2713
2714 * c-decl.c: Adjust include files.
2715
78a7c317
DD
27162014-10-14 DJ Delorie <dj@redhat.com>
2717
2718 * c-parser.c (c_parse_init): Add RID entries for each __intN.
2719 (c_token_starts_typename): Check all __intN, not just __int128.
2720 (c_token_starts_declspecs): Likewise.
2721 (c_parser_declspecs): Likewise.
2722 (c_parser_attribute_any_word): Likewise.
2723 (c_parser_objc_selector): Likewise.
2724 * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
2725 (struct c_declspecs): Add int_n_idx field to record *which* __intN
2726 is specified.
2727 * c-decl.c (declspecs_add_type): Check for all __intN, not just
2728 __int128.
2729 (finish_declspecs): Likewise.
2730
74d98c1e
AB
27312014-10-13 Anthony Brandon <anthony.brandon@gmail.com>
2732
8e745a17 2733 * c-parser.c (c_parser_all_labels): New function to replace
74d98c1e 2734 the duplicate code.
8e745a17 2735 (c_parser_statement): Call the new function.
74d98c1e 2736
84937de2
MP
27372014-10-09 Marek Polacek <polacek@redhat.com>
2738
2739 PR c/63480
2740 * c-typeck.c (pop_init_level): Don't warn about initializing
2741 with { }.
2742
0382aaa0
MP
27432014-10-07 Marek Polacek <polacek@redhat.com>
2744
2745 PR c/59717
2746 * c-decl.c (header_for_builtin_fn): New function.
2747 (implicitly_declare): Suggest which header to include.
2748
7a0ca710
MP
27492014-10-07 Marek Polacek <polacek@redhat.com>
2750
2751 * c-convert.c (convert): Use error_operand_p.
2752 * c-typeck.c (require_complete_type): Likewise.
2753 (really_atomic_lvalue): Likewise.
2754 (digest_init): Likewise.
2755 (handle_omp_array_sections_1): Likewise.
2756
6bc8a126
MP
27572014-10-03 Marek Polacek <polacek@redhat.com>
2758
2759 PR c/63453
2760 * c-decl.c (pop_scope): Don't warn about "inline function declared
2761 but never defined" for functions marked with gnu_inline attribute.
2762
d90c0a59
JJ
27632014-09-25 Jakub Jelinek <jakub@redhat.com>
2764
2765 PR c++/63249
2766 * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
2767 on low_bound and length.
2768
083e891e
MP
27692014-09-24 Marek Polacek <polacek@redhat.com>
2770
2771 PR c/61405
2772 PR c/53874
2773 * c-parser.c: Don't define CPP_KEYWORD.
2774 (c_parser_switch_statement): Pass original type to c_finish_case.
2775 * c-tree.h (c_finish_case): Update declaration.
2776 * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it
2777 conditionally to c_do_switch_warnings.
2778
8d95fe25
MP
27792014-09-03 Marek Polacek <polacek@redhat.com>
2780
2781 PR c/62024
2782 * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
2783 conversions.
2784
9a771876
JJ
27852014-09-02 Jakub Jelinek <jakub@redhat.com>
2786 Balaji V. Iyer <balaji.v.iyer@intel.com>
2787 Igor Zamyatin <igor.zamyatin@intel.com>
2788
2789 * c-parser.c (c_parser_cilk_for): New function.
2790 (c_parser_cilk_grainsize): Likewise.
2791 (c_get_temp_regvar): Likewise.
2792 (c_parser_statement_after_labels): Added RID_CILK_FOR case.
2793 (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
2794 (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
2795 * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
2796 case.
2797
b7679d96
CG
27982014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
2799
2800 * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
2801 with using HOST_WIDE_INT without truncation to 'int'
2802
59ea0364
MP
28032014-08-22 Marek Polacek <polacek@redhat.com>
2804
2805 PR c++/62199
2806 * c-typeck.c (parser_build_binary_op): Adjust call to
2807 warn_logical_not_parentheses.
2808
671a475e
IZ
28092014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
2810
2811 PR other/62008
2812 * c-parser.c (c_parser_array_notation): Check for correct
2813 type of an array added.
2814
04159acf
MP
28152014-08-19 Marek Polacek <polacek@redhat.com>
2816
2817 PR c++/62153
2818 * c-typeck.c (build_binary_op): If either operand of a comparison
2819 is a boolean expression, call maybe_warn_bool_compare.
2820
c77935ee
PP
28212014-08-19 Patrick Palka <ppalka@gcc.gnu.org>
2822
2823 PR c/45584
2824 * c-typeck.c (build_c_cast): Do a conversion even when the
2825 TYPE_MAIN_VARIANTs are the same.
2826
35aff4fb
MP
28272014-08-19 Marek Polacek <polacek@redhat.com>
2828
2829 * c-decl.c (diagnose_mismatched_decls): Unconditionally call
2830 pedwarn_c99 instead of pedwarn.
2831 (grokfield): Likewise.
2832 (warn_defaults_to): New function.
2833 (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
2834 Unconditionally call pedwarn_c99 instead of pedwarn.
2835 (start_function): Call warn_defaults_to instead of pedwarn_c99.
2836 (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
2837 check flag_isoc11 before.
2838 * c-errors.c (pedwarn_c99): Change the return type to bool.
2839 Handle -Wc99-c11-compat.
2840 * c-parser.c (disable_extension_diagnostics): Handle
2841 warn_c99_c11_compat.
2842 (restore_extension_diagnostics): Likewise.
2843 (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
2844 instead of pedwarn, don't check flag_isoc11 before.
2845 (c_parser_declspecs): Likewise.
2846 (c_parser_alignas_specifier): Likewise.
2847 (c_parser_alignof_expression): Likewise.
2848 (c_parser_generic_selection): Likewise.
2849 * c-tree.h (pedwarn_c99): Update declaration.
2850 * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
2851 of pedwarn_c99.
2852
177cce46
MP
28532014-08-19 Marek Polacek <polacek@redhat.com>
2854
2855 * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
2856 to pedwarn_c90.
2857 * c-errors.c: Include "opts.h".
2858 (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
2859 * c-parser.c (disable_extension_diagnostics): Handle negative value
2860 of warn_c90_c99_compat, too.
2861 (restore_extension_diagnostics): Likewise.
2862 (c_parser_compound_statement_nostart): Pass
2863 OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
2864
6dc99c33
MP
28652014-08-12 Marek Polacek <polacek@redhat.com>
2866
2867 * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
2868 Add pedwarn.
2869 (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
2870 Likewise.
2871 (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
2872
3f8257db 28732014-08-10 Marek Polacek <polacek@redhat.com>
f3bede71
MP
2874
2875 PR c/51849
2876 * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
2877 Call pedwarn_c90 instead of pedwarn.
2878 (check_bitfield_type_and_width): Likewise.
2879 (declspecs_add_qual): Likewise.
2880 (declspecs_add_type): Likewise.
2881 (warn_variable_length_array): Unify function for -pedantic and -Wvla.
2882 Adjust to only call pedwarn_c90.
2883 (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
2884 pedwarn_c90 instead of pedwarn.
2885 * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
2886 * c-parser.c (disable_extension_diagnostics): Handle
2887 warn_c90_c99_compat.
2888 (restore_extension_diagnostics): Likewise.
2889 (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
2890 pedwarn_c90 instead of pedwarn.
2891 (c_parser_initelt): Likewise.
2892 (c_parser_postfix_expression): Likewise.
2893 (c_parser_postfix_expression_after_paren_type): Likewise.
2894 (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
2895 * c-tree.h: Fix formatting.
2896 * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
2897 pedwarn_c90 instead of pedwarn.
2898
9f25a338
TS
28992014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2900
2901 * c-typeck.c: Remove include of pointer-set.h.
2902
044331a8
MP
29032014-08-07 Marek Polacek <polacek@redhat.com>
2904
2905 * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
2906
b787e7a2
TS
29072014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2908
2909 * c-typeck.c: Use hash_map instead of pointer_map.
2910
6e2830c3
TS
29112014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2912
2913 * c-decl.c: Use hash_set instead of pointer_set.
2914
a7ee52fb
IZ
29152014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2916
2917 PR middle-end/61455
2918 * c-array-notation.c (expand_array_notations): Handling
2919 of DECL_EXPR added.
2920
b4dfdc11
MG
29212014-07-31 Marc Glisse <marc.glisse@inria.fr>
2922
2923 PR c++/60517
2924 * c-typeck.c (c_finish_return): Return 0 instead of the address of
2925 a local variable.
2926
976d5a22
TT
29272014-07-30 Tom Tromey <tromey@redhat.com>
2928
2929 * c-typeck.c (struct constructor_stack) <designator_depth>: New
2930 field.
2931 (really_start_incremental_init, push_init_level): Initialize
2932 designator_depth.
2933 (pop_init_level): Set global designator_depth.
2934 (process_init_element): Check for designated_init attribute.
2935
30281de2
MP
29362014-07-20 Marek Polacek <polacek@redhat.com>
2937
2938 PR c/61852
2939 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
2940 (implicitly_declare): Pass location to implicit_decl_warning.
2941
b108f48f
JJ
29422014-07-14 Jakub Jelinek <jakub@redhat.com>
2943
2944 PR middle-end/61294
2945 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
2946 If non-NULL, call c_parser_check_literal_zero.
2947 (c_parser_check_literal_zero): New function.
2948 (c_parser_postfix_expression_after_primary): Adjust
2949 c_parser_expr_list caller, handle -Wmemset-transposed-args.
2950
773ec47f
MP
29512014-07-06 Marek Polacek <polacek@redhat.com>
2952
2953 PR c/6940
2954 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
2955 * c-tree.h (C_ARRAY_PARAMETER): Define.
2956 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
2957 function parameter.
2958
22e1cf1c 29592014-07-02 Jan Hubicka <hubicka@ucw.cz>
3f8257db 2960 Chen Gang <gang.chen.5i5j@gmail.com>
22e1cf1c
JH
2961
2962 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
2963 releasing symbol.
2964
52ec0ea3
MP
29652014-07-01 Marek Polacek <polacek@redhat.com>
2966
2967 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
2968 instead of 0 to WARN_FOR_ASSIGNMENT.
2969
d5c3d343
MP
29702014-07-01 Marek Polacek <polacek@redhat.com>
2971
2972 PR c/58286
2973 * c-typeck.c (convert_for_assignment): Pass
2974 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
2975
6a7253a4
MP
29762014-06-30 Marek Polacek <polacek@redhat.com>
2977
2978 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
2979 has no_sanitize_undefined attribute.
2980
5e88a8f4
IZ
29812014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
2982
2983 PR middle-end/57541
2984 * c-array-notation.c (fix_builtin_array_notation_fn):
2985 Check for 0 arguments in builtin call. Check that bultin argument is
2986 correct.
2987 * c-parser.c (c_parser_array_notation): Check for incorrect initial
2988 index.
2989
9698b078
SH
29902014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
2991
2992 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
2993 qualifiers in __auto_type for atomic types.
2994 (c_parser_typeof_specifier): Discard all type qualifiers in
2995 __typeof__ for atomic types.
2996
6e07c515
MP
29972014-06-25 Marek Polacek <polacek@redhat.com>
2998
2999 PR c/61162
3000 * c-parser.c (c_parser_statement_after_labels): Pass the location of
3001 the return expression to c_finish_return.
3002
da6f124d
JJ
30032014-06-25 Jakub Jelinek <jakub@redhat.com>
3004
3005 * c-typeck.c (c_finish_omp_clauses): Make sure
3006 OMP_CLAUSE_LINEAR_STEP has correct type.
3007
c203e8a7
TS
30082014-06-24 Trevor Saunders <tsaunders@mozilla.com>
3009
3010 * c-decl.c: Adjust.
3011
56ad0e38
JJ
30122014-06-24 Jakub Jelinek <jakub@redhat.com>
3013
3014 * c-parser.c (c_parser_omp_for_loop): For
3015 #pragma omp parallel for simd move lastprivate clause from parallel
3016 to for rather than simd.
3017
47c2554f
MP
30182014-06-23 Marek Polacek <polacek@redhat.com>
3019
3020 * c-typeck.c (parser_build_binary_op): Don't call
3021 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
3022
56363ffd
JH
30232014-06-15 Jan Hubicka <hubicka@ucw.cz>
3024
3025 * c-parser.c (c_parser_omp_threadprivate): Likewise.
3026 * c-decl.c (merge_decls): Likewise.
3027
d7ff7ae5
MP
30282014-06-09 Marek Polacek <polacek@redhat.com>
3029
3030 PR c/36446
3031 * c-typeck.c (error_init): Call inform instead of error_at.
3032 (pedwarn_init): Call inform instead of pedwarn.
3033 (warning_init): Call inform instead of warning_at.
3034
24d047a3
JH
30352014-06-07 Jan Hubicka <hubicka@ucw.cz>
3036
3037 * c-decl.c (merge_decls): Use set_decl_section_name.
3038 (duplicate_decls): Remove node if it exists.
3039
9bac5cbb
G
30402014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
3041
3042 PR c/53119
3043 * c-typeck.c (push_init_level, process_init_element,
3044 pop_init_level): Correct check for zero initialization, move
3045 missing brace warning to respect zero initialization.
3046
8ffcdea8
MP
30472014-06-05 Marek Polacek <polacek@redhat.com>
3048
3049 PR c/56724
3050 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
3051
742938c9
MP
30522014-06-05 Marek Polacek <polacek@redhat.com>
3053
3054 PR c/49706
3055 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
3056 on the left hand side operand of a comparison.
3057
6447c55d
MP
30582014-06-05 Marek Polacek <polacek@redhat.com>
3059
3060 PR c/48062
3061 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
3062 Print note only if the warning was printed.
3063
9dc7743c
IZ
30642014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
3065
3066 PR c/58942
3067 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
3068 with a pointer.
3069
fedfecef
MP
30702014-06-03 Marek Polacek <polacek@redhat.com>
3071
3072 PR c/60439
3073 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
3074 c_start_case.
3075 * c-tree.h (c_start_case): Update.
3076 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
3077 switch condition has boolean value.
3078
9b2b7279
AM
30792014-06-02 Andrew MacLeod <amacleod@redhat.com>
3080
3081 * c-decl.c: Include builtins.h.
3082 * c-parser.c: Likewise.
3083
5c1bc275
MP
30842014-05-27 Marek Polacek <polacek@redhat.com>
3085
3086 PR c/56724
3087 * c-typeck.c (convert_arguments): Get location of a parameter. Change
3088 error and warning calls to error_at and warning_at. Pass location of
3089 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
3090 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
3091 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
3092
97563bc8
IZ
30932014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
3094
3095 PR c/61191
3096 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
3097 function parameters.
3098
aede2c10
JH
30992014-05-23 Jan Hubicka <hubicka@ucw.cz>
3100
3101 * c-decl.c (merge_decls): Preserve symtab node pointers.
3102 (duplicate_decls): Free new decl.
3103
edbba2ce
TS
31042014-05-23 Thomas Schwinge <thomas@codesourcery.com>
3105
f3316c6d
TS
3106 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
3107 initialization.
3108
edbba2ce
TS
3109 * c-parser.c (c_parser_omp_target): Return bool values.
3110
68c81f24
TS
31112014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3112
3113 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
3114 num_teams_loc variable to num_thread_limit_loc.
3115
632f2871
RS
31162014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3117
3118 * c-array-notation.c (expand_array_notations): Use void_node
3119 instead of void_zero_node.
3120
766090c2
TS
31212014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3122
3123 * c-decl.c (finish_struct): Adjust.
3124 (finish_enum): Likewise.
3125 (bind): Adjust.
3126 (record_inline_static): Likewise.
3127 (push_scope): Likewise.
3128 (make_label): Likewise.
3129 (lookup_label_for_goto): Likewise.
3130 (finish_struct): Likewise.
3131 (finish_enum): Likewise.
3132 (store_parm_decls): Likewise.
3133 (c_push_function_context): Likewise.
3134 * c-lang.h: Remove usage of variable_size gty attribute.
3135 * c-parser.c (c_parse_init): Adjust.
3136 (c_parse_file): Likewise.
3137
2b107f6b
MP
31382014-05-13 Marek Polacek <polacek@redhat.com>
3139
3140 PR c/61162
3141 * c-typeck.c (convert_for_assignment): Pass location to
3142 WARN_FOR_ASSIGNMENT instead of input_location.
3143
d033409e
MP
31442014-05-10 Marek Polacek <polacek@redhat.com>
3145
3146 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
3147 maybe_warn_string_init.
3148 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
3149 maybe_warn_string_init.
3150 * c-tree.h (maybe_warn_string_init): Update declaration.
3151 * c-typeck.c (maybe_warn_string_init): Add location parameter.
3152 Call pedwarn_init with loc instead of with input_location.
3153 (digest_init): Pass init_loc to maybe_warn_string_init.
3154 (pop_init_level): Call pedwarn_init with loc instead of with
3155 input_location.
3156 (set_init_index): Likewise.
3157 (process_init_element): Likewise.
3158
ea58ef42
MP
31592014-05-09 Marek Polacek <polacek@redhat.com>
3160
3161 PR c/61096
3162 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
3163 (c_parser_initelt): Pass location to set_init_label. Pass array index
3164 location to set_init_index.
3165 * c-tree.h (push_init_level): Update declaration.
3166 (pop_init_level): Likewise.
3167 (set_init_index): Likewise.
3168 (set_init_label): Likewise.
3169 * c-typeck.c (error_init): Add location parameter. Call error_at
3170 instead of error.
3171 (digest_init): Pass init_loc to error_init.
3172 (really_start_incremental_init):
3173 (push_init_level): Add location parameter. Pass loc to pop_init_level
3174 and error_init.
3175 (pop_init_level): Likewise.
3176 (set_designator): Add location parameter. Pass loc to pop_init_level,
3177 push_init_level, and error_init.
3178 (set_init_index): Add location parameter. Pass loc to error_init and
3179 set_designator.
3180 (set_init_label): Likewise.
3181 (output_init_element): Pass loc to error_init.
3182 (process_init_element): Pass loc to error_init, pop_init_level,
3183 pedwarn_init, and push_init_level.
3184
661a0813
MP
31852014-05-09 Marek Polacek <polacek@redhat.com>
3186
3187 PR c/50459
3188 * c-parser.c (c_parser_attributes): Parse the arguments as an
3189 expression-list if the attribute takes identifier.
3190
2793eeab
MP
31912014-05-08 Marek Polacek <polacek@redhat.com>
3192
3193 PR c/61053
3194 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
3195 TYPE_ALIGN_UNIT.
3196
f827930a
MP
31972014-05-08 Marek Polacek <polacek@redhat.com>
3198
3199 PR c/61077
3200 * c-decl.c (start_function): Warn for _Atomic-qualified return type
3201 of main.
3202
1d60af08
KZ
32032014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3204 Mike Stump <mikestump@comcast.net>
3205 Richard Sandiford <rdsandiford@googlemail.com>
3206
3207 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
3208 (finish_enum): Use wide-int interfaces.
3209 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
3210 * c-typeck.c (build_c_cast): Likewise.
3211 (set_nonincremental_init_from_string): Likewise.
3212 (c_tree_equal): Likewise.
3213
a0e24419
MP
32142014-05-02 Marek Polacek <polacek@redhat.com>
3215
3216 PR c/25801
3217 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
3218 Return size_one_node when the type is not complete.
3219 (pointer_diff): Remove comment.
3220 (build_unary_op): Improve error messages.
3221
19fc9faa
MP
32222014-05-02 Marek Polacek <polacek@redhat.com>
3223
3224 * c-typeck.c (c_finish_return): Separate warning_at calls.
3225
63bc4e87
MP
32262014-05-02 Marek Polacek <polacek@redhat.com>
3227
3228 * c-tree.h (error_init): Remove declaration.
3229 (pedwarn_init): Likewise.
3230 * c-typeck.c (error_init): Make static and move above.
3231 (pedwarn_init): Likewise.
3232 (warning_init): Move above.
3233 (maybe_warn_string_init): Likewise.
3234
4bd2511b
JL
32352014-05-01 Jeff Law <law@redhat.com>
3236
3237 Revert:
3238
3239 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3240 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
3241 avoid goto.
3242
6a358dcb
MP
32432014-05-02 Marek Polacek <polacek@redhat.com>
3244
3245 PR c/60784
3246 * c-typeck.c (push_init_level): Set constructor_designated to
3247 p->designated for structures.
3248
ae5ebda4
MP
32492014-05-01 Marek Polacek <polacek@redhat.com>
3250
3251 PR c/60915
3252 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
3253 function-definition has an attribute after the declarator.
3254
96b40f8d
MP
32552014-05-01 Marek Polacek <polacek@redhat.com>
3256
3257 PR c/60257
3258 * c-typeck.c (warning_init): Add location_t parameter. Call
3259 warning_at instead of warning.
3260 (push_init_level): Pass input_location to warning_init.
3261 (add_pending_init): Add location_t parameter. Pass loc to
3262 warning_init.
3263 (set_nonincremental_init): Pass input_location to add_pending_init.
3264 (set_nonincremental_init_from_string): Likewise.
3265 (output_init_element): Pass loc to warning_init and to
3266 add_pending_init.
3267
32e00768
MP
32682014-05-01 Marek Polacek <polacek@redhat.com>
3269
3270 PR c/43395
3271 * c-typeck.c (c_finish_return): Distinguish between label and variable
3272 when warning about returning local address.
3273
c9379ce2
MP
32742014-05-01 Marek Polacek <polacek@redhat.com>
3275
3276 PR c/29467
3277 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
3278 in C89 mode.
3279
d00887e8
MP
32802014-05-01 Marek Polacek <polacek@redhat.com>
3281
3282 PR c/43245
3283 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
3284 instead of 0 to WARN_FOR_QUALIFIERS.
3285
5436fa2e
MP
32862014-05-01 Marek Polacek <polacek@redhat.com>
3287
3288 PR c/56989
3289 * c-typeck.c (default_conversion): Use better location for
3290 error call.
3291
f8ed5150
MP
32922014-04-30 Marek Polacek <polacek@redhat.com>
3293
3294 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
3295 also when SANITIZE_FLOAT_DIVIDE is on.
3296
8337d1db
MP
32972014-04-30 Marek Polacek <polacek@redhat.com>
3298
3299 PR c/60139
3300 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
3301 and pedwarn_init. Use loc insted of input_location.
3302
c4bdc42f
MP
33032014-04-30 Marek Polacek <polacek@redhat.com>
3304
3305 PR c/60351
3306 * c-typeck.c (build_binary_op): Use location when warning about
3307 shift count.
3308
45484dcf
MP
33092014-04-25 Marek Polacek <polacek@redhat.com>
3310
3311 PR c/18079
3312 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
3313 always_inline/noinline and hot/cold attributes.
3314
34cf811f
MP
33152014-04-25 Marek Polacek <polacek@redhat.com>
3316
3317 PR c/60114
3318 * c-parser.c (c_parser_initelt): Pass input_location to
3319 process_init_element.
3320 (c_parser_initval): Pass loc to process_init_element.
3321 * c-tree.h (process_init_element): Adjust declaration.
3322 * c-typeck.c (push_init_level): Pass input_location to
3323 process_init_element.
3324 (pop_init_level): Likewise.
3325 (set_designator): Likewise.
3326 (output_init_element): Add location_t parameter. Pass loc to
3327 digest_init.
3328 (output_pending_init_elements): Pass input_location to
3329 output_init_element.
3330 (process_init_element): Add location_t parameter. Pass loc to
3331 output_init_element.
3332
42056eac
JJ
33332014-04-24 Jakub Jelinek <jakub@redhat.com>
3334
3335 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
3336 atomic-clause, allow comma in between atomic-clause and
3337 seq_cst.
3338
e162a134
JJ
33392014-04-22 Jakub Jelinek <jakub@redhat.com>
3340
3341 PR c/59073
3342 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
3343 fails, don't set OM_PARALLEL_COMBINED and return NULL.
3344
2f6babac
IZ
33452014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3346
3347 PR middle-end/60469
3348 * c-array-notation.c (fix_builtin_array_notation_fn): Use
3349 create_tmp_var instead build_decl for creating temps.
3350 (build_array_notation_expr): Likewise.
3351 (fix_conditional_array_notations_1): Likewise.
3352 (fix_array_notation_expr): Likewise.
3353 (fix_array_notation_call_expr): Likewise.
3354
8edbfaa6
JJ
33552014-03-28 Jakub Jelinek <jakub@redhat.com>
3356
3357 PR c++/60689
3358 * c-tree.h (c_build_function_call_vec): New prototype.
3359 * c-typeck.c (build_function_call_vec): Don't call
3360 resolve_overloaded_builtin here.
3361 (c_build_function_call_vec): New wrapper function around
3362 build_function_call_vec. Call resolve_overloaded_builtin here.
3363 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
3364 Call c_build_function_call_vec instead of build_function_call_vec.
3365 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
3366 * c-decl.c (finish_decl): Likewise.
3367
7485aeea
MLI
33682014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3369
3370 PR c/55383
3371 * c-typeck.c: Use correct format string in cast-qual warning
3372
b17a8b07
TS
33732014-03-07 Thomas Schwinge <thomas@codesourcery.com>
3374
3375 * c-decl.c (c_decl_attributes): Use
3376 lang_hooks.types.omp_mappable_type.
3377 * c-typeck.c (c_finish_omp_clauses): Likewise.
3378
3af9c5e9
MP
33792014-03-06 Marek Polacek <polacek@redhat.com>
3380
3381 PR c/60197
3382 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
3383 of checking tree code.
3384
1c9f5f33
PK
33852014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3386
3387 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
3388 (c_parser_parameter_declaration): Likewise.
3389
cc28fc7f
MP
33902014-02-19 Marek Polacek <polacek@redhat.com>
3391
3392 PR c/60195
3393 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
3394 Call mark_exp_read on exp.value.
3395 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
3396 TREE_ADDRESSABLE on old instead of val.
3397 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
3398
b581c05c
PK
33992014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3400
3401 * c-parser.c (c_parser_get_builtin_args): Replace calls to
3402 C_EXPR_APPEND by vec_safe_push.
3403 * c-tree.h (C_EXPR_APPEND): Remove.
3404
81e5eca8
MP
34052014-01-31 Marek Polacek <polacek@redhat.com>
3406
3407 PR c/59963
3408 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
3409 build_function_call_vec.
3410 (build_function_call): Likewise.
3411 (build_atomic_assign): Likewise.
3412 (build_function_call_vec): Add arg_loc parameter. Use it.
3413 (convert_arguments): Likewise.
3414 (convert_for_assignment): Rename rhs_loc to expr_loc.
3415 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
3416 (c_parser_objc_keywordexpr): Likewise.
3417 (c_parser_postfix_expression_after_primary): Call
3418 build_function_call_vec with expr_loc rather than op_loc.
3419 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
3420 build_function_call_vec.
3421 (c_parser_expr_list): Add locations parameter. Fill it with locations
3422 of function arguments.
3423 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
3424
68fca595
MP
34252014-01-30 Marek Polacek <polacek@redhat.com>
3426
3427 PR c/59940
3428 * c-typeck.c (build_function_call_vec): Use loc parameter.
3429 (convert_arguments): Add location parameter. Use it.
3430 (ep_convert_and_check): Likewise.
3431 (build_atomic_assign): Adjust convert_for_assignment call.
3432 (build_modify_expr): Likewise.
3433 (digest_init): Likewise.
3434 (c_finish_return): Likewise.
3435 (build_conditional_expr): Adjust ep_convert_and_check calls.
3436 (convert_for_assignment): Add rhs_loc parameter. Use it.
3437 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
3438 calls.
3439
fa337f3a
RB
34402014-01-30 Richard Biener <rguenther@suse.de>
3441
3442 PR c/59905
3443 * c-typeck.c (build_function_call_vec): Do not replace calls
3444 to a function via an incompatible type with a runtime abort.
3445
b72271b9
BI
34462014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3447
3448 * c-parser.c (c_parser_declaration_or_fndef): Replaced
3449 flag_enable_cilkplus with flag_cilkplus.
3450 (c_parser_direct_declarator_inner): Likewise.
3451 (c_parser_attribute_any_word): Likewise.
3452 (c_parser_attributes): Likewise.
3453 (c_parser_compound_statement): Likewise.
3454 (c_parser_statement_after_labels): Likewise.
3455 (c_parser_if_statement): Likewise.
3456 (c_parser_switch_statement): Likewise.
3457 (c_parser_do_statement): Likewise.
3458 (c_parser_for_statement): Likewise.
3459 (c_parser_unary_expression): Likewise.
3460 (c_parser_postfix_expression): Likewise.
3461 (c_parser_postfix_expression_after_primary): Likewise.
3462 (c_parser_postfix_expression_after_primary): Likewise.
3463 (c_parser_omp_clause_name): Likewise.
3464 (c_finish_omp_declare_simd): Likewise.
3465 (c_parser_cilk_verify_simd): Likewise.
3466 * c-typeck.c (build_array_ref): Likewise.
3467 (build_function_call_vec): Likewise.
3468 (convert_arguments): Likewise.
3469 (build_compound_expr): Likewise.
3470 (c_finish_return): Likewise.
3471 (c_finish_if_stmt): Likewise.
3472 (c_finish_loop): Likewise.
3473 (build_binary_op): Likewise.
3474
393e8e8b
MP
34752014-01-23 Marek Polacek <polacek@redhat.com>
3476
3477 PR c/59846
3478 * c-typeck.c (parser_build_binary_op): Use location instead of
3479 input_location.
3480 (build_binary_op): Pass location to shorten_compare.
3481
f04dda30
MP
34822014-01-23 Marek Polacek <polacek@redhat.com>
3483
3484 PR c/58346
3485 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
3486 an empty aggregate.
3487
789eadcd
MP
34882014-01-23 Marek Polacek <polacek@redhat.com>
3489
3490 PR c/59871
3491 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
3492 of a comma expression.
3493 (emit_side_effect_warnings): Likewise.
3494
40f14e9f
BI
34952014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
3496
3497 PR c/59825
3498 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
3499 function to use walk_tree and moved a lot of its functionality to
3500 expand_array_notations.
3501 (expand_array_notations): New function.
3502
74558dd9
BI
35032014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
3504
3505 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
3506 attribute an attribute without value.
3507
652fea39
JJ
35082014-01-23 Jakub Jelinek <jakub@redhat.com>
3509
3510 PR middle-end/58809
3511 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
3512 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
3513
f34f1c87
MP
35142014-01-22 Marek Polacek <polacek@redhat.com>
3515
3516 PR c/59891
3517 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
3518 of remove_c_maybe_const_expr on op1 and op2.
3519
241f845a
JJ
35202014-01-15 Jakub Jelinek <jakub@redhat.com>
3521
3522 PR c/58943
3523 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
3524 effects, preevaluate rhs using SAVE_EXPR first.
3525
9a74f20c
BI
35262014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
3527
3528 PR c++/59631
3529 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
3530 statements with if-elseif statements.
3531
96066ce1
MP
35322014-01-06 Marek Polacek <polacek@redhat.com>
3533
3534 PR c/57773
3535 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
3536 defined bit-field types only in ISO C.
3537
23a5b65a
RS
35382014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3539
3540 Update copyright years
3541
f9030485
RS
35422014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3543
3544 * c-array-notation.c: Use the standard form for the copyright notice.
3545
41958c28
BI
35462013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3547
3548 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
3549 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
3550 field in parser is not empty. If not-empty, call the function
3551 c_parser_finish_omp_declare_simd.
3552 (c_parser_cilk_clause_vectorlength): Modified function to be shared
3553 between SIMD-enabled functions and #pragma simd. Added new parameter.
3554 (c_parser_cilk_all_clauses): Modified the usage of the function
3555 c_parser_cilk_clause_vectorlength as mentioned above.
3556 (c_parser_cilk_simd_fn_vector_attrs): New function.
3557 (c_finish_cilk_simd_fn_tokens): Likewise.
3558 (is_cilkplus_vector_p): Likewise.
3559 (c_parser_omp_clause_name): Added checking for "vectorlength,"
3560 "nomask," and "mask" strings in clause name.
3561 (c_parser_omp_all_clauses): Added 3 new case statements:
3562 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
3563 PRAGMA_CILK_CLAUSE_NOMASK.
3564 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
3565 check for vector attribute and if so call the function
3566 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
3567 called the function c_finish_cilk_simd_fn_tokens.
3568 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
3569 parser field is non-empty. If so, parse them as you would parse
3570 the omp declare simd pragma.
3571 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
3572 Added a check when step is a parameter and flag it as error.
3573 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
3574 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
3575 pragma_omp_clause.
3576
cef0fd0e
TS
35772013-12-17 Thomas Schwinge <thomas@codesourcery.com>
3578
3579 * c-parser.c (c_parser_omp_parallel): Fix description.
3580
12893402
BI
35812013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3582
3583 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
3584 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
3585 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
3586 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
3587
296674db
JM
35882013-12-04 Joseph Myers <joseph@codesourcery.com>
3589
3590 PR c/52023
3591 * c-parser.c (c_parser_alignas_specifier): Use
3592 c_sizeof_or_alignof_type instead of c_alignof.
3593 (c_parser_alignof_expression): Likewise, with min_alignof
3594 parameter depending on alignof spelling used.
3595
edd28054
MP
35962013-12-04 Marek Polacek <polacek@redhat.com>
3597
3598 PR c/54113
3599 * c-decl.c (start_function): Don't warn for missing prototype for
3600 inline functions.
3601
da0fc454
MP
36022013-12-03 Marek Polacek <polacek@redhat.com>
3603
3604 PR c/59351
3605 * c-decl.c (build_compound_literal): Allow compound literals with
3606 empty initial value.
3607
4c2ecab0
JM
36082013-12-02 Joseph Myers <joseph@codesourcery.com>
3609
3610 PR c/58235
3611 * c-typeck.c (build_modify_expr): Diagnose assignment to
3612 expression with array type.
3613
340baef7
JM
36142013-11-29 Joseph Myers <joseph@codesourcery.com>
3615
3616 PR c/42262
3617 * c-typeck.c (process_init_element): Do not treat a string as
3618 initializing a whole array when used with a designator for an
3619 individual element.
3620
6763b9f7
JM
36212013-11-29 Joseph Myers <joseph@codesourcery.com>
3622
3623 PR c/57574
3624 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
3625 an inline function following a static declaration.
3626
e7bd1de1
JJ
36272013-11-28 Jakub Jelinek <jakub@redhat.com>
3628
3629 PR c/59310
3630 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
3631 to p_name before calling c_parser_omp_teams instead of after.
3632 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
3633 argument. Remove unused p_name variable.
3634
0136f8f0
AH
36352013-11-27 Aldy Hernandez <aldyh@redhat.com>
3636 Jakub Jelinek <jakub@redhat.com>
3637
3638 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
3639 external_scope is NULL.
3640
241b71bb
TV
36412013-11-27 Tom de Vries <tom@codesourcery.com>
3642 Marc Glisse <marc.glisse@inria.fr>
3643
3644 PR c++/59032
3645 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
3646
2fb9a547
AM
36472013-11-22 Andrew MacLeod <amacleod@redhat.com>
3648
3649 * c-typeck.c: Add required include files from gimple.h.
3650
8400e75e
DM
36512013-11-22 David Malcolm <dmalcolm@redhat.com>
3652
3653 * c-decl.c (define_label, shadow_tag_warned)
3654 (check_bitfield_type_and_width, grokdeclarator, grokparms,
3655 store_parm_decls_newstyle, store_parm_decls_oldstyle)
3656 (declspecs_add_type): Remove use of in_system_header macro.
3657 * c-parser.c (c_parser_unary_expression): Likewise.
3658 * c-typeck.c (store_init_value, process_init_element)
3659 (c_start_case): Likewise.
3660
3661 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
3662 macro.
3663
3664 * c-parser.c (c_parser_set_source_position_from_token): Remove
3665 reference to in_system_header from comment.
3666
386b1f1f
RS
36672013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3668
3669 * c-decl.c (grokdeclarator): Update comment to refer to
3670 tree_to_[su]hwi rather than tree_low_cst.
3671
ae7e9ddd
RS
36722013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3673
3674 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
3675 tree_to_uhwi throughout.
3676
9439e9a1
RS
36772013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3678
3679 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
3680 throughout.
3681
9541ffee
RS
36822013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3683
3684 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3685 throughout.
3686
c02065fc
AH
36872013-11-15 Aldy Hernandez <aldyh@redhat.com>
3688
3689 * c-parser.c (c_parser_cilk_simd): New.
3690 (c_parser_cilk_verify_simd): New.
3691 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
3692 (c_parser_omp_for_loop): Add case for NE_EXPR.
3693 Set c_break_label for CILK_SIMD.
3694 (c_parser_cilk_clause_vectorlength): New.
3695 (c_parser_cilk_clause_linear): New.
3696 (c_parser_cilk_clause_name): New.
3697 (c_parser_cilk_all_clauses): New.
3698 * c-typeck.c (build_unary_op): Pass location argument to
3699 readonly_error.
3700 (build_modify_expr): Same.
3701 (build_asm_expr): Same.
3702 (c_finish_bc_stmt): Error on break/continue in loops.
3703
18f429e2
AM
37042013-11-14 Andrew MacLeod <amacleod@redhat.com>
3705
3706 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
3707
d8a2d370
DN
37082013-11-14 Diego Novillo <dnovillo@google.com>
3709
3710 * c-decl.c: Include print-tree.h.
3711 Include stor-layout.h.
3712 Include varasm.h.
3713 Include attribs.h.
3714 Include stringpool.h.
3715 * c-lang.c: Include fold-const.h.
3716 * c-parser.c: Include stringpool.h.
3717 Include attribs.h.
3718 Include stor-layout.h.
3719 Include varasm.h.
3720 Include trans-mem.h.
3721 * c-typeck.c: Include stor-layout.h.
3722 Include trans-mem.h.
3723 Include varasm.h.
3724 Include stmt.h.
3725
38b7bc7f
JM
37262013-11-13 Joseph Myers <joseph@codesourcery.com>
3727
3728 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
3729 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
3730 __auto_type.
3731 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
3732 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
3733 RID_AUTO_TYPE.
3734 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
3735 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
3736 (c_parser_declarator, c_parser_direct_declarator_inner)
3737 (c_parser_parameter_declaration, c_parser_type_name): All callers
3738 changed.
3739 (c_parser_declaration_or_fndef): Handle declarations with type
3740 determined from the initializer.
3741
45b0be94
AM
37422013-11-12 Andrew MacLeod <amacleod@redhat.com>
3743
18f429e2 3744 * c-typeck.c: Include gimplify.h.
45b0be94 3745
582d9b50
JM
37462013-11-12 Joseph Myers <joseph@codesourcery.com>
3747
3748 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
3749 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
3750 comment.
3751 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
3752 or _Thread_local as appropriate in diagnostics.
3753 (build_null_declspecs): Initialize ret->thread_gnu_p.
3754 (declspecs_add_scspec): Handle either __thread or _Thread_local
3755 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
3756 pedantic. Do not disallow _Thread_local extern and _Thread_local
3757 static.
3758
267bac10
JM
37592013-11-07 Joseph Myers <joseph@codesourcery.com>
3760 Andrew MacLeod <amacleod@redhat.com>
3761
3762 * c-aux-info.c (gen_type): Handle atomic qualifier.
3763 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
3764 qualifiers when compating types.
3765 (shadow_tag_warned): Handle atomic_p in declspecs.
3766 (quals_from_declspecs): Likewise.
3767 (start_decl): Use c_type_promotes_to when promoting argument
3768 types.
3769 (grokdeclarator): Handle _Atomic.
3770 (get_parm_info): Diagnose any qualifier on "void" as only
3771 parameter.
3772 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
3773 comparing types. Use c_type_promotes_to when promoting argument
3774 types.
3775 (finish_function): Use c_type_promotes_to when promoting argument
3776 types.
3777 (build_null_declspecs): Handle atomic_p in declspecs.
3778 (declspecs_add_qual): Handle RID_ATOMIC.
3779 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
3780 (c_token_starts_declspecs): Handle RID_ATOMIC.
3781 (c_parser_declspecs): Handle atomic type specifiers and
3782 qualifiers.
3783 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
3784 from types of expressions with atomic type.
3785 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
3786 (c_parser_attribute_any_word): Handle RID_ATOMIC.
3787 (c_parser_initializer, c_parser_initelt, c_parser_initval)
3788 (c_parser_statement_after_labels, c_parser_switch_statement)
3789 (c_parser_for_statement, c_parser_expr_no_commas)
3790 (c_parser_conditional_expression, c_parser_binary_expression)
3791 (c_parser_cast_expression, c_parser_unary_expression)
3792 (c_parser_postfix_expression)
3793 (c_parser_postfix_expression_after_primary, c_parser_expression):
3794 Use convert_lvalue_to_rvalue.
3795 (c_parser_expression_conv, c_parser_expr_list): Document
3796 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
3797 (c_parser_objc_synchronized_statement): Use
3798 convert_lvalue_to_rvalue.
3799 (c_parser_objc_selector): Handle RID_ATOMIC.
3800 (c_parser_objc_receiver, c_parser_array_notation): Use
3801 convert_lvalue_to_rvalue.
3802 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
3803 _Atomic (type-name).
3804 (struct c_declspecs): Add atomic_p field.
3805 (convert_lvalue_to_rvalue): Declare.
3806 * c-typeck.c (c_type_promotes_to): Promote atomic types to
3807 corresponding atomic types.
3808 (qualify_type): Don't add _Atomic qualifiers from second argument.
3809 (comp_target_types): Do not allow _Atomic mismatches.
3810 (type_lists_compatible_p): Do not remove atomic qualifiers when
3811 comparing types.
3812 (really_atomic_lvalue, convert_lvalue_to_rvalue)
3813 (build_atomic_assign): New functions.
3814 (build_unary_op): Use build_atomic_assign for atomic increment and
3815 decrement.
3816 (build_conditional_expr): Do not treat _Atomic void as a qualified
3817 version of void.
3818 (build_modify_expr): Use build_atomic_assign for atomic LHS.
3819 (find_anonymous_field_with_type, convert_to_anonymous_field)
3820 (convert_for_assignment): Do not remove atomic qualifiers when
3821 comparing types.
3822 (digest_init): Do not accept initialization of arrays of atomic
3823 elements by string constants.
3824 (build_asm_expr): Use convert_lvalue_to_rvalue.
3825 (build_binary_op): Do not treat _Atomic void as a qualified
3826 version of void.
3827
0c249d4b
DD
38282013-11-06 DJ Delorie <dj@redhat.com>
3829
3830 * c-decl.c (locate_old_decl): If a previous conflicting decl is
3831 both explicit and builtin, print the location of the explicit one.
3832
6d7f7e0a
TB
38332013-11-05 Tobias Burnus <burnus@net-b.de>
3834
3835 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
3836 c_parser_omp_distribute, c_parser_omp_teams,
3837 c_parser_omp_target, c_parser_omp_declare): Handle
3838 -fopenmp-simd.
3839
b906f4ca
MP
38402013-11-03 Marek Polacek <polacek@redhat.com>
3841
3842 * c-decl.c (grokdeclarator): Add VLA instrumentation.
3843
ee1d5a02
JJ
38442013-11-01 Jakub Jelinek <jakub@redhat.com>
3845
3846 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
3847 check_dup_generic at the end, unless remove is true.
3848 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
3849 remove = true;.
3850 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
3851
5a9785fb
JJ
38522013-10-31 Jakub Jelinek <jakub@redhat.com>
3853
3854 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
3855 with decl that is not pointer nor array.
3856
939b37da
BI
38572013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3858
3859 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
3860 a spawning function is found.
3861 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
3862 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
3863 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
3864 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
3865 case.
3866 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
3867 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
3868 expr.
3869 (c_finish_return): Added a check to reject _Cilk_spawn in return
3870 expression.
3871 (build_cilk_spawn): New function.
3872 (build_cilk_sync): Likewise.
3873 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
3874
d4af74d4
TB
38752013-10-27 Tobias Burnus <burnus@net-b.de>
3876
3877 PR other/33426
3878 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
3879 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
3880 (c_parser_statement_after_labels): Update calls.
3881
d73749df 38822013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3883
3884 PR other/33426
3885 * c-parser.c (c_parser_pragma, c_parser_for_statement):
3886 Handle PRAGMA_IVDEP.
3887 (c_parser_statement_after_labels): Update call.
3888
f28aa681
MP
38892013-10-24 Marek Polacek <polacek@redhat.com>
3890
3891 * c-parser.c (c_parser_struct_declaration): Add a comment.
3892 (c_parser_declarator): Don't allow _Alignas here.
3893
0645c1a2
AM
38942013-10-17 Andrew MacLeod <amacleod@redhat.com>
3895
3896 * c-parser.c: Include omp-low.h.
3897 * c-typeck.c: Likewise.
3898
568a31f2
MP
38992013-10-17 Marek Polacek <polacek@redhat.com>
3900
3901 PR c/58267
3902 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
3903 Document syntax of the array-declarator.
3904 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
3905 are not permitted.
3906 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
3907 (c_parser_struct_declaration): Likewise.
3908 (c_parser_declarator): Likewise.
3909 (c_parser_direct_declarator_inner): Likewise.
3910 (c_parser_parameter_declaration): Likewise.
3911 (c_parser_type_name): Likewise.
3912
acf0174b
JJ
39132013-10-11 Jakub Jelinek <jakub@redhat.com>
3914
3915 * c-lang.h (current_omp_declare_target_attribute): New extern
3916 decl.
3917 * c-parser.c: Include c-lang.h.
3918 (struct c_parser): Change tokens to c_token *.
3919 Add tokens_buf field. Change tokens_avail type to unsigned int.
3920 (c_parser_consume_token): If parser->tokens isn't
3921 &parser->tokens_buf[0], increment parser->tokens.
3922 (c_parser_consume_pragma): Likewise.
3923 (enum pragma_context): Add pragma_struct and pragma_param.
3924 (c_parser_external_declaration): Adjust
3925 c_parser_declaration_or_fndef caller.
3926 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
3927 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
3928 Adjust recursive call.
3929 (c_parser_struct_or_union_specifier): Use pragma_struct instead
3930 of pragma_external.
3931 (c_parser_parameter_declaration): Use pragma_param instead of
3932 pragma_external.
3933 (c_parser_compound_statement_nostart, c_parser_label,
3934 c_parser_for_statement): Adjust
3935 c_parser_declaration_or_fndef callers.
3936 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
3937 it through to c_parser_conditional_expression.
3938 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
3939 pass it through to c_parser_binary_expression. Adjust recursive
3940 call.
3941 (c_parser_binary_expression): Remove prec argument, add
3942 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
3943 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
3944 binop matches it, use build2 instead of parser_build_binary_op.
3945 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
3946 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
3947 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
3948 Handle pragma_struct and pragma_param the same as pragma_external.
3949 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
3950 (c_parser_omp_variable_list): Parse array sections for
3951 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
3952 (c_parser_omp_clause_collapse): Fully fold collapse expression.
3953 (c_parser_omp_clause_reduction): Handle user defined reductions.
3954 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
3955 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
3956 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
3957 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
3958 c_parser_omp_clause_depend, c_parser_omp_clause_map,
3959 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
3960 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
3961 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
3962 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
3963 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
3964 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
3965 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
3966 (c_parser_omp_for_loop): Add CODE argument, pass it through
3967 to c_finish_omp_for. Change last argument to cclauses,
3968 and adjust uses to grab parallel clauses from the array of all
3969 the split clauses. Adjust c_parser_binary_expression,
3970 c_parser_declaration_or_fndef and c_finish_omp_for callers.
3971 (omp_split_clauses): New function.
3972 (c_parser_omp_simd): New function.
3973 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
3974 Allow the function to be called also when parsing combined constructs,
3975 and call c_parser_omp_simd when parsing for simd.
3976 (c_parser_omp_sections_scope): If section-sequence doesn't start with
3977 #pragma omp section, require exactly one structured-block instead of
3978 sequence of statements.
3979 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
3980 Allow the function to be called also when parsing combined constructs.
3981 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
3982 Allow the function to be called also when parsing combined
3983 constructs.
3984 (c_parser_omp_taskgroup, c_parser_omp_cancel,
3985 c_parser_omp_cancellation_point, c_parser_omp_distribute,
3986 c_parser_omp_teams, c_parser_omp_target_data,
3987 c_parser_omp_target_update, c_parser_omp_target,
3988 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
3989 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
3990 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
3991 (c_parser_omp_construct): Add p_name and mask vars. Handle
3992 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
3993 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
3994 and c_parser_omp_sections callers.
3995 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
3996 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
3997 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
3998 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
3999 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
4000 OMP_CLAUSE_DEPEND.
4001 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
4002 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
4003 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
4004 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
4005 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
4006 * c-typeck.c: Include tree-inline.h.
4007 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
4008 handle_omp_array_sections_1, handle_omp_array_sections,
4009 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
4010 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
4011 user defined reductions.
4012 (c_tree_equal): New function.
4013 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
4014 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
4015 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
4016 c_check_omp_declare_reduction_r): New prototypes.
4017 * c-decl.c (current_omp_declare_target_attribute): New variable.
4018 (c_decl_attributes): New function.
4019 (start_decl, start_function): Use it instead of decl_attributes.
4020 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
4021 c_omp_reduction_decl, c_omp_reduction_lookup,
4022 c_check_omp_declare_reduction_r): New functions.
4023
0a6c2227
TT
40242013-09-25 Tom Tromey <tromey@redhat.com>
4025
4026 * Make-lang.in (c/gccspec.o): Remove.
4027 (CFLAGS-c/gccspec.o): New variable.
4028 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
4029 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
4030 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
4031
f3bc55f0
TT
40322013-09-25 Tom Tromey <tromey@redhat.com>
4033
4034 * Make-lang.in (c/gccspec.o): Don't use subshell.
4035
a24d975c
MP
40362013-09-18 Marek Polacek <polacek@redhat.com>
4037
4038 PR sanitize/58443
4039 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
4040 Remove unnecessary check.
4041
ce6923c5
MP
40422013-09-18 Marek Polacek <polacek@redhat.com>
4043
4044 PR sanitizer/58411
4045 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
4046 no_sanitize_undefined attribute.
4047
a1e51df9
KT
40482013-09-13 Kai Tietz <ktietz@redhat.com>
4049
4050 PR target/57848
4051 * c-decl.c (c_builtin_function_ext_scope): Remove
4052 wrong assumption that it is never called on prexisting
4053 symbol.
4054
0af94e6f
JR
40552013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4056
4057 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
4058
20059c8b
GDR
40592013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4060
4061 * c-objc-common.c (c_tree_printer): Tidy.
4062
de5a5fa1
MP
40632013-08-30 Marek Polacek <polacek@redhat.com>
4064
4065 * c-typeck.c (build_binary_op): Add division by zero and shift
4066 instrumentation.
4067
2531a1d9 40682013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 4069 Joseph Myers <joseph@codesourcery.com>
2531a1d9 4070
6e2bcc98 4071 PR c/35649
2531a1d9
JR
4072 * c-typeck.c (c_common_type): Prefer double_type_node over
4073 other REAL_TYPE types with the same precision.
4074 (convert_arguments): Likewise.
4075
025311c4
GDR
40762013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
4077
4078 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
4079 (c_initialize_diagnostics): Call a destructor for the early printer.
4080
da6ca2b5
GDR
40812013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4082
4083 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
4084 printer initialization.
4085
318cda85 40862013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 4087
318cda85
BI
4088 PR c/57490
4089 * c-array-notation.c (fix_conditional_array_notations_1): Added a
4090 check for truth values.
4091 (expand_array_notation_exprs): Added truth values case. Removed an
4092 unwanted else. Added for-loop to walk through subtrees in default
4093 case.
4094
b066401f
GDR
40952013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4096
4097 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
4098
fb48aadc
JM
40992013-07-23 Joseph Myers <joseph@codesourcery.com>
4100
4101 * c-parser.c (struct c_generic_association): Fix typo.
4102
433cc7b0
TT
41032013-07-23 Tom Tromey <tromey@redhat.com>
4104 Joseph Myers <joseph@codesourcery.com>
4105
4106 * c-parser.c (struct c_generic_association): New.
4107 (c_generic_association_d): New typedef.
4108 (c_parser_generic_selection): New function.
4109 (c_parser_postfix_expression): Handle RID_GENERIC.
4110
26d40c3d
JM
41112013-07-13 Jason Merrill <jason@redhat.com>
4112
4113 PR c++/57793
4114 * c-decl.c (finish_struct): Check for too-large class.
4115
ecdbd01a 41162013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4117
4118 PR c/57821
4119 * c-typeck.c (set_init_index): When folding, check for index overflow.
4120
1141ed3f
BI
41212013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4122
4123 * c-parser.c (c_parser_array_notation): Removed rejection of array
4124 notations in an array of function pointers.
4125
713b46fa
BI
41262013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4127
4128 * c-array-notation.c (make_triplet_val_inv): New function.
4129 (create_cmp_incr): Likewise.
4130 (create_array_refs): Likewise.
4131 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
4132 Also modularized common parts between functions and called the function.
4133 (build_array_notation_expr): Likewise.
4134 (fix_conditional_array_notations_1): Likewise.
4135 (fix_array_notation_expr): Likewise.
4136 (fix_array_notation_call_expr): Likewise.
4137
92f20202
MP
41382013-06-18 Marek Polacek <polacek@redhat.com>
4139
4140 PR c/57630
4141 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
4142
73a23b06
BI
41432013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
4144
4145 * c-array-notation.c (build_array_notation_expr): Reject array notation
4146 mismatch between LHS and RHS even inside a call_expr. Also, removed
4147 a couple while statements that were dead code.
4148
00b8517d
BI
41492013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
4150
4151 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
4152 excessive precision expressions in function parameters. Also removed
4153 couple unwanted while statements.
4154
1509bdda
BI
41552013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4156
4157 * c-array-notation.c (expand_array_notation_exprs): Added
4158 ARRAY_NOTATION_REF case.
4159
d60f1706
BI
41602013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4161
4162 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
4163 function to c-family/array-notation-common.c.
4164 (is_cilkplus_reduce_builtin): Likewise.
4165 (find_rank): Likewise.
4166 (extract_array_notation_exprs): Likewise.
4167 (replace_array_notations): Likewise.
4168 (find_inv_trees): Likewise.
4169 (replace_inv_trees): Likewise.
4170 (contains_array_notation_expr): Likewise.
4171 (find_correct_array_notation_type): Likewise.
4172 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
4173 (struct inv_list): Moved this to c-family/array-notation-common.c.
4174 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
4175
6d6efbb3
BI
41762013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
4177
4178 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
4179 reduction functions outside the for-loop. Added a check if the fundecl
4180 is non-NULL. Finally, removed an unwanted if-statement, and made the
4181 body unconditional.
4182
25c22937
BI
41832013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
4184
4185 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
4186 condition of the if-statement matches the rank of else-block and then-
4187 block when array notations are used.
4188 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
4189 expression after the entire function body is parsed.
4190 (c_parser_expr_no_commas): Delayed creating array notation expressions
4191 to the end of function parsing.
4192 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
4193 whole if-statement instead of just the condition.
4194 (expand_array_notation_exprs): Added MODIFY_EXPR case.
4195
edd25645
BI
41962013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
4197
4198 PR c/57474
4199 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
4200 array to NULL_TREE if they are unused. Also added a check for the
4201 field to be NULL before its fields are used in future.
4202
065ce7f1
RO
42032013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4204
4205 PR bootstrap/57450
4206 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
4207 (build_array_notation_expr): Likewise.
4208
36536d79
BI
42092013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4210
4211 * c-typeck.c (build_array_ref): Added a check to see if array's
4212 index is greater than one. If true, then emit an error.
4213 (build_function_call_vec): Exclude error reporting and checking
4214 for builtin array-notation functions.
4215 (convert_arguments): Likewise.
4216 (c_finish_return): Added a check for array notations as a return
4217 expression. If true, then emit an error.
4218 (c_finish_loop): Added a check for array notations in a loop
4219 condition. If true then emit an error.
4220 (lvalue_p): Added a ARRAY_NOTATION_REF case.
4221 (build_binary_op): Added a check for array notation expr inside
4222 op1 and op0. If present, we call another function to find correct
4223 type.
4224 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
4225 * c-parser.c (c_parser_compound_statement): Check if array
4226 notation code is used in tree, if so, then transform them into
4227 appropriate C code.
4228 (c_parser_expr_no_commas): Check if array notation is used in LHS
4229 or RHS, if so, then build array notation expression instead of
4230 regular modify.
4231 (c_parser_postfix_expression_after_primary): Added a check for
4232 colon(s) after square braces, if so then handle it like an array
4233 notation. Also, break up array notations in unary op if found.
4234 (c_parser_direct_declarator_inner): Added a check for array
4235 notation.
4236 (c_parser_compound_statement): Added a check for array notation in
4237 a stmt. If one is present, then expand array notation expr.
4238 (c_parser_if_statement): Likewise.
4239 (c_parser_switch_statement): Added a check for array notations in
4240 a switch statement's condition. If true, then output an error.
4241 (c_parser_while_statement): Similarly, but for a while.
4242 (c_parser_do_statement): Similarly, but for a do-while.
4243 (c_parser_for_statement): Similarly, but for a for-loop.
4244 (c_parser_unary_expression): Check if array notation is used in a
4245 pre-increment or pre-decrement expression. If true, then expand
4246 them.
4247 (c_parser_array_notation): New function.
4248 * c-array-notation.c: New file.
4249 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
4250
cd192ccc
MS
42512013-05-23 Mike Stump <mikestump@comcast.net>
4252
4253 * c-typeck.c (convert_for_assignment): Handle references to memory
4254 spaces better.
4255
427b248d
JM
42562013-05-16 Jason Merrill <jason@redhat.com>
4257
4258 * Make-lang.in (cc1$(exeext)): Use link mutex.
4259
44d90fe1
PC
42602013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4261
4262 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
4263 to simply use OPT_Wpointer_arith.
4264 (build_unary_op): Likewise.
4265
4e7d7b3d
JJ
42662013-04-03 Jakub Jelinek <jakub@redhat.com>
4267
4268 PR c/19449
4269 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
4270 argument. If set, or it temporarily for parsing of the first
4271 argument into force_folding_builtin_constant_p.
4272 (c_parser_postfix_expression): Adjust callers.
4273
839b422f
RB
42742013-03-21 Richard Biener <rguenther@suse.de>
4275
4276 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4277 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
4278
2ee028f1
MP
42792013-02-12 Marek Polacek <polacek@redhat.com>
4280
4281 PR c/44938
4282 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
4283 origtypes to NULL.
4284
8824edff
JJ
42852013-01-24 Jakub Jelinek <jakub@redhat.com>
4286
4287 PR c/56078
4288 * c-typeck.c (set_nonincremental_init_from_string): If
4289 constructor_max_index is NULL, treat it as if tree_int_cst_lt
4290 returned false.
4291 (process_init_element): Likewise.
4292
eadd3d0d
JJ
42932012-12-20 Jakub Jelinek <jakub@redhat.com>
4294
4295 PR c++/55619
4296 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
4297 argument, don't call default_function_array_conversion
4298 nor c_fully_fold here.
4299 (c_parser_asm_statement): Adjust callers.
4300 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
4301 and outputs here, and call default_function_array_conversion
4302 on inputs that don't need to be addressable.
4303
f8a93a2e
JJ
43042012-12-18 Jakub Jelinek <jakub@redhat.com>
4305
4306 PR c/39464
4307 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
4308 warning require that both c_common_unsigned_type as well as
4309 c_common_signed_type is the same for both mvl and mvr types.
4310
9771b263
DN
43112012-11-16 Diego Novillo <dnovillo@google.com>
4312
4313 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
4314
4315 * c-common.c: Use new vec API in vec.h.
4316 * c-common.h: Likewise.
4317 * c-gimplify.c: Likewise.
4318 * c-pragma.c: Likewise.
4319 * c-pretty-print.c: Likewise.
4320 * c-pretty-print.h: Likewise.
4321 * c-semantics.c: Likewise.
4322 * c-decl.c: Likewise.
4323 * c-parser.c: Likewise.
4324 * c-tree.h: Likewise.
4325 * c-typeck.c: Likewise.
4326
880661a4
JW
43272012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4328
4329 PR c++/54930
4330 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
4331
077d1abe
MLI
43322012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4333
4334 PR c/53066
4335 * c-decl.c (warn_if_shadowing): Do not warn if a variable
4336 shadows a function, unless the variable is a function or a
4337 pointer-to-function.
4338
3a785c97
JJ
43392012-10-12 Jakub Jelinek <jakub@redhat.com>
4340
4341 PR c/54381
4342 * c-parser.c (struct c_tree_loc_pair): Removed.
4343 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
4344 add location_t * and tree * arguments, fill in array of 3
4345 sizeof_arg trees and corresponding locs.
4346 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
4347 c_parser_expr_list callers.
4348 (c_parser_postfix_expression_after_primary): Likewise. Pass
4349 array of 3 sizeof_arg trees and locs (corresponding to first
4350 3 arguments) to sizeof_pointer_memaccess_warning.
4351
703c8606
LC
43522012-10-09 Lawrence Crowl <crowl@google.com>
4353
4354 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
4355 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
4356 hash table.
4357
5d9de0d0
PC
43582012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4359
4360 PR c++/54194
4361 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
4362 call.
4363
a212e43f
MG
43642012-10-09 Marc Glisse <marc.glisse@inria.fr>
4365
4366 PR c++/54427
4367 * c-typeck.c: Include c-common.h.
4368 (enum stv_conv): Moved to c-common.h.
4369 (scalar_to_vector): Moved to c-common.c.
4370 (build_binary_op): Adapt to scalar_to_vector's new prototype.
4371 * Make-lang.in: c-typeck.c depends on c-common.h.
4372
3b78de56
AC
43732012-10-04 Arnaud Charlet <charlet@adacore.com>
4374
4375 * c-decl.c (c_write_global_declarations): Fix handling of
4376 -fdump-ada-spec*.
4377
78c60e3d
SS
43782012-09-30 Sharad Singhai <singhai@google.com>
4379
4380 * c-decl.c (c_write_global_declarations): Use a different method
4381 to determine if the dump has ben initialized.
4382
9f33203d
JM
43832012-09-14 Joseph Myers <joseph@codesourcery.com>
4384
4385 PR c/54552
4386 * c-typeck.c (c_cast_expr): When casting to a type requiring
4387 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
4388 c_fully_fold first.
4389
a27d595d
JM
43902012-09-14 Joseph Myers <joseph@codesourcery.com>
4391
4392 PR c/54103
4393 * c-typeck.c (build_unary_op): Pass original argument of
4394 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
4395 any C_MAYBE_CONST_EXPR, if it has integer operands.
4396 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
4397 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
4398 to c_objc_common_truthvalue_conversion, then remove any
4399 C_MAYBE_CONST_EXPR, if they have integer operands. Use
4400 c_objc_common_truthvalue_conversion not
4401 c_common_truthvalue_conversion.
4402 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
4403 call note_integer_operands for arguments with integer operands
4404 that are not integer constants.
4405
9feb29df
JJ
44062012-09-13 Jakub Jelinek <jakub@redhat.com>
4407
4408 PR c/54559
4409 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
4410 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
4411
d409320c
JJ
44122012-08-31 Jakub Jelinek <jakub@redhat.com>
4413
4414 PR c/54428
4415 * c-convert.c (convert): Don't call fold_convert_loc if
4416 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
4417 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
4418 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
4419
6265d07c
JJ
44202012-08-24 Jakub Jelinek <jakub@redhat.com>
4421
4422 PR c/54355
4423 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
4424 for nested and empty_ok arguments in the call to
4425 c_parser_declaration_or_fndef.
4426
1a4049e7
JJ
44272012-08-17 Jakub Jelinek <jakub@redhat.com>
4428
4429 * c-tree.h (c_last_sizeof_arg): Declare.
4430 * c-parser.c (struct c_tree_loc_pair): New type.
4431 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
4432 non-NULL.
4433 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
4434 (c_parser_postfix_expression_after_primary): Likewise. Call
4435 sizeof_pointer_memaccess_warning if needed.
4436 (sizeof_ptr_memacc_comptypes): New function.
4437 * c-typeck.c (c_last_sizeof_arg): New global variable.
4438 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
4439
0229aee9
UB
44402012-07-24 Uros Bizjak <ubizjak@gmail.com>
4441
4442 * c-lang.h (lang_decl): Add variable_size GTY option.
4443
7ee2468b
SB
44442012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4445
4446 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
4447 * Make-lang.in: Fix dependencies.
4448
d4a10d0a
SB
44492012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4450
4451 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
4452 and add language Makefile hooks.
4453 * config-lang.in: New file.
4454 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
4455 add the required "normal" config-lang.in rules.
4456 * c-lang.h: Moved from gcc/ to here.
4457 * c-tree.h: Likewise.
4458 * c-objc-common.c: Likewise.
4459 * c-objc-common.h: Likewise.
4460 * c-typeck.c: Likewise.
4461 * c-convert.c: Likewise.
4462 * c-lang.c: Likewise.
4463 * c-aux-info.c: Likewise.
4464 * c-errors.c: Likewise.
4465 * gccspec.c: Likewise.
4466 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
4467 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
4468\f
cbe34bb5 4469Copyright (C) 2012-2017 Free Software Foundation, Inc.
d4a10d0a
SB
4470
4471Copying and distribution of this file, with or without modification,
4472are permitted in any medium without royalty provided the copyright
4473notice and this notice are preserved.
This page took 1.781162 seconds and 5 git commands to generate.