]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
Revert pushdecl_top_level_and_finish name change.
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
c587104e
MM
12017-05-11 Mikhail Maltsev <maltsevm@gmail.com>
2
3 PR testsuite/80580
4 * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base.
5
67ac9a9d
MM
62017-05-11 Mikhail Maltsev <maltsevm@gmail.com>
7
8 PR testsuite/80580
9 * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
10 incorrect __MEM syntax.
11
ac4eb40f
MM
122017-05-11 Mikhail Maltsev <maltsevm@gmail.com>
13
14 PR testsuite/80580
15 * gimple-parser.c (c_parser_gimple_unary_expression): Check argument
16 type of unary '*'.
17
641da50a
NS
182017-05-09 Nathan Sidwell <nathan@acm.org>
19
20 * c-tree.h (pushdecl): Declare.
21
56d35585
DM
222017-05-05 David Malcolm <dmalcolm@redhat.com>
23
24 * c-decl.c (warn_defaults_to): Replace report_diagnostic
25 with diagnostic_report_diagnostic.
26 * c-errors.c (pedwarn_c99): Likewise.
27 (pedwarn_c90): Likewise.
28
815d9cc6
XR
292017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
30
31 PR c++/80038
32 * c-gimplify.c (c_gimplify_expr): Remove calls to
33 cilk_gimplifY_call_params_in_spawned_fn.
34
1c4ea66f
DM
352017-04-25 David Malcolm <dmalcolm@redhat.com>
36
37 * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it
38 hint for removing extra semicolon.
39
666f7903
JJ
402017-04-21 Jakub Jelinek <jakub@redhat.com>
41
42 PR c/80468
43 * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not
44 enabled, set specs->type to integer_type_node.
45
5764ee3c
JW
462017-04-03 Jonathan Wakely <jwakely@redhat.com>
47
48 * c-array-notation.c: Fix typo in comment.
49
10fa8dfb
MP
502017-03-29 Marek Polacek <polacek@redhat.com>
51
52 PR c/79730
53 * c-decl.c (finish_decl): Check VAR_P.
54
a9e4a1a5
JJ
552017-03-27 Jakub Jelinek <jakub@redhat.com>
56
57 PR middle-end/80162
58 * c-tree.h (c_mark_addressable): Add array_ref_p argument.
59 * c-typeck.c (c_mark_addressable): Likewise. Look through
60 VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE
61 to ARRAY_TYPE.
62 (build_array_ref): Pass true as array_ref_p to c_mark_addressable.
63
ee3ff394
MP
642017-03-23 Marek Polacek <polacek@redhat.com>
65
66 * c-tree.h: Remove a C_RID_YYCODE reference.
67
4d1b8e70
JJ
682017-03-21 Jakub Jelinek <jakub@redhat.com>
69
70 PR c/80097
71 * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around
72 optional COMPOUND_EXPR with ubsan instrumentation.
73
31dc71a8
MP
742017-03-17 Marek Polacek <polacek@redhat.com>
75
76 * c-parser.c: Add C11 references.
77
d579c385
MP
782017-03-15 Marek Polacek <polacek@redhat.com>
79
80 * c-parser.c (c_parser_enum_specifier): Remove redundant line.
81
85059a38
MP
822017-03-11 Marek Polacek <polacek@redhat.com>
83
84 * c-decl.c (implicit_decl_warning): Add a comment. Fix formatting.
85
2f6f187a
DM
862017-03-10 David Malcolm <dmalcolm@redhat.com>
87
88 PR translation/79848
89 * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to
90 "%qs".
91 * c-parser.c (c_parser_oacc_shape_clause): Likewise.
92
36618428
MP
932017-03-09 Marek Polacek <polacek@redhat.com>
94
95 PR sanitizer/79757
96 * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style
97 parameter declarations with initializers.
98
01e5af5a
JJ
992017-03-09 Jakub Jelinek <jakub@redhat.com>
100
101 PR c/79969
102 * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of
103 TYPE_STUB_DECL.
104
a71dbc63
JJ
1052017-03-07 Jakub Jelinek <jakub@redhat.com>
106
107 PR c/79834
108 * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error
109 for "may only be used in compound statements" diagnostics, change it
110 such that the same translatable string is used for all pragmas. For
111 PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the
112 diagnostics.
113 (c_parser_omp_cancellation_point, c_parser_omp_target_update,
114 c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change
115 "may only be used in compound statements" diagnostics, such that the
116 same translatable string is used for all pragmas.
117
1ff4bae6
MP
1182017-03-04 Marek Polacek <polacek@redhat.com>
119
120 PR c/79847
121 * c-decl.c (implicit_decl_warning): Add missing space.
122
7f5a7d78
MP
1232017-03-03 Marek Polacek <polacek@redhat.com>
124
125 PR c/79758
126 * c-decl.c (store_parm_decls_oldstyle): Check if the element of
127 current_function_prototype_arg_types is error_mark_node. Fix
128 formatting. Use TREE_VALUE instead of TREE_TYPE.
129
883c8f06
JJ
1302017-03-03 Jakub Jelinek <jakub@redhat.com>
131
79c9b7a8
JJ
132 PR c/79837
133 * c-parser.c (c_parser_omp_clause_reduction): Don't mention
134 %<min%> or %<max%> in the diagnostics, instead mention identifier.
135 (c_parser_omp_declare_reduction): Don't mention %<min%> in the
136 diagnostics.
137
883c8f06
JJ
138 PR c/79836
139 * c-parser.c (c_parser_generic_selection): Use %<_Generic%>
140 instead of %<_Generic>.
141 (c_parser_omp_ordered): Use %<depend%> instead of %<depend>.
142 (c_parser_omp_target_exit_data): Use %<release%> instead of
143 %<release>.
144
324ff1a0
JJ
1452017-02-28 Jakub Jelinek <jakub@redhat.com>
146
147 * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...")
148 instead of just cond ? "..." : "...".
149 (c_parser_oacc_enter_exit_data): Use %s and ternary operator only
150 for "enter"/"exit" keyword.
151 (c_finish_oacc_routine): Don't use %s to supply portions of the
152 message.
153
4227c9ad
JJ
1542017-02-24 Jakub Jelinek <jakub@redhat.com>
155
156 PR c++/79588
157 * c-parser.c (c_parser_postfix_expression_after_primary): Don't
158 handle -Wrestrict here.
159 * c-typeck.c (build_function_call_vec): Adjust
160 check_function_arguments caller.
161
5d972e66
RB
1622017-02-23 Richard Biener <rguenther@suse.de>
163
164 PR c/79684
165 * gimple-parser.c (c_parser_gimple_statement): Use set_error
166 to initialize c_exprs to return.
167 (c_parser_gimple_binary_expression): Likewise.
168 (c_parser_gimple_unary_expression): Likewise.
169 (c_parser_gimple_postfix_expression): Likewise.
170
61ac5ebe
MP
1712017-02-22 Marek Polacek <polacek@redhat.com>
172
173 PR c/79662
174 * c-typeck.c (convert_arguments): Handle error_mark_node.
175
41d1b0b1
PK
1762017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
177
178 * gimple-parser.c (c_parser_gimple_postfix_expression): Check return
179 value of c_parser_parse_ssa_name against error_mark_node and emit
180 error if ssa name is anonymous and written as default definition.
181
eab1f169
PK
1822017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
183
184 * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
185 FMA_EXPR.
186
bcac0b4d
JJ
1872017-02-16 Jakub Jelinek <jakub@redhat.com>
188
189 PR c++/79512
190 * c-parser.c (c_parser_omp_target): For -fopenmp-simd
191 ignore #pragma omp target even when not followed by identifier.
192
1be33173
PK
1932017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
194
195 * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR.
196 (c_parser_gimple_unary_expression): Likewise.
197
aa326bfb
JJ
1982017-02-13 Jakub Jelinek <jakub@redhat.com>
199
200 * c-parser.c (c_parser_oacc_declare): Add missing space in
201 diagnostics.
202
8a398bc5
PK
2032017-02-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
204
205 PR c/79478
206 * gimple-parser.c (c_parser_gimple_postfix_expression): Call
207 set_c_expr_source_range when parsing ssa-name.
208
3dcde5ef
PG
2092017-02-10 Prasad Ghangal <prasad.ghangal@gmail.com>
210 Richard Biener <rguenther@suse.de>
211
212 * gimple-parser.c (c_parser_gimple_binary_expression): Avoid
213 building IL when arguments are error_mark_node.
214 (c_parser_gimple_unary_expression): Likewise.
215 (c_parser_gimple_if_stmt): Likewise.
216 (c_parser_gimple_switch_stmt): Likewise.
217 (c_parser_gimple_return_stmt): Likewise.
218 (c_parser_parse_ssa_name): When name lookup fails do not build
219 an SSA name. Use undeclared rather than not declared in error
220 reporting.
221
192b048b
MP
2222017-02-09 Marek Polacek <polacek@redhat.com>
223
224 PR c/79428
225 * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
226 instead of c_parser_skip_until_found.
227
56f71478
JJ
2282017-02-09 Jakub Jelinek <jakub@redhat.com>
229
230 PR c/79431
231 * c-parser.c (c_parser_omp_declare_target): Don't invoke
232 symtab_node::get on automatic variables.
233
02889d23
CLT
2342016-02-09 Nathan Sidwell <nathan@codesourcery.com>
235 Chung-Lin Tang <cltang@codesourcery.com>
236
237 * c-parser.c (c_parser_omp_clause_collapse): Disallow tile.
238 (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and
239 semantic checking.
240 * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs.
241
7af4b20d
RB
2422017-02-07 Richard Biener <rguenther@suse.de>
243
244 * gimple-parser.c (c_parser_gimple_expr_list): Simplify.
245 (c_parser_gimple_postfix_expression_after_primary):
246 Do not use c_build_function_call_vec to avoid folding and promotion.
247 Simplify.
248
e5e391d6
MO
2492017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
250
251 PR lto/79061
252 * c-decl.c (pop_scope): Pass main_input_filename to
253 build_translation_unit_decl.
254
c2e84327
DM
2552017-01-24 David Malcolm <dmalcolm@redhat.com>
256
257 * c-parser.c: Include "read-rtl-function.h" and
258 "run-rtl-passes.h".
259 (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in
260 grammar to gimple-or-rtl-pass-list. Add rtl-function-definition
261 production. Update for renaming of field "gimple_pass" to
262 "gimple_or_rtl_pass". If __RTL was seen, call
263 c_parser_parse_rtl_body. Convert a timevar_push/pop pair
264 to an auto_timevar, to cope with early exit.
265 (c_parser_declspecs): Update RID_GIMPLE handling for renaming of
266 field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of
267 c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list.
268 Handle RID_RTL.
269 (c_parser_parse_rtl_body): New function.
270 * c-tree.h (enum c_declspec_word): Add cdw_rtl.
271 (struct c_declspecs): Rename field "gimple_pass" to
272 "gimple_or_rtl_pass". Add field "rtl_p".
273 * gimple-parser.c (c_parser_gimple_pass_list): Rename to...
274 (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly.
275 * gimple-parser.h (c_parser_gimple_pass_list): Rename to...
276 (c_parser_gimple_or_rtl_pass_list): ...this.
277
2ebd93e1
MP
2782017-01-20 Marek Polacek <polacek@redhat.com>
279
280 PR c/64279
281 * c-typeck.c (build_conditional_expr): Warn about duplicated branches.
282
b1c95bb5
RB
2832017-01-13 Richard Biener <rguenther@suse.de>
284
285 * gimple-parser.c (c_parser_gimple_compound_statement): Handle
286 nops.
287
25329913
RB
2882017-01-13 Richard Biener <rguenther@suse.de>
289
290 * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
291 _Literal ( type-name ) number.
292
6bb4ea5c
RB
2932017-01-12 Richard Biener <rguenther@suse.de>
294
295 * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
296 __MEM.
297
6b5b4e9c
JJ
2982017-01-11 Jakub Jelinek <jakub@redhat.com>
299
300 PR c++/72813
301 * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing
302 PCH file.
303
e3252775
RB
3042017-01-11 Richard Biener <rguenther@suse.de>
305
306 PR bootstrap/79052
307 * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing
308 returns on parse errors.
309
a9342885
MP
3102017-01-04 Marek Polacek <polacek@redhat.com>
311
312 PR c++/64767
313 * c-parser.c (c_parser_postfix_expression): Mark zero character
314 constants by setting original_type in c_expr.
315 * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared
316 with a zero character constant.
317 (char_type_p): New function.
318
5dd9a9d0
DM
3192017-01-04 David Malcolm <dmalcolm@redhat.com>
320
321 * c-parser.c (c_parser_declaration_or_fndef): Create a
322 rich_location at init_loc and parse it to start_init.
323 (last_init_list_comma): New global.
324 (c_parser_braced_init): Update last_init_list_comma when parsing
325 commas. Pass it to pop_init_level. Pass location of closing
326 brace to pop_init_level.
327 (c_parser_postfix_expression_after_paren_type): Create a
328 rich_location at type_loc and parse it to start_init.
329 (c_parser_omp_declare_reduction): Likewise for loc.
330 * c-tree.h (start_init): Add rich_location * param.
331 (pop_init_level): Add location_t param.
332 * c-typeck.c (struct initializer_stack): Add field
333 "missing_brace_richloc".
334 (start_init): Add richloc param, use it to initialize
335 the stack node's missing_brace_richloc.
336 (last_init_list_comma): New decl.
337 (finish_implicit_inits): Pass last_init_list_comma to
338 pop_init_level.
339 (push_init_level): When finding missing open braces, add fix-it
340 hints to the richloc.
341 (pop_init_level): Add "insert_before" param and pass it
342 when calling pop_init_level. Add fixits about missing
343 close braces to any richloc. Use the richloc for the
344 -Wmissing-braces warning.
345 (set_designator): Pass last_init_list_comma to pop_init_level.
346 (process_init_element): Likewise.
347
cbe34bb5
JJ
3482017-01-01 Jakub Jelinek <jakub@redhat.com>
349
350 Update copyright years.
351
d17680f3
JJ
3522016-12-21 Jakub Jelinek <jakub@redhat.com>
353
0dba7960
JJ
354 PR bootstrap/78817
355 * c-typeck.c (build_function_call_vec): If check_function_arguments
356 returns true, set TREE_NO_WARNING on CALL_EXPR.
357
d17680f3
JJ
358 PR c/77767
359 * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
360 to *expr instead of overwriting it.
361
aa90531e
RB
3622016-12-20 Richard Biener <rguenther@suse.de>
363
364 * gimple-parser.c (c_parser_gimple_compound_statement): Improve
365 error recovery.
366 (c_parser_gimple_statement): Only build assigns for non-error
367 stmts.
368 (c_parser_gimple_postfix_expression_after): Improve error recovery.
369
629b3d75
MJ
3702016-12-14 Martin Jambor <mjambor@suse.cz>
371
372 * c-parser.c: Include omp-general.h and omp-offload.h instead of
373 omp-low.h.
374 (c_finish_oacc_routine): Adjusted call to
375 get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib
376 to use their new names.
377 (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to
378 use its new name.
379 (c_parser_oacc_update): Likewise.
380 (c_parser_omp_simd): Likewise.
381 (c_parser_omp_target_update): Likewise.
382 * c-typeck.c: Include omp-general.h instead of omp-low.h.
383 (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new
384 name.
385 (c_finish_omp_cancellation_point): Likewise.
386 * gimple-parser.c: Do not include omp-low.h
387
c5af52eb
CP
3882016-12-02 Cesar Philippidis <cesar@codesourcery.com>
389 James Norris <jnorris@codesourcery.com>
390
391 * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
392 EXIT_DATA,WAIT} are not used in compound statements.
393 (c_parser_oacc_enter_exit_data): Update diagnostics.
394
48330c93
BE
3952016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
396
397 PR c++/71973
398 * c-decl.c (diagnose_mismatched_decls): Use
399 OPT_Wbuiltin_declaration_mismatch here too.
400
899ca90e 4012016-11-18 Richard Sandiford <richard.sandiford@arm.com>
48330c93
BE
402 Alan Hayward <alan.hayward@arm.com>
403 David Sherwood <david.sherwood@arm.com>
899ca90e
RS
404
405 * c-decl.c (merge_decls): Use SET_DECL_MODE.
406 (make_label, finish_struct): Likewise.
407
1ee62b92 4082016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17 409 Richard Biener <rguenther@suse.de>
22b15758 410
8e745a17
JJ
411 * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o.
412 * config-lang.in (gtfiles): Add c/c-parser.h.
413 * c-tree.h (enum c_declspec_word): Add cdw_gimple.
414 (struct c_declspecs): Add gimple_pass member and gimple_p flag.
415 * c-parser.c (enum c_id_kind, struct c_token,
416 c_parser_next_token_is, c_parser_next_token_is_not,
417 c_parser_next_token_is_keyword,
418 enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec):
419 Split out to ...
420 * c-parser.h: ... new header.
421 * c-parser.c: Include c-parser.h and gimple-parser.h.
1ee62b92 422 (c_parser_peek_token, c_parser_peek_2nd_token,
8e745a17
JJ
423 c_token_starts_typename, c_parser_next_token_starts_declspecs,
424 c_parser_next_tokens_start_declaration, c_parser_consume_token,
425 c_parser_error, c_parser_require, c_parser_skip_until_found,
426 c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
427 c_parser_type_name): Export.
428 (c_parser_tokens_buf): New function.
429 (c_parser_error): Likewise.
430 (c_parser_set_error): Likewise.
431 (c_parser_declspecs): Handle RID_GIMPLE.
1ee62b92
PG
432 (c_parser_declaration_or_fndef): Parse __GIMPLE marked body
433 via c_parser_parse_gimple_body.
8e745a17
JJ
434 * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token,
435 c_token_starts_typename, c_parser_next_token_starts_declspecs,
436 c_parser_next_tokens_start_declaration, c_parser_consume_token,
437 c_parser_error, c_parser_require, c_parser_skip_until_found,
438 c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
439 c_parser_type_name): Declare.
1ee62b92
PG
440 (struct c_parser): Declare forward.
441 (c_parser_tokens_buf): Declare.
8e745a17
JJ
442 (c_parser_error): Likewise.
443 (c_parser_set_error): Likewise.
444 * gimple-parser.c: New file.
445 * gimple-parser.h: Likewise.
1ee62b92 446
22b15758
UB
4472016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
448
449 PR c/35503
450 * c-parser.c (c_parser_postfix_expression_after_primary): Call
451 warn_for_restrict.
452
84ff4775
LCW
4532016-09-11 Le-Chun Wu <lcwu@google.com>
454 Mark Wielaard <mjw@redhat.com>
455
456 * c-decl.c (warn_if_shadowing): Use the warning code corresponding
457 to the given -Wshadow= variant.
458
4d0cdd0c
TP
4592016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
460
461 * c-typeck.c: Include memmodel.h.
462
1202f33e
JJ
4632016-10-13 Jakub Jelinek <jakub@redhat.com>
464
465 PR target/77957
466 * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
467 instead of lhd_return_null_tree_v.
468
8a14afd0
BS
4692016-10-07 Bernd Schmidt <bschmidt@redhat.com>
470
471 PR c++/69733
472 * c-decl.c (smallest_type_quals_location): New static function.
473 (grokdeclarator): Try to find the correct location for an ignored
474 qualifier.
475
81fea426
MP
4762016-09-26 Marek Polacek <polacek@redhat.com>
477
478 PR c/7652
479 * c-decl.c (pop_scope): Add gcc_fallthrough.
480
4812016-09-26 Marek Polacek <polacek@redhat.com>
482
483 PR c/7652
484 * c-parser.c (struct c_token): Add flags field.
485 (c_lex_one_token): Pass it to c_lex_with_flags.
486 (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough));
487 into IFN_FALLTHROUGH.
488 (c_parser_label): Set FALLTHROUGH_LABEL_P on labels. Handle
489 attribute fallthrough after a case label or default label.
490 (c_parser_statement_after_labels): Handle RID_ATTRIBUTE.
491
9a2300e9
MP
4922016-09-24 Marek Polacek <polacek@redhat.com>
493
494 PR c/77490
495 * c-typeck.c (build_unary_op): Warn about bit not on expressions that
496 have boolean value. Warn about ++/-- on booleans.
497
7de76362
JJ
4982016-09-23 Jakub Jelinek <jakub@redhat.com>
499
500 * c-parser.c (incomplete_record_decls): Remove unnecessary
501 = vNULL initialization of file scope vec.
502
5b73d2ab
MP
5032016-09-16 Marek Polacek <polacek@redhat.com>
504
505 * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
506
e51fbec3
MP
5072016-09-14 Marek Polacek <polacek@redhat.com>
508
509 * c-array-notation.c (create_cmp_incr): Use false instead of 0.
510 (fix_array_notation_expr): Likewise.
511 * c-decl.c (finish_decl): Likewise.
512 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
513 * c-typeck.c (array_to_pointer_conversion): Use true instead of 1.
514 (function_to_pointer_conversion): Use false instead of 0.
515 (convert_lvalue_to_rvalue): Likewise.
516 (parser_build_unary_op): Likewise.
517 (build_atomic_assign): Likewise.
518 (build_unary_op): Change nonconvert parameter type to bool, use
519 true/false instead of 1/0.
520 (build_binary_op): Use true instead of 1.
521
254830ba
DM
5222016-09-13 David Malcolm <dmalcolm@redhat.com>
523
524 * c-parser.c (c_parser_declaration_or_fndef): Update for renaming
525 of add_fixit_insert to add_fixit_insert_before.
526
4c13ba17
MP
5272016-09-13 Marek Polacek <polacek@redhat.com>
528
529 * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT. Use
530 it.
531
54dcdb88
BE
5322016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
533
534 PR c++/77496
535 * c-parser.c (c_parser_conditional_expression): Pass the rightmost
536 COMPOUND_EXPR to warn_for_omitted_condop.
537
e5106e27
DM
5382016-09-07 David Malcolm <dmalcolm@redhat.com>
539
540 * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use
541 c_get_substring_location for this new langhook.
542
9dc5773f
JJ
5432016-09-02 Jakub Jelinek <jakub@redhat.com>
544
545 PR c/65467
546 * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if
547 flag_openmp.
548 (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue
549 instead of mark_exp_read on low_bound/length expression.
550 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads,
551 c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
552 c_parser_omp_clause_priority, c_parser_omp_clause_hint,
553 c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause,
554 c_parser_oacc_clause_tile, c_parser_omp_clause_schedule,
555 c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams,
556 c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned,
557 c_parser_omp_clause_linear, c_parser_omp_clause_safelen,
558 c_parser_omp_clause_simdlen, c_parser_omp_clause_device,
559 c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue
560 instead of mark_expr_read.
561 (c_parser_omp_declare_reduction): Reject _Atomic qualified types.
562 * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
563 LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine.
564 * c-tree.h (c_omp_clause_copy_ctor): New prototype.
565 * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified
566 array section bases outside of depend clause, for depend clause
567 use convert_lvalue_to_rvalue on the base.
568 (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction,
569 linear, aligned, map, to and from clauses.
570 (c_omp_clause_copy_ctor): New function.
571
295844f6
MP
5722016-09-01 Marek Polacek <polacek@redhat.com>
573
574 PR c/7652
575 * c-typeck.c (composite_type): Add FALLTHRU comment.
576
089af25c
DM
5772016-08-31 David Malcolm <dmalcolm@redhat.com>
578
579 * c-parser.c (c_parser_declaration_or_fndef): Add trailing space
580 to the insertion fixits for "struct", "union", and "enum".
581
f9087798
DM
5822016-08-30 David Malcolm <dmalcolm@redhat.com>
583
584 * c-decl.c (implicit_decl_warning): Use add_fixit_replace
585 rather than add_fixit_misspelled_id.
586 (undeclared_variable): Likewise.
587 * c-parser.c (c_parser_declaration_or_fndef): Likewise. Remove
588 now-redundant "here" params from add_fixit_insert method calls.
589 (c_parser_parameter_declaration): Likewise.
590 * c-typeck.c (build_component_ref): Remove now-redundant range
591 param from add_fixit_replace method calls.
592
ebef225f
MP
5932016-08-25 Marek Polacek <polacek@redhat.com>
594
595 * c-typeck.c (parser_build_binary_op): Pass LHS to
596 warn_logical_not_parentheses.
597
fe377a48
MP
5982016-08-25 Marek Polacek <polacek@redhat.com>
599
600 PR c/77323
601 * c-decl.c (declspecs_add_type): Set typespec_word even when __intN
602 or _FloatN or _FloatNx is not supported.
603 (finish_declspecs): Set type to integer_type_node when _FloatN or
604 _FloatNx is not supported.
605
c65699ef
JM
6062016-08-19 Joseph Myers <joseph@codesourcery.com>
607
608 PR c/32187
609 * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value.
610 (struct c_declspecs): Add field floatn_nx_idx.
611 * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN
612 and _FloatNx type specifiers.
613 * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs)
614 (c_parser_declspecs, c_parser_attribute_any_word)
615 (c_parser_objc_selector): Use CASE_RID_FLOATN_NX.
616 * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types.
617 (convert_arguments): Avoid promoting _FloatN and _FloatNx types
618 narrower than double.
619
2f1364c2
JJ
6202016-08-12 Jakub Jelinek <jakub@redhat.com>
621 Martin Liska <mliska@suse.cz>
622
623 PR c/67410
624 * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
625 % to determine val element to change. Assert that
626 wchar_bytes * charwidth fits into val array.
627
191816a3
MP
6282016-08-12 Marek Polacek <polacek@redhat.com>
629
630 PR c/7652
631 * c-parser.c (c_parser_external_declaration): Add FALLTHRU.
632 (c_parser_postfix_expression): Likewise.
633 * c-typeck.c (build_unary_op): Adjust fall through comment.
634 (c_mark_addressable): Likewise.
635
b95a64bb
JJ
6362016-08-11 Jakub Jelinek <jakub@redhat.com>
637
638 PR c/72816
639 * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
640 array member through typedef, for orig_qual_indirect == 0 clear
641 orig_qual_type.
642
895aa8e1
DM
6432016-08-08 David Malcolm <dmalcolm@redhat.com>
644
645 PR c/64955
646 * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire
647 this up to selftest::run_c_tests.
648 (selftest::run_c_tests): New function.
649
0b212d8c
TS
6502016-08-04 Thomas Schwinge <thomas@codesourcery.com>
651
ae9281fc
TS
652 * c-parser.c (struct oacc_routine_data): Add error_seen and
653 fndecl_seen members.
654 (c_finish_oacc_routine): Use these.
655 (c_parser_declaration_or_fndef): Adjust.
656 (c_parser_oacc_routine): Likewise. Support more C language
657 constructs, and improve diagnostics. Move pragma context
658 checking...
659 (c_parser_pragma): ... here.
660
0b212d8c
TS
661 * c-parser.c (struct oacc_routine_data): New.
662 (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it.
663 Simplify code.
664 (c_finish_oacc_routine): Likewise. Don't attach clauses to "omp
665 declare target" attribute.
666
76e2c821
JB
6672016-08-01 Jan Beulich <jbeulich@suse.com>
668
669 * c-fold.c (c_fully_fold_internal): Also emit shift count
670 warnings for vector types.
671 * c-typeck.c (build_binary_op): Likewise.
672
f618a472
MP
6732016-07-29 Marek Polacek <polacek@redhat.com>
674
675 PR c/71742
676 * c-decl.c (finish_struct): Rephrase an error message.
677
efd0786f
MP
678 PR c/71853
679 * c-parser.c (c_parser_switch_statement): Initialize ce.original_type
680 to error node for invalid code.
681
e00dceaf
MP
682 PR c/71573
683 * c-decl.c (implicitly_declare): Return decl early not only for
684 error_mark_nodes, but for anything that is not a FUNCTION_DECL.
685
673a107a
JJ
6862016-07-29 Jakub Jelinek <jakub@redhat.com>
687
688 PR c/71969
689 * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS
690 on GNU extern inline functions.
691
a5b5c8b6
MP
6922016-07-29 Marek Polacek <polacek@redhat.com>
693
694 PR c/71583
695 * c-parser.c (c_parser_postfix_expression_after_paren_type): Also
696 check expr.value.
697
e3fe09c1
UB
6982016-07-22 Uros Bizjak <ubizjak@gmail.com>
699
700 * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
701
7c8f7eaa
DM
7022016-07-20 David Malcolm <dmalcolm@redhat.com>
703
704 * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to
705 spellcheck-tree.h
706 (best_macro_match): Likewise, converting from a typedef to a
707 subclass.
708 (find_closest_macro_cpp_cb): Move to spellcheck-tree.c.
709 (lookup_name_fuzzy): Update for change of best_macro_match to a
710 subclass with a ctor that calls cpp_forall_identifiers.
711
de6a69ee
DM
7122016-07-20 David Malcolm <dmalcolm@redhat.com>
713
714 * c-decl.c (implicit_decl_warning): Update for conversion of
715 return type of lookup_name_fuzzy to const char *.
716 (undeclared_variable): Likewise.
717 (lookup_name_fuzzy): Convert return type from tree to
718 const char *.
719 * c-parser.c (c_parser_declaration_or_fndef): Update for
720 conversion of return type of lookup_name_fuzzy to const char *.
721 (c_parser_parameter_declaration): Likewise.
722
b1c9c068
CP
7232016-07-15 Cesar Philippidis <cesar@codesourcery.com>
724
725 * c-parser.c (c_parser_oacc_declare): Don't scan for
726 GOMP_MAP_POINTER.
727 * c-typeck.c (handle_omp_array_sections): Mark data clauses with
728 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
729 zero-length subarrays.
730
ddbbcb19
JJ
7312016-07-15 Jakub Jelinek <jakub@redhat.com>
732
733 PR c/71858
734 * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME
735 instead of FUZZY_LOOKUP_NAME.
736 (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider
737 FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros.
738
dd36b877
JJ
7392016-07-14 Jakub Jelinek <jakub@redhat.com>
740
741 PR c/71858
742 * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible.
743
8c681247
TS
7442016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
745
746 * c-parser.c (c_parser_generic_selection): Make type of variable
747 auto_vec.
748 (c_parser_omp_declare_simd): Likewise.
749
bf4fa671
TS
7502016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
751
752 * c-decl.c (struct c_struct_parse_info): Change member types
753 from vec to auto_vec.
754 (start_struct): Adjust.
755 (finish_struct): Likewise.
756
557e8c49
JJ
7572016-07-02 Jakub Jelinek <jakub@redhat.com>
758
759 PR c/71719
760 * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
761
54d19c3b
TS
7622016-06-29 Thomas Schwinge <thomas@codesourcery.com>
763
764 * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
765 Move pragma context checking into...
766 (c_parser_omp_cancellation_point): ... here, and improve
767 diagnostic messages.
768 * c-typeck.c (c_finish_omp_cancel)
769 (c_finish_omp_cancellation_point): Improve diagnostic messages.
770
152ef731
JJ
7712016-06-29 Jakub Jelinek <jakub@redhat.com>
772
773 PR c/71685
774 * c-typeck.c (c_build_qualified_type): Don't clear
775 C_TYPE_INCOMPLETE_VARS for the main variant.
776
7772016-06-28 Martin Sebor <msebor@redhat.com>
4378d117
MS
778
779 PR c/71552
780 * c-typeck.c (output_init_element): Diagnose incompatible types
781 before non-constant initializers.
782
e9ac1f86
JJ
7832016-06-28 Jakub Jelinek <jakub@redhat.com>
784
785 * Make-lang.in: Don't cat ../stage_current if it does not exist.
786
277d7ee0
AK
7872016-06-23 Andi Kleen <ak@linux.intel.com>
788
789 * Make-lang.in: Add support for autofdo.
790
1a4f11c8
DM
7912016-06-22 David Malcolm <dmalcolm@redhat.com>
792
793 PR c/70339
794 * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h.
795 (implicit_decl_warning): When issuing warnings for implicit
796 declarations, attempt to provide a suggestion via
797 lookup_name_fuzzy.
798 (undeclared_variable): Likewise when issuing errors.
799 (lookup_name_in_scope): Likewise.
800 (struct edit_distance_traits<cpp_hashnode *>): New struct.
801 (best_macro_match): New typedef.
802 (find_closest_macro_cpp_cb): New function.
803 (lookup_name_fuzzy): New function.
804 * c-parser.c: Include gcc-rich-location.h.
805 (c_token_starts_typename): Split out case CPP_KEYWORD into...
806 (c_keyword_starts_typename): ...this new function.
807 (c_parser_declaration_or_fndef): When issuing errors about
808 missing "struct" etc, add a fixit. For other kinds of errors,
809 attempt to provide a suggestion via lookup_name_fuzzy.
810 (c_parser_parms_declarator): When looking ahead to detect typos in
811 type names, also reject CPP_KEYWORD.
812 (c_parser_parameter_declaration): When issuing errors about
813 unknown type names, attempt to provide a suggestion via
814 lookup_name_fuzzy.
815 * c-tree.h (c_keyword_starts_typename): New prototype.
816
5a578671
JM
8172016-06-20 Joseph Myers <joseph@codesourcery.com>
818
819 PR c/71601
820 * c-typeck.c (build_conditional_expr): Return error_mark_node if
821 c_common_type returns error_mark_node.
822
3f8257db 8232016-06-19 Martin Sebor <msebor@redhat.com>
aa0db437
MS
824
825 PR c/69507
826 * c-parser.c (c_parser_alignof_expression): Avoid diagnosing
827 __alignof__ (expression).
828
6a3f203c
DM
8292016-06-14 David Malcolm <dmalcolm@redhat.com>
830
831 * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h.
832
264757fb
DM
8332016-06-14 David Malcolm <dmalcolm@redhat.com>
834
835 * c-typeck.c (build_component_ref): Simplify fixit code by
836 using gcc_rich_location::add_fixit_misspelled_id.
837 (set_init_label): Likewise.
838
f7e4f2e3
DM
8392016-06-13 David Malcolm <dmalcolm@redhat.com>
840
841 * c-parser.c (c_parser_initelt): Provide location of name for new
842 location_t param of set_init_label.
843 * c-tree.h (set_init_label): Add location_t param.
844 * c-typeck.c (set_init_index): Add "fieldname_loc" location_t
845 param and use it when issuing error messages about unrecognized
846 field names. Attempt to provide a fixit hint if appropriate,
847 otherwise update the error message to provide the type name.
848
4b1ffdb1
TS
8492016-06-10 Thomas Schwinge <thomas@codesourcery.com>
850
851 PR c/71381
852 * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
853 Loosen checking.
854
44a845ca
MS
8552016-06-08 Martin Sebor <msebor@redhat.com>
856 Jakub Jelinek <jakub@redhat.com>
857
858 PR c++/70507
859 PR c/68120
860 * c-typeck.c (convert_arguments): Don't promote last argument
861 of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
862
92a5f2ba
MP
8632016-06-08 Marek Polacek <polacek@redhat.com>
864
865 PR c/71418
866 * c-decl.c (grokdeclarator): Check TYPE_P.
867
08203f73
MP
868 PR c/71426
869 * c-decl.c (get_parm_info): Don't crash on an assert on invalid
870 code.
871
6ffd47b7
DM
8722016-06-07 David Malcolm <dmalcolm@redhat.com>
873
874 * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
875 and structure element reference, capture the location of the
876 element name token and pass it to build_component_ref.
877 (c_parser_postfix_expression_after_primary): Likewise for
878 structure element dereference.
879 (c_parser_omp_variable_list): Likewise for
880 OMP_CLAUSE_{_CACHE, MAP, FROM, TO},
881 * c-tree.h (build_component_ref): Add location_t param.
882 * c-typeck.c (build_component_ref): Add location_t param
883 COMPONENT_LOC. Use it, if available, when issuing hints about
884 mispelled member names to provide a fixit replacement hint.
885
1f40cff3
MP
8862016-06-06 Marek Polacek <polacek@redhat.com>
887
888 PR c/71362
889 * c-parser.c (c_parser_direct_declarator): Set location.
890
5545a907
MP
8912016-06-06 Marek Polacek <polacek@redhat.com>
892
893 * c-typeck.c (comptypes_internal): Handle comparisons of
894 INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes. Don't check
895 TYPE_REF_CAN_ALIAS_ALL.
896
b605f663
CLT
8972016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
898
899 * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
900 arguments as addressable when async clause exists.
901
00631022
JJ
9022016-05-30 Jakub Jelinek <jakub@redhat.com>
903
904 PR c++/71349
905 * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
906 when combined with target construct.
907
7211a097
JJ
9082016-05-26 Jakub Jelinek <jakub@redhat.com>
909
910 * c-parser.c (c_parser_omp_clause_schedule): Warn if
911 OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.
912
95efe6b6
MP
9132016-05-25 Marek Polacek <polacek@redhat.com>
914
915 PR c/71265
916 * c-decl.c (c_make_fname_decl): Don't check seen_error.
917
a23faf7a
MP
918 PR c/71266
919 * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
920
e46c7770
CP
9212016-05-24 Cesar Philippidis <cesar@codesourcery.com>
922
923 * c-parser.c (c_parser_oacc_declare): Add support for
924 GOMP_MAP_FIRSTPRIVATE_POINTER.
925 * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
926 argument with enum c_omp_region_type ort.
927 (handle_omp_array_sections): Likewise. Update call to
928 handle_omp_array_sections_1.
929 (c_finish_omp_clauses): Add specific errors and warning messages for
930 OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update
931 call to handle_omp_array_sections.
932
a04e69c0
TS
9332016-05-24 Thomas Schwinge <thomas@codesourcery.com>
934
935 * c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
936
f17a223d
RB
9372016-05-24 Richard Biener <rguenther@suse.de>
938
939 PR middle-end/70434
940 PR c/69504
941 * c-typeck.c (build_array_ref): Do not complain about indexing
942 non-lvalue vectors. Adjust for function name change.
943
79063edd
MS
9442016-05-20 Martin Sebor <msebor@redhat.com>
945
946 PR c/71115
947 * c-typeck.c (error_init): Use
948 expansion_point_location_if_in_system_header.
949 (warning_init): Same.
950
8a40fef3
DM
9512016-05-19 David Malcolm <dmalcolm@redhat.com>
952
953 PR c/71171
954 * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
955 in error-handling.
956 (c_parser_postfix_expression): Likewise.
957 * c-tree.h (c_expr::set_error): New method.
958 * c-typeck.c (parser_build_binary_op): In error-handling, ensure
959 that result's range is initialized.
960
e9892350
JG
9612016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
962
963 * c-typeck.c (parser_build_unary_op): Fix formatting.
964
8fad45f5
MW
9652016-05-16 Matthew Wahab <matthew.wahab@arm.com>
966
967 * c-decl.c (grokdeclarator): Remove errmsg and use of
968 targetm.invalid_return_type.
969 (grokparms): Remove errmsg and use of
970 targetm.invalid_parameter_type.
971
aa4b467b
JM
9722016-05-13 Joseph Myers <joseph@codesourcery.com>
973
974 * c-decl.c (grokdeclarator): For C11, discard qualifiers on
975 function return type.
976
4f2e1536
MP
9772016-05-12 Marek Polacek <polacek@redhat.com>
978
979 PR c/70756
980 * c-decl.c (build_compound_literal): Pass LOC down to
981 c_incomplete_type_error.
982 * c-tree.h (require_complete_type): Adjust declaration.
983 (c_incomplete_type_error): Likewise.
984 * c-typeck.c (require_complete_type): Add location parameter, pass it
985 down to c_incomplete_type_error.
986 (c_incomplete_type_error): Add location parameter, pass it down to
987 error_at.
988 (build_component_ref): Pass location down to c_incomplete_type_error.
989 (default_conversion): Pass location down to require_complete_type.
990 (build_array_ref): Likewise.
991 (build_function_call_vec): Likewise.
992 (convert_arguments): Likewise.
993 (build_unary_op): Likewise.
994 (build_c_cast): Likewise.
995 (build_modify_expr): Likewise.
996 (convert_for_assignment): Likewise.
997 (c_finish_omp_clauses): Likewise.
998
d6e83a8d
MM
9992016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
1000
1001 PR c/43651
1002 * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
1003 is enabled.
1004 * c-errors.c (pedwarn_c90): Return true if warned.
1005 * c-tree.h (pedwarn_c90): Change return type to bool.
1006 (enum c_declspec_word): Add new enumerator cdw_atomic.
1007
5c3a10fb
MP
10082016-05-11 Marek Polacek <polacek@redhat.com>
1009
1010 PR c++/71024
1011 * c-decl.c (diagnose_mismatched_decls): Factor out code to
1012 diagnose_mismatched_attributes and call it.
1013
cf68d92c
MP
10142016-05-10 Marek Polacek <polacek@redhat.com>
1015
1016 PR c/70255
1017 * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
1018 on a declaration following the definition.
1019
351f85c5
JJ
10202016-05-05 Jakub Jelinek <jakub@redhat.com>
1021
1022 * c-parser.c (c_parser_switch_statement): Add IF_P argument,
1023 parse it through to c_parser_c99_block_statement.
1024 (c_parser_statement_after_labels): Adjust c_parser_switch_statement
1025 caller.
1026
deef7113
MP
10272016-05-04 Marek Polacek <polacek@redhat.com>
1028
1029 * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
1030 OPT_Wdangling_else.
1031
de55efd5
MP
10322016-05-04 Marek Polacek <polacek@redhat.com>
1033
1034 PR c/48778
1035 * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
1036 for macro expansions.
1037
79ce98bc
MP
10382016-05-03 Marek Polacek <polacek@redhat.com>
1039
1040 PR c/70859
1041 * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
1042 check_builtin_function_arguments.
1043
fb2647aa
RB
10442016-05-03 Richard Biener <rguenther@suse.de>
1045
1046 * Make-lang.in (cc1-checksum.c): For stage-final re-use
1047 the checksum from the previous stage.
1048
77886428
CP
10492016-05-02 Cesar Philippidis <cesar@codesourcery.com>
1050
1051 * c-parser.c (c_parser_oacc_all_clauses): Update call to
1052 c_finish_omp_clauses.
1053 (c_parser_omp_all_clauses): Likewise.
1054 (c_parser_oacc_cache): Likewise.
1055 (c_parser_oacc_loop): Likewise.
1056 (omp_split_clauses): Likewise.
1057 (c_parser_omp_declare_target): Likewise.
1058 (c_parser_cilk_all_clauses): Likewise.
1059 (c_parser_cilk_for): Likewise.
1060 * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
1061 is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
1062
7176a4a0
MP
10632016-05-02 Marek Polacek <polacek@redhat.com>
1064
1065 PR c/70851
1066 * c-decl.c (grokdeclarator): Diagnose when array's size has an
1067 incomplete type.
1068
e7ff0319
CP
10692016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1070
1071 PR middle-end/70626
1072 * c-parser.c (c_parser_oacc_loop): Don't augment mask with
1073 OACC_LOOP_CLAUSE_MASK.
1074 (c_parser_oacc_kernels_parallel): Update call to
1075 c_oacc_split_loop_clauses.
1076
9f405ce1
AM
10772016-04-28 Andrew MacLeod <amacleod@redhat.com>
1078
1079 * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
1080 argument to build_modify_expr in two cases.
1081
c1e1f433
BS
10822016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1083
1084 * c-parser.c (c_parser_postfix_expression_after_primary): Call
1085 warn_for_memset instead of warning directly here.
1086
2448a956
MP
10872016-04-26 Marek Polacek <polacek@redhat.com>
1088
1089 PR c/67784
1090 * c-parser.c (c_parser_maybe_reclassify_token): New function factored
1091 out of ...
1092 (c_parser_for_statement): ... here.
1093 (c_parser_if_statement): Use it.
1094 (c_parser_switch_statement): Use it.
1095 (c_parser_while_statement): Use it.
1096
b02a5e26
MP
1097 PR c/70791
1098 * c-decl.c (pushdecl): Pass LOCUS down to warning.
1099
477d4906
IV
11002016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1101
1102 PR c++/69363
1103 * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
1104 instead of c_finish_cilk_clauses.
1105 * c-tree.h (c_finish_omp_clauses): Add new default argument.
1106 * c-typeck.c (c_finish_omp_clauses): Add new argument. Allow
1107 floating-point variables in the linear clause for Cilk Plus.
1108
fe37c7af
MM
11092016-04-18 Michael Matz <matz@suse.de>
1110
1111 * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1112 (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
1113
949505a9
MP
11142016-04-15 Marek Polacek <polacek@redhat.com>
1115
1116 PR c/70671
1117 * c-typeck.c (build_unary_op): Pass location down to error and
1118 warning call.
1119
dda1bf61
JJ
11202016-04-15 Jakub Jelinek <jakub@redhat.com>
1121
1122 PR c/70436
1123 * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
1124 where needed.
1125 (c_parser_external_declaration, c_parser_struct_or_union_specifier,
1126 c_parser_parameter_declaration, c_parser_compound_statement_nostart,
1127 c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
1128 Adjust c_parser_pragma callers.
1129 (c_parser_statement_after_labels): Likewise. Adjust c_parser_cilk_for
1130 caller.
1131 (c_parser_omp_structured_block): Add IF_P argument, pass it down to
1132 c_parser_statement.
1133 (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
1134 c_parser_oacc_kernels_parallel, c_parser_omp_critical,
1135 c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
1136 c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
1137 c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
1138 c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
1139 c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
1140 c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
1141 down where needed.
1142 (c_parser_omp_for_loop): Likewise. Clear IF_P if nbraces.
1143 (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
1144 calls.
1145
99cd9857
MP
11462016-04-13 Marek Polacek <polacek@redhat.com>
1147
1148 PR c/70436
1149 * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
1150 adjust callers.
1151 (c_parser_statement): Likewise.
1152 (c_parser_c99_block_statement): Likewise.
1153 (c_parser_while_statement): Likewise.
1154 (c_parser_for_statement): Likewise.
1155 (c_parser_if_body): Don't set IF_P here.
1156 (c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn
1157 about dangling else here.
1158 * c-tree.h (c_finish_if_stmt): Adjust declaration.
1159 * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't
1160 warn about dangling else here.
1161
f13355da
MP
11622016-04-04 Marek Polacek <polacek@redhat.com>
1163
1164 PR c/70307
1165 * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
1166
5fde6a45
MP
11672016-03-31 Marek Polacek <polacek@redhat.com>
1168
1169 PR c/70297
1170 * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
1171
4bbf545b
DM
11722016-03-18 David Malcolm <dmalcolm@redhat.com>
1173
1174 PR c/70281
1175 * c-parser.c (c_parser_postfix_expression): Set the source range
1176 for uses of "__builtin_types_compatible_p".
1177
fcc2b74f
JJ
11782016-03-17 Jakub Jelinek <jakub@redhat.com>
1179
1180 PR c/70280
1181 * c-typeck.c (composite_type): Don't count void_list_node
1182 into len, if the list is terminated by void_list_node, start
1183 with void_list_node instead of NULL for newargs. Stop
1184 at void_list_node.
1185
ab4c578f
MP
11862016-03-16 Marek Polacek <polacek@redhat.com>
1187
1188 PR c/70093
1189 * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
1190 nested functions returning VM types.
1191
96b3c82d
CP
11922016-03-09 Cesar Philippidis <cesar@codesourcery.com>
1193
1194 * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
1195 when calling c_finish_omp_clauses.
1196
29b9828f
BS
11972016-03-04 Bernd Schmidt <bschmidt@redhat.com>
1198
1199 PR c/69824
1200 * c-decl.c (get_parm_info): Don't queue implicit function declarations
1201 for later.
1202
7ff6ca38
MP
12032016-03-04 Marek Polacek <polacek@redhat.com>
1204
1205 PR c/69798
1206 * c-parser.c (c_parser_postfix_expression): Call
1207 c_parser_cast_expression rather than c_parser_postfix_expression.
1208
686e2237
JJ
12092016-03-01 Jakub Jelinek <jakub@redhat.com>
1210
1211 PR c/69796
1212 PR c/69974
1213 * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
1214 of incomplete decls to error_mark_node.
1215
0b05329b
MP
12162016-02-24 Marek Polacek <polacek@redhat.com>
1217
1218 PR c/69819
1219 * c-decl.c (finish_decl): Don't update the copy of the type of a
1220 different decl type.
1221
067fbd8b
JJ
12222016-02-23 Jakub Jelinek <jakub@redhat.com>
1223
1224 PR objc/69844
1225 * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
1226 in id_kind reclassification.
1227
bf14eba2
JJ
12282016-02-16 Jakub Jelinek <jakub@redhat.com>
1229
1230 PR c/69835
1231 * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
1232
ba539195
JN
12332016-02-16 James Norris <jnorris@codesourcery.com>
1234
1235 PR c/64748
1236 * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
1237
16595a1f
BS
12382016-02-12 Bernd Schmidt <bschmidt@redhat.com>
1239
f48dfe98
BS
1240 * c-decl.c (build_null_declspecs): Zero the entire struct.
1241
16595a1f
BS
1242 PR c/69522
1243 * c-parser.c (c_parser_braced_init): New arg outer_obstack. All
1244 callers changed. If nested_p is true, use it to call
1245 finish_implicit_inits.
1246 * c-tree.h (finish_implicit_inits): Declare.
1247 * c-typeck.c (finish_implicit_inits): New function. Move code
1248 from ...
1249 (push_init_level): ... here.
1250 (set_designator, process_init_element): Call finish_implicit_inits.
1251
66756373
JJ
12522016-02-11 Jakub Jelinek <jakub@redhat.com>
1253
1254 PR c/69768
1255 * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
1256 arguments for -Waddress warning.
1257
1066e9b5
JJ
12582016-02-04 Jakub Jelinek <jakub@redhat.com>
1259
1260 PR c/69669
1261 * c-decl.c (finish_enum): When honoring mode attribute,
1262 make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
1263
3a5d2ba4
JJ
12642016-01-29 Jakub Jelinek <jakub@redhat.com>
1265
1266 PR debug/69518
1267 * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
1268 all type variants, not just TYPE_MAIN_VARIANT.
1269
cbdd8ae0
JJ
12702016-01-27 Jakub Jelinek <jakub@redhat.com>
1271
1272 PR debug/66869
1273 * c-decl.c (c_write_global_declarations_1): Warn with
1274 warn_unused_function if static prototype without definition
1275 is not C_DECL_USED.
1276
fa74a4bc
MP
12772016-01-27 Marek Polacek <polacek@redhat.com>
1278
1279 PR c/68062
1280 * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
1281 to unsigned, if needed. Add -Wsign-compare warning.
1282
13f92e8d
JJ
12832016-01-26 Jakub Jelinek <jakub@redhat.com>
1284
1285 PR tree-optimization/69483
1286 * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
1287
cd8e73dc 12882016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
d25c7690
PK
1289
1290 PR c/24293
1291 * c-tree.h (incomplete_record_decls): Declare.
1292 * c-parser.c (incomplete_record_decls): Define.
1293 (c_parser_translation_unit): Iterate through incomplete_record_decls and
1294 report error if any decl has zero size.
1295 * c-decl.c (finish_decl): Append static decl with incomplete struct/union
1296 or enum type to incomplete_record_decls.
1297
e6d6ec9e
TV
12982016-01-14 Tom de Vries <tom@codesourcery.com>
1299
1300 PR tree-optimization/68773
1301 * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
1302 set force_output.
1303
00083992
MP
13042016-01-14 Marek Polacek <polacek@redhat.com>
1305
1306 PR c/69262
1307 * c-decl.c (grokdeclarator): Provide more information for invalid
1308 array declarations.
1309
7443cf13
DM
13102016-01-06 David Malcolm <dmalcolm@redhat.com>
1311
1312 * c-parser.c (c_parser_unary_expression): For dereferences, build
1313 a combined location before calling build_indirect_ref, so that
1314 error reports cover the full range, manually updating the c_expr
1315 src_range.
1316
6b131d5b
MP
13172016-01-06 Marek Polacek <polacek@redhat.com>
1318
1319 PR sanitizer/69099
1320 * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to
1321 ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of
1322 NULL.
1323
818ab71a
JJ
13242016-01-04 Jakub Jelinek <jakub@redhat.com>
1325
1326 Update copyright years.
1327
2fe0a208
MP
13282016-01-04 Marek Polacek <polacek@redhat.com>
1329
1330 PR c/68908
1331 * c-typeck.c (build_atomic_assign): Improve commentary. Add
1332 optimization to use __atomic_fetch_* built-in if possible.
1333
c7b48c8a
TS
13342015-12-23 Thomas Schwinge <thomas@codesourcery.com>
1335
1336 * c-parser.c (c_parser_oacc_clause_use_device): Merge function
1337 into...
1338 (c_parser_omp_clause_use_device_ptr): ... this function. Adjust
1339 all users.
1340
fda5652f
MP
13412015-12-22 Marek Polacek <polacek@redhat.com>
1342
1343 PR c/69002
1344 * c-typeck.c (build_component_ref): Warn when acessing elements of
1345 atomic structures or unions.
1346
745e411d
DM
13472015-12-21 David Malcolm <dmalcolm@redhat.com>
1348
1349 * c-typeck.c: Include "gcc-rich-location.h".
1350 (build_binary_op): In the two places that call binary_op_error,
1351 create a gcc_rich_location and populate it with the location of
1352 the binary op and its two operands.
1353
94c40e19
DM
13542015-12-16 David Malcolm <dmalcolm@redhat.com>
1355
1356 * c-parser.c (c_parser_statement_after_labels): When calling
1357 c_finish_return, Use the return expression's location if it has
1358 one, falling back to the location of the first token within it.
1359 * c-typeck.c (c_finish_return): When issuing warnings about
1360 the incorrect presence/absence of a return value, issue a note
1361 showing the declaration of the function.
1362
de67c4c3
DM
13632015-12-16 David Malcolm <dmalcolm@redhat.com>
1364
1365 * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
1366 to 4.
1367 (c_parser_peek_nth_token): New function.
1368 (c_parser_peek_conflict_marker): New function.
1369 (c_parser_error): Detect conflict markers and report them as such.
1370
a10704e1
DM
13712015-12-16 David Malcolm <dmalcolm@redhat.com>
1372
1373 * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
1374 to preserve range information for the primary expression
1375 in the call to c_parser_postfix_expression_after_primary.
1376
8062bca6
DM
13772015-12-16 David Malcolm <dmalcolm@redhat.com>
1378
1379 * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
1380 expression location, falling back on the first token location,
1381 rather than always using the latter.
1382
d06f8b75
MP
13832015-12-16 Marek Polacek <polacek@redhat.com>
1384
1385 PR c/64637
1386 * c-typeck.c (c_process_expr_stmt): Use location of the expression if
1387 available.
1388
2994fb91
MP
13892015-12-15 Marek Polacek <polacek@redhat.com>
1390
1391 PR c/68907
1392 * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
1393 artificial decl.
1394
a1b93f8d
DM
13952015-12-08 David Malcolm <dmalcolm@redhat.com>
1396
1397 * c-parser.c (c_parser_alignof_expression): Capture location of
1398 closing parenthesis (if any), or of end of unary expression, and
1399 use it to build a src_range for the expression.
1400
46c6e1e2
DM
14012015-12-08 David Malcolm <dmalcolm@redhat.com>
1402
1403 PR c/68757
1404 * c-parser.c (c_parser_get_builtin_args): Add
1405 "out_close_paren_loc" param, and write back to it.
1406 (c_parser_postfix_expression): Capture the closing
1407 parenthesis location for RID_CHOOSE_EXPR,
1408 RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
1409 RID_BUILTIN_SHUFFLE and use it to set the source range
1410 for such expressions; within RID_BUILTIN_COMPLEX set
1411 the underlying location.
1412
66189108
MP
14132015-12-07 Marek Polacek <polacek@redhat.com>
1414
1415 PR c/68668
1416 * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
1417 TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
1418
f187980b
EB
14192015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1420
1421 * c-tree.h (c_build_va_arg): Adjust prototype.
1422 * c-parser.c (c_parser_postfix_expression): Adjust call to above.
1423 * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
1424 parameter, adjust throughout and issue an error if EXPR is a component
1425 with reverse storage order.
1426
4250754e
JM
14272015-12-02 Jason Merrill <jason@redhat.com>
1428
1429 * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1430 (c_fully_fold_internal, decl_constant_value_for_optimization):
1431 Move from c-common.c.
1432 * c-tree.h: Declare decl_constant_value_for_optimization.
1433 * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
1434
e9e32ee6
JM
14352015-12-02 Joseph Myers <joseph@codesourcery.com>
1436
1437 PR c/68162
1438 * c-decl.c (grokdeclarator): Set first_non_attr_kind before
1439 following link from declarator to next declarator. Track original
1440 qualified type and pass it to c_build_qualified_type.
1441 * c-typeck.c (c_build_qualified_type): Add arguments
1442 orig_qual_type and orig_qual_indirect.
1443
ff7a55bf
TS
14442015-12-02 Thomas Schwinge <thomas@codesourcery.com>
1445
1446 * c-parser.c (c_parser_omp_clause_name)
1447 (c_parser_oacc_all_clauses): Alphabetical sorting.
1448
657e4e47
JJ
14492015-12-02 Jakub Jelinek <jakub@redhat.com>
1450
1451 PR c/68533
1452 * c-decl.c (get_parm_info): Use b->locus instead of input_location
1453 for diagnostics.
1454
37d5ad46
JB
14552015-12-01 Julian Brown <julian@codesourcery.com>
1456 Cesar Philippidis <cesar@codesourcery.com>
1457 James Norris <James_Norris@mentor.com>
1458
1459 * c-parser.c (c_parser_omp_clause_name): Add use_device support.
1460 (c_parser_oacc_clause_use_device): New function.
1461 (c_parser_oacc_all_clauses): Add use_device support.
1462 (OACC_HOST_DATA_CLAUSE_MASK): New macro.
1463 (c_parser_oacc_host_data): New function.
1464 (c_parser_omp_construct): Add host_data support.
1465 * c-tree.h (c_finish_oacc_host_data): Add prototype.
1466 * c-typeck.c (c_finish_oacc_host_data): New function.
1467 (c_finish_omp_clauses): Add use_device support.
1468
a4850ce9
JH
14692015-11-29 Jan Hubicka <hubicka@ucw.cz>
1470
1471 PR c/67106
1472 * c-decl.c: Set TYPE_PACKED in variants.
1473
b58d3df2
ML
14742015-11-27 Martin Liska <mliska@suse.cz>
1475
1476 PR c++/68312
1477 * c-array-notation.c (fix_builtin_array_notation_fn):
1478 Use release_vec_vec instead of vec::release.
1479 (build_array_notation_expr): Likewise.
1480 (fix_conditional_array_notations_1): Likewise.
1481 (fix_array_notation_expr): Likewise.
1482 (fix_array_notation_call_expr): Likewise.
1483
aec17bfe
JJ
14842015-11-27 Jakub Jelinek <jakub@redhat.com>
1485
1486 PR c/63326
1487 * c-parser.c (c_parser_compound_statement_nostart): If
1488 last_label is true, use pragma_stmt instead of pragma_compound
1489 as second c_parser_pragma argument.
1490 (c_parser_omp_ordered, c_parser_omp_target_update,
1491 c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
1492 false as second argument to c_parser_skip_to_pragma_eol after
1493 diagnosing standalone directives used in pragma_stmt context.
1494
688c4de0
IV
14952015-11-24 Ilya Verbin <ilya.verbin@intel.com>
1496
1497 * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
1498 with "if (ENABLE_OFFLOADING)".
1499
cbd03aee
DM
15002015-11-23 David Malcolm <dmalcolm@redhat.com>
1501
1502 PR objc/68438
1503 * c-parser.c (c_parser_postfix_expression): Set up source ranges
1504 for various Objective-C constructs: Class.name syntax,
1505 @selector(), @protocol(), @encode(), and [] message syntax.
1506
a87a86e1
DM
15072015-11-20 David Malcolm <dmalcolm@redhat.com>
1508
1509 PR 62314
1510 * c-typeck.c (should_suggest_deref_p): New function.
1511 (build_component_ref): Special-case POINTER_TYPE when
1512 generating a "not a structure of union" error message, and
1513 suggest a "->" rather than a ".", providing a fix-it hint.
1514
8ece8dfb
DM
15152015-11-19 David Malcolm <dmalcolm@redhat.com>
1516
1517 * c-typeck.c (lookup_field_fuzzy): Move determination of closest
1518 candidate into a new function, find_closest_identifier.
1519
433068cc
MP
15202015-11-19 Marek Polacek <polacek@redhat.com>
1521
1522 PR c/68412
1523 * c-typeck.c (parser_build_binary_op): Properly handle
1524 C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
1525
bef08b71
DM
15262015-11-17 David Malcolm <dmalcolm@redhat.com>
1527
1528 * c-parser.c (set_c_expr_source_range): Bulletproof both
1529 overloaded implementations against NULL expr->value.
1530 (c_parser_braced_init): Set src_range for "ret" to a sane pair of
1531 values.
1532 (c_parser_unary_expression): Likewise when handling addresses of
1533 labels.
1534 (c_parser_postfix_expression): Likewise for statement expressions,
1535 for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
1536 __builtin_va_arg, and for __builtin_offset_of.
1537 (c_parser_postfix_expression_after_paren_type): Initialize expr's
1538 src_range using the range of the braced initializer.
1539 (c_parser_transaction_expression): Set src_range for "ret" to a
1540 sane pair of values.
1541
fff77217
KY
15422015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1543
1544 * c-parser.c (c_finish_omp_declare_simd): Look for
1545 "simd" attribute as well. Update error message.
1546
1d899da2
TS
15472015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1548
1549 * c-parser.c (c_parser_omp_declare_target): Adjust.
1550
e4606348
JJ
15512015-11-14 Jakub Jelinek <jakub@redhat.com>
1552
1553 * c-typeck.c (c_finish_omp_clauses): Don't mark
1554 GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
1555
3e636daf
MP
15562015-11-14 Marek Polacek <polacek@redhat.com>
1557
1558 * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
1559 * c-typeck.c: Likewise.
1560
ebedc9a3
DM
15612015-11-13 David Malcolm <dmalcolm@redhat.com>
1562
1563 * c-decl.c (warn_defaults_to): Pass line_table to
1564 rich_location ctor.
1565 * c-errors.c (pedwarn_c99): Likewise.
1566 (pedwarn_c90): Likewise.
1567 * c-parser.c (set_c_expr_source_range): New functions.
1568 (c_token::get_range): New method.
1569 (c_token::get_finish): New method.
1570 (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
1571 based on the range from the start of the LHS to the end of the
1572 RHS.
1573 (c_parser_conditional_expression): Likewise, based on the range
1574 from the start of the cond.value to the end of exp2.value.
1575 (c_parser_binary_expression): Call set_c_expr_source_range on
1576 the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
1577 (c_parser_cast_expression): Call set_c_expr_source_range on ret
1578 based on the cast_loc through to the end of the expr.
1579 (c_parser_unary_expression): Likewise, based on the
1580 op_loc through to the end of op.
1581 (c_parser_sizeof_expression) Likewise, based on the start of the
1582 sizeof token through to either the closing paren or the end of
1583 expr.
1584 (c_parser_postfix_expression): Likewise, using the token range,
1585 or from the open paren through to the close paren for
1586 parenthesized expressions.
1587 (c_parser_postfix_expression_after_primary): Likewise, for
1588 various kinds of expression.
1589 * c-tree.h (struct c_expr): Add field "src_range".
1590 (c_expr::get_start): New method.
1591 (c_expr::get_finish): New method.
1592 (set_c_expr_source_range): New decls.
1593 * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
1594 on ret for prefix unary ops.
1595 (parser_build_binary_op): Likewise, running from the start of
1596 arg1.value through to the end of arg2.value.
1597
ec8b536f
MP
15982015-11-13 Marek Polacek <polacek@redhat.com>
1599
1600 PR c/68320
1601 * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
1602
277fe616
DM
16032015-11-13 David Malcolm <dmalcolm@redhat.com>
1604
1605 * c-typeck.c: Include spellcheck.h.
1606 (lookup_field_fuzzy_find_candidates): New function.
1607 (lookup_field_fuzzy): New function.
1608 (build_component_ref): If the field was not found, try using
1609 lookup_field_fuzzy and potentially offer a suggestion.
1610
6e232ba4
JN
16112015-11-12 James Norris <jnorris@codesourcery.com>
1612 Joseph Myers <joseph@codesourcery.com>
1613
1614 * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
1615 (c_parser_omp_clause_name): Handle 'device_resident' clause.
1616 (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
1617 and PRAGMA_OMP_CLAUSE_LINK.
1618 (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
1619 and PRAGMA_OACC_CLAUSE_LINK.
1620 (OACC_DECLARE_CLAUSE_MASK): New definition.
1621 (c_parser_oacc_declare): New function.
1622
9be4f715
MP
16232015-11-12 Marek Polacek <polacek@redhat.com>
1624
1625 PR c/67784
1626 * c-parser.c (c_parser_for_statement): Reclassify the token in
1627 a correct scope.
1628
e78bede6
MP
16292015-11-11 Marek Polacek <polacek@redhat.com>
1630
1631 PR c/68107
1632 PR c++/68266
1633 * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code
1634 checking the size of an array.
1635
69f293c9
AM
16362015-11-11 Andrew MacLeod <amacleod@redhat.com>
1637
1638 * c-array-notation.c: Remove unused header files.
1639 * c-aux-info.c: Likewise.
1640 * c-convert.c: Likewise.
1641 * c-decl.c: Likewise.
1642 * c-errors.c: Likewise.
1643 * c-lang.c: Likewise.
1644 * c-objc-common.c: Likewise.
1645 * c-parser.c: Likewise.
1646 * c-typeck.c: Likewise.
1647 * gccspec.c: Likewise.
1648
3a40d81d
NS
16492015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1650 Cesar Philippidis <cesar@codesourcery.com>
1651 James Norris <jnorris@codesourcery.com>
1652 Julian Brown <julian@codesourcery.com>
1653 Nathan Sidwell <nathan@codesourcery.com>
1654
1655 c/
1656 * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
1657 routine arg.
1658 (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
1659 (c_parser_pragma): Parse 'acc routine'.
1660 (OACC_ROUTINE_CLAUSE_MARK): Define.
1661 (c_parser_oacc_routine, (c_finish_oacc_routine): New.
1662
fc402eec
AA
16632015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1664
1665 PR debug/67192
1666 * c-typeck.c (c_finish_loop): For unconditional loops, set the
1667 location of the backward-goto to the start of the loop body.
1668
f6b0b3db
AA
16692015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
1670
1671 PR debug/67192
1672 * c-parser.c (c_parser_while_statement): Finish the loop before
1673 parsing ahead for misleading indentation.
1674 (c_parser_for_statement): Likewise.
1675
ee45a32d
EB
16762015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1677
1678 * c-decl.c (finish_struct): If the structure has reverse storage
1679 order, rewrite the type of array fields with scalar component. Call
1680 maybe_apply_pragma_scalar_storage_order on entry.
1681 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue
1682 errors on bit-fields and reverse SSO here and not...
1683 (c_mark_addressable): ...here.
1684 (output_init_element): Adjust call to initializer_constant_valid_p.
1685 (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
1686
8a645150
DM
16872015-11-06 David Malcolm <dmalcolm@redhat.com>
1688
1689 * c-decl.c (warn_defaults_to): Update for change in signature
1690 of diagnostic_set_info.
1691 * c-errors.c (pedwarn_c99): Likewise.
1692 (pedwarn_c90): Likewise.
1693 * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
1694 for textinfo::set_location.
1695
7a5e4956
CP
16962015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1697 Thomas Schwinge <thomas@codesourcery.com>
1698 James Norris <jnorris@codesourcery.com>
1699
1700 * c-parser.c (c_parser_omp_clause_name): Add support for
1701 PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
1702 (c_parser_omp_clause_default): Add is_oacc argument. Handle
1703 default(none) in OpenACC.
1704 (c_parser_oacc_shape_clause): Allow pointer variables as gang static
1705 arguments.
1706 (c_parser_oacc_clause_tile): New function.
1707 (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
1708 OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
1709 (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
1710 TILE}.
1711 (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
1712 (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
1713 FIRSTPRIVATE}.
1714 (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
1715 (c_parser_oacc_update): Update the error message for missing clauses.
1716 * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
1717 and OMP_CLAUSE_INDEPENDENT.
1718
bfcfbfa0
MP
17192015-11-05 Marek Polacek <polacek@redhat.com>
1720
1721 PR c/68090
1722 * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
1723 deal with pre-evaluation on invalid types.
1724
e01d41e5
JJ
17252015-11-05 Jakub Jelinek <jakub@redhat.com>
1726 Ilya Verbin <ilya.verbin@intel.com>
1727
1728 * c-parser.c: Include context.h and gimple-expr.h.
1729 (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
1730 monotonic together with nonmonotonic.
1731 (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here.
1732 (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
1733 (c_parser_omp_target_data, c_parser_omp_target_enter_data,
1734 c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
1735 (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit
1736 expressions on combined target teams before the target.
1737 (c_parser_omp_declare_target): If decl has "omp declare target" or
1738 "omp declare target link" attribute, and cgraph or varpool node already
1739 exists, then set corresponding flags. Call c_finish_omp_clauses
1740 in the parenthesized extended-list syntax case.
1741 * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
1742 declare target.
1743 * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
1744 on OMP_CLAUSE_REDUCTION array sections.
1745 (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
1746 into the constant offset, or for variable low-bound using
1747 POINTER_PLUS_EXPR. For structure element based array sections use
1748 GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
1749 (c_finish_omp_clauses): Drop generic_field_head, structure
1750 elements are now always mapped even as array section bases,
1751 diagnose same var in data sharing and mapping clauses. Diagnose if
1752 linear step on declare simd is neither a constant nor a uniform
1753 parameter. Look through POINTER_PLUS_EXPR for array section
1754 reductions. Diagnose the same var or function appearing multiple
1755 times on the same directive. Fix up wording for the to clause if t
1756 is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic
1757 modifier on kinds other than dynamic or guided or nonmonotonic
1758 modifier together with ordered clause.
1759
4bf9e5a8
TS
17602015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1761 Chung-Lin Tang <cltang@codesourcery.com>
1762
1763 * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
1764
2adfab87
AM
17652015-10-29 Andrew MacLeod <amacleod@redhat.com>
1766
1767 * c-array-notation.c: Reorder #include's and remove duplicates.
1768 * c-aux-info.c: Likewise.
1769 * c-convert.c: Likewise.
1770 * c-decl.c: Likewise.
1771 * c-errors.c: Likewise.
1772 * c-lang.c: Likewise.
1773 * c-objc-common.c: Likewise.
1774 * c-parser.c: Likewise.
1775 * c-typeck.c: Likewise.
1776
e922069e
JW
17772015-10-26 Jim Wilson <jim.wilson@linaro.org>
1778
1779 PR debug/66068
1780 * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
1781 after calling build_qualified_type.
1782
765dd391
CP
17832015-10-27 Cesar Philippidis <cesar@codesourcery.com>
1784 Thomas Schwinge <thomas@codesourcery.com>
1785 James Norris <jnorris@codesourcery.com>
1786 Joseph Myers <joseph@codesourcery.com>
1787 Julian Brown <julian@codesourcery.com>
1788 Bernd Schmidt <bschmidt@redhat.com>
1789
1790 * c-parser.c (c_parser_oacc_shape_clause): New.
1791 (c_parser_oacc_simple_clause): New.
1792 (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
1793 (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
1794
88bae6f4
TS
17952015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1796 James Norris <jnorris@codesourcery.com>
1797 Cesar Philippidis <cesar@codesourcery.com>
1798
1799 PR c/64765
1800 PR c/64880
1801 * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
1802 parameters, and handle these. Adjust all users.
1803 (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
1804 into...
1805 (c_parser_oacc_kernels_parallel): ... this new function. Adjust
1806 all users.
1807 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
1808 declare functions.
1809 (c_finish_omp_construct): Declare function.
1810 * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
1811 Merge functions into...
1812 (c_finish_omp_construct): ... this new function.
1813
a8fc2579
RB
18142015-10-22 Richard Biener <rguenther@suse.de>
1815
1816 * c-typeck.c (c_finish_omp_clauses): Properly convert operands
1817 before folding a MINUS_EXPR.
1818
e9122ef6
MP
18192015-10-21 Marek Polacek <polacek@redhat.com>
1820
1821 PR c/68024
1822 * c-decl.c (start_function): Warn about vararg functions without
1823 a prototype.
1824
9f47c7e5
IE
18252015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
1826
1827 * c-typeck.c (build_conditional_expr): Use boolean vector
1828 type for vector comparison.
1829 (build_vec_cmp): New.
1830 (build_binary_op): Use build_vec_cmp for comparison.
1831
fa60eeb9
MP
18322015-10-20 Marek Polacek <polacek@redhat.com>
1833
1834 * c-parser.c (is_cilkplus_vector_p): Don't define here.
1835
2c7020eb
MP
18362015-10-20 Marek Polacek <polacek@redhat.com>
1837
1838 PR c/67964
1839 * c-parser.c (c_parser_attributes): Break out of the loop if the
1840 token after an attribute isn't a comma.
1841
d9a6bd32
JJ
18422015-10-13 Jakub Jelinek <jakub@redhat.com>
1843 Aldy Hernandez <aldyh@redhat.com>
1844
1845 * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
1846 (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
1847 (c_parser_omp_variable_list): Handle structure elements for
1848 map, to and from clauses. Handle array sections in reduction
1849 clause. Formatting fixes.
1850 (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
1851 if clause modifiers.
1852 (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
1853 c_parser_omp_clause_priority, c_parser_omp_clause_hint,
1854 c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
1855 c_parser_omp_clause_is_device_ptr): New functions.
1856 (c_parser_omp_clause_ordered): Parse optional parameter.
1857 (c_parser_omp_clause_reduction): Handle array reductions.
1858 (c_parser_omp_clause_schedule): Parse optional simd modifier.
1859 (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
1860 functions.
1861 (c_parser_omp_clause_linear): Parse linear clause modifiers.
1862 (c_parser_omp_clause_depend_sink): New function.
1863 (c_parser_omp_clause_depend): Parse source/sink depend kinds.
1864 (c_parser_omp_clause_map): Parse release/delete map kinds and
1865 optional always modifier.
1866 (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
1867 and c_finish_omp_clauses callers.
1868 (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses.
1869 Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
1870 (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
1871 (OMP_CRITICAL_CLAUSE_MASK): Define.
1872 (c_parser_omp_critical): Parse critical clauses.
1873 (c_parser_omp_for_loop): Handle doacross loops, adjust
1874 c_finish_omp_for and c_finish_omp_clauses callers.
1875 (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
1876 (c_parser_omp_simd): Allow ordered clause if it has no parameter.
1877 (OMP_FOR_CLAUSE_MASK): Add linear clause.
1878 (c_parser_omp_for): Disallow ordered clause when combined with
1879 distribute. Disallow linear clause when combined with distribute
1880 and not combined with simd.
1881 (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
1882 (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
1883 parse clauses and if depend clause is found, don't parse a body.
1884 (c_parser_omp_parallel): Disallow copyin clause on target parallel.
1885 Allow target parallel without for after it.
1886 (OMP_TASK_CLAUSE_MASK): Add priority clause.
1887 (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
1888 (c_parser_omp_target_data): Diagnose no map clauses or clauses with
1889 invalid kinds.
1890 (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
1891 (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
1892 OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
1893 (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
1894 functions.
1895 (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
1896 defaultmap and is_device_ptr clauses.
1897 (c_parser_omp_target): Parse target parallel and target simd. Set
1898 OMP_TARGET_COMBINED on combined constructs. Parse target enter data
1899 and target exit data. Diagnose invalid map kinds.
1900 (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
1901 (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
1902 construct.
1903 (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
1904 &omp_priv.
1905 (OMP_TASKLOOP_CLAUSE_MASK): Define.
1906 (c_parser_omp_taskloop): New function.
1907 (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
1908 handle PRAGMA_OMP_TASKLOOP.
1909 (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
1910 * c-tree.h (c_finish_omp_clauses): Add two new arguments.
1911 * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
1912 Add IS_OMP argument, handle structure element bases, diagnose
1913 bitfields, pass IS_OMP recursively, diagnose known zero length
1914 array sections in depend clauses, handle array sections in reduction
1915 clause, diagnose negative length even for pointers.
1916 (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
1917 types, pass IS_OMP down to handle_omp_array_sections_1, handle
1918 array sections in reduction clause, set
1919 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
1920 length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
1921 (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
1922 Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
1923
21ba0cea
MP
19242015-10-06 Marek Polacek <polacek@redhat.com>
1925
1926 * c-parser.c (c_parser_statement_after_labels): Use
1927 protected_set_expr_location.
1928 (c_parser_omp_clause_num_gangs): Likewise.
1929 (c_parser_omp_clause_num_threads): Likewise.
1930 (c_parser_omp_clause_num_workers): Likewise.
1931 (c_parser_omp_clause_vector_length): Likewise.
1932 (c_parser_omp_clause_num_teams): Likewise.
1933 (c_parser_omp_clause_thread_limit): Likewise.
1934 * c-typeck.c (build_c_cast): Likewise.
1935 (c_cast_expr): Likewise.
1936
624d31fe
RS
19372015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1938
1939 * c-typeck.c (c_tree_equal): Use real_equal instead of
1940 REAL_VALUES_EQUAL.
1941
b8fd7909
JM
19422015-10-04 Jason Merrill <jason@redhat.com>
1943
1944 * c-parser.c (c_lex_one_token): Handle @synchronized.
1945 * c-decl.c (match_builtin_function_types): A declaration of a built-in
1946 can change whether the function is transaction_safe.
1947
1c7485af
MP
19482015-10-02 Marek Polacek <polacek@redhat.com>
1949
1950 PR c/67730
1951 * c-typeck.c (convert_for_assignment): Use the expansion point
1952 location throughout.
1953
3e3b8d63
MP
19542015-10-02 Marek Polacek <polacek@redhat.com>
1955
1956 PR c/64249
1957 * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
1958 and pass it down to c_parser_if_statement.
1959 (c_parser_else_body): Add CHAIN parameter and pass it down to
1960 c_parser_statement_after_labels.
1961 (c_parser_if_statement): Add CHAIN parameter. Add code to warn about
1962 duplicated if-else-if conditions.
1963
aabef2de
MP
19642015-10-01 Marek Polacek <polacek@redhat.com>
1965
1966 * c-typeck.c (convert_for_assignment): Improve commentary.
1967
de8ddd5f
MP
19682015-09-30 Marek Polacek <polacek@redhat.com>
1969
1970 PR c/67730
1971 * c-typeck.c (c_finish_return): Use the expansion point location for
1972 certain "return with value" warnings.
1973
c4914de6
MLI
19742015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1975
1976 * c-parser.c (pragma_lex): Add loc argument.
1977
0e36f5c7
MP
19782015-09-15 Marek Polacek <polacek@redhat.com>
1979
1980 PR c/67580
1981 * c-decl.c (tag_exists_p): New function.
1982 * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
1983 struct/union/enum keywords are missing.
1984 * c-tree.h (tag_exists_p): Declare.
1985
2f3bb934
MP
19862015-09-15 Marek Polacek <polacek@redhat.com>
1987
1988 * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
1989 (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
1990 Return NULL_TREE instead of 0.
1991 (lookup_name): Return NULL_TREE instead of 0.
1992 (lookup_name_in_scope): Likewise.
1993 (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
1994 (parser_xref_tag): Use false instead of 0.
1995 (start_struct): Use true instead of 1.
1996 (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
1997
aa256c4a
MP
19982015-09-14 Marek Polacek <polacek@redhat.com>
1999
2000 * c-typeck.c (set_nonincremental_init_from_string): Use
2001 HOST_WIDE_INT_M1U when shifting a negative value.
2002
dbb68221
MW
20032015-09-09 Mark Wielaard <mjw@redhat.com>
2004
2005 * c-typeck.c (build_binary_op): Check and warn when nonnull arg
2006 parm against NULL.
2007
a8a098ac
JJ
20082015-09-10 Jakub Jelinek <jakub@redhat.com>
2009
2010 PR c/67502
2011 * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
2012 into OMP_FOR_PRE_BODY rather than before the loop.
2013
f4b189d5
JJ
20142015-09-09 Jakub Jelinek <jakub@redhat.com>
2015
0bb99c11
JJ
2016 PR c/67501
2017 * c-parser.c (c_parser_oacc_all_clauses,
2018 c_parser_omp_all_clauses): Remove invalid clause from
2019 list of clauses even if parser->error is set.
2020
fce5e5e3
JJ
2021 PR c/67500
2022 * c-parser.c (c_parser_omp_clause_aligned,
2023 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
2024 test for errors.
2025 * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
2026 error_mark_node.
2027
f4b189d5
JJ
2028 PR c/67495
2029 * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
2030 instead of c_parser_unary_expression. If the result is !lvalue_p,
2031 wrap the result of c_fully_fold into NON_LVALUE_EXPR.
2032
b2aaf235
MP
20332015-09-04 Marek Polacek <polacek@redhat.com>
2034
2035 PR sanitizer/67279
2036 * c-typeck.c (build_binary_op): Don't instrument static initializers.
2037
1807ffc1
MS
20382015-09-03 Martin Sebor <msebor@redhat.com>
2039
2040 PR c/66516
8b652e65
JJ
2041 * c-typeck.c (convert_arguments, parser_build_unary_op,
2042 build_conditional_expr, c_cast_expr, convert_for_assignment,
2043 build_binary_op, _objc_common_truthvalue_conversion): Call
1807ffc1
MS
2044 reject_gcc_builtin.
2045 (c_decl_implicit): Define.
2046
d04ff417
MP
20472015-09-02 Marek Polacek <polacek@redhat.com>
2048
2049 PR c/67432
2050 * c-parser.c (c_parser_enum_specifier): Give a better error for
2051 an empty enum.
2052
a79683d5
TS
20532015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
2054
2055 * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
2056
191a6b94
MP
20572015-08-12 Marek Polacek <polacek@redhat.com>
2058
2059 * c-decl.c (grokdeclarator): Call error_at instead of error and pass
2060 LOC to it.
2061
420a9d9b
MP
20622015-08-03 Marek Polacek <polacek@redhat.com>
2063
2064 PR c/67088
2065 * c-decl.c (check_bitfield_type_and_width): Add location parameter.
2066 Use it.
2067 (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
2068
992118a1
PP
20692015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2070
2071 * c-parser.c (c_parser_if_body): Take token_indent_info
2072 argument. Call warn_for_misleading_indentation even when the
2073 body is a semicolon. Extract token_indent_infos corresponding
2074 to the guard, body and next tokens. Adjust call to
2075 warn_for_misleading_indentation accordingly.
2076 (c_parser_else_body): Likewise.
2077 (c_parser_if_statement): Likewise.
2078 (c_parser_while_statement): Likewise.
2079 (c_parser_for_statement): Likewise.
2080
46308474
LFSM
20812015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com>
2082 Manuel López-Ibáñez <manu@gcc.gnu.org>
2083
2084 * c-decl.c (get_parm_info): Remove static var. Update warning
2085 message.
2086
05b28fd6
MP
20872015-07-27 Marek Polacek <polacek@redhat.com>
2088
2089 PR c++/66555
2090 PR c/54979
2091 * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
2092
451b5e48
MP
20932015-07-20 Marek Polacek <polacek@redhat.com>
2094
2095 PR c++/55095
2096 * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
2097 (build_binary_op): Warn about left shift overflows.
2098
1916bcb5
AM
20992015-07-09 Andrew MacLeod <amacleod@redhat.com>
2100
2101 * c-array-notation.c: Adjust includes for flags.h changes.
2102 * c-objc-common.c: Likewise.
2103
c7131fb2
AM
21042015-07-07 Andrew MacLeod <amacleod@redhat.com>
2105
2106 * c-array-notation.c: Adjust includes.
2107 * c-aux-info.c: Likewise.
2108 * c-convert.c: Likewise.
2109 * c-decl.c: Likewise.
2110 * c-errors.c: Likewise.
2111 * c-lang.c: Likewise.
2112 * c-objc-common.c: Likewise.
2113 * c-parser.c: Likewise.
2114 * c-typeck.c: Likewise.
2115
da2e71c9
MLI
21162015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2117
2118 PR fortran/66605
2119 * c-decl.c (finish_function): Call do_warn_unused_parameter.
2120
b155cfd9
MP
21212015-06-29 Marek Polacek <polacek@redhat.com>
2122
2123 PR c/66322
2124 * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
2125 (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn
2126 about -Wswitch-bool here.
2127 (do_case): Update c_add_case_label call.
2128 (c_finish_case): Update c_do_switch_warnings call.
2129
31521951
MP
21302015-06-27 Marek Polacek <polacek@redhat.com>
2131
2132 * c-typeck.c: Use VECTOR_TYPE_P throughout.
2133
22d03525
MP
21342015-06-26 Marek Polacek <polacek@redhat.com>
2135
2136 * c-array-notation.c (fix_builtin_array_notation_fn): Use
2137 INDIRECT_REF_P.
2138 * c-typeck.c (array_to_pointer_conversion): Likewise.
2139 (build_unary_op): Likewise.
2140 (c_finish_return): Likewise.
2141
f0889939
AM
21422015-06-25 Andrew MacLeod <amacleod@redhat.com>
2143
2144 * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
2145 * c-parser.c: Likewise.
2146
8d67ee55
RS
21472015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2148
2149 * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
2150 instead of pointer_hash.
2151 (detect_field_duplicates): Likewise.
2152
0ae9bd27
MP
21532015-06-25 Marek Polacek <polacek@redhat.com>
2154
2155 * c-array-notation.c: Use VAR_P throughout.
2156 * c-decl.c: Likewise.
2157 * c-objc-common.c: Likewise.
2158 * c-parser.c: Likewise.
2159 * c-typeck.c: Likewise.
2160
62f9079a
MP
21612015-06-25 Marek Polacek <polacek@redhat.com>
2162
2163 * c-decl.c: Use is_global_var throughout.
2164 * c-parser.c: Likewise.
2165 * c-typeck.c: Likewise.
2166
abb226c9
AM
21672015-06-17 Andrew MacLeod <amacleod@redhat.com>
2168
2169 * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
2170 * c-aux-info.c: Likewise.
2171 * c-convert.c: Likewise.
2172 * c-decl.c: Likewise.
2173 * c-errors.c: Likewise.
2174 * c-lang.c: Likewise.
2175 * c-objc-common.c: Likewise.
2176 * c-parser.c: Likewise.
2177 * c-typeck.c: Likewise.
2178
8cbababc
JH
21792015-06-11 Jan Hubicka <hubicka@ucw.cz>
2180
2181 PR middle-end/66325
2182 * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
2183 variants.
2184
a0349665
PMR
21852015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
2186
2187 * c-decl.c (pop_scope): Register the main translation unit
2188 through the new debug hook.
2189
13fdf2e2
AM
21902015-06-08 Andrew MacLeod <amacleod@redhat.com>
2191
2192 * c-array-notation.c : Adjust include files.
2193 * c-aux-info.c : Likewise.
2194 * c-convert.c : Likewise.
2195 * c-decl.c : Likewise.
2196 * c-errors.c : Likewise.
2197 * c-lang.c : Likewise.
2198 * c-lang.h : Likewise.
2199 * c-objc-common.c : Likewise.
2200 * c-parser.c : Likewise.
2201 * c-typeck.c : Likewise.
2202
d7438551
AH
22032015-06-05 Aldy Hernandez <aldyh@redhat.com>
2204
2205 * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
2206 immediately clobber it.
2207 (c_write_global_declarations_1): Remove call to
2208 check_global_declaration_1.
2209 (c_write_global_declarations_2): Remove.
2210 (c_write_final_cleanups): Rename from c_write_global_declarations.
2211 Remove call to finalize_compilation_unit.
2212 Remove calls to debugging hooks.
2213 * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
2214 * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
2215 * c-tree.h: Remove c_write_global_declarations.
2216
ecb9f223
AM
22172015-06-04 Andrew MacLeod <amacleod@redhat.com>
2218
2219 * c-array-notation.c: Adjust includes for restructured coretypes.h.
2220 * c-aux-info.c: Likewise.
2221 * c-convert.c: Likewise.
2222 * c-decl.c: Likewise.
2223 * c-errors.c: Likewise.
2224 * c-lang.c: Likewise.
2225 * c-objc-common.c: Likewise.
2226 * c-parser.c: Likewise.
2227 * c-typeck.c: Likewise.
2228
9482b620
MP
22292015-06-04 Marek Polacek <polacek@redhat.com>
2230
2231 PR c/66341
2232 * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
2233 it is a lvalue.
2234
bc51ace3
PK
22352015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2236
2237 * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
2238 Warn for empty struct.
2239 (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
2240
ea5b45b6
AT
22412015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
2242
2243 * c-decl.c (start_function): Call plugin before parsing.
2244 (finish_function): Call plugin after parsing.
2245
c2d47482
PK
22462015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2247
2248 PR c/49551
2249 * c-decl.c (merge_decls): Merge DECL_COMMON.
2250
a95492ab
JW
22512015-05-22 Jim Wilson <jim.wilson@linaro.org>
2252
2253 * Make-lang.in (check_gcc_pallelize): Define.
2254
fd5c817a
MP
22552015-05-22 Marek Polacek <polacek@redhat.com>
2256
2257 PR c/47043
2258 * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
2259 attributes.
2260
c7b70a3c
MP
22612015-05-21 Marek Polacek <polacek@redhat.com>
2262
2263 * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
2264 DECL_BUILT_IN.
2265
21b634ae
MP
22662015-05-20 Marek Polacek <polacek@redhat.com>
2267
2268 * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2269 * c-typeck.c: Likewise.
2270
296a8c2f
MP
22712015-05-19 Marek Polacek <polacek@redhat.com>
2272
2273 * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
2274
41b37d5e
JJ
22752015-05-19 Jakub Jelinek <jakub@redhat.com>
2276
2277 PR middle-end/66199
2278 * c-parser.c (c_parser_omp_for_loop): Don't add
2279 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
2280 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
2281 (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
2282 constructs.
2283
fab27f52
MM
22842015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2285
2286 * c-typeck.c (build_array_ref): Use std::swap instead of explicit
296a8c2f 2287 swaps.
fab27f52 2288
40de31cf
MLI
22892015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2290
2291 PR fortran/44054
2292 * c-objc-common.c (c_tree_printer): Replace locus pointer with
2293 accessor function.
2294
3aa3c9fc
MP
22952015-05-14 Marek Polacek <polacek@redhat.com>
2296
2297 PR c/66066
2298 PR c/66127
2299 * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
2300 rather than with 0.
2301
c3388e62
DM
23022015-05-12 David Malcolm <dmalcolm@redhat.com>
2303
2304 * c-parser.c (c_parser_if_body): Add param "if_loc", use it
2305 to add a call to warn_for_misleading_indentation.
2306 (c_parser_else_body): Likewise, adding param "else_loc".
2307 (c_parser_if_statement): Check for misleading indentation.
2308 (c_parser_while_statement): Likewise.
2309 (c_parser_for_statement): Likewise.
2310
755e528f
MP
23112015-05-08 Marek Polacek <polacek@redhat.com>
2312
2313 PR c/64918
2314 * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
2315 (output_init_element): Likewise.
2316
0173bd2a
MP
23172015-05-07 Marek Polacek <polacek@redhat.com>
2318
2319 PR c/65179
2320 * c-typeck.c (build_binary_op): Warn when left shifting a negative
2321 value.
2322
9babc352
MP
23232015-04-30 Marek Polacek <polacek@redhat.com>
2324
2325 * c-typeck.c (set_init_label): Call error_at instead of error and
2326 pass LOC to it.
2327
ac9f18db
MP
2328 * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print
2329 the type of a decl.
2330
ec3fba51
MP
2331 * c-typeck.c (c_build_va_arg): Clarify the error message.
2332
b811915d
TS
23332015-04-29 Thomas Schwinge <thomas@codesourcery.com>
2334
2335 * c-parser.c (c_parser_oacc_enter_exit_data): Use
2336 OMP_STANDALONE_CLAUSES.
2337
f3075008
MP
23382015-04-28 Marek Polacek <polacek@redhat.com>
2339
2340 * c-parser.c (c_parser_binary_expression): Remove duplicate line.
2341
4e81b788
MP
23422015-04-28 Marek Polacek <polacek@redhat.com>
2343
2344 PR c/65901
2345 * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
2346
6c1db78e
MP
23472015-04-25 Marek Polacek <polacek@redhat.com>
2348
2349 PR c/52085
2350 * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode"
2351 attribute.
2352
5c4abbb8
MP
23532015-04-23 Marek Polacek <polacek@redhat.com>
2354
2355 PR c/65345
2356 * c-decl.c (set_labels_context_r): New function.
2357 (store_parm_decls): Call it via walk_tree_without_duplicates.
2358 * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
2359 instead of create_tmp_var. Build TARGET_EXPR instead of
2360 COMPOUND_EXPR.
2361 (build_atomic_assign): Use create_tmp_var_raw instead of
2362 create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR.
2363
06aca1d5
IV
23642015-04-20 Ilya Verbin <ilya.verbin@intel.com>
2365
2366 * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
2367 (c_parser_omp_target_update): Add missed %> to error_at ().
2368
8fba1830
BRF
23692015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2370
2371 PR target/55143
2372 * c-decl.c (c_default_pointer_mode): Remove definition.
2373 * c-tree.h (c_default_pointer_mode): Remove declaration.
2374
62021f64
TB
23752015-03-27 Tobias Burnus <burnus@net-b.de>
2376
2377 PR c/65586
2378 * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
2379 error out.
2380 (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
2381 c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
2382 Update calls to not error for skipped omp pragmas with -fopenmp-simd.
2383
9b65e171
JJ
23842015-03-19 Jakub Jelinek <jakub@redhat.com>
2385
2386 * c-decl.c (c_decl_attributes): Also add "omp declare target"
2387 attribute for DECL_EXTERNAL VAR_DECLs.
2388
17958621
JJ
23892015-03-11 Jakub Jelinek <jakub@redhat.com>
2390
2391 * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
2392 argument.
2393
7ccb1a11
JJ
23942015-03-10 Jakub Jelinek <jakub@redhat.com>
2395
2396 PR c/65120
2397 * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
2398 before preparing arguments to warn_logical_not_parentheses.
2399
01177669
JJ
24002015-03-09 Jakub Jelinek <jakub@redhat.com>
2401
2402 PR c/65120
2403 * c-typeck.c (parser_build_binary_op): Don't warn for
2404 !!x == y or !b == y where b is _Bool.
2405
802ac282
MP
24062015-03-09 Marek Polacek <polacek@redhat.com>
2407
2408 * c-convert.c (convert): Make use of do_ubsan_in_current_function.
2409 * c-decl.c (grokdeclarator): Likewise.
2410 * c-typeck.c (build_binary_op): Likewise.
2411
e5165b60
MP
24122015-02-27 Marek Polacek <polacek@redhat.com>
2413
2414 PR c/65228
2415 * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
2416
065d214c
MP
24172015-02-14 Marek Polacek <polacek@redhat.com>
2418
2419 PR c/64768
2420 * c-decl.c (grokdeclarator): Set the range of a flexible array member
2421 declared through a typedef name.
2422
e5d9235b
MP
24232015-02-13 Marek Polacek <polacek@redhat.com>
2424
2425 PR c/65050
2426 * c-decl.c (grokdeclarator): Print also the type when giving
2427 the error message about array's incomplete element type.
2428
fa01ffcc
JJ
24292015-02-11 Jakub Jelinek <jakub@redhat.com>
2430
2431 PR c/64824
2432 * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
2433 check in the POP macro.
2434
c3e38a03
MP
24352015-02-09 Marek Polacek <polacek@redhat.com>
2436
2437 PR c/64856
2438 * c-typeck.c (process_init_element): Don't always wrap
2439 COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
2440 initializing a range of elements.
2441
4886ec8e
JJ
24422015-02-04 Jakub Jelinek <jakub@redhat.com>
2443
2444 PR c/64824
2445 PR c/64868
2446 * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
2447
c3e38a03 24482015-02-02 Bruno Loff <bruno.loff@gmail.com>
a4bb6959
BL
2449
2450 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
2451 processing enum declaration.
2452
7b33f0c8
MP
24532015-01-29 Marek Polacek <polacek@redhat.com>
2454
2455 PR c/64709
2456 * c-typeck.c (pop_init_level): If constructor_elements has
2457 exactly one element with integer_zerop value, set constructor_zeroinit
2458 to 1. Remove braces around warning_init call.
2459
dea63e49
JJ
24602015-01-27 Jakub Jelinek <jakub@redhat.com>
2461
2462 PR c/64766
2463 * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
2464 of FUNCTION_DECLs with error_mark_node.
2465
d38f7dce
JJ
24662015-01-26 Jakub Jelinek <jakub@redhat.com>
2467
2468 PR c/64778
2469 * c-typeck.c (convert_arguments): Return -1 if there are
2470 error_args, even if we've diagnosed too many arguments.
2471
cbf5d0e7
RB
24722015-01-21 Richard Biener <rguenther@suse.de>
2473
2474 PR middle-end/64313
2475 * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
2476 for builtins the user declared correctly.
2477
41dbbb37
TS
24782015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2479 Bernd Schmidt <bernds@codesourcery.com>
2480 Cesar Philippidis <cesar@codesourcery.com>
2481 James Norris <jnorris@codesourcery.com>
2482 Jakub Jelinek <jakub@redhat.com>
2483 Ilmir Usmanov <i.usmanov@samsung.com>
2484
2485 * c-parser.c: Include "gomp-constants.h".
2486 (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
2487 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
2488 Use OMP_CLAUSE_SET_MAP_KIND.
2489 (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
2490 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
2491 (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
2492 PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
2493 PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
2494 (c_parser_omp_clause_name): Handle "auto", "async", "copy",
2495 "copyout", "create", "delete", "deviceptr", "gang", "host",
2496 "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
2497 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
2498 "present_or_create", "pcreate", "seq", "self", "vector",
2499 "vector_length", "wait", "worker".
2500 (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
2501 (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
2502 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
2503 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
2504 (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
2505 (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
2506 (c_parser_oacc_data_clause_deviceptr)
2507 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
2508 (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
2509 (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
2510 (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
2511 (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
2512 (c_parser_oacc_parallel, c_parser_oacc_update)
2513 (c_parser_oacc_wait): New functions.
2514 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
2515 (c_finish_oacc_data): New prototypes.
2516 * c-typeck.c: Include "gomp-constants.h".
2517 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
2518 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
2519 OMP_CLAUSE_SET_MAP_KIND.
2520 (c_finish_oacc_parallel, c_finish_oacc_kernels)
2521 (c_finish_oacc_data): New functions.
2522 (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
2523 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
2524 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
2525 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
2526 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
2527 GOMP_MAP_FORCE_DEVICEPTR.
2528
adfac8df
JJ
25292015-01-09 Michael Collison <michael.collison@linaro.org>
2530
2531 * c-array-notation.c: Include hash-set.h, machmode.h,
2532 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2533 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2534 * c-aux-info.c: Ditto.
2535 * c-convert.c: Ditto.
2536 * c-decl.c: Ditto.
2537 * c-errors.c: Ditto.
2538 * c-lang.c: Dittoxs.
2539 * c-objc-common.c: Ditto.
2540 * c-parser.c: Ditto.
2541 * c-typeck.c: Include hash-set.h, machmode.h,
2542 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2543 fold-const.h, wide-int.h, inchash.h, real.h and
2544 fixed-value.h due to flattening of tree.h.
2545
2cc901dc
MP
25462015-01-07 Marek Polacek <polacek@redhat.com>
2547
2548 PR c/64417
2549 * c-typeck.c (process_init_element): Disallow initialization of
2550 a flexible array member with a string constant if the structure
2551 is in an array.
2552
5624e564
JJ
25532015-01-05 Jakub Jelinek <jakub@redhat.com>
2554
e5341100
JJ
2555 PR sanitizer/64344
2556 * c-typeck.c (convert_for_assignment, c_finish_return): For
2557 -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
2558 types also set in_late_binary_op around convert call.
2559 * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
2560 to integral type casts, if not in_late_binary_op, pass c_fully_fold
2561 result on expr as last argument to ubsan_instrument_float_cast,
2562 if in_late_binary_op, don't use c_save_expr but save_expr.
2563
5624e564
JJ
2564 Update copyright years.
2565
5bd012f8
MP
25662015-01-05 Marek Polacek <polacek@redhat.com>
2567
2568 PR c/64423
2569 * c-typeck.c (build_array_ref): Pass loc down to
2570 warn_array_subscript_with_type_char.
2571
3f8257db 25722014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
2573
2574 * c-typeck.c: New behavious for pointers to arrays with qualifiers
8e745a17 2575 (common-pointer-type): For pointers to arrays take qualifiers from
768952be 2576 element type.
8e745a17 2577 (build_conditional_expr): Add warnings for lost qualifiers.
768952be 2578 (comp-target-types): Allow pointers to arrays with different qualifiers.
8e745a17 2579 (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
768952be 2580 WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
8e745a17 2581 to PEDWARN_FOR_QUALIFIERS.
768952be 2582
8f94a8c4
JJ
25832014-12-17 Jakub Jelinek <jakub@redhat.com>
2584
2585 PR sanitizer/64289
2586 * c-convert.c: Include ubsan.h.
2587 (convert): For real -> integral casts and
2588 -fsanitize=float-cast-overflow don't call convert_to_integer, but
2589 instead instrument the float cast directly.
2590
b731b390
JJ
25912014-11-29 Jakub Jelinek <jakub@redhat.com>
2592
2593 * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
2594 c_finish_stmt_expr): Remove NULL last argument from
2595 create_tmp_var_raw and create_tmp_var calls.
2596 * c-array-notation.c (fix_builtin_array_notation_fn,
2597 build_array_notation_expr, fix_conditional_array_notations_1,
2598 fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
2599
541e35a6
MP
26002014-11-28 Marek Polacek <polacek@redhat.com>
2601
2602 PR c/63862
2603 * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
2604 convert the right operand to integer type.
2605
b286be94
MP
26062014-11-25 Marek Polacek <polacek@redhat.com>
2607
2608 PR c/63877
2609 * c-decl.c (start_function): Disable -Wmissing-declarations warning
2610 for inline functions.
2611
aa7da51a
JJ
26122014-11-21 Jakub Jelinek <jakub@redhat.com>
2613
2614 PR target/63764
2615 * c-typeck.c (build_array_ref): Adjust
2616 convert_vector_to_pointer_for_subscript caller. If it returns true,
2617 call non_lvalue_loc on the result.
2618
d876207f
RB
26192014-11-11 Richard Biener <rguenther@suse.de>
2620
2621 * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
2622 to true.
2623
e5e44252
AK
26242014-11-10 Andi Kleen <ak@linux.intel.com>
2625
2626 PR c/60804
2627 * c-parser.c (c_parser_statement_after_labels): Call
2628 check_no_cilk.
2629 (c_parser_if_statement): Dito.
2630 (c_parser_switch_statement): Dito.
2631 (c_parser_while_statement): Dito.
2632 (c_parser_do_statement): Dito.
2633 (c_parser_for_statement): Dito.
2634 * c-typeck.c (c_finish_loop): Dito.
2635
13c21655
PC
26362014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2637
2638 * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
2639 OPT_Wshift_count_overflow in the warnings.
2640
2d51fcef
MP
26412014-10-30 Marek Polacek <polacek@redhat.com>
2642
2643 * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
2644 print the stripped version as well, if they're not the same.
2645
ef4bddc2
RS
26462014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2647
2648 * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
2649 machine_mode.
2650
c582198b
AM
26512014-10-28 Andrew MacLeod <amacleod@redhat.com>
2652
2653 * c-decl.c: Adjust include files.
2654 * c-parser.c: Ditto.
2655
ddc8de03
PM
26562014-10-27 Phil Muldoon <pmuldoon@redhat.com>
2657 Tom Tromey <tromey@redhat.com>
2658
2659 * c-tree.h (enum c_oracle_request): New.
2660 (c_binding_oracle_function): New typedef.
2661 (c_binding_oracle, c_pushtag, c_bind): Declare.
2662 * c-decl.c (c_binding_oracle): New global.
2663 (I_SYMBOL_CHECKED): New macro.
2664 (i_symbol_binding): New function.
2665 (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
2666 (I_TAG_CHECKED): New macro.
2667 (i_tag_binding): New function.
2668 (I_TAG_BINDING, I_TAG_DECL): Redefine.
2669 (I_LABEL_CHECKED): New macro.
2670 (i_label_binding): New function.
2671 (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
2672 (c_print_identifier): Save and restore c_binding_oracle.
2673 (c_pushtag, c_bind): New functions.
2674
60393bbc
AM
26752014-10-27 Andrew MacLeod <amacleod@redhat.com>
2676
2677 * c-typeck.c: Adjust include files.
2678
d723bb7c
MLI
26792014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2680
2681 PR c++/53061
2682 * c-objc-common.c (c_objc_common_init): Do not do diagnostics
2683 initialization here...
2684 (c_initialize_diagnostics): ... but here. Set defaults after
2685 building pretty-printer.
2686
1bc5a451
MP
26872014-10-23 Marek Polacek <polacek@redhat.com>
2688
2689 PR c/63626
2690 * c-decl.c (pop_scope): Don't print warning in external_scope.
2691
4435bb92
MP
26922014-10-19 Marek Polacek <polacek@redhat.com>
2693
2694 PR c/63567
2695 * c-typeck.c (output_init_element): Allow initializing objects with
2696 static storage duration with compound literals even in C99 and add
2697 pedwarn for it.
2698
7278465e
MP
26992014-10-17 Marek Polacek <polacek@redhat.com>
2700
2701 PR c/63567
2702 * c-typeck.c (digest_init): Allow initializing objects with static
2703 storage duration with compound literals even in C99 and add pedwarn
2704 for it.
2705
d9b7be2e
MP
27062014-10-17 Marek Polacek <polacek@redhat.com>
2707
2708 PR c/63543
2709 * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
2710 * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
2711 error multiple times. Print the type.
2712
f406ae1f
MP
27132014-10-17 Marek Polacek <polacek@redhat.com>
2714
2715 PR c/63549
2716 * c-typeck.c (build_array_ref): Bail if the index in an incomplete
2717 type.
2718
92574c7c
MP
27192014-10-17 Marek Polacek <polacek@redhat.com>
2720
2721 * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
2722 (start_function): Use OPT_Wimplicit_int instead of 0.
2723 (store_parm_decls_oldstyle): Likewise.
2724
1bc4a978
MT
27252014-10-17 Alan Modra <amodra@gmail.com>
2726
2727 PR middle-end/61848
2728 * c-decl.c (merge_decls): Don't merge section name or tls model
2729 to newdecl symtab node, instead merge to olddecl. Override
2730 existing olddecl section name. Set tls_model for all thread-local
2731 vars, not just OMP thread-private ones. Remove incorrect comment.
2732
83685514
AM
27332014-10-16 Andrew MacLeod <amacleod@redhat.com>
2734
2735 * c-decl.c: Adjust include files.
2736
78a7c317
DD
27372014-10-14 DJ Delorie <dj@redhat.com>
2738
2739 * c-parser.c (c_parse_init): Add RID entries for each __intN.
2740 (c_token_starts_typename): Check all __intN, not just __int128.
2741 (c_token_starts_declspecs): Likewise.
2742 (c_parser_declspecs): Likewise.
2743 (c_parser_attribute_any_word): Likewise.
2744 (c_parser_objc_selector): Likewise.
2745 * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
2746 (struct c_declspecs): Add int_n_idx field to record *which* __intN
2747 is specified.
2748 * c-decl.c (declspecs_add_type): Check for all __intN, not just
2749 __int128.
2750 (finish_declspecs): Likewise.
2751
74d98c1e
AB
27522014-10-13 Anthony Brandon <anthony.brandon@gmail.com>
2753
8e745a17 2754 * c-parser.c (c_parser_all_labels): New function to replace
74d98c1e 2755 the duplicate code.
8e745a17 2756 (c_parser_statement): Call the new function.
74d98c1e 2757
84937de2
MP
27582014-10-09 Marek Polacek <polacek@redhat.com>
2759
2760 PR c/63480
2761 * c-typeck.c (pop_init_level): Don't warn about initializing
2762 with { }.
2763
0382aaa0
MP
27642014-10-07 Marek Polacek <polacek@redhat.com>
2765
2766 PR c/59717
2767 * c-decl.c (header_for_builtin_fn): New function.
2768 (implicitly_declare): Suggest which header to include.
2769
7a0ca710
MP
27702014-10-07 Marek Polacek <polacek@redhat.com>
2771
2772 * c-convert.c (convert): Use error_operand_p.
2773 * c-typeck.c (require_complete_type): Likewise.
2774 (really_atomic_lvalue): Likewise.
2775 (digest_init): Likewise.
2776 (handle_omp_array_sections_1): Likewise.
2777
6bc8a126
MP
27782014-10-03 Marek Polacek <polacek@redhat.com>
2779
2780 PR c/63453
2781 * c-decl.c (pop_scope): Don't warn about "inline function declared
2782 but never defined" for functions marked with gnu_inline attribute.
2783
d90c0a59
JJ
27842014-09-25 Jakub Jelinek <jakub@redhat.com>
2785
2786 PR c++/63249
2787 * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
2788 on low_bound and length.
2789
083e891e
MP
27902014-09-24 Marek Polacek <polacek@redhat.com>
2791
2792 PR c/61405
2793 PR c/53874
2794 * c-parser.c: Don't define CPP_KEYWORD.
2795 (c_parser_switch_statement): Pass original type to c_finish_case.
2796 * c-tree.h (c_finish_case): Update declaration.
2797 * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it
2798 conditionally to c_do_switch_warnings.
2799
8d95fe25
MP
28002014-09-03 Marek Polacek <polacek@redhat.com>
2801
2802 PR c/62024
2803 * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
2804 conversions.
2805
9a771876
JJ
28062014-09-02 Jakub Jelinek <jakub@redhat.com>
2807 Balaji V. Iyer <balaji.v.iyer@intel.com>
2808 Igor Zamyatin <igor.zamyatin@intel.com>
2809
2810 * c-parser.c (c_parser_cilk_for): New function.
2811 (c_parser_cilk_grainsize): Likewise.
2812 (c_get_temp_regvar): Likewise.
2813 (c_parser_statement_after_labels): Added RID_CILK_FOR case.
2814 (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
2815 (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
2816 * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
2817 case.
2818
b7679d96
CG
28192014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
2820
2821 * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
2822 with using HOST_WIDE_INT without truncation to 'int'
2823
59ea0364
MP
28242014-08-22 Marek Polacek <polacek@redhat.com>
2825
2826 PR c++/62199
2827 * c-typeck.c (parser_build_binary_op): Adjust call to
2828 warn_logical_not_parentheses.
2829
671a475e
IZ
28302014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
2831
2832 PR other/62008
2833 * c-parser.c (c_parser_array_notation): Check for correct
2834 type of an array added.
2835
04159acf
MP
28362014-08-19 Marek Polacek <polacek@redhat.com>
2837
2838 PR c++/62153
2839 * c-typeck.c (build_binary_op): If either operand of a comparison
2840 is a boolean expression, call maybe_warn_bool_compare.
2841
c77935ee
PP
28422014-08-19 Patrick Palka <ppalka@gcc.gnu.org>
2843
2844 PR c/45584
2845 * c-typeck.c (build_c_cast): Do a conversion even when the
2846 TYPE_MAIN_VARIANTs are the same.
2847
35aff4fb
MP
28482014-08-19 Marek Polacek <polacek@redhat.com>
2849
2850 * c-decl.c (diagnose_mismatched_decls): Unconditionally call
2851 pedwarn_c99 instead of pedwarn.
2852 (grokfield): Likewise.
2853 (warn_defaults_to): New function.
2854 (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
2855 Unconditionally call pedwarn_c99 instead of pedwarn.
2856 (start_function): Call warn_defaults_to instead of pedwarn_c99.
2857 (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
2858 check flag_isoc11 before.
2859 * c-errors.c (pedwarn_c99): Change the return type to bool.
2860 Handle -Wc99-c11-compat.
2861 * c-parser.c (disable_extension_diagnostics): Handle
2862 warn_c99_c11_compat.
2863 (restore_extension_diagnostics): Likewise.
2864 (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
2865 instead of pedwarn, don't check flag_isoc11 before.
2866 (c_parser_declspecs): Likewise.
2867 (c_parser_alignas_specifier): Likewise.
2868 (c_parser_alignof_expression): Likewise.
2869 (c_parser_generic_selection): Likewise.
2870 * c-tree.h (pedwarn_c99): Update declaration.
2871 * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
2872 of pedwarn_c99.
2873
177cce46
MP
28742014-08-19 Marek Polacek <polacek@redhat.com>
2875
2876 * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
2877 to pedwarn_c90.
2878 * c-errors.c: Include "opts.h".
2879 (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
2880 * c-parser.c (disable_extension_diagnostics): Handle negative value
2881 of warn_c90_c99_compat, too.
2882 (restore_extension_diagnostics): Likewise.
2883 (c_parser_compound_statement_nostart): Pass
2884 OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
2885
6dc99c33
MP
28862014-08-12 Marek Polacek <polacek@redhat.com>
2887
2888 * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
2889 Add pedwarn.
2890 (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
2891 Likewise.
2892 (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
2893
3f8257db 28942014-08-10 Marek Polacek <polacek@redhat.com>
f3bede71
MP
2895
2896 PR c/51849
2897 * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
2898 Call pedwarn_c90 instead of pedwarn.
2899 (check_bitfield_type_and_width): Likewise.
2900 (declspecs_add_qual): Likewise.
2901 (declspecs_add_type): Likewise.
2902 (warn_variable_length_array): Unify function for -pedantic and -Wvla.
2903 Adjust to only call pedwarn_c90.
2904 (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
2905 pedwarn_c90 instead of pedwarn.
2906 * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
2907 * c-parser.c (disable_extension_diagnostics): Handle
2908 warn_c90_c99_compat.
2909 (restore_extension_diagnostics): Likewise.
2910 (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
2911 pedwarn_c90 instead of pedwarn.
2912 (c_parser_initelt): Likewise.
2913 (c_parser_postfix_expression): Likewise.
2914 (c_parser_postfix_expression_after_paren_type): Likewise.
2915 (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
2916 * c-tree.h: Fix formatting.
2917 * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
2918 pedwarn_c90 instead of pedwarn.
2919
9f25a338
TS
29202014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2921
2922 * c-typeck.c: Remove include of pointer-set.h.
2923
044331a8
MP
29242014-08-07 Marek Polacek <polacek@redhat.com>
2925
2926 * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
2927
b787e7a2
TS
29282014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2929
2930 * c-typeck.c: Use hash_map instead of pointer_map.
2931
6e2830c3
TS
29322014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2933
2934 * c-decl.c: Use hash_set instead of pointer_set.
2935
a7ee52fb
IZ
29362014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2937
2938 PR middle-end/61455
2939 * c-array-notation.c (expand_array_notations): Handling
2940 of DECL_EXPR added.
2941
b4dfdc11
MG
29422014-07-31 Marc Glisse <marc.glisse@inria.fr>
2943
2944 PR c++/60517
2945 * c-typeck.c (c_finish_return): Return 0 instead of the address of
2946 a local variable.
2947
976d5a22
TT
29482014-07-30 Tom Tromey <tromey@redhat.com>
2949
2950 * c-typeck.c (struct constructor_stack) <designator_depth>: New
2951 field.
2952 (really_start_incremental_init, push_init_level): Initialize
2953 designator_depth.
2954 (pop_init_level): Set global designator_depth.
2955 (process_init_element): Check for designated_init attribute.
2956
30281de2
MP
29572014-07-20 Marek Polacek <polacek@redhat.com>
2958
2959 PR c/61852
2960 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
2961 (implicitly_declare): Pass location to implicit_decl_warning.
2962
b108f48f
JJ
29632014-07-14 Jakub Jelinek <jakub@redhat.com>
2964
2965 PR middle-end/61294
2966 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
2967 If non-NULL, call c_parser_check_literal_zero.
2968 (c_parser_check_literal_zero): New function.
2969 (c_parser_postfix_expression_after_primary): Adjust
2970 c_parser_expr_list caller, handle -Wmemset-transposed-args.
2971
773ec47f
MP
29722014-07-06 Marek Polacek <polacek@redhat.com>
2973
2974 PR c/6940
2975 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
2976 * c-tree.h (C_ARRAY_PARAMETER): Define.
2977 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
2978 function parameter.
2979
22e1cf1c 29802014-07-02 Jan Hubicka <hubicka@ucw.cz>
3f8257db 2981 Chen Gang <gang.chen.5i5j@gmail.com>
22e1cf1c
JH
2982
2983 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
2984 releasing symbol.
2985
52ec0ea3
MP
29862014-07-01 Marek Polacek <polacek@redhat.com>
2987
2988 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
2989 instead of 0 to WARN_FOR_ASSIGNMENT.
2990
d5c3d343
MP
29912014-07-01 Marek Polacek <polacek@redhat.com>
2992
2993 PR c/58286
2994 * c-typeck.c (convert_for_assignment): Pass
2995 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
2996
6a7253a4
MP
29972014-06-30 Marek Polacek <polacek@redhat.com>
2998
2999 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
3000 has no_sanitize_undefined attribute.
3001
5e88a8f4
IZ
30022014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
3003
3004 PR middle-end/57541
3005 * c-array-notation.c (fix_builtin_array_notation_fn):
3006 Check for 0 arguments in builtin call. Check that bultin argument is
3007 correct.
3008 * c-parser.c (c_parser_array_notation): Check for incorrect initial
3009 index.
3010
9698b078
SH
30112014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
3012
3013 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
3014 qualifiers in __auto_type for atomic types.
3015 (c_parser_typeof_specifier): Discard all type qualifiers in
3016 __typeof__ for atomic types.
3017
6e07c515
MP
30182014-06-25 Marek Polacek <polacek@redhat.com>
3019
3020 PR c/61162
3021 * c-parser.c (c_parser_statement_after_labels): Pass the location of
3022 the return expression to c_finish_return.
3023
da6f124d
JJ
30242014-06-25 Jakub Jelinek <jakub@redhat.com>
3025
3026 * c-typeck.c (c_finish_omp_clauses): Make sure
3027 OMP_CLAUSE_LINEAR_STEP has correct type.
3028
c203e8a7
TS
30292014-06-24 Trevor Saunders <tsaunders@mozilla.com>
3030
3031 * c-decl.c: Adjust.
3032
56ad0e38
JJ
30332014-06-24 Jakub Jelinek <jakub@redhat.com>
3034
3035 * c-parser.c (c_parser_omp_for_loop): For
3036 #pragma omp parallel for simd move lastprivate clause from parallel
3037 to for rather than simd.
3038
47c2554f
MP
30392014-06-23 Marek Polacek <polacek@redhat.com>
3040
3041 * c-typeck.c (parser_build_binary_op): Don't call
3042 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
3043
56363ffd
JH
30442014-06-15 Jan Hubicka <hubicka@ucw.cz>
3045
3046 * c-parser.c (c_parser_omp_threadprivate): Likewise.
3047 * c-decl.c (merge_decls): Likewise.
3048
d7ff7ae5
MP
30492014-06-09 Marek Polacek <polacek@redhat.com>
3050
3051 PR c/36446
3052 * c-typeck.c (error_init): Call inform instead of error_at.
3053 (pedwarn_init): Call inform instead of pedwarn.
3054 (warning_init): Call inform instead of warning_at.
3055
24d047a3
JH
30562014-06-07 Jan Hubicka <hubicka@ucw.cz>
3057
3058 * c-decl.c (merge_decls): Use set_decl_section_name.
3059 (duplicate_decls): Remove node if it exists.
3060
9bac5cbb
G
30612014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
3062
3063 PR c/53119
3064 * c-typeck.c (push_init_level, process_init_element,
3065 pop_init_level): Correct check for zero initialization, move
3066 missing brace warning to respect zero initialization.
3067
8ffcdea8
MP
30682014-06-05 Marek Polacek <polacek@redhat.com>
3069
3070 PR c/56724
3071 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
3072
742938c9
MP
30732014-06-05 Marek Polacek <polacek@redhat.com>
3074
3075 PR c/49706
3076 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
3077 on the left hand side operand of a comparison.
3078
6447c55d
MP
30792014-06-05 Marek Polacek <polacek@redhat.com>
3080
3081 PR c/48062
3082 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
3083 Print note only if the warning was printed.
3084
9dc7743c
IZ
30852014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
3086
3087 PR c/58942
3088 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
3089 with a pointer.
3090
fedfecef
MP
30912014-06-03 Marek Polacek <polacek@redhat.com>
3092
3093 PR c/60439
3094 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
3095 c_start_case.
3096 * c-tree.h (c_start_case): Update.
3097 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
3098 switch condition has boolean value.
3099
9b2b7279
AM
31002014-06-02 Andrew MacLeod <amacleod@redhat.com>
3101
3102 * c-decl.c: Include builtins.h.
3103 * c-parser.c: Likewise.
3104
5c1bc275
MP
31052014-05-27 Marek Polacek <polacek@redhat.com>
3106
3107 PR c/56724
3108 * c-typeck.c (convert_arguments): Get location of a parameter. Change
3109 error and warning calls to error_at and warning_at. Pass location of
3110 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
3111 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
3112 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
3113
97563bc8
IZ
31142014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
3115
3116 PR c/61191
3117 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
3118 function parameters.
3119
aede2c10
JH
31202014-05-23 Jan Hubicka <hubicka@ucw.cz>
3121
3122 * c-decl.c (merge_decls): Preserve symtab node pointers.
3123 (duplicate_decls): Free new decl.
3124
edbba2ce
TS
31252014-05-23 Thomas Schwinge <thomas@codesourcery.com>
3126
f3316c6d
TS
3127 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
3128 initialization.
3129
edbba2ce
TS
3130 * c-parser.c (c_parser_omp_target): Return bool values.
3131
68c81f24
TS
31322014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3133
3134 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
3135 num_teams_loc variable to num_thread_limit_loc.
3136
632f2871
RS
31372014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3138
3139 * c-array-notation.c (expand_array_notations): Use void_node
3140 instead of void_zero_node.
3141
766090c2
TS
31422014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3143
3144 * c-decl.c (finish_struct): Adjust.
3145 (finish_enum): Likewise.
3146 (bind): Adjust.
3147 (record_inline_static): Likewise.
3148 (push_scope): Likewise.
3149 (make_label): Likewise.
3150 (lookup_label_for_goto): Likewise.
3151 (finish_struct): Likewise.
3152 (finish_enum): Likewise.
3153 (store_parm_decls): Likewise.
3154 (c_push_function_context): Likewise.
3155 * c-lang.h: Remove usage of variable_size gty attribute.
3156 * c-parser.c (c_parse_init): Adjust.
3157 (c_parse_file): Likewise.
3158
2b107f6b
MP
31592014-05-13 Marek Polacek <polacek@redhat.com>
3160
3161 PR c/61162
3162 * c-typeck.c (convert_for_assignment): Pass location to
3163 WARN_FOR_ASSIGNMENT instead of input_location.
3164
d033409e
MP
31652014-05-10 Marek Polacek <polacek@redhat.com>
3166
3167 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
3168 maybe_warn_string_init.
3169 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
3170 maybe_warn_string_init.
3171 * c-tree.h (maybe_warn_string_init): Update declaration.
3172 * c-typeck.c (maybe_warn_string_init): Add location parameter.
3173 Call pedwarn_init with loc instead of with input_location.
3174 (digest_init): Pass init_loc to maybe_warn_string_init.
3175 (pop_init_level): Call pedwarn_init with loc instead of with
3176 input_location.
3177 (set_init_index): Likewise.
3178 (process_init_element): Likewise.
3179
ea58ef42
MP
31802014-05-09 Marek Polacek <polacek@redhat.com>
3181
3182 PR c/61096
3183 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
3184 (c_parser_initelt): Pass location to set_init_label. Pass array index
3185 location to set_init_index.
3186 * c-tree.h (push_init_level): Update declaration.
3187 (pop_init_level): Likewise.
3188 (set_init_index): Likewise.
3189 (set_init_label): Likewise.
3190 * c-typeck.c (error_init): Add location parameter. Call error_at
3191 instead of error.
3192 (digest_init): Pass init_loc to error_init.
3193 (really_start_incremental_init):
3194 (push_init_level): Add location parameter. Pass loc to pop_init_level
3195 and error_init.
3196 (pop_init_level): Likewise.
3197 (set_designator): Add location parameter. Pass loc to pop_init_level,
3198 push_init_level, and error_init.
3199 (set_init_index): Add location parameter. Pass loc to error_init and
3200 set_designator.
3201 (set_init_label): Likewise.
3202 (output_init_element): Pass loc to error_init.
3203 (process_init_element): Pass loc to error_init, pop_init_level,
3204 pedwarn_init, and push_init_level.
3205
661a0813
MP
32062014-05-09 Marek Polacek <polacek@redhat.com>
3207
3208 PR c/50459
3209 * c-parser.c (c_parser_attributes): Parse the arguments as an
3210 expression-list if the attribute takes identifier.
3211
2793eeab
MP
32122014-05-08 Marek Polacek <polacek@redhat.com>
3213
3214 PR c/61053
3215 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
3216 TYPE_ALIGN_UNIT.
3217
f827930a
MP
32182014-05-08 Marek Polacek <polacek@redhat.com>
3219
3220 PR c/61077
3221 * c-decl.c (start_function): Warn for _Atomic-qualified return type
3222 of main.
3223
1d60af08
KZ
32242014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3225 Mike Stump <mikestump@comcast.net>
3226 Richard Sandiford <rdsandiford@googlemail.com>
3227
3228 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
3229 (finish_enum): Use wide-int interfaces.
3230 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
3231 * c-typeck.c (build_c_cast): Likewise.
3232 (set_nonincremental_init_from_string): Likewise.
3233 (c_tree_equal): Likewise.
3234
a0e24419
MP
32352014-05-02 Marek Polacek <polacek@redhat.com>
3236
3237 PR c/25801
3238 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
3239 Return size_one_node when the type is not complete.
3240 (pointer_diff): Remove comment.
3241 (build_unary_op): Improve error messages.
3242
19fc9faa
MP
32432014-05-02 Marek Polacek <polacek@redhat.com>
3244
3245 * c-typeck.c (c_finish_return): Separate warning_at calls.
3246
63bc4e87
MP
32472014-05-02 Marek Polacek <polacek@redhat.com>
3248
3249 * c-tree.h (error_init): Remove declaration.
3250 (pedwarn_init): Likewise.
3251 * c-typeck.c (error_init): Make static and move above.
3252 (pedwarn_init): Likewise.
3253 (warning_init): Move above.
3254 (maybe_warn_string_init): Likewise.
3255
4bd2511b
JL
32562014-05-01 Jeff Law <law@redhat.com>
3257
3258 Revert:
3259
3260 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3261 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
3262 avoid goto.
3263
6a358dcb
MP
32642014-05-02 Marek Polacek <polacek@redhat.com>
3265
3266 PR c/60784
3267 * c-typeck.c (push_init_level): Set constructor_designated to
3268 p->designated for structures.
3269
ae5ebda4
MP
32702014-05-01 Marek Polacek <polacek@redhat.com>
3271
3272 PR c/60915
3273 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
3274 function-definition has an attribute after the declarator.
3275
96b40f8d
MP
32762014-05-01 Marek Polacek <polacek@redhat.com>
3277
3278 PR c/60257
3279 * c-typeck.c (warning_init): Add location_t parameter. Call
3280 warning_at instead of warning.
3281 (push_init_level): Pass input_location to warning_init.
3282 (add_pending_init): Add location_t parameter. Pass loc to
3283 warning_init.
3284 (set_nonincremental_init): Pass input_location to add_pending_init.
3285 (set_nonincremental_init_from_string): Likewise.
3286 (output_init_element): Pass loc to warning_init and to
3287 add_pending_init.
3288
32e00768
MP
32892014-05-01 Marek Polacek <polacek@redhat.com>
3290
3291 PR c/43395
3292 * c-typeck.c (c_finish_return): Distinguish between label and variable
3293 when warning about returning local address.
3294
c9379ce2
MP
32952014-05-01 Marek Polacek <polacek@redhat.com>
3296
3297 PR c/29467
3298 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
3299 in C89 mode.
3300
d00887e8
MP
33012014-05-01 Marek Polacek <polacek@redhat.com>
3302
3303 PR c/43245
3304 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
3305 instead of 0 to WARN_FOR_QUALIFIERS.
3306
5436fa2e
MP
33072014-05-01 Marek Polacek <polacek@redhat.com>
3308
3309 PR c/56989
3310 * c-typeck.c (default_conversion): Use better location for
3311 error call.
3312
f8ed5150
MP
33132014-04-30 Marek Polacek <polacek@redhat.com>
3314
3315 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
3316 also when SANITIZE_FLOAT_DIVIDE is on.
3317
8337d1db
MP
33182014-04-30 Marek Polacek <polacek@redhat.com>
3319
3320 PR c/60139
3321 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
3322 and pedwarn_init. Use loc insted of input_location.
3323
c4bdc42f
MP
33242014-04-30 Marek Polacek <polacek@redhat.com>
3325
3326 PR c/60351
3327 * c-typeck.c (build_binary_op): Use location when warning about
3328 shift count.
3329
45484dcf
MP
33302014-04-25 Marek Polacek <polacek@redhat.com>
3331
3332 PR c/18079
3333 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
3334 always_inline/noinline and hot/cold attributes.
3335
34cf811f
MP
33362014-04-25 Marek Polacek <polacek@redhat.com>
3337
3338 PR c/60114
3339 * c-parser.c (c_parser_initelt): Pass input_location to
3340 process_init_element.
3341 (c_parser_initval): Pass loc to process_init_element.
3342 * c-tree.h (process_init_element): Adjust declaration.
3343 * c-typeck.c (push_init_level): Pass input_location to
3344 process_init_element.
3345 (pop_init_level): Likewise.
3346 (set_designator): Likewise.
3347 (output_init_element): Add location_t parameter. Pass loc to
3348 digest_init.
3349 (output_pending_init_elements): Pass input_location to
3350 output_init_element.
3351 (process_init_element): Add location_t parameter. Pass loc to
3352 output_init_element.
3353
42056eac
JJ
33542014-04-24 Jakub Jelinek <jakub@redhat.com>
3355
3356 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
3357 atomic-clause, allow comma in between atomic-clause and
3358 seq_cst.
3359
e162a134
JJ
33602014-04-22 Jakub Jelinek <jakub@redhat.com>
3361
3362 PR c/59073
3363 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
3364 fails, don't set OM_PARALLEL_COMBINED and return NULL.
3365
2f6babac
IZ
33662014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3367
3368 PR middle-end/60469
3369 * c-array-notation.c (fix_builtin_array_notation_fn): Use
3370 create_tmp_var instead build_decl for creating temps.
3371 (build_array_notation_expr): Likewise.
3372 (fix_conditional_array_notations_1): Likewise.
3373 (fix_array_notation_expr): Likewise.
3374 (fix_array_notation_call_expr): Likewise.
3375
8edbfaa6
JJ
33762014-03-28 Jakub Jelinek <jakub@redhat.com>
3377
3378 PR c++/60689
3379 * c-tree.h (c_build_function_call_vec): New prototype.
3380 * c-typeck.c (build_function_call_vec): Don't call
3381 resolve_overloaded_builtin here.
3382 (c_build_function_call_vec): New wrapper function around
3383 build_function_call_vec. Call resolve_overloaded_builtin here.
3384 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
3385 Call c_build_function_call_vec instead of build_function_call_vec.
3386 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
3387 * c-decl.c (finish_decl): Likewise.
3388
7485aeea
MLI
33892014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3390
3391 PR c/55383
3392 * c-typeck.c: Use correct format string in cast-qual warning
3393
b17a8b07
TS
33942014-03-07 Thomas Schwinge <thomas@codesourcery.com>
3395
3396 * c-decl.c (c_decl_attributes): Use
3397 lang_hooks.types.omp_mappable_type.
3398 * c-typeck.c (c_finish_omp_clauses): Likewise.
3399
3af9c5e9
MP
34002014-03-06 Marek Polacek <polacek@redhat.com>
3401
3402 PR c/60197
3403 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
3404 of checking tree code.
3405
1c9f5f33
PK
34062014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3407
3408 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
3409 (c_parser_parameter_declaration): Likewise.
3410
cc28fc7f
MP
34112014-02-19 Marek Polacek <polacek@redhat.com>
3412
3413 PR c/60195
3414 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
3415 Call mark_exp_read on exp.value.
3416 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
3417 TREE_ADDRESSABLE on old instead of val.
3418 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
3419
b581c05c
PK
34202014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3421
3422 * c-parser.c (c_parser_get_builtin_args): Replace calls to
3423 C_EXPR_APPEND by vec_safe_push.
3424 * c-tree.h (C_EXPR_APPEND): Remove.
3425
81e5eca8
MP
34262014-01-31 Marek Polacek <polacek@redhat.com>
3427
3428 PR c/59963
3429 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
3430 build_function_call_vec.
3431 (build_function_call): Likewise.
3432 (build_atomic_assign): Likewise.
3433 (build_function_call_vec): Add arg_loc parameter. Use it.
3434 (convert_arguments): Likewise.
3435 (convert_for_assignment): Rename rhs_loc to expr_loc.
3436 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
3437 (c_parser_objc_keywordexpr): Likewise.
3438 (c_parser_postfix_expression_after_primary): Call
3439 build_function_call_vec with expr_loc rather than op_loc.
3440 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
3441 build_function_call_vec.
3442 (c_parser_expr_list): Add locations parameter. Fill it with locations
3443 of function arguments.
3444 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
3445
68fca595
MP
34462014-01-30 Marek Polacek <polacek@redhat.com>
3447
3448 PR c/59940
3449 * c-typeck.c (build_function_call_vec): Use loc parameter.
3450 (convert_arguments): Add location parameter. Use it.
3451 (ep_convert_and_check): Likewise.
3452 (build_atomic_assign): Adjust convert_for_assignment call.
3453 (build_modify_expr): Likewise.
3454 (digest_init): Likewise.
3455 (c_finish_return): Likewise.
3456 (build_conditional_expr): Adjust ep_convert_and_check calls.
3457 (convert_for_assignment): Add rhs_loc parameter. Use it.
3458 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
3459 calls.
3460
fa337f3a
RB
34612014-01-30 Richard Biener <rguenther@suse.de>
3462
3463 PR c/59905
3464 * c-typeck.c (build_function_call_vec): Do not replace calls
3465 to a function via an incompatible type with a runtime abort.
3466
b72271b9
BI
34672014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3468
3469 * c-parser.c (c_parser_declaration_or_fndef): Replaced
3470 flag_enable_cilkplus with flag_cilkplus.
3471 (c_parser_direct_declarator_inner): Likewise.
3472 (c_parser_attribute_any_word): Likewise.
3473 (c_parser_attributes): Likewise.
3474 (c_parser_compound_statement): Likewise.
3475 (c_parser_statement_after_labels): Likewise.
3476 (c_parser_if_statement): Likewise.
3477 (c_parser_switch_statement): Likewise.
3478 (c_parser_do_statement): Likewise.
3479 (c_parser_for_statement): Likewise.
3480 (c_parser_unary_expression): Likewise.
3481 (c_parser_postfix_expression): Likewise.
3482 (c_parser_postfix_expression_after_primary): Likewise.
3483 (c_parser_postfix_expression_after_primary): Likewise.
3484 (c_parser_omp_clause_name): Likewise.
3485 (c_finish_omp_declare_simd): Likewise.
3486 (c_parser_cilk_verify_simd): Likewise.
3487 * c-typeck.c (build_array_ref): Likewise.
3488 (build_function_call_vec): Likewise.
3489 (convert_arguments): Likewise.
3490 (build_compound_expr): Likewise.
3491 (c_finish_return): Likewise.
3492 (c_finish_if_stmt): Likewise.
3493 (c_finish_loop): Likewise.
3494 (build_binary_op): Likewise.
3495
393e8e8b
MP
34962014-01-23 Marek Polacek <polacek@redhat.com>
3497
3498 PR c/59846
3499 * c-typeck.c (parser_build_binary_op): Use location instead of
3500 input_location.
3501 (build_binary_op): Pass location to shorten_compare.
3502
f04dda30
MP
35032014-01-23 Marek Polacek <polacek@redhat.com>
3504
3505 PR c/58346
3506 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
3507 an empty aggregate.
3508
789eadcd
MP
35092014-01-23 Marek Polacek <polacek@redhat.com>
3510
3511 PR c/59871
3512 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
3513 of a comma expression.
3514 (emit_side_effect_warnings): Likewise.
3515
40f14e9f
BI
35162014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
3517
3518 PR c/59825
3519 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
3520 function to use walk_tree and moved a lot of its functionality to
3521 expand_array_notations.
3522 (expand_array_notations): New function.
3523
74558dd9
BI
35242014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
3525
3526 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
3527 attribute an attribute without value.
3528
652fea39
JJ
35292014-01-23 Jakub Jelinek <jakub@redhat.com>
3530
3531 PR middle-end/58809
3532 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
3533 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
3534
f34f1c87
MP
35352014-01-22 Marek Polacek <polacek@redhat.com>
3536
3537 PR c/59891
3538 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
3539 of remove_c_maybe_const_expr on op1 and op2.
3540
241f845a
JJ
35412014-01-15 Jakub Jelinek <jakub@redhat.com>
3542
3543 PR c/58943
3544 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
3545 effects, preevaluate rhs using SAVE_EXPR first.
3546
9a74f20c
BI
35472014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
3548
3549 PR c++/59631
3550 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
3551 statements with if-elseif statements.
3552
96066ce1
MP
35532014-01-06 Marek Polacek <polacek@redhat.com>
3554
3555 PR c/57773
3556 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
3557 defined bit-field types only in ISO C.
3558
23a5b65a
RS
35592014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3560
3561 Update copyright years
3562
f9030485
RS
35632014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3564
3565 * c-array-notation.c: Use the standard form for the copyright notice.
3566
41958c28
BI
35672013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3568
3569 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
3570 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
3571 field in parser is not empty. If not-empty, call the function
3572 c_parser_finish_omp_declare_simd.
3573 (c_parser_cilk_clause_vectorlength): Modified function to be shared
3574 between SIMD-enabled functions and #pragma simd. Added new parameter.
3575 (c_parser_cilk_all_clauses): Modified the usage of the function
3576 c_parser_cilk_clause_vectorlength as mentioned above.
3577 (c_parser_cilk_simd_fn_vector_attrs): New function.
3578 (c_finish_cilk_simd_fn_tokens): Likewise.
3579 (is_cilkplus_vector_p): Likewise.
3580 (c_parser_omp_clause_name): Added checking for "vectorlength,"
3581 "nomask," and "mask" strings in clause name.
3582 (c_parser_omp_all_clauses): Added 3 new case statements:
3583 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
3584 PRAGMA_CILK_CLAUSE_NOMASK.
3585 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
3586 check for vector attribute and if so call the function
3587 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
3588 called the function c_finish_cilk_simd_fn_tokens.
3589 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
3590 parser field is non-empty. If so, parse them as you would parse
3591 the omp declare simd pragma.
3592 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
3593 Added a check when step is a parameter and flag it as error.
3594 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
3595 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
3596 pragma_omp_clause.
3597
cef0fd0e
TS
35982013-12-17 Thomas Schwinge <thomas@codesourcery.com>
3599
3600 * c-parser.c (c_parser_omp_parallel): Fix description.
3601
12893402
BI
36022013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3603
3604 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
3605 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
3606 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
3607 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
3608
296674db
JM
36092013-12-04 Joseph Myers <joseph@codesourcery.com>
3610
3611 PR c/52023
3612 * c-parser.c (c_parser_alignas_specifier): Use
3613 c_sizeof_or_alignof_type instead of c_alignof.
3614 (c_parser_alignof_expression): Likewise, with min_alignof
3615 parameter depending on alignof spelling used.
3616
edd28054
MP
36172013-12-04 Marek Polacek <polacek@redhat.com>
3618
3619 PR c/54113
3620 * c-decl.c (start_function): Don't warn for missing prototype for
3621 inline functions.
3622
da0fc454
MP
36232013-12-03 Marek Polacek <polacek@redhat.com>
3624
3625 PR c/59351
3626 * c-decl.c (build_compound_literal): Allow compound literals with
3627 empty initial value.
3628
4c2ecab0
JM
36292013-12-02 Joseph Myers <joseph@codesourcery.com>
3630
3631 PR c/58235
3632 * c-typeck.c (build_modify_expr): Diagnose assignment to
3633 expression with array type.
3634
340baef7
JM
36352013-11-29 Joseph Myers <joseph@codesourcery.com>
3636
3637 PR c/42262
3638 * c-typeck.c (process_init_element): Do not treat a string as
3639 initializing a whole array when used with a designator for an
3640 individual element.
3641
6763b9f7
JM
36422013-11-29 Joseph Myers <joseph@codesourcery.com>
3643
3644 PR c/57574
3645 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
3646 an inline function following a static declaration.
3647
e7bd1de1
JJ
36482013-11-28 Jakub Jelinek <jakub@redhat.com>
3649
3650 PR c/59310
3651 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
3652 to p_name before calling c_parser_omp_teams instead of after.
3653 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
3654 argument. Remove unused p_name variable.
3655
0136f8f0
AH
36562013-11-27 Aldy Hernandez <aldyh@redhat.com>
3657 Jakub Jelinek <jakub@redhat.com>
3658
3659 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
3660 external_scope is NULL.
3661
241b71bb
TV
36622013-11-27 Tom de Vries <tom@codesourcery.com>
3663 Marc Glisse <marc.glisse@inria.fr>
3664
3665 PR c++/59032
3666 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
3667
2fb9a547
AM
36682013-11-22 Andrew MacLeod <amacleod@redhat.com>
3669
3670 * c-typeck.c: Add required include files from gimple.h.
3671
8400e75e
DM
36722013-11-22 David Malcolm <dmalcolm@redhat.com>
3673
3674 * c-decl.c (define_label, shadow_tag_warned)
3675 (check_bitfield_type_and_width, grokdeclarator, grokparms,
3676 store_parm_decls_newstyle, store_parm_decls_oldstyle)
3677 (declspecs_add_type): Remove use of in_system_header macro.
3678 * c-parser.c (c_parser_unary_expression): Likewise.
3679 * c-typeck.c (store_init_value, process_init_element)
3680 (c_start_case): Likewise.
3681
3682 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
3683 macro.
3684
3685 * c-parser.c (c_parser_set_source_position_from_token): Remove
3686 reference to in_system_header from comment.
3687
386b1f1f
RS
36882013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3689
3690 * c-decl.c (grokdeclarator): Update comment to refer to
3691 tree_to_[su]hwi rather than tree_low_cst.
3692
ae7e9ddd
RS
36932013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3694
3695 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
3696 tree_to_uhwi throughout.
3697
9439e9a1
RS
36982013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3699
3700 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
3701 throughout.
3702
9541ffee
RS
37032013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3704
3705 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3706 throughout.
3707
c02065fc
AH
37082013-11-15 Aldy Hernandez <aldyh@redhat.com>
3709
3710 * c-parser.c (c_parser_cilk_simd): New.
3711 (c_parser_cilk_verify_simd): New.
3712 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
3713 (c_parser_omp_for_loop): Add case for NE_EXPR.
3714 Set c_break_label for CILK_SIMD.
3715 (c_parser_cilk_clause_vectorlength): New.
3716 (c_parser_cilk_clause_linear): New.
3717 (c_parser_cilk_clause_name): New.
3718 (c_parser_cilk_all_clauses): New.
3719 * c-typeck.c (build_unary_op): Pass location argument to
3720 readonly_error.
3721 (build_modify_expr): Same.
3722 (build_asm_expr): Same.
3723 (c_finish_bc_stmt): Error on break/continue in loops.
3724
18f429e2
AM
37252013-11-14 Andrew MacLeod <amacleod@redhat.com>
3726
3727 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
3728
d8a2d370
DN
37292013-11-14 Diego Novillo <dnovillo@google.com>
3730
3731 * c-decl.c: Include print-tree.h.
3732 Include stor-layout.h.
3733 Include varasm.h.
3734 Include attribs.h.
3735 Include stringpool.h.
3736 * c-lang.c: Include fold-const.h.
3737 * c-parser.c: Include stringpool.h.
3738 Include attribs.h.
3739 Include stor-layout.h.
3740 Include varasm.h.
3741 Include trans-mem.h.
3742 * c-typeck.c: Include stor-layout.h.
3743 Include trans-mem.h.
3744 Include varasm.h.
3745 Include stmt.h.
3746
38b7bc7f
JM
37472013-11-13 Joseph Myers <joseph@codesourcery.com>
3748
3749 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
3750 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
3751 __auto_type.
3752 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
3753 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
3754 RID_AUTO_TYPE.
3755 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
3756 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
3757 (c_parser_declarator, c_parser_direct_declarator_inner)
3758 (c_parser_parameter_declaration, c_parser_type_name): All callers
3759 changed.
3760 (c_parser_declaration_or_fndef): Handle declarations with type
3761 determined from the initializer.
3762
45b0be94
AM
37632013-11-12 Andrew MacLeod <amacleod@redhat.com>
3764
18f429e2 3765 * c-typeck.c: Include gimplify.h.
45b0be94 3766
582d9b50
JM
37672013-11-12 Joseph Myers <joseph@codesourcery.com>
3768
3769 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
3770 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
3771 comment.
3772 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
3773 or _Thread_local as appropriate in diagnostics.
3774 (build_null_declspecs): Initialize ret->thread_gnu_p.
3775 (declspecs_add_scspec): Handle either __thread or _Thread_local
3776 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
3777 pedantic. Do not disallow _Thread_local extern and _Thread_local
3778 static.
3779
267bac10
JM
37802013-11-07 Joseph Myers <joseph@codesourcery.com>
3781 Andrew MacLeod <amacleod@redhat.com>
3782
3783 * c-aux-info.c (gen_type): Handle atomic qualifier.
3784 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
3785 qualifiers when compating types.
3786 (shadow_tag_warned): Handle atomic_p in declspecs.
3787 (quals_from_declspecs): Likewise.
3788 (start_decl): Use c_type_promotes_to when promoting argument
3789 types.
3790 (grokdeclarator): Handle _Atomic.
3791 (get_parm_info): Diagnose any qualifier on "void" as only
3792 parameter.
3793 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
3794 comparing types. Use c_type_promotes_to when promoting argument
3795 types.
3796 (finish_function): Use c_type_promotes_to when promoting argument
3797 types.
3798 (build_null_declspecs): Handle atomic_p in declspecs.
3799 (declspecs_add_qual): Handle RID_ATOMIC.
3800 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
3801 (c_token_starts_declspecs): Handle RID_ATOMIC.
3802 (c_parser_declspecs): Handle atomic type specifiers and
3803 qualifiers.
3804 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
3805 from types of expressions with atomic type.
3806 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
3807 (c_parser_attribute_any_word): Handle RID_ATOMIC.
3808 (c_parser_initializer, c_parser_initelt, c_parser_initval)
3809 (c_parser_statement_after_labels, c_parser_switch_statement)
3810 (c_parser_for_statement, c_parser_expr_no_commas)
3811 (c_parser_conditional_expression, c_parser_binary_expression)
3812 (c_parser_cast_expression, c_parser_unary_expression)
3813 (c_parser_postfix_expression)
3814 (c_parser_postfix_expression_after_primary, c_parser_expression):
3815 Use convert_lvalue_to_rvalue.
3816 (c_parser_expression_conv, c_parser_expr_list): Document
3817 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
3818 (c_parser_objc_synchronized_statement): Use
3819 convert_lvalue_to_rvalue.
3820 (c_parser_objc_selector): Handle RID_ATOMIC.
3821 (c_parser_objc_receiver, c_parser_array_notation): Use
3822 convert_lvalue_to_rvalue.
3823 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
3824 _Atomic (type-name).
3825 (struct c_declspecs): Add atomic_p field.
3826 (convert_lvalue_to_rvalue): Declare.
3827 * c-typeck.c (c_type_promotes_to): Promote atomic types to
3828 corresponding atomic types.
3829 (qualify_type): Don't add _Atomic qualifiers from second argument.
3830 (comp_target_types): Do not allow _Atomic mismatches.
3831 (type_lists_compatible_p): Do not remove atomic qualifiers when
3832 comparing types.
3833 (really_atomic_lvalue, convert_lvalue_to_rvalue)
3834 (build_atomic_assign): New functions.
3835 (build_unary_op): Use build_atomic_assign for atomic increment and
3836 decrement.
3837 (build_conditional_expr): Do not treat _Atomic void as a qualified
3838 version of void.
3839 (build_modify_expr): Use build_atomic_assign for atomic LHS.
3840 (find_anonymous_field_with_type, convert_to_anonymous_field)
3841 (convert_for_assignment): Do not remove atomic qualifiers when
3842 comparing types.
3843 (digest_init): Do not accept initialization of arrays of atomic
3844 elements by string constants.
3845 (build_asm_expr): Use convert_lvalue_to_rvalue.
3846 (build_binary_op): Do not treat _Atomic void as a qualified
3847 version of void.
3848
0c249d4b
DD
38492013-11-06 DJ Delorie <dj@redhat.com>
3850
3851 * c-decl.c (locate_old_decl): If a previous conflicting decl is
3852 both explicit and builtin, print the location of the explicit one.
3853
6d7f7e0a
TB
38542013-11-05 Tobias Burnus <burnus@net-b.de>
3855
3856 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
3857 c_parser_omp_distribute, c_parser_omp_teams,
3858 c_parser_omp_target, c_parser_omp_declare): Handle
3859 -fopenmp-simd.
3860
b906f4ca
MP
38612013-11-03 Marek Polacek <polacek@redhat.com>
3862
3863 * c-decl.c (grokdeclarator): Add VLA instrumentation.
3864
ee1d5a02
JJ
38652013-11-01 Jakub Jelinek <jakub@redhat.com>
3866
3867 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
3868 check_dup_generic at the end, unless remove is true.
3869 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
3870 remove = true;.
3871 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
3872
5a9785fb
JJ
38732013-10-31 Jakub Jelinek <jakub@redhat.com>
3874
3875 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
3876 with decl that is not pointer nor array.
3877
939b37da
BI
38782013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3879
3880 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
3881 a spawning function is found.
3882 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
3883 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
3884 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
3885 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
3886 case.
3887 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
3888 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
3889 expr.
3890 (c_finish_return): Added a check to reject _Cilk_spawn in return
3891 expression.
3892 (build_cilk_spawn): New function.
3893 (build_cilk_sync): Likewise.
3894 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
3895
d4af74d4
TB
38962013-10-27 Tobias Burnus <burnus@net-b.de>
3897
3898 PR other/33426
3899 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
3900 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
3901 (c_parser_statement_after_labels): Update calls.
3902
d73749df 39032013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3904
3905 PR other/33426
3906 * c-parser.c (c_parser_pragma, c_parser_for_statement):
3907 Handle PRAGMA_IVDEP.
3908 (c_parser_statement_after_labels): Update call.
3909
f28aa681
MP
39102013-10-24 Marek Polacek <polacek@redhat.com>
3911
3912 * c-parser.c (c_parser_struct_declaration): Add a comment.
3913 (c_parser_declarator): Don't allow _Alignas here.
3914
0645c1a2
AM
39152013-10-17 Andrew MacLeod <amacleod@redhat.com>
3916
3917 * c-parser.c: Include omp-low.h.
3918 * c-typeck.c: Likewise.
3919
568a31f2
MP
39202013-10-17 Marek Polacek <polacek@redhat.com>
3921
3922 PR c/58267
3923 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
3924 Document syntax of the array-declarator.
3925 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
3926 are not permitted.
3927 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
3928 (c_parser_struct_declaration): Likewise.
3929 (c_parser_declarator): Likewise.
3930 (c_parser_direct_declarator_inner): Likewise.
3931 (c_parser_parameter_declaration): Likewise.
3932 (c_parser_type_name): Likewise.
3933
acf0174b
JJ
39342013-10-11 Jakub Jelinek <jakub@redhat.com>
3935
3936 * c-lang.h (current_omp_declare_target_attribute): New extern
3937 decl.
3938 * c-parser.c: Include c-lang.h.
3939 (struct c_parser): Change tokens to c_token *.
3940 Add tokens_buf field. Change tokens_avail type to unsigned int.
3941 (c_parser_consume_token): If parser->tokens isn't
3942 &parser->tokens_buf[0], increment parser->tokens.
3943 (c_parser_consume_pragma): Likewise.
3944 (enum pragma_context): Add pragma_struct and pragma_param.
3945 (c_parser_external_declaration): Adjust
3946 c_parser_declaration_or_fndef caller.
3947 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
3948 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
3949 Adjust recursive call.
3950 (c_parser_struct_or_union_specifier): Use pragma_struct instead
3951 of pragma_external.
3952 (c_parser_parameter_declaration): Use pragma_param instead of
3953 pragma_external.
3954 (c_parser_compound_statement_nostart, c_parser_label,
3955 c_parser_for_statement): Adjust
3956 c_parser_declaration_or_fndef callers.
3957 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
3958 it through to c_parser_conditional_expression.
3959 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
3960 pass it through to c_parser_binary_expression. Adjust recursive
3961 call.
3962 (c_parser_binary_expression): Remove prec argument, add
3963 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
3964 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
3965 binop matches it, use build2 instead of parser_build_binary_op.
3966 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
3967 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
3968 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
3969 Handle pragma_struct and pragma_param the same as pragma_external.
3970 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
3971 (c_parser_omp_variable_list): Parse array sections for
3972 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
3973 (c_parser_omp_clause_collapse): Fully fold collapse expression.
3974 (c_parser_omp_clause_reduction): Handle user defined reductions.
3975 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
3976 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
3977 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
3978 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
3979 c_parser_omp_clause_depend, c_parser_omp_clause_map,
3980 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
3981 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
3982 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
3983 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
3984 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
3985 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
3986 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
3987 (c_parser_omp_for_loop): Add CODE argument, pass it through
3988 to c_finish_omp_for. Change last argument to cclauses,
3989 and adjust uses to grab parallel clauses from the array of all
3990 the split clauses. Adjust c_parser_binary_expression,
3991 c_parser_declaration_or_fndef and c_finish_omp_for callers.
3992 (omp_split_clauses): New function.
3993 (c_parser_omp_simd): New function.
3994 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
3995 Allow the function to be called also when parsing combined constructs,
3996 and call c_parser_omp_simd when parsing for simd.
3997 (c_parser_omp_sections_scope): If section-sequence doesn't start with
3998 #pragma omp section, require exactly one structured-block instead of
3999 sequence of statements.
4000 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
4001 Allow the function to be called also when parsing combined constructs.
4002 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
4003 Allow the function to be called also when parsing combined
4004 constructs.
4005 (c_parser_omp_taskgroup, c_parser_omp_cancel,
4006 c_parser_omp_cancellation_point, c_parser_omp_distribute,
4007 c_parser_omp_teams, c_parser_omp_target_data,
4008 c_parser_omp_target_update, c_parser_omp_target,
4009 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
4010 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
4011 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
4012 (c_parser_omp_construct): Add p_name and mask vars. Handle
4013 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
4014 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
4015 and c_parser_omp_sections callers.
4016 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
4017 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
4018 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
4019 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
4020 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
4021 OMP_CLAUSE_DEPEND.
4022 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
4023 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
4024 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
4025 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
4026 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
4027 * c-typeck.c: Include tree-inline.h.
4028 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
4029 handle_omp_array_sections_1, handle_omp_array_sections,
4030 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
4031 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
4032 user defined reductions.
4033 (c_tree_equal): New function.
4034 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
4035 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
4036 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
4037 c_check_omp_declare_reduction_r): New prototypes.
4038 * c-decl.c (current_omp_declare_target_attribute): New variable.
4039 (c_decl_attributes): New function.
4040 (start_decl, start_function): Use it instead of decl_attributes.
4041 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
4042 c_omp_reduction_decl, c_omp_reduction_lookup,
4043 c_check_omp_declare_reduction_r): New functions.
4044
0a6c2227
TT
40452013-09-25 Tom Tromey <tromey@redhat.com>
4046
4047 * Make-lang.in (c/gccspec.o): Remove.
4048 (CFLAGS-c/gccspec.o): New variable.
4049 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
4050 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
4051 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
4052
f3bc55f0
TT
40532013-09-25 Tom Tromey <tromey@redhat.com>
4054
4055 * Make-lang.in (c/gccspec.o): Don't use subshell.
4056
a24d975c
MP
40572013-09-18 Marek Polacek <polacek@redhat.com>
4058
4059 PR sanitize/58443
4060 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
4061 Remove unnecessary check.
4062
ce6923c5
MP
40632013-09-18 Marek Polacek <polacek@redhat.com>
4064
4065 PR sanitizer/58411
4066 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
4067 no_sanitize_undefined attribute.
4068
a1e51df9
KT
40692013-09-13 Kai Tietz <ktietz@redhat.com>
4070
4071 PR target/57848
4072 * c-decl.c (c_builtin_function_ext_scope): Remove
4073 wrong assumption that it is never called on prexisting
4074 symbol.
4075
0af94e6f
JR
40762013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4077
4078 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
4079
20059c8b
GDR
40802013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4081
4082 * c-objc-common.c (c_tree_printer): Tidy.
4083
de5a5fa1
MP
40842013-08-30 Marek Polacek <polacek@redhat.com>
4085
4086 * c-typeck.c (build_binary_op): Add division by zero and shift
4087 instrumentation.
4088
2531a1d9 40892013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 4090 Joseph Myers <joseph@codesourcery.com>
2531a1d9 4091
6e2bcc98 4092 PR c/35649
2531a1d9
JR
4093 * c-typeck.c (c_common_type): Prefer double_type_node over
4094 other REAL_TYPE types with the same precision.
4095 (convert_arguments): Likewise.
4096
025311c4
GDR
40972013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
4098
4099 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
4100 (c_initialize_diagnostics): Call a destructor for the early printer.
4101
da6ca2b5
GDR
41022013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4103
4104 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
4105 printer initialization.
4106
318cda85 41072013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 4108
318cda85
BI
4109 PR c/57490
4110 * c-array-notation.c (fix_conditional_array_notations_1): Added a
4111 check for truth values.
4112 (expand_array_notation_exprs): Added truth values case. Removed an
4113 unwanted else. Added for-loop to walk through subtrees in default
4114 case.
4115
b066401f
GDR
41162013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4117
4118 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
4119
fb48aadc
JM
41202013-07-23 Joseph Myers <joseph@codesourcery.com>
4121
4122 * c-parser.c (struct c_generic_association): Fix typo.
4123
433cc7b0
TT
41242013-07-23 Tom Tromey <tromey@redhat.com>
4125 Joseph Myers <joseph@codesourcery.com>
4126
4127 * c-parser.c (struct c_generic_association): New.
4128 (c_generic_association_d): New typedef.
4129 (c_parser_generic_selection): New function.
4130 (c_parser_postfix_expression): Handle RID_GENERIC.
4131
26d40c3d
JM
41322013-07-13 Jason Merrill <jason@redhat.com>
4133
4134 PR c++/57793
4135 * c-decl.c (finish_struct): Check for too-large class.
4136
ecdbd01a 41372013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4138
4139 PR c/57821
4140 * c-typeck.c (set_init_index): When folding, check for index overflow.
4141
1141ed3f
BI
41422013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4143
4144 * c-parser.c (c_parser_array_notation): Removed rejection of array
4145 notations in an array of function pointers.
4146
713b46fa
BI
41472013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4148
4149 * c-array-notation.c (make_triplet_val_inv): New function.
4150 (create_cmp_incr): Likewise.
4151 (create_array_refs): Likewise.
4152 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
4153 Also modularized common parts between functions and called the function.
4154 (build_array_notation_expr): Likewise.
4155 (fix_conditional_array_notations_1): Likewise.
4156 (fix_array_notation_expr): Likewise.
4157 (fix_array_notation_call_expr): Likewise.
4158
92f20202
MP
41592013-06-18 Marek Polacek <polacek@redhat.com>
4160
4161 PR c/57630
4162 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
4163
73a23b06
BI
41642013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
4165
4166 * c-array-notation.c (build_array_notation_expr): Reject array notation
4167 mismatch between LHS and RHS even inside a call_expr. Also, removed
4168 a couple while statements that were dead code.
4169
00b8517d
BI
41702013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
4171
4172 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
4173 excessive precision expressions in function parameters. Also removed
4174 couple unwanted while statements.
4175
1509bdda
BI
41762013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4177
4178 * c-array-notation.c (expand_array_notation_exprs): Added
4179 ARRAY_NOTATION_REF case.
4180
d60f1706
BI
41812013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4182
4183 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
4184 function to c-family/array-notation-common.c.
4185 (is_cilkplus_reduce_builtin): Likewise.
4186 (find_rank): Likewise.
4187 (extract_array_notation_exprs): Likewise.
4188 (replace_array_notations): Likewise.
4189 (find_inv_trees): Likewise.
4190 (replace_inv_trees): Likewise.
4191 (contains_array_notation_expr): Likewise.
4192 (find_correct_array_notation_type): Likewise.
4193 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
4194 (struct inv_list): Moved this to c-family/array-notation-common.c.
4195 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
4196
6d6efbb3
BI
41972013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
4198
4199 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
4200 reduction functions outside the for-loop. Added a check if the fundecl
4201 is non-NULL. Finally, removed an unwanted if-statement, and made the
4202 body unconditional.
4203
25c22937
BI
42042013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
4205
4206 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
4207 condition of the if-statement matches the rank of else-block and then-
4208 block when array notations are used.
4209 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
4210 expression after the entire function body is parsed.
4211 (c_parser_expr_no_commas): Delayed creating array notation expressions
4212 to the end of function parsing.
4213 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
4214 whole if-statement instead of just the condition.
4215 (expand_array_notation_exprs): Added MODIFY_EXPR case.
4216
edd25645
BI
42172013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
4218
4219 PR c/57474
4220 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
4221 array to NULL_TREE if they are unused. Also added a check for the
4222 field to be NULL before its fields are used in future.
4223
065ce7f1
RO
42242013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4225
4226 PR bootstrap/57450
4227 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
4228 (build_array_notation_expr): Likewise.
4229
36536d79
BI
42302013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4231
4232 * c-typeck.c (build_array_ref): Added a check to see if array's
4233 index is greater than one. If true, then emit an error.
4234 (build_function_call_vec): Exclude error reporting and checking
4235 for builtin array-notation functions.
4236 (convert_arguments): Likewise.
4237 (c_finish_return): Added a check for array notations as a return
4238 expression. If true, then emit an error.
4239 (c_finish_loop): Added a check for array notations in a loop
4240 condition. If true then emit an error.
4241 (lvalue_p): Added a ARRAY_NOTATION_REF case.
4242 (build_binary_op): Added a check for array notation expr inside
4243 op1 and op0. If present, we call another function to find correct
4244 type.
4245 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
4246 * c-parser.c (c_parser_compound_statement): Check if array
4247 notation code is used in tree, if so, then transform them into
4248 appropriate C code.
4249 (c_parser_expr_no_commas): Check if array notation is used in LHS
4250 or RHS, if so, then build array notation expression instead of
4251 regular modify.
4252 (c_parser_postfix_expression_after_primary): Added a check for
4253 colon(s) after square braces, if so then handle it like an array
4254 notation. Also, break up array notations in unary op if found.
4255 (c_parser_direct_declarator_inner): Added a check for array
4256 notation.
4257 (c_parser_compound_statement): Added a check for array notation in
4258 a stmt. If one is present, then expand array notation expr.
4259 (c_parser_if_statement): Likewise.
4260 (c_parser_switch_statement): Added a check for array notations in
4261 a switch statement's condition. If true, then output an error.
4262 (c_parser_while_statement): Similarly, but for a while.
4263 (c_parser_do_statement): Similarly, but for a do-while.
4264 (c_parser_for_statement): Similarly, but for a for-loop.
4265 (c_parser_unary_expression): Check if array notation is used in a
4266 pre-increment or pre-decrement expression. If true, then expand
4267 them.
4268 (c_parser_array_notation): New function.
4269 * c-array-notation.c: New file.
4270 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
4271
cd192ccc
MS
42722013-05-23 Mike Stump <mikestump@comcast.net>
4273
4274 * c-typeck.c (convert_for_assignment): Handle references to memory
4275 spaces better.
4276
427b248d
JM
42772013-05-16 Jason Merrill <jason@redhat.com>
4278
4279 * Make-lang.in (cc1$(exeext)): Use link mutex.
4280
44d90fe1
PC
42812013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4282
4283 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
4284 to simply use OPT_Wpointer_arith.
4285 (build_unary_op): Likewise.
4286
4e7d7b3d
JJ
42872013-04-03 Jakub Jelinek <jakub@redhat.com>
4288
4289 PR c/19449
4290 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
4291 argument. If set, or it temporarily for parsing of the first
4292 argument into force_folding_builtin_constant_p.
4293 (c_parser_postfix_expression): Adjust callers.
4294
839b422f
RB
42952013-03-21 Richard Biener <rguenther@suse.de>
4296
4297 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4298 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
4299
2ee028f1
MP
43002013-02-12 Marek Polacek <polacek@redhat.com>
4301
4302 PR c/44938
4303 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
4304 origtypes to NULL.
4305
8824edff
JJ
43062013-01-24 Jakub Jelinek <jakub@redhat.com>
4307
4308 PR c/56078
4309 * c-typeck.c (set_nonincremental_init_from_string): If
4310 constructor_max_index is NULL, treat it as if tree_int_cst_lt
4311 returned false.
4312 (process_init_element): Likewise.
4313
eadd3d0d
JJ
43142012-12-20 Jakub Jelinek <jakub@redhat.com>
4315
4316 PR c++/55619
4317 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
4318 argument, don't call default_function_array_conversion
4319 nor c_fully_fold here.
4320 (c_parser_asm_statement): Adjust callers.
4321 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
4322 and outputs here, and call default_function_array_conversion
4323 on inputs that don't need to be addressable.
4324
f8a93a2e
JJ
43252012-12-18 Jakub Jelinek <jakub@redhat.com>
4326
4327 PR c/39464
4328 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
4329 warning require that both c_common_unsigned_type as well as
4330 c_common_signed_type is the same for both mvl and mvr types.
4331
9771b263
DN
43322012-11-16 Diego Novillo <dnovillo@google.com>
4333
4334 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
4335
4336 * c-common.c: Use new vec API in vec.h.
4337 * c-common.h: Likewise.
4338 * c-gimplify.c: Likewise.
4339 * c-pragma.c: Likewise.
4340 * c-pretty-print.c: Likewise.
4341 * c-pretty-print.h: Likewise.
4342 * c-semantics.c: Likewise.
4343 * c-decl.c: Likewise.
4344 * c-parser.c: Likewise.
4345 * c-tree.h: Likewise.
4346 * c-typeck.c: Likewise.
4347
880661a4
JW
43482012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4349
4350 PR c++/54930
4351 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
4352
077d1abe
MLI
43532012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4354
4355 PR c/53066
4356 * c-decl.c (warn_if_shadowing): Do not warn if a variable
4357 shadows a function, unless the variable is a function or a
4358 pointer-to-function.
4359
3a785c97
JJ
43602012-10-12 Jakub Jelinek <jakub@redhat.com>
4361
4362 PR c/54381
4363 * c-parser.c (struct c_tree_loc_pair): Removed.
4364 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
4365 add location_t * and tree * arguments, fill in array of 3
4366 sizeof_arg trees and corresponding locs.
4367 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
4368 c_parser_expr_list callers.
4369 (c_parser_postfix_expression_after_primary): Likewise. Pass
4370 array of 3 sizeof_arg trees and locs (corresponding to first
4371 3 arguments) to sizeof_pointer_memaccess_warning.
4372
703c8606
LC
43732012-10-09 Lawrence Crowl <crowl@google.com>
4374
4375 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
4376 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
4377 hash table.
4378
5d9de0d0
PC
43792012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4380
4381 PR c++/54194
4382 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
4383 call.
4384
a212e43f
MG
43852012-10-09 Marc Glisse <marc.glisse@inria.fr>
4386
4387 PR c++/54427
4388 * c-typeck.c: Include c-common.h.
4389 (enum stv_conv): Moved to c-common.h.
4390 (scalar_to_vector): Moved to c-common.c.
4391 (build_binary_op): Adapt to scalar_to_vector's new prototype.
4392 * Make-lang.in: c-typeck.c depends on c-common.h.
4393
3b78de56
AC
43942012-10-04 Arnaud Charlet <charlet@adacore.com>
4395
4396 * c-decl.c (c_write_global_declarations): Fix handling of
4397 -fdump-ada-spec*.
4398
78c60e3d
SS
43992012-09-30 Sharad Singhai <singhai@google.com>
4400
4401 * c-decl.c (c_write_global_declarations): Use a different method
4402 to determine if the dump has ben initialized.
4403
9f33203d
JM
44042012-09-14 Joseph Myers <joseph@codesourcery.com>
4405
4406 PR c/54552
4407 * c-typeck.c (c_cast_expr): When casting to a type requiring
4408 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
4409 c_fully_fold first.
4410
a27d595d
JM
44112012-09-14 Joseph Myers <joseph@codesourcery.com>
4412
4413 PR c/54103
4414 * c-typeck.c (build_unary_op): Pass original argument of
4415 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
4416 any C_MAYBE_CONST_EXPR, if it has integer operands.
4417 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
4418 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
4419 to c_objc_common_truthvalue_conversion, then remove any
4420 C_MAYBE_CONST_EXPR, if they have integer operands. Use
4421 c_objc_common_truthvalue_conversion not
4422 c_common_truthvalue_conversion.
4423 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
4424 call note_integer_operands for arguments with integer operands
4425 that are not integer constants.
4426
9feb29df
JJ
44272012-09-13 Jakub Jelinek <jakub@redhat.com>
4428
4429 PR c/54559
4430 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
4431 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
4432
d409320c
JJ
44332012-08-31 Jakub Jelinek <jakub@redhat.com>
4434
4435 PR c/54428
4436 * c-convert.c (convert): Don't call fold_convert_loc if
4437 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
4438 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
4439 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
4440
6265d07c
JJ
44412012-08-24 Jakub Jelinek <jakub@redhat.com>
4442
4443 PR c/54355
4444 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
4445 for nested and empty_ok arguments in the call to
4446 c_parser_declaration_or_fndef.
4447
1a4049e7
JJ
44482012-08-17 Jakub Jelinek <jakub@redhat.com>
4449
4450 * c-tree.h (c_last_sizeof_arg): Declare.
4451 * c-parser.c (struct c_tree_loc_pair): New type.
4452 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
4453 non-NULL.
4454 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
4455 (c_parser_postfix_expression_after_primary): Likewise. Call
4456 sizeof_pointer_memaccess_warning if needed.
4457 (sizeof_ptr_memacc_comptypes): New function.
4458 * c-typeck.c (c_last_sizeof_arg): New global variable.
4459 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
4460
0229aee9
UB
44612012-07-24 Uros Bizjak <ubizjak@gmail.com>
4462
4463 * c-lang.h (lang_decl): Add variable_size GTY option.
4464
7ee2468b
SB
44652012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4466
4467 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
4468 * Make-lang.in: Fix dependencies.
4469
d4a10d0a
SB
44702012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4471
4472 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
4473 and add language Makefile hooks.
4474 * config-lang.in: New file.
4475 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
4476 add the required "normal" config-lang.in rules.
4477 * c-lang.h: Moved from gcc/ to here.
4478 * c-tree.h: Likewise.
4479 * c-objc-common.c: Likewise.
4480 * c-objc-common.h: Likewise.
4481 * c-typeck.c: Likewise.
4482 * c-convert.c: Likewise.
4483 * c-lang.c: Likewise.
4484 * c-aux-info.c: Likewise.
4485 * c-errors.c: Likewise.
4486 * gccspec.c: Likewise.
4487 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
4488 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
4489\f
cbe34bb5 4490Copyright (C) 2012-2017 Free Software Foundation, Inc.
d4a10d0a
SB
4491
4492Copying and distribution of this file, with or without modification,
4493are permitted in any medium without royalty provided the copyright
4494notice and this notice are preserved.