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