]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
Cleanup autopref scheduling
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
62e1c678
DM
12017-10-12 David Malcolm <dmalcolm@redhat.com>
2
3 * c-parser.c (c_parser_require): Add "type_is_unique" param and
4 use it to guard calls to maybe_suggest_missing_token_insertion.
5 (c_parser_parms_list_declarator): Override default value of new
6 "type_is_unique" param to c_parser_require.
7 (c_parser_asm_statement): Likewise.
8 * c-parser.h (c_parser_require): Add "type_is_unique" param,
9 defaulting to true.
10
a92f6726
NS
112017-10-11 Nathan Sidwell <nathan@acm.org>
12
13 * c-decl.c (grokdeclarator): Check HAS_DECL_ASSEMBLER_NAME_P too.
14
8e6cdc90
RS
152017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
16
17 * c-parser.c (c_parser_cilk_clause_vectorlength): Use wi::to_wide when
18 operating on trees as wide_ints.
19 * c-typeck.c (build_c_cast, c_finish_omp_clauses): Likewise.
20 (c_tree_equal): Likewise.
21
8139a48e
DM
222017-10-04 David Malcolm <dmalcolm@redhat.com>
23
24 * c-decl.c (push_parm_decl): Store c_parm's location into the
25 PARAM_DECL.
26 (build_c_parm): Add "loc" param and store it within the c_parm.
27 * c-parser.c (struct c_parser): Add "last_token_location" field.
28 (c_parser_consume_token): Store location of the token into the
29 new field.
30 (c_parser_declaration_or_fndef): Store params into DECL_ARGUMENTS
31 when handling a FUNCTION_DECL, if it doesn't already have them.
32 (c_parser_parameter_declaration): Generate a location for the
33 parameter, and pass it to the call to build_c_parm.
34 * c-tree.h (struct c_parm): Add field "loc".
35 (build_c_parm): Add location_t param.
36 * c-typeck.c (get_fndecl_argument_location): New function.
37 (inform_for_arg): New function.
38 (convert_for_assignment): Use inform_for_arg when dealing with
39 ic_argpass.
40
2a389958
JJ
412017-09-29 Jakub Jelinek <jakub@redhat.com>
42
7d386d45
JJ
43 * c-decl.c (grokfield): Use SET_DECL_C_BIT_FIELD here if
44 width is non-NULL.
45 (finish_struct): Test DECL_C_BIT_FIELD instead of DECL_INITIAL,
46 don't SET_DECL_C_BIT_FIELD here.
47
2a389958
JJ
48 PR c/82340
49 * c-decl.c (build_compound_literal): Use c_apply_type_quals_to_decl
50 instead of trying to set just TREE_READONLY manually.
51
ebc6a85e
TV
522017-09-16 Tom de Vries <tom@codesourcery.com>
53
54 PR c/81875
55 * c-parser.c (c_parser_omp_for_loop): Fold only operands of cond, not
56 cond itself.
57
bb75facd
JM
582017-09-15 Joseph Myers <joseph@codesourcery.com>
59
60 PR c/82071
61 * c-typeck.c (ep_convert_and_check): Just call convert_and_check
62 for C11.
63 (build_conditional_expr): For C11, generate result with excess
64 precision when one argument is an integer and the other is of a
65 type using excess precision.
66
1d933576
BE
672017-09-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
68
69 * c-typeck.c (build_c_cast): Implement -Wcast-align=strict.
70
267bbb6f
MP
712017-09-13 Marek Polacek <polacek@redhat.com>
72
73 PR c/82167
74 * c-typeck.c (c_expr_sizeof_expr): Use the type of expr.value rather
75 than expr.original_type.
76
6836632e
NS
772017-09-12 Nathan Sidwell <nathan@acm.org>
78
79 * c-decl.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
80 resort_sorted_fields): Moved from c-family/c-common.c.
81 * c-lang.h (struct sorted_fields_type): Moved from c-family/c-common.h.
82
e035be33
JM
832017-09-01 Joseph Myers <joseph@codesourcery.com>
84
85 PR c/82071
86 * c-typeck.c (build_atomic_assign): Handle argument with excess
87 precision. Ensure any EXCESS_PRECISION_EXPR is present in
88 argument passed to build_binary_op and convert_for_assignment but
89 not for call to c_fully_fold.
90 (build_modify_expr): Do not remove EXCESS_PRECISION_EXPR early.
91 Ensure build_binary_op is called with argument with original
92 semantic type. Avoid calling c_fully_fold with an
93 EXCESS_PRECISION_EXPR from build_binary_op.
94
d2e05fcb
JJ
952017-09-01 Jakub Jelinek <jakub@redhat.com>
96
97 PR c/81887
98 * c-parser.c (c_parser_omp_ordered): Handle -fopenmp-simd.
99
b397965c
RS
1002017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
101 Alan Hayward <alan.hayward@arm.com>
102 David Sherwood <david.sherwood@arm.com>
103
104 * c-typeck.c (build_binary_op): Use SCALAR_TYPE_MODE.
105 (c_common_type): Likewise. Use as_a <scalar_mode> when setting
106 m1 and m2 to the signed equivalent of a fixed-point
107 SCALAR_TYPE_MODE.
108
14e18d71
DM
1092017-08-24 David Malcolm <dmalcolm@redhat.com>
110
111 * c-tree.h (c_expr::get_location) Use EXPR_HAS_LOCATION rather
112 than CAN_HAVE_LOCATION_P when determining whether to use the
113 location_t value within "value".
114
7f204c0f
DM
1152017-08-21 David Malcolm <dmalcolm@redhat.com>
116
117 * c-parser.c (c_parser_expr_list): Use c_expr::get_location ()
118 rather than peeking the location of the first token.
119 * c-tree.h (c_expr::get_location): New method.
120
2f687306
DM
1212017-08-21 David Malcolm <dmalcolm@redhat.com>
122
123 * c-typeck.c (build_function_call_vec): Pass arg_loc to call
124 to check_function_arguments.
125
3e7b80d7
MP
1262017-08-18 Marek Polacek <polacek@redhat.com>
127
128 * c-parser.c (c_parser_postfix_expression): Remove unused code. Update
129 commentary.
130
00aa1fa2
L
1312017-08-18 H.J. Lu <hongjiu.lu@intel.com>
132
133 PR c/53037
134 * c-decl.c (merge_decls): Also merge DECL_WARN_IF_NOT_ALIGN.
135 (check_bitfield_type_and_width): Don't allow bit-field with
136 warn_if_not_aligned type.
137
da67acb9
MS
1382017-08-14 Martin Sebor <msebor@redhat.com>
139
140 PR c/81117
141 * c-objc-common.c (c_objc_common_init): Handle 'G'.
142
bb85aa74
MP
1432017-08-11 Marek Polacek <polacek@redhat.com>
144
145 PR c/81795
146 * c-decl.c (pushtag): Only print inform if the warning was printed.
147 (grokdeclarator): Likewise.
148
32129a17
DM
1492017-08-10 David Malcolm <dmalcolm@redhat.com>
150
151 * c-parser.c (c_parser_error): Rename to...
152 (c_parser_error_richloc): ...this, making static, and adding
153 "richloc" parameter, passing it to the c_parse_error call,
154 rather than calling c_parser_set_source_position_from_token.
155 (c_parser_error): Reintroduce, reimplementing in terms of the
156 above, converting return type from void to bool.
157 (class token_pair): New class.
158 (struct matching_paren_traits): New struct.
159 (matching_parens): New typedef.
160 (struct matching_brace_traits): New struct.
161 (matching_braces): New typedef.
162 (get_matching_symbol): New function.
163 (c_parser_require): Add param MATCHING_LOCATION, using it to
164 highlight matching "opening" tokens for missing "closing" tokens.
165 (c_parser_skip_until_found): Likewise.
166 (c_parser_static_assert_declaration_no_semi): Convert explicit
167 parsing of CPP_OPEN_PAREN and CPP_CLOSE_PAREN to use of
168 class matching_parens, so that the pertinent open parenthesis is
169 highlighted when there are problems locating the close
170 parenthesis.
171 (c_parser_struct_or_union_specifier): Likewise.
172 (c_parser_typeof_specifier): Likewise.
173 (c_parser_alignas_specifier): Likewise.
174 (c_parser_simple_asm_expr): Likewise.
175 (c_parser_braced_init): Likewise, for matching_braces.
176 (c_parser_paren_condition): Likewise, for matching_parens.
177 (c_parser_switch_statement): Likewise.
178 (c_parser_for_statement): Likewise.
179 (c_parser_asm_statement): Likewise.
180 (c_parser_asm_operands): Likewise.
181 (c_parser_cast_expression): Likewise.
182 (c_parser_sizeof_expression): Likewise.
183 (c_parser_alignof_expression): Likewise.
184 (c_parser_generic_selection): Likewise.
185 (c_parser_postfix_expression): Likewise for cases RID_VA_ARG,
186 RID_OFFSETOF, RID_TYPES_COMPATIBLE_P, RID_AT_SELECTOR,
187 RID_AT_PROTOCOL, RID_AT_ENCODE, reindenting as necessary.
188 In case CPP_OPEN_PAREN, pass loc_open_paren to the
189 c_parser_skip_until_found call.
190 (c_parser_objc_class_definition): Use class matching_parens as
191 above.
192 (c_parser_objc_method_decl): Likewise.
193 (c_parser_objc_try_catch_finally_statement): Likewise.
194 (c_parser_objc_synchronized_statement): Likewise.
195 (c_parser_objc_at_property_declaration): Likewise.
196 (c_parser_oacc_wait_list): Likewise.
197 (c_parser_omp_var_list_parens): Likewise.
198 (c_parser_omp_clause_collapse): Likewise.
199 (c_parser_omp_clause_default): Likewise.
200 (c_parser_omp_clause_if): Likewise.
201 (c_parser_omp_clause_num_threads): Likewise.
202 (c_parser_omp_clause_num_tasks): Likewise.
203 (c_parser_omp_clause_grainsize): Likewise.
204 (c_parser_omp_clause_priority): Likewise.
205 (c_parser_omp_clause_hint): Likewise.
206 (c_parser_omp_clause_defaultmap): Likewise.
207 (c_parser_oacc_single_int_clause): Likewise.
208 (c_parser_omp_clause_ordered): Likewise.
209 (c_parser_omp_clause_reduction): Likewise.
210 (c_parser_omp_clause_schedule): Likewise.
211 (c_parser_omp_clause_num_teams): Likewise.
212 (c_parser_omp_clause_thread_limit): Likewise.
213 (c_parser_omp_clause_aligned): Likewise.
214 (c_parser_omp_clause_linear): Likewise.
215 (c_parser_omp_clause_safelen): Likewise.
216 (c_parser_omp_clause_simdlen): Likewise.
217 (c_parser_omp_clause_depend): Likewise.
218 (c_parser_omp_clause_map): Likewise.
219 (c_parser_omp_clause_device): Likewise.
220 (c_parser_omp_clause_dist_schedule): Likewise.
221 (c_parser_omp_clause_proc_bind): Likewise.
222 (c_parser_omp_clause_uniform): Likewise.
223 (c_parser_omp_for_loop): Likewise.
224 (c_parser_cilk_clause_vectorlength): Likewise.
225 (c_parser_cilk_clause_linear): Likewise.
226 (c_parser_transaction_expression): Likewise.
227 * c-parser.h (c_parser_require): Add param matching_location with
228 default UNKNOWN_LOCATION.
229 (c_parser_error): Convert return type from void to bool.
230 (c_parser_skip_until_found): Add param matching_location with
231 default UNKNOWN_LOCATION.
232
30af3a2b
MP
2332017-08-09 Marek Polacek <polacek@redhat.com>
234
235 * c-decl.c (build_enumerator): Use true/false instead of 1/0.
236 * c-tree.h (build_external_ref): Update declaration.
237 * c-typeck.c (build_array_ref): Use true/false instead of 1/0.
238 (build_external_ref): Change the type of a parameter to bool.
239 (parser_build_binary_op): Use true/false instead of 1/0.
240 (pointer_diff): Likewise.
241 (build_modify_expr): Likewise.
242 (set_designator): Change the type of a parameter to bool.
243 (set_init_index): Use true/false instead of 1/0.
244 (set_init_label): Likewise.
245 (output_init_element): Change the type of a parameter to bool.
246 (output_pending_init_elements): Use true/false instead of 1/0.
247 (process_init_element): Likewise.
248 (build_binary_op): Change the type of a parameter to bool.
249
296c53ac
MP
2502017-08-09 Marek Polacek <polacek@redhat.com>
251
252 PR c/81233
253 * c-typeck.c (pedwarn_init): Make the function take a variable list.
254 Call emit_diagnostic_valist instead of pedwarn.
255 (convert_for_assignment): Unroll the PEDWARN_FOR_ASSIGNMENT macro.
256 Print the relevant types in diagnostics.
257
a32c8316
MP
2582017-08-09 Marek Polacek <polacek@redhat.com>
259
260 PR c/81417
261 * c-array-notation.c (fix_builtin_array_notation_fn): Update calls to
262 build_conditional_expr.
263 * c-parser.c (c_parser_conditional_expression): Create locations for
264 EXP1 and EXP2 from their source ranges. Pass the locations down to
265 build_conditional_expr.
266 * c-tree.h (build_conditional_expr): Update declaration.
267 * c-typeck.c (build_conditional_expr): Add location_t parameters.
268 For -Wsign-compare, also print the types.
269
314e6352
ML
2702017-08-08 Martin Liska <mliska@suse.cz>
271
272 * c-convert.c: Include header files.
273 * c-typeck.c: Likewise.
274
577eec56
ML
2752017-08-07 Martin Liska <mliska@suse.cz>
276
277 * c-parser.c (c_parser_attributes): Canonicalize name of an
278 attribute.
279
f7b6353a
MP
2802017-08-02 Marek Polacek <polacek@redhat.com>
281
282 PR c/81289
283 * c-parser.c (c_parser_unary_expression): Use set_error.
284
8a6eab34
MP
285 PR c/81448
286 PR c/81306
287 * c-warn.c (warn_for_multistatement_macros): Prevent bogus
288 warnings. Avoid walking MACRO_MAP_LOCATIONS.
289
7fef86d3
JH
2902017-07-31 Jan Hubicka <hubicka@ucw.cz>
291 Martin Liska <mliska@suse.cz>
292
293 * c-typeck.c (c_finish_goto_label): Build gimple predict
f7b6353a 294 statement.
7fef86d3 295
f34ebeb2
ML
2962017-07-31 Martin Liska <mliska@suse.cz>
297
298 PR sanitize/81530
299 * c-convert.c (convert): Guard condition with flag_sanitize_p
300 also with current_function_decl non-null equality.
301 * c-decl.c (grokdeclarator): Likewise.
302 * c-typeck.c (build_binary_op): Likewise.
303
8595f67b
MP
3042017-07-25 Marek Polacek <polacek@redhat.com>
305
306 * c-decl.c (grokfield): Remove local variable.
307
d49718d6
MP
3082017-07-25 Marek Polacek <polacek@redhat.com>
309
310 PR c/81364
311 * c-parser.c (c_parser_else_body): Don't warn about multistatement
312 macro expansion if the body is in { }.
313 (c_parser_while_statement): Likewise.
314 (c_parser_for_statement): Likewise.
315
ff22eb12
NS
3162017-07-18 Nathan Sidwell <nathan@acm.org>
317
318 * c-parser.c (c_parser_array_notation): Use TYPE_{MIN,MAX}_VALUE.
319
eea77d1f
DM
3202017-07-14 David Malcolm <dmalcolm@redhat.com>
321
322 * c-decl.c (implicitly_declare): When suggesting a missing
323 #include, provide a fix-it hint.
324
b6f43128
DM
3252017-07-06 David Malcolm <dmalcolm@redhat.com>
326
327 * c-lang.c (selftest::run_c_tests): Move body to c_family_tests,
328 and call that instead.
329 * c-tree.h (selftest::run_c_tests): New decl.
330
3e2becc4
MP
3312017-06-26 Marek Polacek <polacek@redhat.com>
332
333 PR c/80116
334 * c-parser.c (c_parser_if_body): Set the location of the
335 body of the conditional after parsing all the labels. Call
336 warn_for_multistatement_macros.
337 (c_parser_else_body): Likewise.
338 (c_parser_switch_statement): Likewise.
339 (c_parser_while_statement): Likewise.
340 (c_parser_for_statement): Likewise.
341 (c_parser_statement): Add a default argument. Save the location
342 after labels have been parsed.
343 (c_parser_c99_block_statement): Likewise.
344
343ae898
RB
3452017-06-19 Richard Biener <rguenther@suse.de>
346
347 * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
348 negated _Literals to parse _Literal (int) -1.
349
45b2222a
ML
3502017-06-13 Martin Liska <mliska@suse.cz>
351
352 PR sanitize/78204
353 * c-convert.c (convert): Use sanitize_flags_p.
354 * c-decl.c (grokdeclarator): Likewise.
355 * c-typeck.c (convert_for_assignment): Likewise.
356 (c_finish_return): Likewise.
357 (build_binary_op): Likewise.
358
8ab7005b
JJ
3592017-06-08 Jakub Jelinek <jakub@redhat.com>
360
361 PR c/81006
362 * c-typeck.c (handle_omp_array_sections_1): Convert TYPE_MAX_VALUE
363 to sizetype before size_binop.
364
363dc72c
JJ
3652017-06-07 Jakub Jelinek <jakub@redhat.com>
366
367 * gimple-parser.c (c_parser_parse_gimple_body): Use TDI_gimple instead
368 of TDI_generic.
369
dc949728
MP
3702017-06-06 Marek Polacek <polacek@redhat.com>
371
372 PR c/79983
373 * c-decl.c (start_struct): Use the location of TYPE_STUB_DECL of
374 ref.
375 (start_enum): Use the location of TYPE_STUB_DECL of enumtype.
376
40ffd95f
BE
3772017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
378
379 * c-parser.c (c_parser_binary_expression): Implement the
380 -Wsizeof_pointer_div warning.
381 (c_parser_postfix_expression): Allow SIZEOF_EXPR as expr.original_code
382 from a parenthesized expression.
383 (c_parser_expr_list): Use c_last_sizeof_loc.
384 * c-tree.h (c_last_sizeof_loc): New external.
385 * c-typeck.c (c_last_sizeof_loc): New variable.
386 (c_expr_sizeof_expr, c_expr_sizeof_type): Assign c_last_sizeof_loc.
387
9fc5e7a4
MM
3882017-05-31 Mikhail Maltsev <maltsevm@gmail.com>
389
390 PR testsuite/80580
391 * gimple-parser.c (c_parser_gimple_if_stmt): Check for empty labels.
392
f012c8ef
DM
3932017-05-30 David Malcolm <dmalcolm@redhat.com>
394
395 * c-objc-common.c (c_tree_printer): Gain bool and const char **
396 parameters.
397
3cd211af
MS
3982017-05-24 Martin Sebor <msebor@redhat.com>
399
400 PR c/80731
401 * c-fold.c (c_fully_fold_internal): Adjust.
402 * c-typeck.c (parser_build_unary_op): Adjust.
403
fd71a9a2
TS
4042017-05-23 Thomas Schwinge <thomas@codesourcery.com>
405
406 * c-parser.c (OACC_KERNELS_CLAUSE_MASK): Add
407 "PRAGMA_OACC_CLAUSE_NUM_GANGS", "PRAGMA_OACC_CLAUSE_NUM_WORKERS",
408 "VECTOR_LENGTH".
409
92fa0f9e
MP
4102017-05-23 Marek Polacek <polacek@redhat.com>
411
412 * c-parser.c (c_parser_compound_statement_nostart): Remove redundant
413 quotes.
414
d11c168a
JJ
4152017-05-22 Jakub Jelinek <jakub@redhat.com>
416
417 * c-fold.c (c_fully_fold_internal): Save the c_fully_fold_internal
418 result for SAVE_EXPR operand and set SAVE_EXPR_FOLDED_P even if
419 it returned invariant. Call tree_invariant_p unconditionally
420 afterwards to decide whether to return expr or op0.
421
58aca9d9
NS
4222017-05-22 Nathan Sidwell <nathan@acm.org>
423
424 * c-decl.c (c_parse_final_cleanups): Drop TDI_tu handling.
425
7fd549d2
TS
4262017-05-19 Thomas Schwinge <thomas@codesourcery.com>
427
428 * c-parser.c (c_parser_omp_clause_default): Handle
429 "OMP_CLAUSE_DEFAULT_PRESENT".
430
6ecd2339
BE
4312017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
432
433 * config-lang.in (gtfiles): Add c-family/c-format.c.
434
8a57ecff
NS
4352017-05-18 Nathan Sidwell <nathan@acm.org>
436
437 * c-decl.c (pushdecl_top_level): Delete unused function.
438
6574d78e
MP
4392017-05-18 Marek Polacek <polacek@redhat.com>
440
441 * c-decl.c (match_builtin_function_types): Use NULL_TREE instead of 0.
442 (check_earlier_gotos): Likewise.
443 (define_label): Likewise.
444 (pending_xref_error): Likewise.
445 (smallest_type_quals_location): Likewise.
446 (grokdeclarator): Likewise.
447 (grokparms): Likewise.
448 (identifier_global_value): Likewise.
449 * c-typeck.c (set_nonincremental_init_from_string): Likewise.
450 (find_init_member): Likewise.
451
e3455240
MP
4522017-05-18 Marek Polacek <polacek@redhat.com>
453
454 * c-decl.c (start_decl): Use false/true instead of 0/1.
455 (grokdeclarator): Likewise.
456 (finish_struct): Likewise.
457 (start_function): Change the return type to bool. Use false/true
458 instead of 0/1.
459 (declspecs_add_qual): Use UNKNOWN_LOCATION instead of 0.
460 * c-tree.h (start_function): Update.
461 * c-typeck.c (same_translation_unit_p): Change the return type to bool.
462 (set_designator): Change the return type to bool. Use false/true
463 instead of 0/1.
464
3fa8871b
MP
4652017-05-17 Marek Polacek <polacek@redhat.com>
466
467 * c-decl.c: Use NULL_TREE instead of 0 where appropriate.
468 * c-typeck.c: Likewise.
469
142473df
MP
4702017-05-17 Marek Polacek <polacek@redhat.com>
471
472 PR sanitizer/80659
473 * c-decl.c (build_compound_literal): Set DECL_ARTIFICIAL and
474 DECL_IGNORED_P even for non-static compound literals.
475
1a817418
ML
4762017-05-17 Martin Liska <mliska@suse.cz>
477
478 * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and
479 use it instead of int type.
480
b2fa0a8b
MP
4812017-05-17 Marek Polacek <polacek@redhat.com>
482
483 * c-convert.c (convert): Replace c_save_expr with save_expr. Don't
484 call c_fully_fold.
485 (convert) <case COMPLEX_TYPE>: Remove special handling of COMPLEX_TYPEs.
486 * c-decl.c (grokdeclarator): Replace c_save_expr with save_expr.
487 * c-fold.c (c_fully_fold_internal): Handle SAVE_EXPR.
488 * c-parser.c (c_parser_declaration_or_fndef): Replace c_save_expr with
489 save_expr.
490 (c_parser_conditional_expression): Likewise.
491 * c-tree.h (SAVE_EXPR_FOLDED_P): Define.
492 * c-typeck.c (build_modify_expr): Replace c_save_expr with save_expr.
493 (process_init_element): Likewise.
494 (build_binary_op): Likewise.
495 (handle_omp_array_sections_1): Likewise.
496
1e47f02b
TS
4972017-05-12 Thomas Schwinge <thomas@codesourcery.com>
498
499 * c-parser.c (c_parser_omp_clause_num_gangs)
500 (c_parser_omp_clause_num_workers)
501 (c_parser_omp_clause_vector_length): Merge functions into...
502 (c_parser_oacc_single_int_clause): ... this new function. Adjust
503 all users.
504
c24e924f
NS
5052017-05-11 Nathan Sidwell <nathan@acm.org>
506
507 * gimple-parser.c: Don't #include tree-dump.h.
508
c587104e
MM
5092017-05-11 Mikhail Maltsev <maltsevm@gmail.com>
510
511 PR testsuite/80580
512 * gimple-parser.c (c_parser_parse_ssa_name): Validate SSA name base.
513
67ac9a9d
MM
5142017-05-11 Mikhail Maltsev <maltsevm@gmail.com>
515
516 PR testsuite/80580
517 * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
518 incorrect __MEM syntax.
519
ac4eb40f
MM
5202017-05-11 Mikhail Maltsev <maltsevm@gmail.com>
521
522 PR testsuite/80580
523 * gimple-parser.c (c_parser_gimple_unary_expression): Check argument
524 type of unary '*'.
525
641da50a
NS
5262017-05-09 Nathan Sidwell <nathan@acm.org>
527
528 * c-tree.h (pushdecl): Declare.
529
56d35585
DM
5302017-05-05 David Malcolm <dmalcolm@redhat.com>
531
532 * c-decl.c (warn_defaults_to): Replace report_diagnostic
533 with diagnostic_report_diagnostic.
534 * c-errors.c (pedwarn_c99): Likewise.
535 (pedwarn_c90): Likewise.
536
815d9cc6
XR
5372017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
538
539 PR c++/80038
540 * c-gimplify.c (c_gimplify_expr): Remove calls to
541 cilk_gimplifY_call_params_in_spawned_fn.
542
1c4ea66f
DM
5432017-04-25 David Malcolm <dmalcolm@redhat.com>
544
545 * c-parser.c (c_parser_struct_or_union_specifier): Add fix-it
546 hint for removing extra semicolon.
547
666f7903
JJ
5482017-04-21 Jakub Jelinek <jakub@redhat.com>
549
550 PR c/80468
551 * c-decl.c (finish_declspecs) <case cts_int_n>: If int_n_idx is not
552 enabled, set specs->type to integer_type_node.
553
5764ee3c
JW
5542017-04-03 Jonathan Wakely <jwakely@redhat.com>
555
556 * c-array-notation.c: Fix typo in comment.
557
10fa8dfb
MP
5582017-03-29 Marek Polacek <polacek@redhat.com>
559
560 PR c/79730
561 * c-decl.c (finish_decl): Check VAR_P.
562
a9e4a1a5
JJ
5632017-03-27 Jakub Jelinek <jakub@redhat.com>
564
565 PR middle-end/80162
566 * c-tree.h (c_mark_addressable): Add array_ref_p argument.
567 * c-typeck.c (c_mark_addressable): Likewise. Look through
568 VIEW_CONVERT_EXPR unless array_ref_p and VCE is from VECTOR_TYPE
569 to ARRAY_TYPE.
570 (build_array_ref): Pass true as array_ref_p to c_mark_addressable.
571
ee3ff394
MP
5722017-03-23 Marek Polacek <polacek@redhat.com>
573
574 * c-tree.h: Remove a C_RID_YYCODE reference.
575
4d1b8e70
JJ
5762017-03-21 Jakub Jelinek <jakub@redhat.com>
577
578 PR c/80097
579 * c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around
580 optional COMPOUND_EXPR with ubsan instrumentation.
581
31dc71a8
MP
5822017-03-17 Marek Polacek <polacek@redhat.com>
583
584 * c-parser.c: Add C11 references.
585
d579c385
MP
5862017-03-15 Marek Polacek <polacek@redhat.com>
587
588 * c-parser.c (c_parser_enum_specifier): Remove redundant line.
589
85059a38
MP
5902017-03-11 Marek Polacek <polacek@redhat.com>
591
592 * c-decl.c (implicit_decl_warning): Add a comment. Fix formatting.
593
2f6f187a
DM
5942017-03-10 David Malcolm <dmalcolm@redhat.com>
595
596 PR translation/79848
597 * c-decl.c (declspecs_add_type): Simplify uses of "%<%s%>" to
598 "%qs".
599 * c-parser.c (c_parser_oacc_shape_clause): Likewise.
600
36618428
MP
6012017-03-09 Marek Polacek <polacek@redhat.com>
602
603 PR sanitizer/79757
604 * c-parser.c (c_parser_declaration_or_fndef): Don't sanitize old-style
605 parameter declarations with initializers.
606
01e5af5a
JJ
6072017-03-09 Jakub Jelinek <jakub@redhat.com>
608
609 PR c/79969
610 * c-decl.c (start_enum): Adjust DECL_SOURCE_LOCATION of
611 TYPE_STUB_DECL.
612
a71dbc63
JJ
6132017-03-07 Jakub Jelinek <jakub@redhat.com>
614
615 PR c/79834
616 * c-parser.c (c_parser_pragma): Use error_at instead of c_parser_error
617 for "may only be used in compound statements" diagnostics, change it
618 such that the same translatable string is used for all pragmas. For
619 PRAGMA_OACC_WAIT use "acc wait" rather than "acc enter data" in the
620 diagnostics.
621 (c_parser_omp_cancellation_point, c_parser_omp_target_update,
622 c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Change
623 "may only be used in compound statements" diagnostics, such that the
624 same translatable string is used for all pragmas.
625
1ff4bae6
MP
6262017-03-04 Marek Polacek <polacek@redhat.com>
627
628 PR c/79847
629 * c-decl.c (implicit_decl_warning): Add missing space.
630
7f5a7d78
MP
6312017-03-03 Marek Polacek <polacek@redhat.com>
632
633 PR c/79758
634 * c-decl.c (store_parm_decls_oldstyle): Check if the element of
635 current_function_prototype_arg_types is error_mark_node. Fix
636 formatting. Use TREE_VALUE instead of TREE_TYPE.
637
883c8f06
JJ
6382017-03-03 Jakub Jelinek <jakub@redhat.com>
639
79c9b7a8
JJ
640 PR c/79837
641 * c-parser.c (c_parser_omp_clause_reduction): Don't mention
642 %<min%> or %<max%> in the diagnostics, instead mention identifier.
643 (c_parser_omp_declare_reduction): Don't mention %<min%> in the
644 diagnostics.
645
883c8f06
JJ
646 PR c/79836
647 * c-parser.c (c_parser_generic_selection): Use %<_Generic%>
648 instead of %<_Generic>.
649 (c_parser_omp_ordered): Use %<depend%> instead of %<depend>.
650 (c_parser_omp_target_exit_data): Use %<release%> instead of
651 %<release>.
652
324ff1a0
JJ
6532017-02-28 Jakub Jelinek <jakub@redhat.com>
654
655 * c-parser.c (c_parser_asm_statement): Use cond ? G_("...") : G_("...")
656 instead of just cond ? "..." : "...".
657 (c_parser_oacc_enter_exit_data): Use %s and ternary operator only
658 for "enter"/"exit" keyword.
659 (c_finish_oacc_routine): Don't use %s to supply portions of the
660 message.
661
4227c9ad
JJ
6622017-02-24 Jakub Jelinek <jakub@redhat.com>
663
664 PR c++/79588
665 * c-parser.c (c_parser_postfix_expression_after_primary): Don't
666 handle -Wrestrict here.
667 * c-typeck.c (build_function_call_vec): Adjust
668 check_function_arguments caller.
669
5d972e66
RB
6702017-02-23 Richard Biener <rguenther@suse.de>
671
672 PR c/79684
673 * gimple-parser.c (c_parser_gimple_statement): Use set_error
674 to initialize c_exprs to return.
675 (c_parser_gimple_binary_expression): Likewise.
676 (c_parser_gimple_unary_expression): Likewise.
677 (c_parser_gimple_postfix_expression): Likewise.
678
61ac5ebe
MP
6792017-02-22 Marek Polacek <polacek@redhat.com>
680
681 PR c/79662
682 * c-typeck.c (convert_arguments): Handle error_mark_node.
683
41d1b0b1
PK
6842017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
685
686 * gimple-parser.c (c_parser_gimple_postfix_expression): Check return
687 value of c_parser_parse_ssa_name against error_mark_node and emit
688 error if ssa name is anonymous and written as default definition.
689
eab1f169
PK
6902017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
691
692 * gimple-parser.c (c_parser_gimple_postfix_expression): Handle
693 FMA_EXPR.
694
bcac0b4d
JJ
6952017-02-16 Jakub Jelinek <jakub@redhat.com>
696
697 PR c++/79512
698 * c-parser.c (c_parser_omp_target): For -fopenmp-simd
699 ignore #pragma omp target even when not followed by identifier.
700
1be33173
PK
7012017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
702
703 * gimpler-parser.c (c_parser_gimple_statement): Handle ABS_EXPR.
704 (c_parser_gimple_unary_expression): Likewise.
705
aa326bfb
JJ
7062017-02-13 Jakub Jelinek <jakub@redhat.com>
707
708 * c-parser.c (c_parser_oacc_declare): Add missing space in
709 diagnostics.
710
8a398bc5
PK
7112017-02-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
712
713 PR c/79478
714 * gimple-parser.c (c_parser_gimple_postfix_expression): Call
715 set_c_expr_source_range when parsing ssa-name.
716
3dcde5ef
PG
7172017-02-10 Prasad Ghangal <prasad.ghangal@gmail.com>
718 Richard Biener <rguenther@suse.de>
719
720 * gimple-parser.c (c_parser_gimple_binary_expression): Avoid
721 building IL when arguments are error_mark_node.
722 (c_parser_gimple_unary_expression): Likewise.
723 (c_parser_gimple_if_stmt): Likewise.
724 (c_parser_gimple_switch_stmt): Likewise.
725 (c_parser_gimple_return_stmt): Likewise.
726 (c_parser_parse_ssa_name): When name lookup fails do not build
727 an SSA name. Use undeclared rather than not declared in error
728 reporting.
729
192b048b
MP
7302017-02-09 Marek Polacek <polacek@redhat.com>
731
732 PR c/79428
733 * c-parser.c (c_parser_omp_ordered): Call c_parser_skip_to_pragma_eol
734 instead of c_parser_skip_until_found.
735
56f71478
JJ
7362017-02-09 Jakub Jelinek <jakub@redhat.com>
737
738 PR c/79431
739 * c-parser.c (c_parser_omp_declare_target): Don't invoke
740 symtab_node::get on automatic variables.
741
02889d23
CLT
7422016-02-09 Nathan Sidwell <nathan@codesourcery.com>
743 Chung-Lin Tang <cltang@codesourcery.com>
744
745 * c-parser.c (c_parser_omp_clause_collapse): Disallow tile.
746 (c_parser_oacc_clause_tile): Disallow collapse. Fix parsing and
747 semantic checking.
748 * c-parser.c (c_parser_omp_for_loop): Accept tiling constructs.
749
7af4b20d
RB
7502017-02-07 Richard Biener <rguenther@suse.de>
751
752 * gimple-parser.c (c_parser_gimple_expr_list): Simplify.
753 (c_parser_gimple_postfix_expression_after_primary):
754 Do not use c_build_function_call_vec to avoid folding and promotion.
755 Simplify.
756
e5e391d6
MO
7572017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
758
759 PR lto/79061
760 * c-decl.c (pop_scope): Pass main_input_filename to
761 build_translation_unit_decl.
762
c2e84327
DM
7632017-01-24 David Malcolm <dmalcolm@redhat.com>
764
765 * c-parser.c: Include "read-rtl-function.h" and
766 "run-rtl-passes.h".
767 (c_parser_declaration_or_fndef): Rename "gimple-pass-list" in
768 grammar to gimple-or-rtl-pass-list. Add rtl-function-definition
769 production. Update for renaming of field "gimple_pass" to
770 "gimple_or_rtl_pass". If __RTL was seen, call
771 c_parser_parse_rtl_body. Convert a timevar_push/pop pair
772 to an auto_timevar, to cope with early exit.
773 (c_parser_declspecs): Update RID_GIMPLE handling for renaming of
774 field "gimple_pass" to "gimple_or_rtl_pass", and for renaming of
775 c_parser_gimple_pass_list to c_parser_gimple_or_rtl_pass_list.
776 Handle RID_RTL.
777 (c_parser_parse_rtl_body): New function.
778 * c-tree.h (enum c_declspec_word): Add cdw_rtl.
779 (struct c_declspecs): Rename field "gimple_pass" to
780 "gimple_or_rtl_pass". Add field "rtl_p".
781 * gimple-parser.c (c_parser_gimple_pass_list): Rename to...
782 (c_parser_gimple_or_rtl_pass_list): ...this, updating accordingly.
783 * gimple-parser.h (c_parser_gimple_pass_list): Rename to...
784 (c_parser_gimple_or_rtl_pass_list): ...this.
785
2ebd93e1
MP
7862017-01-20 Marek Polacek <polacek@redhat.com>
787
788 PR c/64279
789 * c-typeck.c (build_conditional_expr): Warn about duplicated branches.
790
b1c95bb5
RB
7912017-01-13 Richard Biener <rguenther@suse.de>
792
793 * gimple-parser.c (c_parser_gimple_compound_statement): Handle
794 nops.
795
25329913
RB
7962017-01-13 Richard Biener <rguenther@suse.de>
797
798 * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
799 _Literal ( type-name ) number.
800
6bb4ea5c
RB
8012017-01-12 Richard Biener <rguenther@suse.de>
802
803 * gimple-parser.c (c_parser_gimple_postfix_expression): Parse
804 __MEM.
805
6b5b4e9c
JJ
8062017-01-11 Jakub Jelinek <jakub@redhat.com>
807
808 PR c++/72813
809 * c-decl.c (pop_file_scope): Set flag_syntax_only to 1 after writing
810 PCH file.
811
e3252775
RB
8122017-01-11 Richard Biener <rguenther@suse.de>
813
814 PR bootstrap/79052
815 * gimple-parser.c (c_parser_gimple_switch_stmt): Add missing
816 returns on parse errors.
817
a9342885
MP
8182017-01-04 Marek Polacek <polacek@redhat.com>
819
820 PR c++/64767
821 * c-parser.c (c_parser_postfix_expression): Mark zero character
822 constants by setting original_type in c_expr.
823 * c-typeck.c (parser_build_binary_op): Warn when a pointer is compared
824 with a zero character constant.
825 (char_type_p): New function.
826
5dd9a9d0
DM
8272017-01-04 David Malcolm <dmalcolm@redhat.com>
828
829 * c-parser.c (c_parser_declaration_or_fndef): Create a
830 rich_location at init_loc and parse it to start_init.
831 (last_init_list_comma): New global.
832 (c_parser_braced_init): Update last_init_list_comma when parsing
833 commas. Pass it to pop_init_level. Pass location of closing
834 brace to pop_init_level.
835 (c_parser_postfix_expression_after_paren_type): Create a
836 rich_location at type_loc and parse it to start_init.
837 (c_parser_omp_declare_reduction): Likewise for loc.
838 * c-tree.h (start_init): Add rich_location * param.
839 (pop_init_level): Add location_t param.
840 * c-typeck.c (struct initializer_stack): Add field
841 "missing_brace_richloc".
842 (start_init): Add richloc param, use it to initialize
843 the stack node's missing_brace_richloc.
844 (last_init_list_comma): New decl.
845 (finish_implicit_inits): Pass last_init_list_comma to
846 pop_init_level.
847 (push_init_level): When finding missing open braces, add fix-it
848 hints to the richloc.
849 (pop_init_level): Add "insert_before" param and pass it
850 when calling pop_init_level. Add fixits about missing
851 close braces to any richloc. Use the richloc for the
852 -Wmissing-braces warning.
853 (set_designator): Pass last_init_list_comma to pop_init_level.
854 (process_init_element): Likewise.
855
cbe34bb5
JJ
8562017-01-01 Jakub Jelinek <jakub@redhat.com>
857
858 Update copyright years.
859
d17680f3
JJ
8602016-12-21 Jakub Jelinek <jakub@redhat.com>
861
0dba7960
JJ
862 PR bootstrap/78817
863 * c-typeck.c (build_function_call_vec): If check_function_arguments
864 returns true, set TREE_NO_WARNING on CALL_EXPR.
865
d17680f3
JJ
866 PR c/77767
867 * c-decl.c (grokdeclarator): If *expr is non-NULL, append expression
868 to *expr instead of overwriting it.
869
aa90531e
RB
8702016-12-20 Richard Biener <rguenther@suse.de>
871
872 * gimple-parser.c (c_parser_gimple_compound_statement): Improve
873 error recovery.
874 (c_parser_gimple_statement): Only build assigns for non-error
875 stmts.
876 (c_parser_gimple_postfix_expression_after): Improve error recovery.
877
629b3d75
MJ
8782016-12-14 Martin Jambor <mjambor@suse.cz>
879
880 * c-parser.c: Include omp-general.h and omp-offload.h instead of
881 omp-low.h.
882 (c_finish_oacc_routine): Adjusted call to
883 get_oacc_fn_attrib, build_oacc_routine_dims and replace_oacc_fn_attrib
884 to use their new names.
885 (c_parser_oacc_enter_exit_data): Adjusted call to find_omp_clause to
886 use its new name.
887 (c_parser_oacc_update): Likewise.
888 (c_parser_omp_simd): Likewise.
889 (c_parser_omp_target_update): Likewise.
890 * c-typeck.c: Include omp-general.h instead of omp-low.h.
891 (c_finish_omp_cancel): Adjusted call to find_omp_clause to use its new
892 name.
893 (c_finish_omp_cancellation_point): Likewise.
894 * gimple-parser.c: Do not include omp-low.h
895
c5af52eb
CP
8962016-12-02 Cesar Philippidis <cesar@codesourcery.com>
897 James Norris <jnorris@codesourcery.com>
898
899 * c-parser.c (c_parser_pragma): Error when PRAGMA_OACC_{ENTER_DATA,
900 EXIT_DATA,WAIT} are not used in compound statements.
901 (c_parser_oacc_enter_exit_data): Update diagnostics.
902
48330c93
BE
9032016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
904
905 PR c++/71973
906 * c-decl.c (diagnose_mismatched_decls): Use
907 OPT_Wbuiltin_declaration_mismatch here too.
908
899ca90e 9092016-11-18 Richard Sandiford <richard.sandiford@arm.com>
48330c93
BE
910 Alan Hayward <alan.hayward@arm.com>
911 David Sherwood <david.sherwood@arm.com>
899ca90e
RS
912
913 * c-decl.c (merge_decls): Use SET_DECL_MODE.
914 (make_label, finish_struct): Likewise.
915
1ee62b92 9162016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17 917 Richard Biener <rguenther@suse.de>
22b15758 918
8e745a17
JJ
919 * Make-lang.in (C_AND_OBJC_OBJS): Add gimple-parser.o.
920 * config-lang.in (gtfiles): Add c/c-parser.h.
921 * c-tree.h (enum c_declspec_word): Add cdw_gimple.
922 (struct c_declspecs): Add gimple_pass member and gimple_p flag.
923 * c-parser.c (enum c_id_kind, struct c_token,
924 c_parser_next_token_is, c_parser_next_token_is_not,
925 c_parser_next_token_is_keyword,
926 enum c_lookahead_kind, enum c_dtr_syn, enum c_parser_prec):
927 Split out to ...
928 * c-parser.h: ... new header.
929 * c-parser.c: Include c-parser.h and gimple-parser.h.
1ee62b92 930 (c_parser_peek_token, c_parser_peek_2nd_token,
8e745a17
JJ
931 c_token_starts_typename, c_parser_next_token_starts_declspecs,
932 c_parser_next_tokens_start_declaration, c_parser_consume_token,
933 c_parser_error, c_parser_require, c_parser_skip_until_found,
934 c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
935 c_parser_type_name): Export.
936 (c_parser_tokens_buf): New function.
937 (c_parser_error): Likewise.
938 (c_parser_set_error): Likewise.
939 (c_parser_declspecs): Handle RID_GIMPLE.
1ee62b92
PG
940 (c_parser_declaration_or_fndef): Parse __GIMPLE marked body
941 via c_parser_parse_gimple_body.
8e745a17
JJ
942 * c-parser.h (c_parser_peek_token, c_parser_peek_2nd_token,
943 c_token_starts_typename, c_parser_next_token_starts_declspecs,
944 c_parser_next_tokens_start_declaration, c_parser_consume_token,
945 c_parser_error, c_parser_require, c_parser_skip_until_found,
946 c_parser_declspecs, c_parser_declarator, c_parser_peek_nth_token,
947 c_parser_type_name): Declare.
1ee62b92
PG
948 (struct c_parser): Declare forward.
949 (c_parser_tokens_buf): Declare.
8e745a17
JJ
950 (c_parser_error): Likewise.
951 (c_parser_set_error): Likewise.
952 * gimple-parser.c: New file.
953 * gimple-parser.h: Likewise.
1ee62b92 954
22b15758
UB
9552016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
956
957 PR c/35503
958 * c-parser.c (c_parser_postfix_expression_after_primary): Call
959 warn_for_restrict.
960
84ff4775
LCW
9612016-09-11 Le-Chun Wu <lcwu@google.com>
962 Mark Wielaard <mjw@redhat.com>
963
964 * c-decl.c (warn_if_shadowing): Use the warning code corresponding
965 to the given -Wshadow= variant.
966
4d0cdd0c
TP
9672016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
968
969 * c-typeck.c: Include memmodel.h.
970
1202f33e
JJ
9712016-10-13 Jakub Jelinek <jakub@redhat.com>
972
973 PR target/77957
974 * c-objc-common.h (LANG_HOOKS_GETDECLS): Use hook_tree_void_null
975 instead of lhd_return_null_tree_v.
976
8a14afd0
BS
9772016-10-07 Bernd Schmidt <bschmidt@redhat.com>
978
979 PR c++/69733
980 * c-decl.c (smallest_type_quals_location): New static function.
981 (grokdeclarator): Try to find the correct location for an ignored
982 qualifier.
983
81fea426
MP
9842016-09-26 Marek Polacek <polacek@redhat.com>
985
986 PR c/7652
987 * c-decl.c (pop_scope): Add gcc_fallthrough.
988
9892016-09-26 Marek Polacek <polacek@redhat.com>
990
991 PR c/7652
992 * c-parser.c (struct c_token): Add flags field.
993 (c_lex_one_token): Pass it to c_lex_with_flags.
994 (c_parser_declaration_or_fndef): Turn __attribute__((fallthrough));
995 into IFN_FALLTHROUGH.
996 (c_parser_label): Set FALLTHROUGH_LABEL_P on labels. Handle
997 attribute fallthrough after a case label or default label.
998 (c_parser_statement_after_labels): Handle RID_ATTRIBUTE.
999
9a2300e9
MP
10002016-09-24 Marek Polacek <polacek@redhat.com>
1001
1002 PR c/77490
1003 * c-typeck.c (build_unary_op): Warn about bit not on expressions that
1004 have boolean value. Warn about ++/-- on booleans.
1005
7de76362
JJ
10062016-09-23 Jakub Jelinek <jakub@redhat.com>
1007
1008 * c-parser.c (incomplete_record_decls): Remove unnecessary
1009 = vNULL initialization of file scope vec.
1010
5b73d2ab
MP
10112016-09-16 Marek Polacek <polacek@redhat.com>
1012
1013 * c-typeck.c (lvalue_p): Use true and false instead of 1 and 0.
1014
e51fbec3
MP
10152016-09-14 Marek Polacek <polacek@redhat.com>
1016
1017 * c-array-notation.c (create_cmp_incr): Use false instead of 0.
1018 (fix_array_notation_expr): Likewise.
1019 * c-decl.c (finish_decl): Likewise.
1020 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
1021 * c-typeck.c (array_to_pointer_conversion): Use true instead of 1.
1022 (function_to_pointer_conversion): Use false instead of 0.
1023 (convert_lvalue_to_rvalue): Likewise.
1024 (parser_build_unary_op): Likewise.
1025 (build_atomic_assign): Likewise.
1026 (build_unary_op): Change nonconvert parameter type to bool, use
1027 true/false instead of 1/0.
1028 (build_binary_op): Use true instead of 1.
1029
254830ba
DM
10302016-09-13 David Malcolm <dmalcolm@redhat.com>
1031
1032 * c-parser.c (c_parser_declaration_or_fndef): Update for renaming
1033 of add_fixit_insert to add_fixit_insert_before.
1034
4c13ba17
MP
10352016-09-13 Marek Polacek <polacek@redhat.com>
1036
1037 * c-typeck.c (build_unary_op): Rename FLAG parameter to NOCONVERT. Use
1038 it.
1039
54dcdb88
BE
10402016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
1041
1042 PR c++/77496
1043 * c-parser.c (c_parser_conditional_expression): Pass the rightmost
1044 COMPOUND_EXPR to warn_for_omitted_condop.
1045
e5106e27
DM
10462016-09-07 David Malcolm <dmalcolm@redhat.com>
1047
1048 * c-lang.c (LANG_HOOKS_GET_SUBSTRING_LOCATION): Use
1049 c_get_substring_location for this new langhook.
1050
9dc5773f
JJ
10512016-09-02 Jakub Jelinek <jakub@redhat.com>
1052
1053 PR c/65467
1054 * c-parser.c (c_parser_declspecs): Don't sorry about _Atomic if
1055 flag_openmp.
1056 (c_parser_omp_variable_list): Use convert_lvalue_to_rvalue
1057 instead of mark_exp_read on low_bound/length expression.
1058 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_threads,
1059 c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
1060 c_parser_omp_clause_priority, c_parser_omp_clause_hint,
1061 c_parser_omp_clause_num_workers, c_parser_oacc_shape_clause,
1062 c_parser_oacc_clause_tile, c_parser_omp_clause_schedule,
1063 c_parser_omp_clause_vector_length, c_parser_omp_clause_num_teams,
1064 c_parser_omp_clause_thread_limit, c_parser_omp_clause_aligned,
1065 c_parser_omp_clause_linear, c_parser_omp_clause_safelen,
1066 c_parser_omp_clause_simdlen, c_parser_omp_clause_device,
1067 c_parser_omp_clause_dist_schedule): Use convert_lvalue_to_rvalue
1068 instead of mark_expr_read.
1069 (c_parser_omp_declare_reduction): Reject _Atomic qualified types.
1070 * c-objc-common.h (LANG_HOOKS_OMP_CLAUSE_COPY_CTOR,
1071 LANG_HOOKS_OMP_CLAUSE_ASSIGN_OP): Redefine.
1072 * c-tree.h (c_omp_clause_copy_ctor): New prototype.
1073 * c-typeck.c (handle_omp_array_sections_1): Diagnose _Atomic qualified
1074 array section bases outside of depend clause, for depend clause
1075 use convert_lvalue_to_rvalue on the base.
1076 (c_finish_omp_clauses): Reject _Atomic qualified vars in reduction,
1077 linear, aligned, map, to and from clauses.
1078 (c_omp_clause_copy_ctor): New function.
1079
295844f6
MP
10802016-09-01 Marek Polacek <polacek@redhat.com>
1081
1082 PR c/7652
1083 * c-typeck.c (composite_type): Add FALLTHRU comment.
1084
089af25c
DM
10852016-08-31 David Malcolm <dmalcolm@redhat.com>
1086
1087 * c-parser.c (c_parser_declaration_or_fndef): Add trailing space
1088 to the insertion fixits for "struct", "union", and "enum".
1089
f9087798
DM
10902016-08-30 David Malcolm <dmalcolm@redhat.com>
1091
1092 * c-decl.c (implicit_decl_warning): Use add_fixit_replace
1093 rather than add_fixit_misspelled_id.
1094 (undeclared_variable): Likewise.
1095 * c-parser.c (c_parser_declaration_or_fndef): Likewise. Remove
1096 now-redundant "here" params from add_fixit_insert method calls.
1097 (c_parser_parameter_declaration): Likewise.
1098 * c-typeck.c (build_component_ref): Remove now-redundant range
1099 param from add_fixit_replace method calls.
1100
ebef225f
MP
11012016-08-25 Marek Polacek <polacek@redhat.com>
1102
1103 * c-typeck.c (parser_build_binary_op): Pass LHS to
1104 warn_logical_not_parentheses.
1105
fe377a48
MP
11062016-08-25 Marek Polacek <polacek@redhat.com>
1107
1108 PR c/77323
1109 * c-decl.c (declspecs_add_type): Set typespec_word even when __intN
1110 or _FloatN or _FloatNx is not supported.
1111 (finish_declspecs): Set type to integer_type_node when _FloatN or
1112 _FloatNx is not supported.
1113
c65699ef
JM
11142016-08-19 Joseph Myers <joseph@codesourcery.com>
1115
1116 PR c/32187
1117 * c-tree.h (cts_floatn_nx): New enum c_typespec_keyword value.
1118 (struct c_declspecs): Add field floatn_nx_idx.
1119 * c-decl.c (declspecs_add_type, finish_declspecs): Handle _FloatN
1120 and _FloatNx type specifiers.
1121 * c-parser.c (c_keyword_starts_typename, c_token_starts_declspecs)
1122 (c_parser_declspecs, c_parser_attribute_any_word)
1123 (c_parser_objc_selector): Use CASE_RID_FLOATN_NX.
1124 * c-typeck.c (c_common_type): Handle _FloatN and _FloatNx types.
1125 (convert_arguments): Avoid promoting _FloatN and _FloatNx types
1126 narrower than double.
1127
2f1364c2
JJ
11282016-08-12 Jakub Jelinek <jakub@redhat.com>
1129 Martin Liska <mliska@suse.cz>
1130
1131 PR c/67410
1132 * c-typeck.c (set_nonincremental_init_from_string): Use / instead of
1133 % to determine val element to change. Assert that
1134 wchar_bytes * charwidth fits into val array.
1135
191816a3
MP
11362016-08-12 Marek Polacek <polacek@redhat.com>
1137
1138 PR c/7652
1139 * c-parser.c (c_parser_external_declaration): Add FALLTHRU.
1140 (c_parser_postfix_expression): Likewise.
1141 * c-typeck.c (build_unary_op): Adjust fall through comment.
1142 (c_mark_addressable): Likewise.
1143
b95a64bb
JJ
11442016-08-11 Jakub Jelinek <jakub@redhat.com>
1145
1146 PR c/72816
1147 * c-decl.c (grokdeclarator): When adding TYPE_DOMAIN for flexible
1148 array member through typedef, for orig_qual_indirect == 0 clear
1149 orig_qual_type.
1150
895aa8e1
DM
11512016-08-08 David Malcolm <dmalcolm@redhat.com>
1152
1153 PR c/64955
1154 * c-lang.c (LANG_HOOKS_RUN_LANG_SELFTESTS): If CHECKING_P, wire
1155 this up to selftest::run_c_tests.
1156 (selftest::run_c_tests): New function.
1157
0b212d8c
TS
11582016-08-04 Thomas Schwinge <thomas@codesourcery.com>
1159
ae9281fc
TS
1160 * c-parser.c (struct oacc_routine_data): Add error_seen and
1161 fndecl_seen members.
1162 (c_finish_oacc_routine): Use these.
1163 (c_parser_declaration_or_fndef): Adjust.
1164 (c_parser_oacc_routine): Likewise. Support more C language
1165 constructs, and improve diagnostics. Move pragma context
1166 checking...
1167 (c_parser_pragma): ... here.
1168
0b212d8c
TS
1169 * c-parser.c (struct oacc_routine_data): New.
1170 (c_parser_declaration_or_fndef, c_parser_oacc_routine): Use it.
1171 Simplify code.
1172 (c_finish_oacc_routine): Likewise. Don't attach clauses to "omp
1173 declare target" attribute.
1174
76e2c821
JB
11752016-08-01 Jan Beulich <jbeulich@suse.com>
1176
1177 * c-fold.c (c_fully_fold_internal): Also emit shift count
1178 warnings for vector types.
1179 * c-typeck.c (build_binary_op): Likewise.
1180
f618a472
MP
11812016-07-29 Marek Polacek <polacek@redhat.com>
1182
1183 PR c/71742
1184 * c-decl.c (finish_struct): Rephrase an error message.
1185
efd0786f
MP
1186 PR c/71853
1187 * c-parser.c (c_parser_switch_statement): Initialize ce.original_type
1188 to error node for invalid code.
1189
e00dceaf
MP
1190 PR c/71573
1191 * c-decl.c (implicitly_declare): Return decl early not only for
1192 error_mark_nodes, but for anything that is not a FUNCTION_DECL.
1193
673a107a
JJ
11942016-07-29 Jakub Jelinek <jakub@redhat.com>
1195
1196 PR c/71969
1197 * c-decl.c (finish_function): Only set DECL_DISREGARD_INLINE_LIMITS
1198 on GNU extern inline functions.
1199
a5b5c8b6
MP
12002016-07-29 Marek Polacek <polacek@redhat.com>
1201
1202 PR c/71583
1203 * c-parser.c (c_parser_postfix_expression_after_paren_type): Also
1204 check expr.value.
1205
e3fe09c1
UB
12062016-07-22 Uros Bizjak <ubizjak@gmail.com>
1207
1208 * c-typeck.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
1209
7c8f7eaa
DM
12102016-07-20 David Malcolm <dmalcolm@redhat.com>
1211
1212 * c-decl.c (struct edit_distance_traits<cpp_hashnode *>): Move to
1213 spellcheck-tree.h
1214 (best_macro_match): Likewise, converting from a typedef to a
1215 subclass.
1216 (find_closest_macro_cpp_cb): Move to spellcheck-tree.c.
1217 (lookup_name_fuzzy): Update for change of best_macro_match to a
1218 subclass with a ctor that calls cpp_forall_identifiers.
1219
de6a69ee
DM
12202016-07-20 David Malcolm <dmalcolm@redhat.com>
1221
1222 * c-decl.c (implicit_decl_warning): Update for conversion of
1223 return type of lookup_name_fuzzy to const char *.
1224 (undeclared_variable): Likewise.
1225 (lookup_name_fuzzy): Convert return type from tree to
1226 const char *.
1227 * c-parser.c (c_parser_declaration_or_fndef): Update for
1228 conversion of return type of lookup_name_fuzzy to const char *.
1229 (c_parser_parameter_declaration): Likewise.
1230
b1c9c068
CP
12312016-07-15 Cesar Philippidis <cesar@codesourcery.com>
1232
1233 * c-parser.c (c_parser_oacc_declare): Don't scan for
1234 GOMP_MAP_POINTER.
1235 * c-typeck.c (handle_omp_array_sections): Mark data clauses with
1236 GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
1237 zero-length subarrays.
1238
ddbbcb19
JJ
12392016-07-15 Jakub Jelinek <jakub@redhat.com>
1240
1241 PR c/71858
1242 * c-decl.c (implicit_decl_warning): Use FUZZY_LOOKUP_FUNCTION_NAME
1243 instead of FUZZY_LOOKUP_NAME.
1244 (lookup_name_fuzzy): For FUZZY_LOOKUP_FUNCTION_NAME consider
1245 FUNCTION_DECLs, {VAR,PARM}_DECLs function pointers and macros.
1246
dd36b877
JJ
12472016-07-14 Jakub Jelinek <jakub@redhat.com>
1248
1249 PR c/71858
1250 * c-decl.c (lookup_name_fuzzy): Ignore binding->invisible.
1251
8c681247
TS
12522016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1253
1254 * c-parser.c (c_parser_generic_selection): Make type of variable
1255 auto_vec.
1256 (c_parser_omp_declare_simd): Likewise.
1257
bf4fa671
TS
12582016-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1259
1260 * c-decl.c (struct c_struct_parse_info): Change member types
1261 from vec to auto_vec.
1262 (start_struct): Adjust.
1263 (finish_struct): Likewise.
1264
557e8c49
JJ
12652016-07-02 Jakub Jelinek <jakub@redhat.com>
1266
1267 PR c/71719
1268 * c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
1269
54d19c3b
TS
12702016-06-29 Thomas Schwinge <thomas@codesourcery.com>
1271
1272 * c-parser.c (c_parser_pragma) <PRAGMA_OMP_CANCELLATION_POINT>:
1273 Move pragma context checking into...
1274 (c_parser_omp_cancellation_point): ... here, and improve
1275 diagnostic messages.
1276 * c-typeck.c (c_finish_omp_cancel)
1277 (c_finish_omp_cancellation_point): Improve diagnostic messages.
1278
152ef731
JJ
12792016-06-29 Jakub Jelinek <jakub@redhat.com>
1280
1281 PR c/71685
1282 * c-typeck.c (c_build_qualified_type): Don't clear
1283 C_TYPE_INCOMPLETE_VARS for the main variant.
1284
12852016-06-28 Martin Sebor <msebor@redhat.com>
4378d117
MS
1286
1287 PR c/71552
1288 * c-typeck.c (output_init_element): Diagnose incompatible types
1289 before non-constant initializers.
1290
e9ac1f86
JJ
12912016-06-28 Jakub Jelinek <jakub@redhat.com>
1292
1293 * Make-lang.in: Don't cat ../stage_current if it does not exist.
1294
277d7ee0
AK
12952016-06-23 Andi Kleen <ak@linux.intel.com>
1296
1297 * Make-lang.in: Add support for autofdo.
1298
1a4f11c8
DM
12992016-06-22 David Malcolm <dmalcolm@redhat.com>
1300
1301 PR c/70339
1302 * c-decl.c: Include spellcheck-tree.h and gcc-rich-location.h.
1303 (implicit_decl_warning): When issuing warnings for implicit
1304 declarations, attempt to provide a suggestion via
1305 lookup_name_fuzzy.
1306 (undeclared_variable): Likewise when issuing errors.
1307 (lookup_name_in_scope): Likewise.
1308 (struct edit_distance_traits<cpp_hashnode *>): New struct.
1309 (best_macro_match): New typedef.
1310 (find_closest_macro_cpp_cb): New function.
1311 (lookup_name_fuzzy): New function.
1312 * c-parser.c: Include gcc-rich-location.h.
1313 (c_token_starts_typename): Split out case CPP_KEYWORD into...
1314 (c_keyword_starts_typename): ...this new function.
1315 (c_parser_declaration_or_fndef): When issuing errors about
1316 missing "struct" etc, add a fixit. For other kinds of errors,
1317 attempt to provide a suggestion via lookup_name_fuzzy.
1318 (c_parser_parms_declarator): When looking ahead to detect typos in
1319 type names, also reject CPP_KEYWORD.
1320 (c_parser_parameter_declaration): When issuing errors about
1321 unknown type names, attempt to provide a suggestion via
1322 lookup_name_fuzzy.
1323 * c-tree.h (c_keyword_starts_typename): New prototype.
1324
5a578671
JM
13252016-06-20 Joseph Myers <joseph@codesourcery.com>
1326
1327 PR c/71601
1328 * c-typeck.c (build_conditional_expr): Return error_mark_node if
1329 c_common_type returns error_mark_node.
1330
3f8257db 13312016-06-19 Martin Sebor <msebor@redhat.com>
aa0db437
MS
1332
1333 PR c/69507
1334 * c-parser.c (c_parser_alignof_expression): Avoid diagnosing
1335 __alignof__ (expression).
1336
6a3f203c
DM
13372016-06-14 David Malcolm <dmalcolm@redhat.com>
1338
1339 * c-typeck.c: Include spellcheck-tree.h rather than spellcheck.h.
1340
264757fb
DM
13412016-06-14 David Malcolm <dmalcolm@redhat.com>
1342
1343 * c-typeck.c (build_component_ref): Simplify fixit code by
1344 using gcc_rich_location::add_fixit_misspelled_id.
1345 (set_init_label): Likewise.
1346
f7e4f2e3
DM
13472016-06-13 David Malcolm <dmalcolm@redhat.com>
1348
1349 * c-parser.c (c_parser_initelt): Provide location of name for new
1350 location_t param of set_init_label.
1351 * c-tree.h (set_init_label): Add location_t param.
1352 * c-typeck.c (set_init_index): Add "fieldname_loc" location_t
1353 param and use it when issuing error messages about unrecognized
1354 field names. Attempt to provide a fixit hint if appropriate,
1355 otherwise update the error message to provide the type name.
1356
4b1ffdb1
TS
13572016-06-10 Thomas Schwinge <thomas@codesourcery.com>
1358
1359 PR c/71381
1360 * c-parser.c (c_parser_omp_variable_list) <OMP_CLAUSE__CACHE_>:
1361 Loosen checking.
1362
44a845ca
MS
13632016-06-08 Martin Sebor <msebor@redhat.com>
1364 Jakub Jelinek <jakub@redhat.com>
1365
1366 PR c++/70507
1367 PR c/68120
1368 * c-typeck.c (convert_arguments): Don't promote last argument
1369 of BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
1370
92a5f2ba
MP
13712016-06-08 Marek Polacek <polacek@redhat.com>
1372
1373 PR c/71418
1374 * c-decl.c (grokdeclarator): Check TYPE_P.
1375
08203f73
MP
1376 PR c/71426
1377 * c-decl.c (get_parm_info): Don't crash on an assert on invalid
1378 code.
1379
6ffd47b7
DM
13802016-06-07 David Malcolm <dmalcolm@redhat.com>
1381
1382 * c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
1383 and structure element reference, capture the location of the
1384 element name token and pass it to build_component_ref.
1385 (c_parser_postfix_expression_after_primary): Likewise for
1386 structure element dereference.
1387 (c_parser_omp_variable_list): Likewise for
1388 OMP_CLAUSE_{_CACHE, MAP, FROM, TO},
1389 * c-tree.h (build_component_ref): Add location_t param.
1390 * c-typeck.c (build_component_ref): Add location_t param
1391 COMPONENT_LOC. Use it, if available, when issuing hints about
1392 mispelled member names to provide a fixit replacement hint.
1393
1f40cff3
MP
13942016-06-06 Marek Polacek <polacek@redhat.com>
1395
1396 PR c/71362
1397 * c-parser.c (c_parser_direct_declarator): Set location.
1398
5545a907
MP
13992016-06-06 Marek Polacek <polacek@redhat.com>
1400
1401 * c-typeck.c (comptypes_internal): Handle comparisons of
1402 INTEGER_TYPE, FIXED_POINT_TYPE, and REAL_TYPE nodes. Don't check
1403 TYPE_REF_CAN_ALIAS_ALL.
1404
b605f663
CLT
14052016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
1406
1407 * c-typeck.c (c_finish_omp_clauses): Mark OpenACC reduction
1408 arguments as addressable when async clause exists.
1409
00631022
JJ
14102016-05-30 Jakub Jelinek <jakub@redhat.com>
1411
1412 PR c++/71349
1413 * c-parser.c (c_parser_omp_for): Don't disallow nowait clause
1414 when combined with target construct.
1415
7211a097
JJ
14162016-05-26 Jakub Jelinek <jakub@redhat.com>
1417
1418 * c-parser.c (c_parser_omp_clause_schedule): Warn if
1419 OMP_CLAUSE_SCHEDULE_CHUNK_EXPR is known not to be positive.
1420
95efe6b6
MP
14212016-05-25 Marek Polacek <polacek@redhat.com>
1422
1423 PR c/71265
1424 * c-decl.c (c_make_fname_decl): Don't check seen_error.
1425
a23faf7a
MP
1426 PR c/71266
1427 * c-decl.c (store_parm_decls_oldstyle): Skip non-PARM_DECLs.
1428
e46c7770
CP
14292016-05-24 Cesar Philippidis <cesar@codesourcery.com>
1430
1431 * c-parser.c (c_parser_oacc_declare): Add support for
1432 GOMP_MAP_FIRSTPRIVATE_POINTER.
1433 * c-typeck.c (handle_omp_array_sections_1): Replace bool is_omp
1434 argument with enum c_omp_region_type ort.
1435 (handle_omp_array_sections): Likewise. Update call to
1436 handle_omp_array_sections_1.
1437 (c_finish_omp_clauses): Add specific errors and warning messages for
1438 OpenACC. Use firsrtprivate pointers for OpenACC subarrays. Update
1439 call to handle_omp_array_sections.
1440
a04e69c0
TS
14412016-05-24 Thomas Schwinge <thomas@codesourcery.com>
1442
1443 * c-parser.c (c_parser_oacc_routine): Tighten syntax checks.
1444
f17a223d
RB
14452016-05-24 Richard Biener <rguenther@suse.de>
1446
1447 PR middle-end/70434
1448 PR c/69504
1449 * c-typeck.c (build_array_ref): Do not complain about indexing
1450 non-lvalue vectors. Adjust for function name change.
1451
79063edd
MS
14522016-05-20 Martin Sebor <msebor@redhat.com>
1453
1454 PR c/71115
1455 * c-typeck.c (error_init): Use
1456 expansion_point_location_if_in_system_header.
1457 (warning_init): Same.
1458
8a40fef3
DM
14592016-05-19 David Malcolm <dmalcolm@redhat.com>
1460
1461 PR c/71171
1462 * c-parser.c (c_parser_generic_selection): Use c_expr::set_error
1463 in error-handling.
1464 (c_parser_postfix_expression): Likewise.
1465 * c-tree.h (c_expr::set_error): New method.
1466 * c-typeck.c (parser_build_binary_op): In error-handling, ensure
1467 that result's range is initialized.
1468
e9892350
JG
14692016-05-17 James Greenhalgh <james.greenhalgh@arm.com>
1470
1471 * c-typeck.c (parser_build_unary_op): Fix formatting.
1472
8fad45f5
MW
14732016-05-16 Matthew Wahab <matthew.wahab@arm.com>
1474
1475 * c-decl.c (grokdeclarator): Remove errmsg and use of
1476 targetm.invalid_return_type.
1477 (grokparms): Remove errmsg and use of
1478 targetm.invalid_parameter_type.
1479
aa4b467b
JM
14802016-05-13 Joseph Myers <joseph@codesourcery.com>
1481
1482 * c-decl.c (grokdeclarator): For C11, discard qualifiers on
1483 function return type.
1484
4f2e1536
MP
14852016-05-12 Marek Polacek <polacek@redhat.com>
1486
1487 PR c/70756
1488 * c-decl.c (build_compound_literal): Pass LOC down to
1489 c_incomplete_type_error.
1490 * c-tree.h (require_complete_type): Adjust declaration.
1491 (c_incomplete_type_error): Likewise.
1492 * c-typeck.c (require_complete_type): Add location parameter, pass it
1493 down to c_incomplete_type_error.
1494 (c_incomplete_type_error): Add location parameter, pass it down to
1495 error_at.
1496 (build_component_ref): Pass location down to c_incomplete_type_error.
1497 (default_conversion): Pass location down to require_complete_type.
1498 (build_array_ref): Likewise.
1499 (build_function_call_vec): Likewise.
1500 (convert_arguments): Likewise.
1501 (build_unary_op): Likewise.
1502 (build_c_cast): Likewise.
1503 (build_modify_expr): Likewise.
1504 (convert_for_assignment): Likewise.
1505 (c_finish_omp_clauses): Likewise.
1506
d6e83a8d
MM
15072016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
1508
1509 PR c/43651
1510 * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
1511 is enabled.
1512 * c-errors.c (pedwarn_c90): Return true if warned.
1513 * c-tree.h (pedwarn_c90): Change return type to bool.
1514 (enum c_declspec_word): Add new enumerator cdw_atomic.
1515
5c3a10fb
MP
15162016-05-11 Marek Polacek <polacek@redhat.com>
1517
1518 PR c++/71024
1519 * c-decl.c (diagnose_mismatched_decls): Factor out code to
1520 diagnose_mismatched_attributes and call it.
1521
cf68d92c
MP
15222016-05-10 Marek Polacek <polacek@redhat.com>
1523
1524 PR c/70255
1525 * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
1526 on a declaration following the definition.
1527
351f85c5
JJ
15282016-05-05 Jakub Jelinek <jakub@redhat.com>
1529
1530 * c-parser.c (c_parser_switch_statement): Add IF_P argument,
1531 parse it through to c_parser_c99_block_statement.
1532 (c_parser_statement_after_labels): Adjust c_parser_switch_statement
1533 caller.
1534
deef7113
MP
15352016-05-04 Marek Polacek <polacek@redhat.com>
1536
1537 * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
1538 OPT_Wdangling_else.
1539
de55efd5
MP
15402016-05-04 Marek Polacek <polacek@redhat.com>
1541
1542 PR c/48778
1543 * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
1544 for macro expansions.
1545
79ce98bc
MP
15462016-05-03 Marek Polacek <polacek@redhat.com>
1547
1548 PR c/70859
1549 * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
1550 check_builtin_function_arguments.
1551
fb2647aa
RB
15522016-05-03 Richard Biener <rguenther@suse.de>
1553
1554 * Make-lang.in (cc1-checksum.c): For stage-final re-use
1555 the checksum from the previous stage.
1556
77886428
CP
15572016-05-02 Cesar Philippidis <cesar@codesourcery.com>
1558
1559 * c-parser.c (c_parser_oacc_all_clauses): Update call to
1560 c_finish_omp_clauses.
1561 (c_parser_omp_all_clauses): Likewise.
1562 (c_parser_oacc_cache): Likewise.
1563 (c_parser_oacc_loop): Likewise.
1564 (omp_split_clauses): Likewise.
1565 (c_parser_omp_declare_target): Likewise.
1566 (c_parser_cilk_all_clauses): Likewise.
1567 (c_parser_cilk_for): Likewise.
1568 * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
1569 is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
1570
7176a4a0
MP
15712016-05-02 Marek Polacek <polacek@redhat.com>
1572
1573 PR c/70851
1574 * c-decl.c (grokdeclarator): Diagnose when array's size has an
1575 incomplete type.
1576
e7ff0319
CP
15772016-04-29 Cesar Philippidis <cesar@codesourcery.com>
1578
1579 PR middle-end/70626
1580 * c-parser.c (c_parser_oacc_loop): Don't augment mask with
1581 OACC_LOOP_CLAUSE_MASK.
1582 (c_parser_oacc_kernels_parallel): Update call to
1583 c_oacc_split_loop_clauses.
1584
9f405ce1
AM
15852016-04-28 Andrew MacLeod <amacleod@redhat.com>
1586
1587 * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
1588 argument to build_modify_expr in two cases.
1589
c1e1f433
BS
15902016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1591
1592 * c-parser.c (c_parser_postfix_expression_after_primary): Call
1593 warn_for_memset instead of warning directly here.
1594
2448a956
MP
15952016-04-26 Marek Polacek <polacek@redhat.com>
1596
1597 PR c/67784
1598 * c-parser.c (c_parser_maybe_reclassify_token): New function factored
1599 out of ...
1600 (c_parser_for_statement): ... here.
1601 (c_parser_if_statement): Use it.
1602 (c_parser_switch_statement): Use it.
1603 (c_parser_while_statement): Use it.
1604
b02a5e26
MP
1605 PR c/70791
1606 * c-decl.c (pushdecl): Pass LOCUS down to warning.
1607
477d4906
IV
16082016-04-20 Ilya Verbin <ilya.verbin@intel.com>
1609
1610 PR c++/69363
1611 * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
1612 instead of c_finish_cilk_clauses.
1613 * c-tree.h (c_finish_omp_clauses): Add new default argument.
1614 * c-typeck.c (c_finish_omp_clauses): Add new argument. Allow
1615 floating-point variables in the linear clause for Cilk Plus.
1616
fe37c7af
MM
16172016-04-18 Michael Matz <matz@suse.de>
1618
1619 * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1620 (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
1621
949505a9
MP
16222016-04-15 Marek Polacek <polacek@redhat.com>
1623
1624 PR c/70671
1625 * c-typeck.c (build_unary_op): Pass location down to error and
1626 warning call.
1627
dda1bf61
JJ
16282016-04-15 Jakub Jelinek <jakub@redhat.com>
1629
1630 PR c/70436
1631 * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
1632 where needed.
1633 (c_parser_external_declaration, c_parser_struct_or_union_specifier,
1634 c_parser_parameter_declaration, c_parser_compound_statement_nostart,
1635 c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
1636 Adjust c_parser_pragma callers.
1637 (c_parser_statement_after_labels): Likewise. Adjust c_parser_cilk_for
1638 caller.
1639 (c_parser_omp_structured_block): Add IF_P argument, pass it down to
1640 c_parser_statement.
1641 (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
1642 c_parser_oacc_kernels_parallel, c_parser_omp_critical,
1643 c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
1644 c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
1645 c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
1646 c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
1647 c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
1648 c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
1649 down where needed.
1650 (c_parser_omp_for_loop): Likewise. Clear IF_P if nbraces.
1651 (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
1652 calls.
1653
99cd9857
MP
16542016-04-13 Marek Polacek <polacek@redhat.com>
1655
1656 PR c/70436
1657 * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
1658 adjust callers.
1659 (c_parser_statement): Likewise.
1660 (c_parser_c99_block_statement): Likewise.
1661 (c_parser_while_statement): Likewise.
1662 (c_parser_for_statement): Likewise.
1663 (c_parser_if_body): Don't set IF_P here.
1664 (c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn
1665 about dangling else here.
1666 * c-tree.h (c_finish_if_stmt): Adjust declaration.
1667 * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't
1668 warn about dangling else here.
1669
f13355da
MP
16702016-04-04 Marek Polacek <polacek@redhat.com>
1671
1672 PR c/70307
1673 * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
1674
5fde6a45
MP
16752016-03-31 Marek Polacek <polacek@redhat.com>
1676
1677 PR c/70297
1678 * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
1679
4bbf545b
DM
16802016-03-18 David Malcolm <dmalcolm@redhat.com>
1681
1682 PR c/70281
1683 * c-parser.c (c_parser_postfix_expression): Set the source range
1684 for uses of "__builtin_types_compatible_p".
1685
fcc2b74f
JJ
16862016-03-17 Jakub Jelinek <jakub@redhat.com>
1687
1688 PR c/70280
1689 * c-typeck.c (composite_type): Don't count void_list_node
1690 into len, if the list is terminated by void_list_node, start
1691 with void_list_node instead of NULL for newargs. Stop
1692 at void_list_node.
1693
ab4c578f
MP
16942016-03-16 Marek Polacek <polacek@redhat.com>
1695
1696 PR c/70093
1697 * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
1698 nested functions returning VM types.
1699
96b3c82d
CP
17002016-03-09 Cesar Philippidis <cesar@codesourcery.com>
1701
1702 * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
1703 when calling c_finish_omp_clauses.
1704
29b9828f
BS
17052016-03-04 Bernd Schmidt <bschmidt@redhat.com>
1706
1707 PR c/69824
1708 * c-decl.c (get_parm_info): Don't queue implicit function declarations
1709 for later.
1710
7ff6ca38
MP
17112016-03-04 Marek Polacek <polacek@redhat.com>
1712
1713 PR c/69798
1714 * c-parser.c (c_parser_postfix_expression): Call
1715 c_parser_cast_expression rather than c_parser_postfix_expression.
1716
686e2237
JJ
17172016-03-01 Jakub Jelinek <jakub@redhat.com>
1718
1719 PR c/69796
1720 PR c/69974
1721 * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
1722 of incomplete decls to error_mark_node.
1723
0b05329b
MP
17242016-02-24 Marek Polacek <polacek@redhat.com>
1725
1726 PR c/69819
1727 * c-decl.c (finish_decl): Don't update the copy of the type of a
1728 different decl type.
1729
067fbd8b
JJ
17302016-02-23 Jakub Jelinek <jakub@redhat.com>
1731
1732 PR objc/69844
1733 * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
1734 in id_kind reclassification.
1735
bf14eba2
JJ
17362016-02-16 Jakub Jelinek <jakub@redhat.com>
1737
1738 PR c/69835
1739 * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
1740
ba539195
JN
17412016-02-16 James Norris <jnorris@codesourcery.com>
1742
1743 PR c/64748
1744 * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
1745
16595a1f
BS
17462016-02-12 Bernd Schmidt <bschmidt@redhat.com>
1747
f48dfe98
BS
1748 * c-decl.c (build_null_declspecs): Zero the entire struct.
1749
16595a1f
BS
1750 PR c/69522
1751 * c-parser.c (c_parser_braced_init): New arg outer_obstack. All
1752 callers changed. If nested_p is true, use it to call
1753 finish_implicit_inits.
1754 * c-tree.h (finish_implicit_inits): Declare.
1755 * c-typeck.c (finish_implicit_inits): New function. Move code
1756 from ...
1757 (push_init_level): ... here.
1758 (set_designator, process_init_element): Call finish_implicit_inits.
1759
66756373
JJ
17602016-02-11 Jakub Jelinek <jakub@redhat.com>
1761
1762 PR c/69768
1763 * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
1764 arguments for -Waddress warning.
1765
1066e9b5
JJ
17662016-02-04 Jakub Jelinek <jakub@redhat.com>
1767
1768 PR c/69669
1769 * c-decl.c (finish_enum): When honoring mode attribute,
1770 make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
1771
3a5d2ba4
JJ
17722016-01-29 Jakub Jelinek <jakub@redhat.com>
1773
1774 PR debug/69518
1775 * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
1776 all type variants, not just TYPE_MAIN_VARIANT.
1777
cbdd8ae0
JJ
17782016-01-27 Jakub Jelinek <jakub@redhat.com>
1779
1780 PR debug/66869
1781 * c-decl.c (c_write_global_declarations_1): Warn with
1782 warn_unused_function if static prototype without definition
1783 is not C_DECL_USED.
1784
fa74a4bc
MP
17852016-01-27 Marek Polacek <polacek@redhat.com>
1786
1787 PR c/68062
1788 * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
1789 to unsigned, if needed. Add -Wsign-compare warning.
1790
13f92e8d
JJ
17912016-01-26 Jakub Jelinek <jakub@redhat.com>
1792
1793 PR tree-optimization/69483
1794 * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
1795
cd8e73dc 17962016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
d25c7690
PK
1797
1798 PR c/24293
1799 * c-tree.h (incomplete_record_decls): Declare.
1800 * c-parser.c (incomplete_record_decls): Define.
1801 (c_parser_translation_unit): Iterate through incomplete_record_decls and
1802 report error if any decl has zero size.
1803 * c-decl.c (finish_decl): Append static decl with incomplete struct/union
1804 or enum type to incomplete_record_decls.
1805
e6d6ec9e
TV
18062016-01-14 Tom de Vries <tom@codesourcery.com>
1807
1808 PR tree-optimization/68773
1809 * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
1810 set force_output.
1811
00083992
MP
18122016-01-14 Marek Polacek <polacek@redhat.com>
1813
1814 PR c/69262
1815 * c-decl.c (grokdeclarator): Provide more information for invalid
1816 array declarations.
1817
7443cf13
DM
18182016-01-06 David Malcolm <dmalcolm@redhat.com>
1819
1820 * c-parser.c (c_parser_unary_expression): For dereferences, build
1821 a combined location before calling build_indirect_ref, so that
1822 error reports cover the full range, manually updating the c_expr
1823 src_range.
1824
6b131d5b
MP
18252016-01-06 Marek Polacek <polacek@redhat.com>
1826
1827 PR sanitizer/69099
1828 * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to
1829 ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of
1830 NULL.
1831
818ab71a
JJ
18322016-01-04 Jakub Jelinek <jakub@redhat.com>
1833
1834 Update copyright years.
1835
2fe0a208
MP
18362016-01-04 Marek Polacek <polacek@redhat.com>
1837
1838 PR c/68908
1839 * c-typeck.c (build_atomic_assign): Improve commentary. Add
1840 optimization to use __atomic_fetch_* built-in if possible.
1841
c7b48c8a
TS
18422015-12-23 Thomas Schwinge <thomas@codesourcery.com>
1843
1844 * c-parser.c (c_parser_oacc_clause_use_device): Merge function
1845 into...
1846 (c_parser_omp_clause_use_device_ptr): ... this function. Adjust
1847 all users.
1848
fda5652f
MP
18492015-12-22 Marek Polacek <polacek@redhat.com>
1850
1851 PR c/69002
1852 * c-typeck.c (build_component_ref): Warn when acessing elements of
1853 atomic structures or unions.
1854
745e411d
DM
18552015-12-21 David Malcolm <dmalcolm@redhat.com>
1856
1857 * c-typeck.c: Include "gcc-rich-location.h".
1858 (build_binary_op): In the two places that call binary_op_error,
1859 create a gcc_rich_location and populate it with the location of
1860 the binary op and its two operands.
1861
94c40e19
DM
18622015-12-16 David Malcolm <dmalcolm@redhat.com>
1863
1864 * c-parser.c (c_parser_statement_after_labels): When calling
1865 c_finish_return, Use the return expression's location if it has
1866 one, falling back to the location of the first token within it.
1867 * c-typeck.c (c_finish_return): When issuing warnings about
1868 the incorrect presence/absence of a return value, issue a note
1869 showing the declaration of the function.
1870
de67c4c3
DM
18712015-12-16 David Malcolm <dmalcolm@redhat.com>
1872
1873 * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
1874 to 4.
1875 (c_parser_peek_nth_token): New function.
1876 (c_parser_peek_conflict_marker): New function.
1877 (c_parser_error): Detect conflict markers and report them as such.
1878
a10704e1
DM
18792015-12-16 David Malcolm <dmalcolm@redhat.com>
1880
1881 * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
1882 to preserve range information for the primary expression
1883 in the call to c_parser_postfix_expression_after_primary.
1884
8062bca6
DM
18852015-12-16 David Malcolm <dmalcolm@redhat.com>
1886
1887 * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
1888 expression location, falling back on the first token location,
1889 rather than always using the latter.
1890
d06f8b75
MP
18912015-12-16 Marek Polacek <polacek@redhat.com>
1892
1893 PR c/64637
1894 * c-typeck.c (c_process_expr_stmt): Use location of the expression if
1895 available.
1896
2994fb91
MP
18972015-12-15 Marek Polacek <polacek@redhat.com>
1898
1899 PR c/68907
1900 * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
1901 artificial decl.
1902
a1b93f8d
DM
19032015-12-08 David Malcolm <dmalcolm@redhat.com>
1904
1905 * c-parser.c (c_parser_alignof_expression): Capture location of
1906 closing parenthesis (if any), or of end of unary expression, and
1907 use it to build a src_range for the expression.
1908
46c6e1e2
DM
19092015-12-08 David Malcolm <dmalcolm@redhat.com>
1910
1911 PR c/68757
1912 * c-parser.c (c_parser_get_builtin_args): Add
1913 "out_close_paren_loc" param, and write back to it.
1914 (c_parser_postfix_expression): Capture the closing
1915 parenthesis location for RID_CHOOSE_EXPR,
1916 RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
1917 RID_BUILTIN_SHUFFLE and use it to set the source range
1918 for such expressions; within RID_BUILTIN_COMPLEX set
1919 the underlying location.
1920
66189108
MP
19212015-12-07 Marek Polacek <polacek@redhat.com>
1922
1923 PR c/68668
1924 * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
1925 TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
1926
f187980b
EB
19272015-12-04 Eric Botcazou <ebotcazou@adacore.com>
1928
1929 * c-tree.h (c_build_va_arg): Adjust prototype.
1930 * c-parser.c (c_parser_postfix_expression): Adjust call to above.
1931 * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
1932 parameter, adjust throughout and issue an error if EXPR is a component
1933 with reverse storage order.
1934
4250754e
JM
19352015-12-02 Jason Merrill <jason@redhat.com>
1936
1937 * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1938 (c_fully_fold_internal, decl_constant_value_for_optimization):
1939 Move from c-common.c.
1940 * c-tree.h: Declare decl_constant_value_for_optimization.
1941 * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
1942
e9e32ee6
JM
19432015-12-02 Joseph Myers <joseph@codesourcery.com>
1944
1945 PR c/68162
1946 * c-decl.c (grokdeclarator): Set first_non_attr_kind before
1947 following link from declarator to next declarator. Track original
1948 qualified type and pass it to c_build_qualified_type.
1949 * c-typeck.c (c_build_qualified_type): Add arguments
1950 orig_qual_type and orig_qual_indirect.
1951
ff7a55bf
TS
19522015-12-02 Thomas Schwinge <thomas@codesourcery.com>
1953
1954 * c-parser.c (c_parser_omp_clause_name)
1955 (c_parser_oacc_all_clauses): Alphabetical sorting.
1956
657e4e47
JJ
19572015-12-02 Jakub Jelinek <jakub@redhat.com>
1958
1959 PR c/68533
1960 * c-decl.c (get_parm_info): Use b->locus instead of input_location
1961 for diagnostics.
1962
37d5ad46
JB
19632015-12-01 Julian Brown <julian@codesourcery.com>
1964 Cesar Philippidis <cesar@codesourcery.com>
1965 James Norris <James_Norris@mentor.com>
1966
1967 * c-parser.c (c_parser_omp_clause_name): Add use_device support.
1968 (c_parser_oacc_clause_use_device): New function.
1969 (c_parser_oacc_all_clauses): Add use_device support.
1970 (OACC_HOST_DATA_CLAUSE_MASK): New macro.
1971 (c_parser_oacc_host_data): New function.
1972 (c_parser_omp_construct): Add host_data support.
1973 * c-tree.h (c_finish_oacc_host_data): Add prototype.
1974 * c-typeck.c (c_finish_oacc_host_data): New function.
1975 (c_finish_omp_clauses): Add use_device support.
1976
a4850ce9
JH
19772015-11-29 Jan Hubicka <hubicka@ucw.cz>
1978
1979 PR c/67106
1980 * c-decl.c: Set TYPE_PACKED in variants.
1981
b58d3df2
ML
19822015-11-27 Martin Liska <mliska@suse.cz>
1983
1984 PR c++/68312
1985 * c-array-notation.c (fix_builtin_array_notation_fn):
1986 Use release_vec_vec instead of vec::release.
1987 (build_array_notation_expr): Likewise.
1988 (fix_conditional_array_notations_1): Likewise.
1989 (fix_array_notation_expr): Likewise.
1990 (fix_array_notation_call_expr): Likewise.
1991
aec17bfe
JJ
19922015-11-27 Jakub Jelinek <jakub@redhat.com>
1993
1994 PR c/63326
1995 * c-parser.c (c_parser_compound_statement_nostart): If
1996 last_label is true, use pragma_stmt instead of pragma_compound
1997 as second c_parser_pragma argument.
1998 (c_parser_omp_ordered, c_parser_omp_target_update,
1999 c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
2000 false as second argument to c_parser_skip_to_pragma_eol after
2001 diagnosing standalone directives used in pragma_stmt context.
2002
688c4de0
IV
20032015-11-24 Ilya Verbin <ilya.verbin@intel.com>
2004
2005 * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
2006 with "if (ENABLE_OFFLOADING)".
2007
cbd03aee
DM
20082015-11-23 David Malcolm <dmalcolm@redhat.com>
2009
2010 PR objc/68438
2011 * c-parser.c (c_parser_postfix_expression): Set up source ranges
2012 for various Objective-C constructs: Class.name syntax,
2013 @selector(), @protocol(), @encode(), and [] message syntax.
2014
a87a86e1
DM
20152015-11-20 David Malcolm <dmalcolm@redhat.com>
2016
2017 PR 62314
2018 * c-typeck.c (should_suggest_deref_p): New function.
2019 (build_component_ref): Special-case POINTER_TYPE when
2020 generating a "not a structure of union" error message, and
2021 suggest a "->" rather than a ".", providing a fix-it hint.
2022
8ece8dfb
DM
20232015-11-19 David Malcolm <dmalcolm@redhat.com>
2024
2025 * c-typeck.c (lookup_field_fuzzy): Move determination of closest
2026 candidate into a new function, find_closest_identifier.
2027
433068cc
MP
20282015-11-19 Marek Polacek <polacek@redhat.com>
2029
2030 PR c/68412
2031 * c-typeck.c (parser_build_binary_op): Properly handle
2032 C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
2033
bef08b71
DM
20342015-11-17 David Malcolm <dmalcolm@redhat.com>
2035
2036 * c-parser.c (set_c_expr_source_range): Bulletproof both
2037 overloaded implementations against NULL expr->value.
2038 (c_parser_braced_init): Set src_range for "ret" to a sane pair of
2039 values.
2040 (c_parser_unary_expression): Likewise when handling addresses of
2041 labels.
2042 (c_parser_postfix_expression): Likewise for statement expressions,
2043 for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
2044 __builtin_va_arg, and for __builtin_offset_of.
2045 (c_parser_postfix_expression_after_paren_type): Initialize expr's
2046 src_range using the range of the braced initializer.
2047 (c_parser_transaction_expression): Set src_range for "ret" to a
2048 sane pair of values.
2049
fff77217
KY
20502015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
2051
2052 * c-parser.c (c_finish_omp_declare_simd): Look for
2053 "simd" attribute as well. Update error message.
2054
1d899da2
TS
20552015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2056
2057 * c-parser.c (c_parser_omp_declare_target): Adjust.
2058
e4606348
JJ
20592015-11-14 Jakub Jelinek <jakub@redhat.com>
2060
2061 * c-typeck.c (c_finish_omp_clauses): Don't mark
2062 GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
2063
3e636daf
MP
20642015-11-14 Marek Polacek <polacek@redhat.com>
2065
2066 * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
2067 * c-typeck.c: Likewise.
2068
ebedc9a3
DM
20692015-11-13 David Malcolm <dmalcolm@redhat.com>
2070
2071 * c-decl.c (warn_defaults_to): Pass line_table to
2072 rich_location ctor.
2073 * c-errors.c (pedwarn_c99): Likewise.
2074 (pedwarn_c90): Likewise.
2075 * c-parser.c (set_c_expr_source_range): New functions.
2076 (c_token::get_range): New method.
2077 (c_token::get_finish): New method.
2078 (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
2079 based on the range from the start of the LHS to the end of the
2080 RHS.
2081 (c_parser_conditional_expression): Likewise, based on the range
2082 from the start of the cond.value to the end of exp2.value.
2083 (c_parser_binary_expression): Call set_c_expr_source_range on
2084 the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
2085 (c_parser_cast_expression): Call set_c_expr_source_range on ret
2086 based on the cast_loc through to the end of the expr.
2087 (c_parser_unary_expression): Likewise, based on the
2088 op_loc through to the end of op.
2089 (c_parser_sizeof_expression) Likewise, based on the start of the
2090 sizeof token through to either the closing paren or the end of
2091 expr.
2092 (c_parser_postfix_expression): Likewise, using the token range,
2093 or from the open paren through to the close paren for
2094 parenthesized expressions.
2095 (c_parser_postfix_expression_after_primary): Likewise, for
2096 various kinds of expression.
2097 * c-tree.h (struct c_expr): Add field "src_range".
2098 (c_expr::get_start): New method.
2099 (c_expr::get_finish): New method.
2100 (set_c_expr_source_range): New decls.
2101 * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
2102 on ret for prefix unary ops.
2103 (parser_build_binary_op): Likewise, running from the start of
2104 arg1.value through to the end of arg2.value.
2105
ec8b536f
MP
21062015-11-13 Marek Polacek <polacek@redhat.com>
2107
2108 PR c/68320
2109 * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
2110
277fe616
DM
21112015-11-13 David Malcolm <dmalcolm@redhat.com>
2112
2113 * c-typeck.c: Include spellcheck.h.
2114 (lookup_field_fuzzy_find_candidates): New function.
2115 (lookup_field_fuzzy): New function.
2116 (build_component_ref): If the field was not found, try using
2117 lookup_field_fuzzy and potentially offer a suggestion.
2118
6e232ba4
JN
21192015-11-12 James Norris <jnorris@codesourcery.com>
2120 Joseph Myers <joseph@codesourcery.com>
2121
2122 * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
2123 (c_parser_omp_clause_name): Handle 'device_resident' clause.
2124 (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
2125 and PRAGMA_OMP_CLAUSE_LINK.
2126 (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
2127 and PRAGMA_OACC_CLAUSE_LINK.
2128 (OACC_DECLARE_CLAUSE_MASK): New definition.
2129 (c_parser_oacc_declare): New function.
2130
9be4f715
MP
21312015-11-12 Marek Polacek <polacek@redhat.com>
2132
2133 PR c/67784
2134 * c-parser.c (c_parser_for_statement): Reclassify the token in
2135 a correct scope.
2136
e78bede6
MP
21372015-11-11 Marek Polacek <polacek@redhat.com>
2138
2139 PR c/68107
2140 PR c++/68266
2141 * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code
2142 checking the size of an array.
2143
69f293c9
AM
21442015-11-11 Andrew MacLeod <amacleod@redhat.com>
2145
2146 * c-array-notation.c: Remove unused header files.
2147 * c-aux-info.c: Likewise.
2148 * c-convert.c: Likewise.
2149 * c-decl.c: Likewise.
2150 * c-errors.c: Likewise.
2151 * c-lang.c: Likewise.
2152 * c-objc-common.c: Likewise.
2153 * c-parser.c: Likewise.
2154 * c-typeck.c: Likewise.
2155 * gccspec.c: Likewise.
2156
3a40d81d
NS
21572015-11-09 Thomas Schwinge <thomas@codesourcery.com>
2158 Cesar Philippidis <cesar@codesourcery.com>
2159 James Norris <jnorris@codesourcery.com>
2160 Julian Brown <julian@codesourcery.com>
2161 Nathan Sidwell <nathan@codesourcery.com>
2162
2163 c/
2164 * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
2165 routine arg.
2166 (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
2167 (c_parser_pragma): Parse 'acc routine'.
2168 (OACC_ROUTINE_CLAUSE_MARK): Define.
2169 (c_parser_oacc_routine, (c_finish_oacc_routine): New.
2170
fc402eec
AA
21712015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
2172
2173 PR debug/67192
2174 * c-typeck.c (c_finish_loop): For unconditional loops, set the
2175 location of the backward-goto to the start of the loop body.
2176
f6b0b3db
AA
21772015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
2178
2179 PR debug/67192
2180 * c-parser.c (c_parser_while_statement): Finish the loop before
2181 parsing ahead for misleading indentation.
2182 (c_parser_for_statement): Likewise.
2183
ee45a32d
EB
21842015-11-08 Eric Botcazou <ebotcazou@adacore.com>
2185
2186 * c-decl.c (finish_struct): If the structure has reverse storage
2187 order, rewrite the type of array fields with scalar component. Call
2188 maybe_apply_pragma_scalar_storage_order on entry.
2189 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue
2190 errors on bit-fields and reverse SSO here and not...
2191 (c_mark_addressable): ...here.
2192 (output_init_element): Adjust call to initializer_constant_valid_p.
2193 (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
2194
8a645150
DM
21952015-11-06 David Malcolm <dmalcolm@redhat.com>
2196
2197 * c-decl.c (warn_defaults_to): Update for change in signature
2198 of diagnostic_set_info.
2199 * c-errors.c (pedwarn_c99): Likewise.
2200 (pedwarn_c90): Likewise.
2201 * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
2202 for textinfo::set_location.
2203
7a5e4956
CP
22042015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2205 Thomas Schwinge <thomas@codesourcery.com>
2206 James Norris <jnorris@codesourcery.com>
2207
2208 * c-parser.c (c_parser_omp_clause_name): Add support for
2209 PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
2210 (c_parser_omp_clause_default): Add is_oacc argument. Handle
2211 default(none) in OpenACC.
2212 (c_parser_oacc_shape_clause): Allow pointer variables as gang static
2213 arguments.
2214 (c_parser_oacc_clause_tile): New function.
2215 (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
2216 OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
2217 (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
2218 TILE}.
2219 (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
2220 (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
2221 FIRSTPRIVATE}.
2222 (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
2223 (c_parser_oacc_update): Update the error message for missing clauses.
2224 * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
2225 and OMP_CLAUSE_INDEPENDENT.
2226
bfcfbfa0
MP
22272015-11-05 Marek Polacek <polacek@redhat.com>
2228
2229 PR c/68090
2230 * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
2231 deal with pre-evaluation on invalid types.
2232
e01d41e5
JJ
22332015-11-05 Jakub Jelinek <jakub@redhat.com>
2234 Ilya Verbin <ilya.verbin@intel.com>
2235
2236 * c-parser.c: Include context.h and gimple-expr.h.
2237 (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
2238 monotonic together with nonmonotonic.
2239 (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here.
2240 (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
2241 (c_parser_omp_target_data, c_parser_omp_target_enter_data,
2242 c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
2243 (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit
2244 expressions on combined target teams before the target.
2245 (c_parser_omp_declare_target): If decl has "omp declare target" or
2246 "omp declare target link" attribute, and cgraph or varpool node already
2247 exists, then set corresponding flags. Call c_finish_omp_clauses
2248 in the parenthesized extended-list syntax case.
2249 * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
2250 declare target.
2251 * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
2252 on OMP_CLAUSE_REDUCTION array sections.
2253 (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
2254 into the constant offset, or for variable low-bound using
2255 POINTER_PLUS_EXPR. For structure element based array sections use
2256 GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
2257 (c_finish_omp_clauses): Drop generic_field_head, structure
2258 elements are now always mapped even as array section bases,
2259 diagnose same var in data sharing and mapping clauses. Diagnose if
2260 linear step on declare simd is neither a constant nor a uniform
2261 parameter. Look through POINTER_PLUS_EXPR for array section
2262 reductions. Diagnose the same var or function appearing multiple
2263 times on the same directive. Fix up wording for the to clause if t
2264 is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic
2265 modifier on kinds other than dynamic or guided or nonmonotonic
2266 modifier together with ordered clause.
2267
4bf9e5a8
TS
22682015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2269 Chung-Lin Tang <cltang@codesourcery.com>
2270
2271 * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
2272
2adfab87
AM
22732015-10-29 Andrew MacLeod <amacleod@redhat.com>
2274
2275 * c-array-notation.c: Reorder #include's and remove duplicates.
2276 * c-aux-info.c: Likewise.
2277 * c-convert.c: Likewise.
2278 * c-decl.c: Likewise.
2279 * c-errors.c: Likewise.
2280 * c-lang.c: Likewise.
2281 * c-objc-common.c: Likewise.
2282 * c-parser.c: Likewise.
2283 * c-typeck.c: Likewise.
2284
e922069e
JW
22852015-10-26 Jim Wilson <jim.wilson@linaro.org>
2286
2287 PR debug/66068
2288 * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
2289 after calling build_qualified_type.
2290
765dd391
CP
22912015-10-27 Cesar Philippidis <cesar@codesourcery.com>
2292 Thomas Schwinge <thomas@codesourcery.com>
2293 James Norris <jnorris@codesourcery.com>
2294 Joseph Myers <joseph@codesourcery.com>
2295 Julian Brown <julian@codesourcery.com>
2296 Bernd Schmidt <bschmidt@redhat.com>
2297
2298 * c-parser.c (c_parser_oacc_shape_clause): New.
2299 (c_parser_oacc_simple_clause): New.
2300 (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
2301 (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
2302
88bae6f4
TS
23032015-10-27 Thomas Schwinge <thomas@codesourcery.com>
2304 James Norris <jnorris@codesourcery.com>
2305 Cesar Philippidis <cesar@codesourcery.com>
2306
2307 PR c/64765
2308 PR c/64880
2309 * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
2310 parameters, and handle these. Adjust all users.
2311 (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
2312 into...
2313 (c_parser_oacc_kernels_parallel): ... this new function. Adjust
2314 all users.
2315 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
2316 declare functions.
2317 (c_finish_omp_construct): Declare function.
2318 * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
2319 Merge functions into...
2320 (c_finish_omp_construct): ... this new function.
2321
a8fc2579
RB
23222015-10-22 Richard Biener <rguenther@suse.de>
2323
2324 * c-typeck.c (c_finish_omp_clauses): Properly convert operands
2325 before folding a MINUS_EXPR.
2326
e9122ef6
MP
23272015-10-21 Marek Polacek <polacek@redhat.com>
2328
2329 PR c/68024
2330 * c-decl.c (start_function): Warn about vararg functions without
2331 a prototype.
2332
9f47c7e5
IE
23332015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
2334
2335 * c-typeck.c (build_conditional_expr): Use boolean vector
2336 type for vector comparison.
2337 (build_vec_cmp): New.
2338 (build_binary_op): Use build_vec_cmp for comparison.
2339
fa60eeb9
MP
23402015-10-20 Marek Polacek <polacek@redhat.com>
2341
2342 * c-parser.c (is_cilkplus_vector_p): Don't define here.
2343
2c7020eb
MP
23442015-10-20 Marek Polacek <polacek@redhat.com>
2345
2346 PR c/67964
2347 * c-parser.c (c_parser_attributes): Break out of the loop if the
2348 token after an attribute isn't a comma.
2349
d9a6bd32
JJ
23502015-10-13 Jakub Jelinek <jakub@redhat.com>
2351 Aldy Hernandez <aldyh@redhat.com>
2352
2353 * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
2354 (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
2355 (c_parser_omp_variable_list): Handle structure elements for
2356 map, to and from clauses. Handle array sections in reduction
2357 clause. Formatting fixes.
2358 (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
2359 if clause modifiers.
2360 (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
2361 c_parser_omp_clause_priority, c_parser_omp_clause_hint,
2362 c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
2363 c_parser_omp_clause_is_device_ptr): New functions.
2364 (c_parser_omp_clause_ordered): Parse optional parameter.
2365 (c_parser_omp_clause_reduction): Handle array reductions.
2366 (c_parser_omp_clause_schedule): Parse optional simd modifier.
2367 (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
2368 functions.
2369 (c_parser_omp_clause_linear): Parse linear clause modifiers.
2370 (c_parser_omp_clause_depend_sink): New function.
2371 (c_parser_omp_clause_depend): Parse source/sink depend kinds.
2372 (c_parser_omp_clause_map): Parse release/delete map kinds and
2373 optional always modifier.
2374 (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
2375 and c_finish_omp_clauses callers.
2376 (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses.
2377 Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
2378 (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
2379 (OMP_CRITICAL_CLAUSE_MASK): Define.
2380 (c_parser_omp_critical): Parse critical clauses.
2381 (c_parser_omp_for_loop): Handle doacross loops, adjust
2382 c_finish_omp_for and c_finish_omp_clauses callers.
2383 (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
2384 (c_parser_omp_simd): Allow ordered clause if it has no parameter.
2385 (OMP_FOR_CLAUSE_MASK): Add linear clause.
2386 (c_parser_omp_for): Disallow ordered clause when combined with
2387 distribute. Disallow linear clause when combined with distribute
2388 and not combined with simd.
2389 (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
2390 (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
2391 parse clauses and if depend clause is found, don't parse a body.
2392 (c_parser_omp_parallel): Disallow copyin clause on target parallel.
2393 Allow target parallel without for after it.
2394 (OMP_TASK_CLAUSE_MASK): Add priority clause.
2395 (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
2396 (c_parser_omp_target_data): Diagnose no map clauses or clauses with
2397 invalid kinds.
2398 (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
2399 (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
2400 OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
2401 (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
2402 functions.
2403 (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
2404 defaultmap and is_device_ptr clauses.
2405 (c_parser_omp_target): Parse target parallel and target simd. Set
2406 OMP_TARGET_COMBINED on combined constructs. Parse target enter data
2407 and target exit data. Diagnose invalid map kinds.
2408 (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
2409 (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
2410 construct.
2411 (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
2412 &omp_priv.
2413 (OMP_TASKLOOP_CLAUSE_MASK): Define.
2414 (c_parser_omp_taskloop): New function.
2415 (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
2416 handle PRAGMA_OMP_TASKLOOP.
2417 (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
2418 * c-tree.h (c_finish_omp_clauses): Add two new arguments.
2419 * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
2420 Add IS_OMP argument, handle structure element bases, diagnose
2421 bitfields, pass IS_OMP recursively, diagnose known zero length
2422 array sections in depend clauses, handle array sections in reduction
2423 clause, diagnose negative length even for pointers.
2424 (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
2425 types, pass IS_OMP down to handle_omp_array_sections_1, handle
2426 array sections in reduction clause, set
2427 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
2428 length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
2429 (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
2430 Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
2431
21ba0cea
MP
24322015-10-06 Marek Polacek <polacek@redhat.com>
2433
2434 * c-parser.c (c_parser_statement_after_labels): Use
2435 protected_set_expr_location.
2436 (c_parser_omp_clause_num_gangs): Likewise.
2437 (c_parser_omp_clause_num_threads): Likewise.
2438 (c_parser_omp_clause_num_workers): Likewise.
2439 (c_parser_omp_clause_vector_length): Likewise.
2440 (c_parser_omp_clause_num_teams): Likewise.
2441 (c_parser_omp_clause_thread_limit): Likewise.
2442 * c-typeck.c (build_c_cast): Likewise.
2443 (c_cast_expr): Likewise.
2444
624d31fe
RS
24452015-10-05 Richard Sandiford <richard.sandiford@arm.com>
2446
2447 * c-typeck.c (c_tree_equal): Use real_equal instead of
2448 REAL_VALUES_EQUAL.
2449
b8fd7909
JM
24502015-10-04 Jason Merrill <jason@redhat.com>
2451
2452 * c-parser.c (c_lex_one_token): Handle @synchronized.
2453 * c-decl.c (match_builtin_function_types): A declaration of a built-in
2454 can change whether the function is transaction_safe.
2455
1c7485af
MP
24562015-10-02 Marek Polacek <polacek@redhat.com>
2457
2458 PR c/67730
2459 * c-typeck.c (convert_for_assignment): Use the expansion point
2460 location throughout.
2461
3e3b8d63
MP
24622015-10-02 Marek Polacek <polacek@redhat.com>
2463
2464 PR c/64249
2465 * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
2466 and pass it down to c_parser_if_statement.
2467 (c_parser_else_body): Add CHAIN parameter and pass it down to
2468 c_parser_statement_after_labels.
2469 (c_parser_if_statement): Add CHAIN parameter. Add code to warn about
2470 duplicated if-else-if conditions.
2471
aabef2de
MP
24722015-10-01 Marek Polacek <polacek@redhat.com>
2473
2474 * c-typeck.c (convert_for_assignment): Improve commentary.
2475
de8ddd5f
MP
24762015-09-30 Marek Polacek <polacek@redhat.com>
2477
2478 PR c/67730
2479 * c-typeck.c (c_finish_return): Use the expansion point location for
2480 certain "return with value" warnings.
2481
c4914de6
MLI
24822015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2483
2484 * c-parser.c (pragma_lex): Add loc argument.
2485
0e36f5c7
MP
24862015-09-15 Marek Polacek <polacek@redhat.com>
2487
2488 PR c/67580
2489 * c-decl.c (tag_exists_p): New function.
2490 * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
2491 struct/union/enum keywords are missing.
2492 * c-tree.h (tag_exists_p): Declare.
2493
2f3bb934
MP
24942015-09-15 Marek Polacek <polacek@redhat.com>
2495
2496 * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
2497 (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
2498 Return NULL_TREE instead of 0.
2499 (lookup_name): Return NULL_TREE instead of 0.
2500 (lookup_name_in_scope): Likewise.
2501 (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
2502 (parser_xref_tag): Use false instead of 0.
2503 (start_struct): Use true instead of 1.
2504 (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
2505
aa256c4a
MP
25062015-09-14 Marek Polacek <polacek@redhat.com>
2507
2508 * c-typeck.c (set_nonincremental_init_from_string): Use
2509 HOST_WIDE_INT_M1U when shifting a negative value.
2510
dbb68221
MW
25112015-09-09 Mark Wielaard <mjw@redhat.com>
2512
2513 * c-typeck.c (build_binary_op): Check and warn when nonnull arg
2514 parm against NULL.
2515
a8a098ac
JJ
25162015-09-10 Jakub Jelinek <jakub@redhat.com>
2517
2518 PR c/67502
2519 * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
2520 into OMP_FOR_PRE_BODY rather than before the loop.
2521
f4b189d5
JJ
25222015-09-09 Jakub Jelinek <jakub@redhat.com>
2523
0bb99c11
JJ
2524 PR c/67501
2525 * c-parser.c (c_parser_oacc_all_clauses,
2526 c_parser_omp_all_clauses): Remove invalid clause from
2527 list of clauses even if parser->error is set.
2528
fce5e5e3
JJ
2529 PR c/67500
2530 * c-parser.c (c_parser_omp_clause_aligned,
2531 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
2532 test for errors.
2533 * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
2534 error_mark_node.
2535
f4b189d5
JJ
2536 PR c/67495
2537 * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
2538 instead of c_parser_unary_expression. If the result is !lvalue_p,
2539 wrap the result of c_fully_fold into NON_LVALUE_EXPR.
2540
b2aaf235
MP
25412015-09-04 Marek Polacek <polacek@redhat.com>
2542
2543 PR sanitizer/67279
2544 * c-typeck.c (build_binary_op): Don't instrument static initializers.
2545
1807ffc1
MS
25462015-09-03 Martin Sebor <msebor@redhat.com>
2547
2548 PR c/66516
8b652e65
JJ
2549 * c-typeck.c (convert_arguments, parser_build_unary_op,
2550 build_conditional_expr, c_cast_expr, convert_for_assignment,
2551 build_binary_op, _objc_common_truthvalue_conversion): Call
1807ffc1
MS
2552 reject_gcc_builtin.
2553 (c_decl_implicit): Define.
2554
d04ff417
MP
25552015-09-02 Marek Polacek <polacek@redhat.com>
2556
2557 PR c/67432
2558 * c-parser.c (c_parser_enum_specifier): Give a better error for
2559 an empty enum.
2560
a79683d5
TS
25612015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
2562
2563 * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
2564
191a6b94
MP
25652015-08-12 Marek Polacek <polacek@redhat.com>
2566
2567 * c-decl.c (grokdeclarator): Call error_at instead of error and pass
2568 LOC to it.
2569
420a9d9b
MP
25702015-08-03 Marek Polacek <polacek@redhat.com>
2571
2572 PR c/67088
2573 * c-decl.c (check_bitfield_type_and_width): Add location parameter.
2574 Use it.
2575 (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
2576
992118a1
PP
25772015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
2578
2579 * c-parser.c (c_parser_if_body): Take token_indent_info
2580 argument. Call warn_for_misleading_indentation even when the
2581 body is a semicolon. Extract token_indent_infos corresponding
2582 to the guard, body and next tokens. Adjust call to
2583 warn_for_misleading_indentation accordingly.
2584 (c_parser_else_body): Likewise.
2585 (c_parser_if_statement): Likewise.
2586 (c_parser_while_statement): Likewise.
2587 (c_parser_for_statement): Likewise.
2588
46308474
LFSM
25892015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com>
2590 Manuel López-Ibáñez <manu@gcc.gnu.org>
2591
2592 * c-decl.c (get_parm_info): Remove static var. Update warning
2593 message.
2594
05b28fd6
MP
25952015-07-27 Marek Polacek <polacek@redhat.com>
2596
2597 PR c++/66555
2598 PR c/54979
2599 * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
2600
451b5e48
MP
26012015-07-20 Marek Polacek <polacek@redhat.com>
2602
2603 PR c++/55095
2604 * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
2605 (build_binary_op): Warn about left shift overflows.
2606
1916bcb5
AM
26072015-07-09 Andrew MacLeod <amacleod@redhat.com>
2608
2609 * c-array-notation.c: Adjust includes for flags.h changes.
2610 * c-objc-common.c: Likewise.
2611
c7131fb2
AM
26122015-07-07 Andrew MacLeod <amacleod@redhat.com>
2613
2614 * c-array-notation.c: Adjust includes.
2615 * c-aux-info.c: Likewise.
2616 * c-convert.c: Likewise.
2617 * c-decl.c: Likewise.
2618 * c-errors.c: Likewise.
2619 * c-lang.c: Likewise.
2620 * c-objc-common.c: Likewise.
2621 * c-parser.c: Likewise.
2622 * c-typeck.c: Likewise.
2623
da2e71c9
MLI
26242015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2625
2626 PR fortran/66605
2627 * c-decl.c (finish_function): Call do_warn_unused_parameter.
2628
b155cfd9
MP
26292015-06-29 Marek Polacek <polacek@redhat.com>
2630
2631 PR c/66322
2632 * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
2633 (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn
2634 about -Wswitch-bool here.
2635 (do_case): Update c_add_case_label call.
2636 (c_finish_case): Update c_do_switch_warnings call.
2637
31521951
MP
26382015-06-27 Marek Polacek <polacek@redhat.com>
2639
2640 * c-typeck.c: Use VECTOR_TYPE_P throughout.
2641
22d03525
MP
26422015-06-26 Marek Polacek <polacek@redhat.com>
2643
2644 * c-array-notation.c (fix_builtin_array_notation_fn): Use
2645 INDIRECT_REF_P.
2646 * c-typeck.c (array_to_pointer_conversion): Likewise.
2647 (build_unary_op): Likewise.
2648 (c_finish_return): Likewise.
2649
f0889939
AM
26502015-06-25 Andrew MacLeod <amacleod@redhat.com>
2651
2652 * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
2653 * c-parser.c: Likewise.
2654
8d67ee55
RS
26552015-06-25 Richard Sandiford <richard.sandiford@arm.com>
2656
2657 * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
2658 instead of pointer_hash.
2659 (detect_field_duplicates): Likewise.
2660
0ae9bd27
MP
26612015-06-25 Marek Polacek <polacek@redhat.com>
2662
2663 * c-array-notation.c: Use VAR_P throughout.
2664 * c-decl.c: Likewise.
2665 * c-objc-common.c: Likewise.
2666 * c-parser.c: Likewise.
2667 * c-typeck.c: Likewise.
2668
62f9079a
MP
26692015-06-25 Marek Polacek <polacek@redhat.com>
2670
2671 * c-decl.c: Use is_global_var throughout.
2672 * c-parser.c: Likewise.
2673 * c-typeck.c: Likewise.
2674
abb226c9
AM
26752015-06-17 Andrew MacLeod <amacleod@redhat.com>
2676
2677 * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
2678 * c-aux-info.c: Likewise.
2679 * c-convert.c: Likewise.
2680 * c-decl.c: Likewise.
2681 * c-errors.c: Likewise.
2682 * c-lang.c: Likewise.
2683 * c-objc-common.c: Likewise.
2684 * c-parser.c: Likewise.
2685 * c-typeck.c: Likewise.
2686
8cbababc
JH
26872015-06-11 Jan Hubicka <hubicka@ucw.cz>
2688
2689 PR middle-end/66325
2690 * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
2691 variants.
2692
a0349665
PMR
26932015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
2694
2695 * c-decl.c (pop_scope): Register the main translation unit
2696 through the new debug hook.
2697
13fdf2e2
AM
26982015-06-08 Andrew MacLeod <amacleod@redhat.com>
2699
2700 * c-array-notation.c : Adjust include files.
2701 * c-aux-info.c : Likewise.
2702 * c-convert.c : Likewise.
2703 * c-decl.c : Likewise.
2704 * c-errors.c : Likewise.
2705 * c-lang.c : Likewise.
2706 * c-lang.h : Likewise.
2707 * c-objc-common.c : Likewise.
2708 * c-parser.c : Likewise.
2709 * c-typeck.c : Likewise.
2710
d7438551
AH
27112015-06-05 Aldy Hernandez <aldyh@redhat.com>
2712
2713 * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
2714 immediately clobber it.
2715 (c_write_global_declarations_1): Remove call to
2716 check_global_declaration_1.
2717 (c_write_global_declarations_2): Remove.
2718 (c_write_final_cleanups): Rename from c_write_global_declarations.
2719 Remove call to finalize_compilation_unit.
2720 Remove calls to debugging hooks.
2721 * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
2722 * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
2723 * c-tree.h: Remove c_write_global_declarations.
2724
ecb9f223
AM
27252015-06-04 Andrew MacLeod <amacleod@redhat.com>
2726
2727 * c-array-notation.c: Adjust includes for restructured coretypes.h.
2728 * c-aux-info.c: Likewise.
2729 * c-convert.c: Likewise.
2730 * c-decl.c: Likewise.
2731 * c-errors.c: Likewise.
2732 * c-lang.c: Likewise.
2733 * c-objc-common.c: Likewise.
2734 * c-parser.c: Likewise.
2735 * c-typeck.c: Likewise.
2736
9482b620
MP
27372015-06-04 Marek Polacek <polacek@redhat.com>
2738
2739 PR c/66341
2740 * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
2741 it is a lvalue.
2742
bc51ace3
PK
27432015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2744
2745 * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
2746 Warn for empty struct.
2747 (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
2748
ea5b45b6
AT
27492015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
2750
2751 * c-decl.c (start_function): Call plugin before parsing.
2752 (finish_function): Call plugin after parsing.
2753
c2d47482
PK
27542015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2755
2756 PR c/49551
2757 * c-decl.c (merge_decls): Merge DECL_COMMON.
2758
a95492ab
JW
27592015-05-22 Jim Wilson <jim.wilson@linaro.org>
2760
2761 * Make-lang.in (check_gcc_pallelize): Define.
2762
fd5c817a
MP
27632015-05-22 Marek Polacek <polacek@redhat.com>
2764
2765 PR c/47043
2766 * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
2767 attributes.
2768
c7b70a3c
MP
27692015-05-21 Marek Polacek <polacek@redhat.com>
2770
2771 * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
2772 DECL_BUILT_IN.
2773
21b634ae
MP
27742015-05-20 Marek Polacek <polacek@redhat.com>
2775
2776 * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
2777 * c-typeck.c: Likewise.
2778
296a8c2f
MP
27792015-05-19 Marek Polacek <polacek@redhat.com>
2780
2781 * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
2782
41b37d5e
JJ
27832015-05-19 Jakub Jelinek <jakub@redhat.com>
2784
2785 PR middle-end/66199
2786 * c-parser.c (c_parser_omp_for_loop): Don't add
2787 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
2788 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
2789 (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
2790 constructs.
2791
fab27f52
MM
27922015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2793
2794 * c-typeck.c (build_array_ref): Use std::swap instead of explicit
296a8c2f 2795 swaps.
fab27f52 2796
40de31cf
MLI
27972015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2798
2799 PR fortran/44054
2800 * c-objc-common.c (c_tree_printer): Replace locus pointer with
2801 accessor function.
2802
3aa3c9fc
MP
28032015-05-14 Marek Polacek <polacek@redhat.com>
2804
2805 PR c/66066
2806 PR c/66127
2807 * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
2808 rather than with 0.
2809
c3388e62
DM
28102015-05-12 David Malcolm <dmalcolm@redhat.com>
2811
2812 * c-parser.c (c_parser_if_body): Add param "if_loc", use it
2813 to add a call to warn_for_misleading_indentation.
2814 (c_parser_else_body): Likewise, adding param "else_loc".
2815 (c_parser_if_statement): Check for misleading indentation.
2816 (c_parser_while_statement): Likewise.
2817 (c_parser_for_statement): Likewise.
2818
755e528f
MP
28192015-05-08 Marek Polacek <polacek@redhat.com>
2820
2821 PR c/64918
2822 * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
2823 (output_init_element): Likewise.
2824
0173bd2a
MP
28252015-05-07 Marek Polacek <polacek@redhat.com>
2826
2827 PR c/65179
2828 * c-typeck.c (build_binary_op): Warn when left shifting a negative
2829 value.
2830
9babc352
MP
28312015-04-30 Marek Polacek <polacek@redhat.com>
2832
2833 * c-typeck.c (set_init_label): Call error_at instead of error and
2834 pass LOC to it.
2835
ac9f18db
MP
2836 * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print
2837 the type of a decl.
2838
ec3fba51
MP
2839 * c-typeck.c (c_build_va_arg): Clarify the error message.
2840
b811915d
TS
28412015-04-29 Thomas Schwinge <thomas@codesourcery.com>
2842
2843 * c-parser.c (c_parser_oacc_enter_exit_data): Use
2844 OMP_STANDALONE_CLAUSES.
2845
f3075008
MP
28462015-04-28 Marek Polacek <polacek@redhat.com>
2847
2848 * c-parser.c (c_parser_binary_expression): Remove duplicate line.
2849
4e81b788
MP
28502015-04-28 Marek Polacek <polacek@redhat.com>
2851
2852 PR c/65901
2853 * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
2854
6c1db78e
MP
28552015-04-25 Marek Polacek <polacek@redhat.com>
2856
2857 PR c/52085
2858 * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode"
2859 attribute.
2860
5c4abbb8
MP
28612015-04-23 Marek Polacek <polacek@redhat.com>
2862
2863 PR c/65345
2864 * c-decl.c (set_labels_context_r): New function.
2865 (store_parm_decls): Call it via walk_tree_without_duplicates.
2866 * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
2867 instead of create_tmp_var. Build TARGET_EXPR instead of
2868 COMPOUND_EXPR.
2869 (build_atomic_assign): Use create_tmp_var_raw instead of
2870 create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR.
2871
06aca1d5
IV
28722015-04-20 Ilya Verbin <ilya.verbin@intel.com>
2873
2874 * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
2875 (c_parser_omp_target_update): Add missed %> to error_at ().
2876
8fba1830
BRF
28772015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2878
2879 PR target/55143
2880 * c-decl.c (c_default_pointer_mode): Remove definition.
2881 * c-tree.h (c_default_pointer_mode): Remove declaration.
2882
62021f64
TB
28832015-03-27 Tobias Burnus <burnus@net-b.de>
2884
2885 PR c/65586
2886 * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
2887 error out.
2888 (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
2889 c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
2890 Update calls to not error for skipped omp pragmas with -fopenmp-simd.
2891
9b65e171
JJ
28922015-03-19 Jakub Jelinek <jakub@redhat.com>
2893
2894 * c-decl.c (c_decl_attributes): Also add "omp declare target"
2895 attribute for DECL_EXTERNAL VAR_DECLs.
2896
17958621
JJ
28972015-03-11 Jakub Jelinek <jakub@redhat.com>
2898
2899 * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
2900 argument.
2901
7ccb1a11
JJ
29022015-03-10 Jakub Jelinek <jakub@redhat.com>
2903
2904 PR c/65120
2905 * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
2906 before preparing arguments to warn_logical_not_parentheses.
2907
01177669
JJ
29082015-03-09 Jakub Jelinek <jakub@redhat.com>
2909
2910 PR c/65120
2911 * c-typeck.c (parser_build_binary_op): Don't warn for
2912 !!x == y or !b == y where b is _Bool.
2913
802ac282
MP
29142015-03-09 Marek Polacek <polacek@redhat.com>
2915
2916 * c-convert.c (convert): Make use of do_ubsan_in_current_function.
2917 * c-decl.c (grokdeclarator): Likewise.
2918 * c-typeck.c (build_binary_op): Likewise.
2919
e5165b60
MP
29202015-02-27 Marek Polacek <polacek@redhat.com>
2921
2922 PR c/65228
2923 * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
2924
065d214c
MP
29252015-02-14 Marek Polacek <polacek@redhat.com>
2926
2927 PR c/64768
2928 * c-decl.c (grokdeclarator): Set the range of a flexible array member
2929 declared through a typedef name.
2930
e5d9235b
MP
29312015-02-13 Marek Polacek <polacek@redhat.com>
2932
2933 PR c/65050
2934 * c-decl.c (grokdeclarator): Print also the type when giving
2935 the error message about array's incomplete element type.
2936
fa01ffcc
JJ
29372015-02-11 Jakub Jelinek <jakub@redhat.com>
2938
2939 PR c/64824
2940 * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
2941 check in the POP macro.
2942
c3e38a03
MP
29432015-02-09 Marek Polacek <polacek@redhat.com>
2944
2945 PR c/64856
2946 * c-typeck.c (process_init_element): Don't always wrap
2947 COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
2948 initializing a range of elements.
2949
4886ec8e
JJ
29502015-02-04 Jakub Jelinek <jakub@redhat.com>
2951
2952 PR c/64824
2953 PR c/64868
2954 * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
2955
c3e38a03 29562015-02-02 Bruno Loff <bruno.loff@gmail.com>
a4bb6959
BL
2957
2958 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
2959 processing enum declaration.
2960
7b33f0c8
MP
29612015-01-29 Marek Polacek <polacek@redhat.com>
2962
2963 PR c/64709
2964 * c-typeck.c (pop_init_level): If constructor_elements has
2965 exactly one element with integer_zerop value, set constructor_zeroinit
2966 to 1. Remove braces around warning_init call.
2967
dea63e49
JJ
29682015-01-27 Jakub Jelinek <jakub@redhat.com>
2969
2970 PR c/64766
2971 * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
2972 of FUNCTION_DECLs with error_mark_node.
2973
d38f7dce
JJ
29742015-01-26 Jakub Jelinek <jakub@redhat.com>
2975
2976 PR c/64778
2977 * c-typeck.c (convert_arguments): Return -1 if there are
2978 error_args, even if we've diagnosed too many arguments.
2979
cbf5d0e7
RB
29802015-01-21 Richard Biener <rguenther@suse.de>
2981
2982 PR middle-end/64313
2983 * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
2984 for builtins the user declared correctly.
2985
41dbbb37
TS
29862015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2987 Bernd Schmidt <bernds@codesourcery.com>
2988 Cesar Philippidis <cesar@codesourcery.com>
2989 James Norris <jnorris@codesourcery.com>
2990 Jakub Jelinek <jakub@redhat.com>
2991 Ilmir Usmanov <i.usmanov@samsung.com>
2992
2993 * c-parser.c: Include "gomp-constants.h".
2994 (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
2995 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
2996 Use OMP_CLAUSE_SET_MAP_KIND.
2997 (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
2998 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
2999 (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
3000 PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
3001 PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
3002 (c_parser_omp_clause_name): Handle "auto", "async", "copy",
3003 "copyout", "create", "delete", "deviceptr", "gang", "host",
3004 "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
3005 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
3006 "present_or_create", "pcreate", "seq", "self", "vector",
3007 "vector_length", "wait", "worker".
3008 (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
3009 (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
3010 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
3011 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
3012 (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
3013 (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
3014 (c_parser_oacc_data_clause_deviceptr)
3015 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
3016 (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
3017 (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
3018 (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
3019 (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
3020 (c_parser_oacc_parallel, c_parser_oacc_update)
3021 (c_parser_oacc_wait): New functions.
3022 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
3023 (c_finish_oacc_data): New prototypes.
3024 * c-typeck.c: Include "gomp-constants.h".
3025 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
3026 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
3027 OMP_CLAUSE_SET_MAP_KIND.
3028 (c_finish_oacc_parallel, c_finish_oacc_kernels)
3029 (c_finish_oacc_data): New functions.
3030 (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
3031 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
3032 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
3033 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
3034 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
3035 GOMP_MAP_FORCE_DEVICEPTR.
3036
adfac8df
JJ
30372015-01-09 Michael Collison <michael.collison@linaro.org>
3038
3039 * c-array-notation.c: Include hash-set.h, machmode.h,
3040 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3041 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
3042 * c-aux-info.c: Ditto.
3043 * c-convert.c: Ditto.
3044 * c-decl.c: Ditto.
3045 * c-errors.c: Ditto.
3046 * c-lang.c: Dittoxs.
3047 * c-objc-common.c: Ditto.
3048 * c-parser.c: Ditto.
3049 * c-typeck.c: Include hash-set.h, machmode.h,
3050 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
3051 fold-const.h, wide-int.h, inchash.h, real.h and
3052 fixed-value.h due to flattening of tree.h.
3053
2cc901dc
MP
30542015-01-07 Marek Polacek <polacek@redhat.com>
3055
3056 PR c/64417
3057 * c-typeck.c (process_init_element): Disallow initialization of
3058 a flexible array member with a string constant if the structure
3059 is in an array.
3060
5624e564
JJ
30612015-01-05 Jakub Jelinek <jakub@redhat.com>
3062
e5341100
JJ
3063 PR sanitizer/64344
3064 * c-typeck.c (convert_for_assignment, c_finish_return): For
3065 -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
3066 types also set in_late_binary_op around convert call.
3067 * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
3068 to integral type casts, if not in_late_binary_op, pass c_fully_fold
3069 result on expr as last argument to ubsan_instrument_float_cast,
3070 if in_late_binary_op, don't use c_save_expr but save_expr.
3071
5624e564
JJ
3072 Update copyright years.
3073
5bd012f8
MP
30742015-01-05 Marek Polacek <polacek@redhat.com>
3075
3076 PR c/64423
3077 * c-typeck.c (build_array_ref): Pass loc down to
3078 warn_array_subscript_with_type_char.
3079
3f8257db 30802014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
3081
3082 * c-typeck.c: New behavious for pointers to arrays with qualifiers
8e745a17 3083 (common-pointer-type): For pointers to arrays take qualifiers from
768952be 3084 element type.
8e745a17 3085 (build_conditional_expr): Add warnings for lost qualifiers.
768952be 3086 (comp-target-types): Allow pointers to arrays with different qualifiers.
8e745a17 3087 (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
768952be 3088 WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
8e745a17 3089 to PEDWARN_FOR_QUALIFIERS.
768952be 3090
8f94a8c4
JJ
30912014-12-17 Jakub Jelinek <jakub@redhat.com>
3092
3093 PR sanitizer/64289
3094 * c-convert.c: Include ubsan.h.
3095 (convert): For real -> integral casts and
3096 -fsanitize=float-cast-overflow don't call convert_to_integer, but
3097 instead instrument the float cast directly.
3098
b731b390
JJ
30992014-11-29 Jakub Jelinek <jakub@redhat.com>
3100
3101 * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
3102 c_finish_stmt_expr): Remove NULL last argument from
3103 create_tmp_var_raw and create_tmp_var calls.
3104 * c-array-notation.c (fix_builtin_array_notation_fn,
3105 build_array_notation_expr, fix_conditional_array_notations_1,
3106 fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
3107
541e35a6
MP
31082014-11-28 Marek Polacek <polacek@redhat.com>
3109
3110 PR c/63862
3111 * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
3112 convert the right operand to integer type.
3113
b286be94
MP
31142014-11-25 Marek Polacek <polacek@redhat.com>
3115
3116 PR c/63877
3117 * c-decl.c (start_function): Disable -Wmissing-declarations warning
3118 for inline functions.
3119
aa7da51a
JJ
31202014-11-21 Jakub Jelinek <jakub@redhat.com>
3121
3122 PR target/63764
3123 * c-typeck.c (build_array_ref): Adjust
3124 convert_vector_to_pointer_for_subscript caller. If it returns true,
3125 call non_lvalue_loc on the result.
3126
d876207f
RB
31272014-11-11 Richard Biener <rguenther@suse.de>
3128
3129 * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
3130 to true.
3131
e5e44252
AK
31322014-11-10 Andi Kleen <ak@linux.intel.com>
3133
3134 PR c/60804
3135 * c-parser.c (c_parser_statement_after_labels): Call
3136 check_no_cilk.
3137 (c_parser_if_statement): Dito.
3138 (c_parser_switch_statement): Dito.
3139 (c_parser_while_statement): Dito.
3140 (c_parser_do_statement): Dito.
3141 (c_parser_for_statement): Dito.
3142 * c-typeck.c (c_finish_loop): Dito.
3143
13c21655
PC
31442014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
3145
3146 * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
3147 OPT_Wshift_count_overflow in the warnings.
3148
2d51fcef
MP
31492014-10-30 Marek Polacek <polacek@redhat.com>
3150
3151 * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
3152 print the stripped version as well, if they're not the same.
3153
ef4bddc2
RS
31542014-10-29 Richard Sandiford <richard.sandiford@arm.com>
3155
3156 * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
3157 machine_mode.
3158
c582198b
AM
31592014-10-28 Andrew MacLeod <amacleod@redhat.com>
3160
3161 * c-decl.c: Adjust include files.
3162 * c-parser.c: Ditto.
3163
ddc8de03
PM
31642014-10-27 Phil Muldoon <pmuldoon@redhat.com>
3165 Tom Tromey <tromey@redhat.com>
3166
3167 * c-tree.h (enum c_oracle_request): New.
3168 (c_binding_oracle_function): New typedef.
3169 (c_binding_oracle, c_pushtag, c_bind): Declare.
3170 * c-decl.c (c_binding_oracle): New global.
3171 (I_SYMBOL_CHECKED): New macro.
3172 (i_symbol_binding): New function.
3173 (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
3174 (I_TAG_CHECKED): New macro.
3175 (i_tag_binding): New function.
3176 (I_TAG_BINDING, I_TAG_DECL): Redefine.
3177 (I_LABEL_CHECKED): New macro.
3178 (i_label_binding): New function.
3179 (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
3180 (c_print_identifier): Save and restore c_binding_oracle.
3181 (c_pushtag, c_bind): New functions.
3182
60393bbc
AM
31832014-10-27 Andrew MacLeod <amacleod@redhat.com>
3184
3185 * c-typeck.c: Adjust include files.
3186
d723bb7c
MLI
31872014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
3188
3189 PR c++/53061
3190 * c-objc-common.c (c_objc_common_init): Do not do diagnostics
3191 initialization here...
3192 (c_initialize_diagnostics): ... but here. Set defaults after
3193 building pretty-printer.
3194
1bc5a451
MP
31952014-10-23 Marek Polacek <polacek@redhat.com>
3196
3197 PR c/63626
3198 * c-decl.c (pop_scope): Don't print warning in external_scope.
3199
4435bb92
MP
32002014-10-19 Marek Polacek <polacek@redhat.com>
3201
3202 PR c/63567
3203 * c-typeck.c (output_init_element): Allow initializing objects with
3204 static storage duration with compound literals even in C99 and add
3205 pedwarn for it.
3206
7278465e
MP
32072014-10-17 Marek Polacek <polacek@redhat.com>
3208
3209 PR c/63567
3210 * c-typeck.c (digest_init): Allow initializing objects with static
3211 storage duration with compound literals even in C99 and add pedwarn
3212 for it.
3213
d9b7be2e
MP
32142014-10-17 Marek Polacek <polacek@redhat.com>
3215
3216 PR c/63543
3217 * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
3218 * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
3219 error multiple times. Print the type.
3220
f406ae1f
MP
32212014-10-17 Marek Polacek <polacek@redhat.com>
3222
3223 PR c/63549
3224 * c-typeck.c (build_array_ref): Bail if the index in an incomplete
3225 type.
3226
92574c7c
MP
32272014-10-17 Marek Polacek <polacek@redhat.com>
3228
3229 * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
3230 (start_function): Use OPT_Wimplicit_int instead of 0.
3231 (store_parm_decls_oldstyle): Likewise.
3232
1bc4a978
MT
32332014-10-17 Alan Modra <amodra@gmail.com>
3234
3235 PR middle-end/61848
3236 * c-decl.c (merge_decls): Don't merge section name or tls model
3237 to newdecl symtab node, instead merge to olddecl. Override
3238 existing olddecl section name. Set tls_model for all thread-local
3239 vars, not just OMP thread-private ones. Remove incorrect comment.
3240
83685514
AM
32412014-10-16 Andrew MacLeod <amacleod@redhat.com>
3242
3243 * c-decl.c: Adjust include files.
3244
78a7c317
DD
32452014-10-14 DJ Delorie <dj@redhat.com>
3246
3247 * c-parser.c (c_parse_init): Add RID entries for each __intN.
3248 (c_token_starts_typename): Check all __intN, not just __int128.
3249 (c_token_starts_declspecs): Likewise.
3250 (c_parser_declspecs): Likewise.
3251 (c_parser_attribute_any_word): Likewise.
3252 (c_parser_objc_selector): Likewise.
3253 * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
3254 (struct c_declspecs): Add int_n_idx field to record *which* __intN
3255 is specified.
3256 * c-decl.c (declspecs_add_type): Check for all __intN, not just
3257 __int128.
3258 (finish_declspecs): Likewise.
3259
74d98c1e
AB
32602014-10-13 Anthony Brandon <anthony.brandon@gmail.com>
3261
8e745a17 3262 * c-parser.c (c_parser_all_labels): New function to replace
74d98c1e 3263 the duplicate code.
8e745a17 3264 (c_parser_statement): Call the new function.
74d98c1e 3265
84937de2
MP
32662014-10-09 Marek Polacek <polacek@redhat.com>
3267
3268 PR c/63480
3269 * c-typeck.c (pop_init_level): Don't warn about initializing
3270 with { }.
3271
0382aaa0
MP
32722014-10-07 Marek Polacek <polacek@redhat.com>
3273
3274 PR c/59717
3275 * c-decl.c (header_for_builtin_fn): New function.
3276 (implicitly_declare): Suggest which header to include.
3277
7a0ca710
MP
32782014-10-07 Marek Polacek <polacek@redhat.com>
3279
3280 * c-convert.c (convert): Use error_operand_p.
3281 * c-typeck.c (require_complete_type): Likewise.
3282 (really_atomic_lvalue): Likewise.
3283 (digest_init): Likewise.
3284 (handle_omp_array_sections_1): Likewise.
3285
6bc8a126
MP
32862014-10-03 Marek Polacek <polacek@redhat.com>
3287
3288 PR c/63453
3289 * c-decl.c (pop_scope): Don't warn about "inline function declared
3290 but never defined" for functions marked with gnu_inline attribute.
3291
d90c0a59
JJ
32922014-09-25 Jakub Jelinek <jakub@redhat.com>
3293
3294 PR c++/63249
3295 * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
3296 on low_bound and length.
3297
083e891e
MP
32982014-09-24 Marek Polacek <polacek@redhat.com>
3299
3300 PR c/61405
3301 PR c/53874
3302 * c-parser.c: Don't define CPP_KEYWORD.
3303 (c_parser_switch_statement): Pass original type to c_finish_case.
3304 * c-tree.h (c_finish_case): Update declaration.
3305 * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it
3306 conditionally to c_do_switch_warnings.
3307
8d95fe25
MP
33082014-09-03 Marek Polacek <polacek@redhat.com>
3309
3310 PR c/62024
3311 * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
3312 conversions.
3313
9a771876
JJ
33142014-09-02 Jakub Jelinek <jakub@redhat.com>
3315 Balaji V. Iyer <balaji.v.iyer@intel.com>
3316 Igor Zamyatin <igor.zamyatin@intel.com>
3317
3318 * c-parser.c (c_parser_cilk_for): New function.
3319 (c_parser_cilk_grainsize): Likewise.
3320 (c_get_temp_regvar): Likewise.
3321 (c_parser_statement_after_labels): Added RID_CILK_FOR case.
3322 (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
3323 (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
3324 * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
3325 case.
3326
b7679d96
CG
33272014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
3328
3329 * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
3330 with using HOST_WIDE_INT without truncation to 'int'
3331
59ea0364
MP
33322014-08-22 Marek Polacek <polacek@redhat.com>
3333
3334 PR c++/62199
3335 * c-typeck.c (parser_build_binary_op): Adjust call to
3336 warn_logical_not_parentheses.
3337
671a475e
IZ
33382014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
3339
3340 PR other/62008
3341 * c-parser.c (c_parser_array_notation): Check for correct
3342 type of an array added.
3343
04159acf
MP
33442014-08-19 Marek Polacek <polacek@redhat.com>
3345
3346 PR c++/62153
3347 * c-typeck.c (build_binary_op): If either operand of a comparison
3348 is a boolean expression, call maybe_warn_bool_compare.
3349
c77935ee
PP
33502014-08-19 Patrick Palka <ppalka@gcc.gnu.org>
3351
3352 PR c/45584
3353 * c-typeck.c (build_c_cast): Do a conversion even when the
3354 TYPE_MAIN_VARIANTs are the same.
3355
35aff4fb
MP
33562014-08-19 Marek Polacek <polacek@redhat.com>
3357
3358 * c-decl.c (diagnose_mismatched_decls): Unconditionally call
3359 pedwarn_c99 instead of pedwarn.
3360 (grokfield): Likewise.
3361 (warn_defaults_to): New function.
3362 (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
3363 Unconditionally call pedwarn_c99 instead of pedwarn.
3364 (start_function): Call warn_defaults_to instead of pedwarn_c99.
3365 (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
3366 check flag_isoc11 before.
3367 * c-errors.c (pedwarn_c99): Change the return type to bool.
3368 Handle -Wc99-c11-compat.
3369 * c-parser.c (disable_extension_diagnostics): Handle
3370 warn_c99_c11_compat.
3371 (restore_extension_diagnostics): Likewise.
3372 (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
3373 instead of pedwarn, don't check flag_isoc11 before.
3374 (c_parser_declspecs): Likewise.
3375 (c_parser_alignas_specifier): Likewise.
3376 (c_parser_alignof_expression): Likewise.
3377 (c_parser_generic_selection): Likewise.
3378 * c-tree.h (pedwarn_c99): Update declaration.
3379 * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
3380 of pedwarn_c99.
3381
177cce46
MP
33822014-08-19 Marek Polacek <polacek@redhat.com>
3383
3384 * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
3385 to pedwarn_c90.
3386 * c-errors.c: Include "opts.h".
3387 (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
3388 * c-parser.c (disable_extension_diagnostics): Handle negative value
3389 of warn_c90_c99_compat, too.
3390 (restore_extension_diagnostics): Likewise.
3391 (c_parser_compound_statement_nostart): Pass
3392 OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
3393
6dc99c33
MP
33942014-08-12 Marek Polacek <polacek@redhat.com>
3395
3396 * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
3397 Add pedwarn.
3398 (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
3399 Likewise.
3400 (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
3401
3f8257db 34022014-08-10 Marek Polacek <polacek@redhat.com>
f3bede71
MP
3403
3404 PR c/51849
3405 * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
3406 Call pedwarn_c90 instead of pedwarn.
3407 (check_bitfield_type_and_width): Likewise.
3408 (declspecs_add_qual): Likewise.
3409 (declspecs_add_type): Likewise.
3410 (warn_variable_length_array): Unify function for -pedantic and -Wvla.
3411 Adjust to only call pedwarn_c90.
3412 (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
3413 pedwarn_c90 instead of pedwarn.
3414 * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
3415 * c-parser.c (disable_extension_diagnostics): Handle
3416 warn_c90_c99_compat.
3417 (restore_extension_diagnostics): Likewise.
3418 (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
3419 pedwarn_c90 instead of pedwarn.
3420 (c_parser_initelt): Likewise.
3421 (c_parser_postfix_expression): Likewise.
3422 (c_parser_postfix_expression_after_paren_type): Likewise.
3423 (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
3424 * c-tree.h: Fix formatting.
3425 * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
3426 pedwarn_c90 instead of pedwarn.
3427
9f25a338
TS
34282014-08-07 Trevor Saunders <tsaunders@mozilla.com>
3429
3430 * c-typeck.c: Remove include of pointer-set.h.
3431
044331a8
MP
34322014-08-07 Marek Polacek <polacek@redhat.com>
3433
3434 * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
3435
b787e7a2
TS
34362014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3437
3438 * c-typeck.c: Use hash_map instead of pointer_map.
3439
6e2830c3
TS
34402014-08-02 Trevor Saunders <tsaunders@mozilla.com>
3441
3442 * c-decl.c: Use hash_set instead of pointer_set.
3443
a7ee52fb
IZ
34442014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
3445
3446 PR middle-end/61455
3447 * c-array-notation.c (expand_array_notations): Handling
3448 of DECL_EXPR added.
3449
b4dfdc11
MG
34502014-07-31 Marc Glisse <marc.glisse@inria.fr>
3451
3452 PR c++/60517
3453 * c-typeck.c (c_finish_return): Return 0 instead of the address of
3454 a local variable.
3455
976d5a22
TT
34562014-07-30 Tom Tromey <tromey@redhat.com>
3457
3458 * c-typeck.c (struct constructor_stack) <designator_depth>: New
3459 field.
3460 (really_start_incremental_init, push_init_level): Initialize
3461 designator_depth.
3462 (pop_init_level): Set global designator_depth.
3463 (process_init_element): Check for designated_init attribute.
3464
30281de2
MP
34652014-07-20 Marek Polacek <polacek@redhat.com>
3466
3467 PR c/61852
3468 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
3469 (implicitly_declare): Pass location to implicit_decl_warning.
3470
b108f48f
JJ
34712014-07-14 Jakub Jelinek <jakub@redhat.com>
3472
3473 PR middle-end/61294
3474 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
3475 If non-NULL, call c_parser_check_literal_zero.
3476 (c_parser_check_literal_zero): New function.
3477 (c_parser_postfix_expression_after_primary): Adjust
3478 c_parser_expr_list caller, handle -Wmemset-transposed-args.
3479
773ec47f
MP
34802014-07-06 Marek Polacek <polacek@redhat.com>
3481
3482 PR c/6940
3483 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
3484 * c-tree.h (C_ARRAY_PARAMETER): Define.
3485 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
3486 function parameter.
3487
22e1cf1c 34882014-07-02 Jan Hubicka <hubicka@ucw.cz>
3f8257db 3489 Chen Gang <gang.chen.5i5j@gmail.com>
22e1cf1c
JH
3490
3491 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
3492 releasing symbol.
3493
52ec0ea3
MP
34942014-07-01 Marek Polacek <polacek@redhat.com>
3495
3496 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
3497 instead of 0 to WARN_FOR_ASSIGNMENT.
3498
d5c3d343
MP
34992014-07-01 Marek Polacek <polacek@redhat.com>
3500
3501 PR c/58286
3502 * c-typeck.c (convert_for_assignment): Pass
3503 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
3504
6a7253a4
MP
35052014-06-30 Marek Polacek <polacek@redhat.com>
3506
3507 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
3508 has no_sanitize_undefined attribute.
3509
5e88a8f4
IZ
35102014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
3511
3512 PR middle-end/57541
3513 * c-array-notation.c (fix_builtin_array_notation_fn):
3514 Check for 0 arguments in builtin call. Check that bultin argument is
3515 correct.
3516 * c-parser.c (c_parser_array_notation): Check for incorrect initial
3517 index.
3518
9698b078
SH
35192014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
3520
3521 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
3522 qualifiers in __auto_type for atomic types.
3523 (c_parser_typeof_specifier): Discard all type qualifiers in
3524 __typeof__ for atomic types.
3525
6e07c515
MP
35262014-06-25 Marek Polacek <polacek@redhat.com>
3527
3528 PR c/61162
3529 * c-parser.c (c_parser_statement_after_labels): Pass the location of
3530 the return expression to c_finish_return.
3531
da6f124d
JJ
35322014-06-25 Jakub Jelinek <jakub@redhat.com>
3533
3534 * c-typeck.c (c_finish_omp_clauses): Make sure
3535 OMP_CLAUSE_LINEAR_STEP has correct type.
3536
c203e8a7
TS
35372014-06-24 Trevor Saunders <tsaunders@mozilla.com>
3538
3539 * c-decl.c: Adjust.
3540
56ad0e38
JJ
35412014-06-24 Jakub Jelinek <jakub@redhat.com>
3542
3543 * c-parser.c (c_parser_omp_for_loop): For
3544 #pragma omp parallel for simd move lastprivate clause from parallel
3545 to for rather than simd.
3546
47c2554f
MP
35472014-06-23 Marek Polacek <polacek@redhat.com>
3548
3549 * c-typeck.c (parser_build_binary_op): Don't call
3550 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
3551
56363ffd
JH
35522014-06-15 Jan Hubicka <hubicka@ucw.cz>
3553
3554 * c-parser.c (c_parser_omp_threadprivate): Likewise.
3555 * c-decl.c (merge_decls): Likewise.
3556
d7ff7ae5
MP
35572014-06-09 Marek Polacek <polacek@redhat.com>
3558
3559 PR c/36446
3560 * c-typeck.c (error_init): Call inform instead of error_at.
3561 (pedwarn_init): Call inform instead of pedwarn.
3562 (warning_init): Call inform instead of warning_at.
3563
24d047a3
JH
35642014-06-07 Jan Hubicka <hubicka@ucw.cz>
3565
3566 * c-decl.c (merge_decls): Use set_decl_section_name.
3567 (duplicate_decls): Remove node if it exists.
3568
9bac5cbb
G
35692014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
3570
3571 PR c/53119
3572 * c-typeck.c (push_init_level, process_init_element,
3573 pop_init_level): Correct check for zero initialization, move
3574 missing brace warning to respect zero initialization.
3575
8ffcdea8
MP
35762014-06-05 Marek Polacek <polacek@redhat.com>
3577
3578 PR c/56724
3579 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
3580
742938c9
MP
35812014-06-05 Marek Polacek <polacek@redhat.com>
3582
3583 PR c/49706
3584 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
3585 on the left hand side operand of a comparison.
3586
6447c55d
MP
35872014-06-05 Marek Polacek <polacek@redhat.com>
3588
3589 PR c/48062
3590 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
3591 Print note only if the warning was printed.
3592
9dc7743c
IZ
35932014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
3594
3595 PR c/58942
3596 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
3597 with a pointer.
3598
fedfecef
MP
35992014-06-03 Marek Polacek <polacek@redhat.com>
3600
3601 PR c/60439
3602 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
3603 c_start_case.
3604 * c-tree.h (c_start_case): Update.
3605 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
3606 switch condition has boolean value.
3607
9b2b7279
AM
36082014-06-02 Andrew MacLeod <amacleod@redhat.com>
3609
3610 * c-decl.c: Include builtins.h.
3611 * c-parser.c: Likewise.
3612
5c1bc275
MP
36132014-05-27 Marek Polacek <polacek@redhat.com>
3614
3615 PR c/56724
3616 * c-typeck.c (convert_arguments): Get location of a parameter. Change
3617 error and warning calls to error_at and warning_at. Pass location of
3618 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
3619 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
3620 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
3621
97563bc8
IZ
36222014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
3623
3624 PR c/61191
3625 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
3626 function parameters.
3627
aede2c10
JH
36282014-05-23 Jan Hubicka <hubicka@ucw.cz>
3629
3630 * c-decl.c (merge_decls): Preserve symtab node pointers.
3631 (duplicate_decls): Free new decl.
3632
edbba2ce
TS
36332014-05-23 Thomas Schwinge <thomas@codesourcery.com>
3634
f3316c6d
TS
3635 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
3636 initialization.
3637
edbba2ce
TS
3638 * c-parser.c (c_parser_omp_target): Return bool values.
3639
68c81f24
TS
36402014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3641
3642 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
3643 num_teams_loc variable to num_thread_limit_loc.
3644
632f2871
RS
36452014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3646
3647 * c-array-notation.c (expand_array_notations): Use void_node
3648 instead of void_zero_node.
3649
766090c2
TS
36502014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3651
3652 * c-decl.c (finish_struct): Adjust.
3653 (finish_enum): Likewise.
3654 (bind): Adjust.
3655 (record_inline_static): Likewise.
3656 (push_scope): Likewise.
3657 (make_label): Likewise.
3658 (lookup_label_for_goto): Likewise.
3659 (finish_struct): Likewise.
3660 (finish_enum): Likewise.
3661 (store_parm_decls): Likewise.
3662 (c_push_function_context): Likewise.
3663 * c-lang.h: Remove usage of variable_size gty attribute.
3664 * c-parser.c (c_parse_init): Adjust.
3665 (c_parse_file): Likewise.
3666
2b107f6b
MP
36672014-05-13 Marek Polacek <polacek@redhat.com>
3668
3669 PR c/61162
3670 * c-typeck.c (convert_for_assignment): Pass location to
3671 WARN_FOR_ASSIGNMENT instead of input_location.
3672
d033409e
MP
36732014-05-10 Marek Polacek <polacek@redhat.com>
3674
3675 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
3676 maybe_warn_string_init.
3677 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
3678 maybe_warn_string_init.
3679 * c-tree.h (maybe_warn_string_init): Update declaration.
3680 * c-typeck.c (maybe_warn_string_init): Add location parameter.
3681 Call pedwarn_init with loc instead of with input_location.
3682 (digest_init): Pass init_loc to maybe_warn_string_init.
3683 (pop_init_level): Call pedwarn_init with loc instead of with
3684 input_location.
3685 (set_init_index): Likewise.
3686 (process_init_element): Likewise.
3687
ea58ef42
MP
36882014-05-09 Marek Polacek <polacek@redhat.com>
3689
3690 PR c/61096
3691 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
3692 (c_parser_initelt): Pass location to set_init_label. Pass array index
3693 location to set_init_index.
3694 * c-tree.h (push_init_level): Update declaration.
3695 (pop_init_level): Likewise.
3696 (set_init_index): Likewise.
3697 (set_init_label): Likewise.
3698 * c-typeck.c (error_init): Add location parameter. Call error_at
3699 instead of error.
3700 (digest_init): Pass init_loc to error_init.
3701 (really_start_incremental_init):
3702 (push_init_level): Add location parameter. Pass loc to pop_init_level
3703 and error_init.
3704 (pop_init_level): Likewise.
3705 (set_designator): Add location parameter. Pass loc to pop_init_level,
3706 push_init_level, and error_init.
3707 (set_init_index): Add location parameter. Pass loc to error_init and
3708 set_designator.
3709 (set_init_label): Likewise.
3710 (output_init_element): Pass loc to error_init.
3711 (process_init_element): Pass loc to error_init, pop_init_level,
3712 pedwarn_init, and push_init_level.
3713
661a0813
MP
37142014-05-09 Marek Polacek <polacek@redhat.com>
3715
3716 PR c/50459
3717 * c-parser.c (c_parser_attributes): Parse the arguments as an
3718 expression-list if the attribute takes identifier.
3719
2793eeab
MP
37202014-05-08 Marek Polacek <polacek@redhat.com>
3721
3722 PR c/61053
3723 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
3724 TYPE_ALIGN_UNIT.
3725
f827930a
MP
37262014-05-08 Marek Polacek <polacek@redhat.com>
3727
3728 PR c/61077
3729 * c-decl.c (start_function): Warn for _Atomic-qualified return type
3730 of main.
3731
1d60af08
KZ
37322014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3733 Mike Stump <mikestump@comcast.net>
3734 Richard Sandiford <rdsandiford@googlemail.com>
3735
3736 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
3737 (finish_enum): Use wide-int interfaces.
3738 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
3739 * c-typeck.c (build_c_cast): Likewise.
3740 (set_nonincremental_init_from_string): Likewise.
3741 (c_tree_equal): Likewise.
3742
a0e24419
MP
37432014-05-02 Marek Polacek <polacek@redhat.com>
3744
3745 PR c/25801
3746 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
3747 Return size_one_node when the type is not complete.
3748 (pointer_diff): Remove comment.
3749 (build_unary_op): Improve error messages.
3750
19fc9faa
MP
37512014-05-02 Marek Polacek <polacek@redhat.com>
3752
3753 * c-typeck.c (c_finish_return): Separate warning_at calls.
3754
63bc4e87
MP
37552014-05-02 Marek Polacek <polacek@redhat.com>
3756
3757 * c-tree.h (error_init): Remove declaration.
3758 (pedwarn_init): Likewise.
3759 * c-typeck.c (error_init): Make static and move above.
3760 (pedwarn_init): Likewise.
3761 (warning_init): Move above.
3762 (maybe_warn_string_init): Likewise.
3763
4bd2511b
JL
37642014-05-01 Jeff Law <law@redhat.com>
3765
3766 Revert:
3767
3768 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3769 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
3770 avoid goto.
3771
6a358dcb
MP
37722014-05-02 Marek Polacek <polacek@redhat.com>
3773
3774 PR c/60784
3775 * c-typeck.c (push_init_level): Set constructor_designated to
3776 p->designated for structures.
3777
ae5ebda4
MP
37782014-05-01 Marek Polacek <polacek@redhat.com>
3779
3780 PR c/60915
3781 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
3782 function-definition has an attribute after the declarator.
3783
96b40f8d
MP
37842014-05-01 Marek Polacek <polacek@redhat.com>
3785
3786 PR c/60257
3787 * c-typeck.c (warning_init): Add location_t parameter. Call
3788 warning_at instead of warning.
3789 (push_init_level): Pass input_location to warning_init.
3790 (add_pending_init): Add location_t parameter. Pass loc to
3791 warning_init.
3792 (set_nonincremental_init): Pass input_location to add_pending_init.
3793 (set_nonincremental_init_from_string): Likewise.
3794 (output_init_element): Pass loc to warning_init and to
3795 add_pending_init.
3796
32e00768
MP
37972014-05-01 Marek Polacek <polacek@redhat.com>
3798
3799 PR c/43395
3800 * c-typeck.c (c_finish_return): Distinguish between label and variable
3801 when warning about returning local address.
3802
c9379ce2
MP
38032014-05-01 Marek Polacek <polacek@redhat.com>
3804
3805 PR c/29467
3806 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
3807 in C89 mode.
3808
d00887e8
MP
38092014-05-01 Marek Polacek <polacek@redhat.com>
3810
3811 PR c/43245
3812 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
3813 instead of 0 to WARN_FOR_QUALIFIERS.
3814
5436fa2e
MP
38152014-05-01 Marek Polacek <polacek@redhat.com>
3816
3817 PR c/56989
3818 * c-typeck.c (default_conversion): Use better location for
3819 error call.
3820
f8ed5150
MP
38212014-04-30 Marek Polacek <polacek@redhat.com>
3822
3823 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
3824 also when SANITIZE_FLOAT_DIVIDE is on.
3825
8337d1db
MP
38262014-04-30 Marek Polacek <polacek@redhat.com>
3827
3828 PR c/60139
3829 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
3830 and pedwarn_init. Use loc insted of input_location.
3831
c4bdc42f
MP
38322014-04-30 Marek Polacek <polacek@redhat.com>
3833
3834 PR c/60351
3835 * c-typeck.c (build_binary_op): Use location when warning about
3836 shift count.
3837
45484dcf
MP
38382014-04-25 Marek Polacek <polacek@redhat.com>
3839
3840 PR c/18079
3841 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
3842 always_inline/noinline and hot/cold attributes.
3843
34cf811f
MP
38442014-04-25 Marek Polacek <polacek@redhat.com>
3845
3846 PR c/60114
3847 * c-parser.c (c_parser_initelt): Pass input_location to
3848 process_init_element.
3849 (c_parser_initval): Pass loc to process_init_element.
3850 * c-tree.h (process_init_element): Adjust declaration.
3851 * c-typeck.c (push_init_level): Pass input_location to
3852 process_init_element.
3853 (pop_init_level): Likewise.
3854 (set_designator): Likewise.
3855 (output_init_element): Add location_t parameter. Pass loc to
3856 digest_init.
3857 (output_pending_init_elements): Pass input_location to
3858 output_init_element.
3859 (process_init_element): Add location_t parameter. Pass loc to
3860 output_init_element.
3861
42056eac
JJ
38622014-04-24 Jakub Jelinek <jakub@redhat.com>
3863
3864 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
3865 atomic-clause, allow comma in between atomic-clause and
3866 seq_cst.
3867
e162a134
JJ
38682014-04-22 Jakub Jelinek <jakub@redhat.com>
3869
3870 PR c/59073
3871 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
3872 fails, don't set OM_PARALLEL_COMBINED and return NULL.
3873
2f6babac
IZ
38742014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3875
3876 PR middle-end/60469
3877 * c-array-notation.c (fix_builtin_array_notation_fn): Use
3878 create_tmp_var instead build_decl for creating temps.
3879 (build_array_notation_expr): Likewise.
3880 (fix_conditional_array_notations_1): Likewise.
3881 (fix_array_notation_expr): Likewise.
3882 (fix_array_notation_call_expr): Likewise.
3883
8edbfaa6
JJ
38842014-03-28 Jakub Jelinek <jakub@redhat.com>
3885
3886 PR c++/60689
3887 * c-tree.h (c_build_function_call_vec): New prototype.
3888 * c-typeck.c (build_function_call_vec): Don't call
3889 resolve_overloaded_builtin here.
3890 (c_build_function_call_vec): New wrapper function around
3891 build_function_call_vec. Call resolve_overloaded_builtin here.
3892 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
3893 Call c_build_function_call_vec instead of build_function_call_vec.
3894 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
3895 * c-decl.c (finish_decl): Likewise.
3896
7485aeea
MLI
38972014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3898
3899 PR c/55383
3900 * c-typeck.c: Use correct format string in cast-qual warning
3901
b17a8b07
TS
39022014-03-07 Thomas Schwinge <thomas@codesourcery.com>
3903
3904 * c-decl.c (c_decl_attributes): Use
3905 lang_hooks.types.omp_mappable_type.
3906 * c-typeck.c (c_finish_omp_clauses): Likewise.
3907
3af9c5e9
MP
39082014-03-06 Marek Polacek <polacek@redhat.com>
3909
3910 PR c/60197
3911 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
3912 of checking tree code.
3913
1c9f5f33
PK
39142014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3915
3916 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
3917 (c_parser_parameter_declaration): Likewise.
3918
cc28fc7f
MP
39192014-02-19 Marek Polacek <polacek@redhat.com>
3920
3921 PR c/60195
3922 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
3923 Call mark_exp_read on exp.value.
3924 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
3925 TREE_ADDRESSABLE on old instead of val.
3926 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
3927
b581c05c
PK
39282014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
3929
3930 * c-parser.c (c_parser_get_builtin_args): Replace calls to
3931 C_EXPR_APPEND by vec_safe_push.
3932 * c-tree.h (C_EXPR_APPEND): Remove.
3933
81e5eca8
MP
39342014-01-31 Marek Polacek <polacek@redhat.com>
3935
3936 PR c/59963
3937 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
3938 build_function_call_vec.
3939 (build_function_call): Likewise.
3940 (build_atomic_assign): Likewise.
3941 (build_function_call_vec): Add arg_loc parameter. Use it.
3942 (convert_arguments): Likewise.
3943 (convert_for_assignment): Rename rhs_loc to expr_loc.
3944 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
3945 (c_parser_objc_keywordexpr): Likewise.
3946 (c_parser_postfix_expression_after_primary): Call
3947 build_function_call_vec with expr_loc rather than op_loc.
3948 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
3949 build_function_call_vec.
3950 (c_parser_expr_list): Add locations parameter. Fill it with locations
3951 of function arguments.
3952 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
3953
68fca595
MP
39542014-01-30 Marek Polacek <polacek@redhat.com>
3955
3956 PR c/59940
3957 * c-typeck.c (build_function_call_vec): Use loc parameter.
3958 (convert_arguments): Add location parameter. Use it.
3959 (ep_convert_and_check): Likewise.
3960 (build_atomic_assign): Adjust convert_for_assignment call.
3961 (build_modify_expr): Likewise.
3962 (digest_init): Likewise.
3963 (c_finish_return): Likewise.
3964 (build_conditional_expr): Adjust ep_convert_and_check calls.
3965 (convert_for_assignment): Add rhs_loc parameter. Use it.
3966 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
3967 calls.
3968
fa337f3a
RB
39692014-01-30 Richard Biener <rguenther@suse.de>
3970
3971 PR c/59905
3972 * c-typeck.c (build_function_call_vec): Do not replace calls
3973 to a function via an incompatible type with a runtime abort.
3974
b72271b9
BI
39752014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3976
3977 * c-parser.c (c_parser_declaration_or_fndef): Replaced
3978 flag_enable_cilkplus with flag_cilkplus.
3979 (c_parser_direct_declarator_inner): Likewise.
3980 (c_parser_attribute_any_word): Likewise.
3981 (c_parser_attributes): Likewise.
3982 (c_parser_compound_statement): Likewise.
3983 (c_parser_statement_after_labels): Likewise.
3984 (c_parser_if_statement): Likewise.
3985 (c_parser_switch_statement): Likewise.
3986 (c_parser_do_statement): Likewise.
3987 (c_parser_for_statement): Likewise.
3988 (c_parser_unary_expression): Likewise.
3989 (c_parser_postfix_expression): Likewise.
3990 (c_parser_postfix_expression_after_primary): Likewise.
3991 (c_parser_postfix_expression_after_primary): Likewise.
3992 (c_parser_omp_clause_name): Likewise.
3993 (c_finish_omp_declare_simd): Likewise.
3994 (c_parser_cilk_verify_simd): Likewise.
3995 * c-typeck.c (build_array_ref): Likewise.
3996 (build_function_call_vec): Likewise.
3997 (convert_arguments): Likewise.
3998 (build_compound_expr): Likewise.
3999 (c_finish_return): Likewise.
4000 (c_finish_if_stmt): Likewise.
4001 (c_finish_loop): Likewise.
4002 (build_binary_op): Likewise.
4003
393e8e8b
MP
40042014-01-23 Marek Polacek <polacek@redhat.com>
4005
4006 PR c/59846
4007 * c-typeck.c (parser_build_binary_op): Use location instead of
4008 input_location.
4009 (build_binary_op): Pass location to shorten_compare.
4010
f04dda30
MP
40112014-01-23 Marek Polacek <polacek@redhat.com>
4012
4013 PR c/58346
4014 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
4015 an empty aggregate.
4016
789eadcd
MP
40172014-01-23 Marek Polacek <polacek@redhat.com>
4018
4019 PR c/59871
4020 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
4021 of a comma expression.
4022 (emit_side_effect_warnings): Likewise.
4023
40f14e9f
BI
40242014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
4025
4026 PR c/59825
4027 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
4028 function to use walk_tree and moved a lot of its functionality to
4029 expand_array_notations.
4030 (expand_array_notations): New function.
4031
74558dd9
BI
40322014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
4033
4034 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
4035 attribute an attribute without value.
4036
652fea39
JJ
40372014-01-23 Jakub Jelinek <jakub@redhat.com>
4038
4039 PR middle-end/58809
4040 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
4041 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
4042
f34f1c87
MP
40432014-01-22 Marek Polacek <polacek@redhat.com>
4044
4045 PR c/59891
4046 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
4047 of remove_c_maybe_const_expr on op1 and op2.
4048
241f845a
JJ
40492014-01-15 Jakub Jelinek <jakub@redhat.com>
4050
4051 PR c/58943
4052 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
4053 effects, preevaluate rhs using SAVE_EXPR first.
4054
9a74f20c
BI
40552014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
4056
4057 PR c++/59631
4058 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
4059 statements with if-elseif statements.
4060
96066ce1
MP
40612014-01-06 Marek Polacek <polacek@redhat.com>
4062
4063 PR c/57773
4064 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
4065 defined bit-field types only in ISO C.
4066
23a5b65a
RS
40672014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4068
4069 Update copyright years
4070
f9030485
RS
40712014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
4072
4073 * c-array-notation.c: Use the standard form for the copyright notice.
4074
41958c28
BI
40752013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
4076
4077 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
4078 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
4079 field in parser is not empty. If not-empty, call the function
4080 c_parser_finish_omp_declare_simd.
4081 (c_parser_cilk_clause_vectorlength): Modified function to be shared
4082 between SIMD-enabled functions and #pragma simd. Added new parameter.
4083 (c_parser_cilk_all_clauses): Modified the usage of the function
4084 c_parser_cilk_clause_vectorlength as mentioned above.
4085 (c_parser_cilk_simd_fn_vector_attrs): New function.
4086 (c_finish_cilk_simd_fn_tokens): Likewise.
4087 (is_cilkplus_vector_p): Likewise.
4088 (c_parser_omp_clause_name): Added checking for "vectorlength,"
4089 "nomask," and "mask" strings in clause name.
4090 (c_parser_omp_all_clauses): Added 3 new case statements:
4091 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
4092 PRAGMA_CILK_CLAUSE_NOMASK.
4093 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
4094 check for vector attribute and if so call the function
4095 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
4096 called the function c_finish_cilk_simd_fn_tokens.
4097 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
4098 parser field is non-empty. If so, parse them as you would parse
4099 the omp declare simd pragma.
4100 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
4101 Added a check when step is a parameter and flag it as error.
4102 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
4103 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
4104 pragma_omp_clause.
4105
cef0fd0e
TS
41062013-12-17 Thomas Schwinge <thomas@codesourcery.com>
4107
4108 * c-parser.c (c_parser_omp_parallel): Fix description.
4109
12893402
BI
41102013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
4111
4112 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
4113 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
4114 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
4115 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
4116
296674db
JM
41172013-12-04 Joseph Myers <joseph@codesourcery.com>
4118
4119 PR c/52023
4120 * c-parser.c (c_parser_alignas_specifier): Use
4121 c_sizeof_or_alignof_type instead of c_alignof.
4122 (c_parser_alignof_expression): Likewise, with min_alignof
4123 parameter depending on alignof spelling used.
4124
edd28054
MP
41252013-12-04 Marek Polacek <polacek@redhat.com>
4126
4127 PR c/54113
4128 * c-decl.c (start_function): Don't warn for missing prototype for
4129 inline functions.
4130
da0fc454
MP
41312013-12-03 Marek Polacek <polacek@redhat.com>
4132
4133 PR c/59351
4134 * c-decl.c (build_compound_literal): Allow compound literals with
4135 empty initial value.
4136
4c2ecab0
JM
41372013-12-02 Joseph Myers <joseph@codesourcery.com>
4138
4139 PR c/58235
4140 * c-typeck.c (build_modify_expr): Diagnose assignment to
4141 expression with array type.
4142
340baef7
JM
41432013-11-29 Joseph Myers <joseph@codesourcery.com>
4144
4145 PR c/42262
4146 * c-typeck.c (process_init_element): Do not treat a string as
4147 initializing a whole array when used with a designator for an
4148 individual element.
4149
6763b9f7
JM
41502013-11-29 Joseph Myers <joseph@codesourcery.com>
4151
4152 PR c/57574
4153 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
4154 an inline function following a static declaration.
4155
e7bd1de1
JJ
41562013-11-28 Jakub Jelinek <jakub@redhat.com>
4157
4158 PR c/59310
4159 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
4160 to p_name before calling c_parser_omp_teams instead of after.
4161 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
4162 argument. Remove unused p_name variable.
4163
0136f8f0
AH
41642013-11-27 Aldy Hernandez <aldyh@redhat.com>
4165 Jakub Jelinek <jakub@redhat.com>
4166
4167 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
4168 external_scope is NULL.
4169
241b71bb
TV
41702013-11-27 Tom de Vries <tom@codesourcery.com>
4171 Marc Glisse <marc.glisse@inria.fr>
4172
4173 PR c++/59032
4174 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
4175
2fb9a547
AM
41762013-11-22 Andrew MacLeod <amacleod@redhat.com>
4177
4178 * c-typeck.c: Add required include files from gimple.h.
4179
8400e75e
DM
41802013-11-22 David Malcolm <dmalcolm@redhat.com>
4181
4182 * c-decl.c (define_label, shadow_tag_warned)
4183 (check_bitfield_type_and_width, grokdeclarator, grokparms,
4184 store_parm_decls_newstyle, store_parm_decls_oldstyle)
4185 (declspecs_add_type): Remove use of in_system_header macro.
4186 * c-parser.c (c_parser_unary_expression): Likewise.
4187 * c-typeck.c (store_init_value, process_init_element)
4188 (c_start_case): Likewise.
4189
4190 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
4191 macro.
4192
4193 * c-parser.c (c_parser_set_source_position_from_token): Remove
4194 reference to in_system_header from comment.
4195
386b1f1f
RS
41962013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4197
4198 * c-decl.c (grokdeclarator): Update comment to refer to
4199 tree_to_[su]hwi rather than tree_low_cst.
4200
ae7e9ddd
RS
42012013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4202
4203 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
4204 tree_to_uhwi throughout.
4205
9439e9a1
RS
42062013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4207
4208 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
4209 throughout.
4210
9541ffee
RS
42112013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
4212
4213 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
4214 throughout.
4215
c02065fc
AH
42162013-11-15 Aldy Hernandez <aldyh@redhat.com>
4217
4218 * c-parser.c (c_parser_cilk_simd): New.
4219 (c_parser_cilk_verify_simd): New.
4220 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
4221 (c_parser_omp_for_loop): Add case for NE_EXPR.
4222 Set c_break_label for CILK_SIMD.
4223 (c_parser_cilk_clause_vectorlength): New.
4224 (c_parser_cilk_clause_linear): New.
4225 (c_parser_cilk_clause_name): New.
4226 (c_parser_cilk_all_clauses): New.
4227 * c-typeck.c (build_unary_op): Pass location argument to
4228 readonly_error.
4229 (build_modify_expr): Same.
4230 (build_asm_expr): Same.
4231 (c_finish_bc_stmt): Error on break/continue in loops.
4232
18f429e2
AM
42332013-11-14 Andrew MacLeod <amacleod@redhat.com>
4234
4235 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
4236
d8a2d370
DN
42372013-11-14 Diego Novillo <dnovillo@google.com>
4238
4239 * c-decl.c: Include print-tree.h.
4240 Include stor-layout.h.
4241 Include varasm.h.
4242 Include attribs.h.
4243 Include stringpool.h.
4244 * c-lang.c: Include fold-const.h.
4245 * c-parser.c: Include stringpool.h.
4246 Include attribs.h.
4247 Include stor-layout.h.
4248 Include varasm.h.
4249 Include trans-mem.h.
4250 * c-typeck.c: Include stor-layout.h.
4251 Include trans-mem.h.
4252 Include varasm.h.
4253 Include stmt.h.
4254
38b7bc7f
JM
42552013-11-13 Joseph Myers <joseph@codesourcery.com>
4256
4257 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
4258 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
4259 __auto_type.
4260 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
4261 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
4262 RID_AUTO_TYPE.
4263 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
4264 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
4265 (c_parser_declarator, c_parser_direct_declarator_inner)
4266 (c_parser_parameter_declaration, c_parser_type_name): All callers
4267 changed.
4268 (c_parser_declaration_or_fndef): Handle declarations with type
4269 determined from the initializer.
4270
45b0be94
AM
42712013-11-12 Andrew MacLeod <amacleod@redhat.com>
4272
18f429e2 4273 * c-typeck.c: Include gimplify.h.
45b0be94 4274
582d9b50
JM
42752013-11-12 Joseph Myers <joseph@codesourcery.com>
4276
4277 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
4278 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
4279 comment.
4280 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
4281 or _Thread_local as appropriate in diagnostics.
4282 (build_null_declspecs): Initialize ret->thread_gnu_p.
4283 (declspecs_add_scspec): Handle either __thread or _Thread_local
4284 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
4285 pedantic. Do not disallow _Thread_local extern and _Thread_local
4286 static.
4287
267bac10
JM
42882013-11-07 Joseph Myers <joseph@codesourcery.com>
4289 Andrew MacLeod <amacleod@redhat.com>
4290
4291 * c-aux-info.c (gen_type): Handle atomic qualifier.
4292 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
4293 qualifiers when compating types.
4294 (shadow_tag_warned): Handle atomic_p in declspecs.
4295 (quals_from_declspecs): Likewise.
4296 (start_decl): Use c_type_promotes_to when promoting argument
4297 types.
4298 (grokdeclarator): Handle _Atomic.
4299 (get_parm_info): Diagnose any qualifier on "void" as only
4300 parameter.
4301 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
4302 comparing types. Use c_type_promotes_to when promoting argument
4303 types.
4304 (finish_function): Use c_type_promotes_to when promoting argument
4305 types.
4306 (build_null_declspecs): Handle atomic_p in declspecs.
4307 (declspecs_add_qual): Handle RID_ATOMIC.
4308 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
4309 (c_token_starts_declspecs): Handle RID_ATOMIC.
4310 (c_parser_declspecs): Handle atomic type specifiers and
4311 qualifiers.
4312 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
4313 from types of expressions with atomic type.
4314 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
4315 (c_parser_attribute_any_word): Handle RID_ATOMIC.
4316 (c_parser_initializer, c_parser_initelt, c_parser_initval)
4317 (c_parser_statement_after_labels, c_parser_switch_statement)
4318 (c_parser_for_statement, c_parser_expr_no_commas)
4319 (c_parser_conditional_expression, c_parser_binary_expression)
4320 (c_parser_cast_expression, c_parser_unary_expression)
4321 (c_parser_postfix_expression)
4322 (c_parser_postfix_expression_after_primary, c_parser_expression):
4323 Use convert_lvalue_to_rvalue.
4324 (c_parser_expression_conv, c_parser_expr_list): Document
4325 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
4326 (c_parser_objc_synchronized_statement): Use
4327 convert_lvalue_to_rvalue.
4328 (c_parser_objc_selector): Handle RID_ATOMIC.
4329 (c_parser_objc_receiver, c_parser_array_notation): Use
4330 convert_lvalue_to_rvalue.
4331 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
4332 _Atomic (type-name).
4333 (struct c_declspecs): Add atomic_p field.
4334 (convert_lvalue_to_rvalue): Declare.
4335 * c-typeck.c (c_type_promotes_to): Promote atomic types to
4336 corresponding atomic types.
4337 (qualify_type): Don't add _Atomic qualifiers from second argument.
4338 (comp_target_types): Do not allow _Atomic mismatches.
4339 (type_lists_compatible_p): Do not remove atomic qualifiers when
4340 comparing types.
4341 (really_atomic_lvalue, convert_lvalue_to_rvalue)
4342 (build_atomic_assign): New functions.
4343 (build_unary_op): Use build_atomic_assign for atomic increment and
4344 decrement.
4345 (build_conditional_expr): Do not treat _Atomic void as a qualified
4346 version of void.
4347 (build_modify_expr): Use build_atomic_assign for atomic LHS.
4348 (find_anonymous_field_with_type, convert_to_anonymous_field)
4349 (convert_for_assignment): Do not remove atomic qualifiers when
4350 comparing types.
4351 (digest_init): Do not accept initialization of arrays of atomic
4352 elements by string constants.
4353 (build_asm_expr): Use convert_lvalue_to_rvalue.
4354 (build_binary_op): Do not treat _Atomic void as a qualified
4355 version of void.
4356
0c249d4b
DD
43572013-11-06 DJ Delorie <dj@redhat.com>
4358
4359 * c-decl.c (locate_old_decl): If a previous conflicting decl is
4360 both explicit and builtin, print the location of the explicit one.
4361
6d7f7e0a
TB
43622013-11-05 Tobias Burnus <burnus@net-b.de>
4363
4364 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
4365 c_parser_omp_distribute, c_parser_omp_teams,
4366 c_parser_omp_target, c_parser_omp_declare): Handle
4367 -fopenmp-simd.
4368
b906f4ca
MP
43692013-11-03 Marek Polacek <polacek@redhat.com>
4370
4371 * c-decl.c (grokdeclarator): Add VLA instrumentation.
4372
ee1d5a02
JJ
43732013-11-01 Jakub Jelinek <jakub@redhat.com>
4374
4375 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
4376 check_dup_generic at the end, unless remove is true.
4377 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
4378 remove = true;.
4379 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
4380
5a9785fb
JJ
43812013-10-31 Jakub Jelinek <jakub@redhat.com>
4382
4383 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
4384 with decl that is not pointer nor array.
4385
939b37da
BI
43862013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
4387
4388 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
4389 a spawning function is found.
4390 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
4391 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
4392 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
4393 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
4394 case.
4395 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
4396 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
4397 expr.
4398 (c_finish_return): Added a check to reject _Cilk_spawn in return
4399 expression.
4400 (build_cilk_spawn): New function.
4401 (build_cilk_sync): Likewise.
4402 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
4403
d4af74d4
TB
44042013-10-27 Tobias Burnus <burnus@net-b.de>
4405
4406 PR other/33426
4407 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
4408 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
4409 (c_parser_statement_after_labels): Update calls.
4410
d73749df 44112013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
4412
4413 PR other/33426
4414 * c-parser.c (c_parser_pragma, c_parser_for_statement):
4415 Handle PRAGMA_IVDEP.
4416 (c_parser_statement_after_labels): Update call.
4417
f28aa681
MP
44182013-10-24 Marek Polacek <polacek@redhat.com>
4419
4420 * c-parser.c (c_parser_struct_declaration): Add a comment.
4421 (c_parser_declarator): Don't allow _Alignas here.
4422
0645c1a2
AM
44232013-10-17 Andrew MacLeod <amacleod@redhat.com>
4424
4425 * c-parser.c: Include omp-low.h.
4426 * c-typeck.c: Likewise.
4427
568a31f2
MP
44282013-10-17 Marek Polacek <polacek@redhat.com>
4429
4430 PR c/58267
4431 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
4432 Document syntax of the array-declarator.
4433 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
4434 are not permitted.
4435 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
4436 (c_parser_struct_declaration): Likewise.
4437 (c_parser_declarator): Likewise.
4438 (c_parser_direct_declarator_inner): Likewise.
4439 (c_parser_parameter_declaration): Likewise.
4440 (c_parser_type_name): Likewise.
4441
acf0174b
JJ
44422013-10-11 Jakub Jelinek <jakub@redhat.com>
4443
4444 * c-lang.h (current_omp_declare_target_attribute): New extern
4445 decl.
4446 * c-parser.c: Include c-lang.h.
4447 (struct c_parser): Change tokens to c_token *.
4448 Add tokens_buf field. Change tokens_avail type to unsigned int.
4449 (c_parser_consume_token): If parser->tokens isn't
4450 &parser->tokens_buf[0], increment parser->tokens.
4451 (c_parser_consume_pragma): Likewise.
4452 (enum pragma_context): Add pragma_struct and pragma_param.
4453 (c_parser_external_declaration): Adjust
4454 c_parser_declaration_or_fndef caller.
4455 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
4456 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
4457 Adjust recursive call.
4458 (c_parser_struct_or_union_specifier): Use pragma_struct instead
4459 of pragma_external.
4460 (c_parser_parameter_declaration): Use pragma_param instead of
4461 pragma_external.
4462 (c_parser_compound_statement_nostart, c_parser_label,
4463 c_parser_for_statement): Adjust
4464 c_parser_declaration_or_fndef callers.
4465 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
4466 it through to c_parser_conditional_expression.
4467 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
4468 pass it through to c_parser_binary_expression. Adjust recursive
4469 call.
4470 (c_parser_binary_expression): Remove prec argument, add
4471 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
4472 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
4473 binop matches it, use build2 instead of parser_build_binary_op.
4474 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
4475 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
4476 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
4477 Handle pragma_struct and pragma_param the same as pragma_external.
4478 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
4479 (c_parser_omp_variable_list): Parse array sections for
4480 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
4481 (c_parser_omp_clause_collapse): Fully fold collapse expression.
4482 (c_parser_omp_clause_reduction): Handle user defined reductions.
4483 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
4484 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
4485 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
4486 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
4487 c_parser_omp_clause_depend, c_parser_omp_clause_map,
4488 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
4489 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
4490 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
4491 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
4492 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
4493 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
4494 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
4495 (c_parser_omp_for_loop): Add CODE argument, pass it through
4496 to c_finish_omp_for. Change last argument to cclauses,
4497 and adjust uses to grab parallel clauses from the array of all
4498 the split clauses. Adjust c_parser_binary_expression,
4499 c_parser_declaration_or_fndef and c_finish_omp_for callers.
4500 (omp_split_clauses): New function.
4501 (c_parser_omp_simd): New function.
4502 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
4503 Allow the function to be called also when parsing combined constructs,
4504 and call c_parser_omp_simd when parsing for simd.
4505 (c_parser_omp_sections_scope): If section-sequence doesn't start with
4506 #pragma omp section, require exactly one structured-block instead of
4507 sequence of statements.
4508 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
4509 Allow the function to be called also when parsing combined constructs.
4510 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
4511 Allow the function to be called also when parsing combined
4512 constructs.
4513 (c_parser_omp_taskgroup, c_parser_omp_cancel,
4514 c_parser_omp_cancellation_point, c_parser_omp_distribute,
4515 c_parser_omp_teams, c_parser_omp_target_data,
4516 c_parser_omp_target_update, c_parser_omp_target,
4517 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
4518 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
4519 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
4520 (c_parser_omp_construct): Add p_name and mask vars. Handle
4521 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
4522 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
4523 and c_parser_omp_sections callers.
4524 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
4525 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
4526 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
4527 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
4528 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
4529 OMP_CLAUSE_DEPEND.
4530 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
4531 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
4532 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
4533 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
4534 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
4535 * c-typeck.c: Include tree-inline.h.
4536 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
4537 handle_omp_array_sections_1, handle_omp_array_sections,
4538 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
4539 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
4540 user defined reductions.
4541 (c_tree_equal): New function.
4542 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
4543 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
4544 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
4545 c_check_omp_declare_reduction_r): New prototypes.
4546 * c-decl.c (current_omp_declare_target_attribute): New variable.
4547 (c_decl_attributes): New function.
4548 (start_decl, start_function): Use it instead of decl_attributes.
4549 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
4550 c_omp_reduction_decl, c_omp_reduction_lookup,
4551 c_check_omp_declare_reduction_r): New functions.
4552
0a6c2227
TT
45532013-09-25 Tom Tromey <tromey@redhat.com>
4554
4555 * Make-lang.in (c/gccspec.o): Remove.
4556 (CFLAGS-c/gccspec.o): New variable.
4557 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
4558 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
4559 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
4560
f3bc55f0
TT
45612013-09-25 Tom Tromey <tromey@redhat.com>
4562
4563 * Make-lang.in (c/gccspec.o): Don't use subshell.
4564
a24d975c
MP
45652013-09-18 Marek Polacek <polacek@redhat.com>
4566
4567 PR sanitize/58443
4568 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
4569 Remove unnecessary check.
4570
ce6923c5
MP
45712013-09-18 Marek Polacek <polacek@redhat.com>
4572
4573 PR sanitizer/58411
4574 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
4575 no_sanitize_undefined attribute.
4576
a1e51df9
KT
45772013-09-13 Kai Tietz <ktietz@redhat.com>
4578
4579 PR target/57848
4580 * c-decl.c (c_builtin_function_ext_scope): Remove
4581 wrong assumption that it is never called on prexisting
4582 symbol.
4583
0af94e6f
JR
45842013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4585
4586 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
4587
20059c8b
GDR
45882013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4589
4590 * c-objc-common.c (c_tree_printer): Tidy.
4591
de5a5fa1
MP
45922013-08-30 Marek Polacek <polacek@redhat.com>
4593
4594 * c-typeck.c (build_binary_op): Add division by zero and shift
4595 instrumentation.
4596
2531a1d9 45972013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 4598 Joseph Myers <joseph@codesourcery.com>
2531a1d9 4599
6e2bcc98 4600 PR c/35649
2531a1d9
JR
4601 * c-typeck.c (c_common_type): Prefer double_type_node over
4602 other REAL_TYPE types with the same precision.
4603 (convert_arguments): Likewise.
4604
025311c4
GDR
46052013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
4606
4607 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
4608 (c_initialize_diagnostics): Call a destructor for the early printer.
4609
da6ca2b5
GDR
46102013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4611
4612 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
4613 printer initialization.
4614
318cda85 46152013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 4616
318cda85
BI
4617 PR c/57490
4618 * c-array-notation.c (fix_conditional_array_notations_1): Added a
4619 check for truth values.
4620 (expand_array_notation_exprs): Added truth values case. Removed an
4621 unwanted else. Added for-loop to walk through subtrees in default
4622 case.
4623
b066401f
GDR
46242013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4625
4626 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
4627
fb48aadc
JM
46282013-07-23 Joseph Myers <joseph@codesourcery.com>
4629
4630 * c-parser.c (struct c_generic_association): Fix typo.
4631
433cc7b0
TT
46322013-07-23 Tom Tromey <tromey@redhat.com>
4633 Joseph Myers <joseph@codesourcery.com>
4634
4635 * c-parser.c (struct c_generic_association): New.
4636 (c_generic_association_d): New typedef.
4637 (c_parser_generic_selection): New function.
4638 (c_parser_postfix_expression): Handle RID_GENERIC.
4639
26d40c3d
JM
46402013-07-13 Jason Merrill <jason@redhat.com>
4641
4642 PR c++/57793
4643 * c-decl.c (finish_struct): Check for too-large class.
4644
ecdbd01a 46452013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
4646
4647 PR c/57821
4648 * c-typeck.c (set_init_index): When folding, check for index overflow.
4649
1141ed3f
BI
46502013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4651
4652 * c-parser.c (c_parser_array_notation): Removed rejection of array
4653 notations in an array of function pointers.
4654
713b46fa
BI
46552013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4656
4657 * c-array-notation.c (make_triplet_val_inv): New function.
4658 (create_cmp_incr): Likewise.
4659 (create_array_refs): Likewise.
4660 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
4661 Also modularized common parts between functions and called the function.
4662 (build_array_notation_expr): Likewise.
4663 (fix_conditional_array_notations_1): Likewise.
4664 (fix_array_notation_expr): Likewise.
4665 (fix_array_notation_call_expr): Likewise.
4666
92f20202
MP
46672013-06-18 Marek Polacek <polacek@redhat.com>
4668
4669 PR c/57630
4670 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
4671
73a23b06
BI
46722013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
4673
4674 * c-array-notation.c (build_array_notation_expr): Reject array notation
4675 mismatch between LHS and RHS even inside a call_expr. Also, removed
4676 a couple while statements that were dead code.
4677
00b8517d
BI
46782013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
4679
4680 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
4681 excessive precision expressions in function parameters. Also removed
4682 couple unwanted while statements.
4683
1509bdda
BI
46842013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4685
4686 * c-array-notation.c (expand_array_notation_exprs): Added
4687 ARRAY_NOTATION_REF case.
4688
d60f1706
BI
46892013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4690
4691 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
4692 function to c-family/array-notation-common.c.
4693 (is_cilkplus_reduce_builtin): Likewise.
4694 (find_rank): Likewise.
4695 (extract_array_notation_exprs): Likewise.
4696 (replace_array_notations): Likewise.
4697 (find_inv_trees): Likewise.
4698 (replace_inv_trees): Likewise.
4699 (contains_array_notation_expr): Likewise.
4700 (find_correct_array_notation_type): Likewise.
4701 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
4702 (struct inv_list): Moved this to c-family/array-notation-common.c.
4703 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
4704
6d6efbb3
BI
47052013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
4706
4707 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
4708 reduction functions outside the for-loop. Added a check if the fundecl
4709 is non-NULL. Finally, removed an unwanted if-statement, and made the
4710 body unconditional.
4711
25c22937
BI
47122013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
4713
4714 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
4715 condition of the if-statement matches the rank of else-block and then-
4716 block when array notations are used.
4717 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
4718 expression after the entire function body is parsed.
4719 (c_parser_expr_no_commas): Delayed creating array notation expressions
4720 to the end of function parsing.
4721 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
4722 whole if-statement instead of just the condition.
4723 (expand_array_notation_exprs): Added MODIFY_EXPR case.
4724
edd25645
BI
47252013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
4726
4727 PR c/57474
4728 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
4729 array to NULL_TREE if they are unused. Also added a check for the
4730 field to be NULL before its fields are used in future.
4731
065ce7f1
RO
47322013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4733
4734 PR bootstrap/57450
4735 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
4736 (build_array_notation_expr): Likewise.
4737
36536d79
BI
47382013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4739
4740 * c-typeck.c (build_array_ref): Added a check to see if array's
4741 index is greater than one. If true, then emit an error.
4742 (build_function_call_vec): Exclude error reporting and checking
4743 for builtin array-notation functions.
4744 (convert_arguments): Likewise.
4745 (c_finish_return): Added a check for array notations as a return
4746 expression. If true, then emit an error.
4747 (c_finish_loop): Added a check for array notations in a loop
4748 condition. If true then emit an error.
4749 (lvalue_p): Added a ARRAY_NOTATION_REF case.
4750 (build_binary_op): Added a check for array notation expr inside
4751 op1 and op0. If present, we call another function to find correct
4752 type.
4753 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
4754 * c-parser.c (c_parser_compound_statement): Check if array
4755 notation code is used in tree, if so, then transform them into
4756 appropriate C code.
4757 (c_parser_expr_no_commas): Check if array notation is used in LHS
4758 or RHS, if so, then build array notation expression instead of
4759 regular modify.
4760 (c_parser_postfix_expression_after_primary): Added a check for
4761 colon(s) after square braces, if so then handle it like an array
4762 notation. Also, break up array notations in unary op if found.
4763 (c_parser_direct_declarator_inner): Added a check for array
4764 notation.
4765 (c_parser_compound_statement): Added a check for array notation in
4766 a stmt. If one is present, then expand array notation expr.
4767 (c_parser_if_statement): Likewise.
4768 (c_parser_switch_statement): Added a check for array notations in
4769 a switch statement's condition. If true, then output an error.
4770 (c_parser_while_statement): Similarly, but for a while.
4771 (c_parser_do_statement): Similarly, but for a do-while.
4772 (c_parser_for_statement): Similarly, but for a for-loop.
4773 (c_parser_unary_expression): Check if array notation is used in a
4774 pre-increment or pre-decrement expression. If true, then expand
4775 them.
4776 (c_parser_array_notation): New function.
4777 * c-array-notation.c: New file.
4778 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
4779
cd192ccc
MS
47802013-05-23 Mike Stump <mikestump@comcast.net>
4781
4782 * c-typeck.c (convert_for_assignment): Handle references to memory
4783 spaces better.
4784
427b248d
JM
47852013-05-16 Jason Merrill <jason@redhat.com>
4786
4787 * Make-lang.in (cc1$(exeext)): Use link mutex.
4788
44d90fe1
PC
47892013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4790
4791 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
4792 to simply use OPT_Wpointer_arith.
4793 (build_unary_op): Likewise.
4794
4e7d7b3d
JJ
47952013-04-03 Jakub Jelinek <jakub@redhat.com>
4796
4797 PR c/19449
4798 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
4799 argument. If set, or it temporarily for parsing of the first
4800 argument into force_folding_builtin_constant_p.
4801 (c_parser_postfix_expression): Adjust callers.
4802
839b422f
RB
48032013-03-21 Richard Biener <rguenther@suse.de>
4804
4805 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
4806 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
4807
2ee028f1
MP
48082013-02-12 Marek Polacek <polacek@redhat.com>
4809
4810 PR c/44938
4811 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
4812 origtypes to NULL.
4813
8824edff
JJ
48142013-01-24 Jakub Jelinek <jakub@redhat.com>
4815
4816 PR c/56078
4817 * c-typeck.c (set_nonincremental_init_from_string): If
4818 constructor_max_index is NULL, treat it as if tree_int_cst_lt
4819 returned false.
4820 (process_init_element): Likewise.
4821
eadd3d0d
JJ
48222012-12-20 Jakub Jelinek <jakub@redhat.com>
4823
4824 PR c++/55619
4825 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
4826 argument, don't call default_function_array_conversion
4827 nor c_fully_fold here.
4828 (c_parser_asm_statement): Adjust callers.
4829 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
4830 and outputs here, and call default_function_array_conversion
4831 on inputs that don't need to be addressable.
4832
f8a93a2e
JJ
48332012-12-18 Jakub Jelinek <jakub@redhat.com>
4834
4835 PR c/39464
4836 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
4837 warning require that both c_common_unsigned_type as well as
4838 c_common_signed_type is the same for both mvl and mvr types.
4839
9771b263
DN
48402012-11-16 Diego Novillo <dnovillo@google.com>
4841
4842 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
4843
4844 * c-common.c: Use new vec API in vec.h.
4845 * c-common.h: Likewise.
4846 * c-gimplify.c: Likewise.
4847 * c-pragma.c: Likewise.
4848 * c-pretty-print.c: Likewise.
4849 * c-pretty-print.h: Likewise.
4850 * c-semantics.c: Likewise.
4851 * c-decl.c: Likewise.
4852 * c-parser.c: Likewise.
4853 * c-tree.h: Likewise.
4854 * c-typeck.c: Likewise.
4855
880661a4
JW
48562012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4857
4858 PR c++/54930
4859 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
4860
077d1abe
MLI
48612012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4862
4863 PR c/53066
4864 * c-decl.c (warn_if_shadowing): Do not warn if a variable
4865 shadows a function, unless the variable is a function or a
4866 pointer-to-function.
4867
3a785c97
JJ
48682012-10-12 Jakub Jelinek <jakub@redhat.com>
4869
4870 PR c/54381
4871 * c-parser.c (struct c_tree_loc_pair): Removed.
4872 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
4873 add location_t * and tree * arguments, fill in array of 3
4874 sizeof_arg trees and corresponding locs.
4875 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
4876 c_parser_expr_list callers.
4877 (c_parser_postfix_expression_after_primary): Likewise. Pass
4878 array of 3 sizeof_arg trees and locs (corresponding to first
4879 3 arguments) to sizeof_pointer_memaccess_warning.
4880
703c8606
LC
48812012-10-09 Lawrence Crowl <crowl@google.com>
4882
4883 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
4884 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
4885 hash table.
4886
5d9de0d0
PC
48872012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4888
4889 PR c++/54194
4890 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
4891 call.
4892
a212e43f
MG
48932012-10-09 Marc Glisse <marc.glisse@inria.fr>
4894
4895 PR c++/54427
4896 * c-typeck.c: Include c-common.h.
4897 (enum stv_conv): Moved to c-common.h.
4898 (scalar_to_vector): Moved to c-common.c.
4899 (build_binary_op): Adapt to scalar_to_vector's new prototype.
4900 * Make-lang.in: c-typeck.c depends on c-common.h.
4901
3b78de56
AC
49022012-10-04 Arnaud Charlet <charlet@adacore.com>
4903
4904 * c-decl.c (c_write_global_declarations): Fix handling of
4905 -fdump-ada-spec*.
4906
78c60e3d
SS
49072012-09-30 Sharad Singhai <singhai@google.com>
4908
4909 * c-decl.c (c_write_global_declarations): Use a different method
4910 to determine if the dump has ben initialized.
4911
9f33203d
JM
49122012-09-14 Joseph Myers <joseph@codesourcery.com>
4913
4914 PR c/54552
4915 * c-typeck.c (c_cast_expr): When casting to a type requiring
4916 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
4917 c_fully_fold first.
4918
a27d595d
JM
49192012-09-14 Joseph Myers <joseph@codesourcery.com>
4920
4921 PR c/54103
4922 * c-typeck.c (build_unary_op): Pass original argument of
4923 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
4924 any C_MAYBE_CONST_EXPR, if it has integer operands.
4925 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
4926 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
4927 to c_objc_common_truthvalue_conversion, then remove any
4928 C_MAYBE_CONST_EXPR, if they have integer operands. Use
4929 c_objc_common_truthvalue_conversion not
4930 c_common_truthvalue_conversion.
4931 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
4932 call note_integer_operands for arguments with integer operands
4933 that are not integer constants.
4934
9feb29df
JJ
49352012-09-13 Jakub Jelinek <jakub@redhat.com>
4936
4937 PR c/54559
4938 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
4939 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
4940
d409320c
JJ
49412012-08-31 Jakub Jelinek <jakub@redhat.com>
4942
4943 PR c/54428
4944 * c-convert.c (convert): Don't call fold_convert_loc if
4945 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
4946 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
4947 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
4948
6265d07c
JJ
49492012-08-24 Jakub Jelinek <jakub@redhat.com>
4950
4951 PR c/54355
4952 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
4953 for nested and empty_ok arguments in the call to
4954 c_parser_declaration_or_fndef.
4955
1a4049e7
JJ
49562012-08-17 Jakub Jelinek <jakub@redhat.com>
4957
4958 * c-tree.h (c_last_sizeof_arg): Declare.
4959 * c-parser.c (struct c_tree_loc_pair): New type.
4960 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
4961 non-NULL.
4962 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
4963 (c_parser_postfix_expression_after_primary): Likewise. Call
4964 sizeof_pointer_memaccess_warning if needed.
4965 (sizeof_ptr_memacc_comptypes): New function.
4966 * c-typeck.c (c_last_sizeof_arg): New global variable.
4967 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
4968
0229aee9
UB
49692012-07-24 Uros Bizjak <ubizjak@gmail.com>
4970
4971 * c-lang.h (lang_decl): Add variable_size GTY option.
4972
7ee2468b
SB
49732012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4974
4975 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
4976 * Make-lang.in: Fix dependencies.
4977
d4a10d0a
SB
49782012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4979
4980 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
4981 and add language Makefile hooks.
4982 * config-lang.in: New file.
4983 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
4984 add the required "normal" config-lang.in rules.
4985 * c-lang.h: Moved from gcc/ to here.
4986 * c-tree.h: Likewise.
4987 * c-objc-common.c: Likewise.
4988 * c-objc-common.h: Likewise.
4989 * c-typeck.c: Likewise.
4990 * c-convert.c: Likewise.
4991 * c-lang.c: Likewise.
4992 * c-aux-info.c: Likewise.
4993 * c-errors.c: Likewise.
4994 * gccspec.c: Likewise.
4995 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
4996 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
4997\f
cbe34bb5 4998Copyright (C) 2012-2017 Free Software Foundation, Inc.
d4a10d0a
SB
4999
5000Copying and distribution of this file, with or without modification,
5001are permitted in any medium without royalty provided the copyright
5002notice and this notice are preserved.