]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
no-asan-check-glob.c: Add -ffat-lto-objects to dg-options, fix up dg-skip-if.
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
7ccb1a11
JJ
12015-03-10 Jakub Jelinek <jakub@redhat.com>
2
3 PR c/65120
4 * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
5 before preparing arguments to warn_logical_not_parentheses.
6
01177669
JJ
72015-03-09 Jakub Jelinek <jakub@redhat.com>
8
9 PR c/65120
10 * c-typeck.c (parser_build_binary_op): Don't warn for
11 !!x == y or !b == y where b is _Bool.
12
802ac282
MP
132015-03-09 Marek Polacek <polacek@redhat.com>
14
15 * c-convert.c (convert): Make use of do_ubsan_in_current_function.
16 * c-decl.c (grokdeclarator): Likewise.
17 * c-typeck.c (build_binary_op): Likewise.
18
e5165b60
MP
192015-02-27 Marek Polacek <polacek@redhat.com>
20
21 PR c/65228
22 * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
23
065d214c
MP
242015-02-14 Marek Polacek <polacek@redhat.com>
25
26 PR c/64768
27 * c-decl.c (grokdeclarator): Set the range of a flexible array member
28 declared through a typedef name.
29
e5d9235b
MP
302015-02-13 Marek Polacek <polacek@redhat.com>
31
32 PR c/65050
33 * c-decl.c (grokdeclarator): Print also the type when giving
34 the error message about array's incomplete element type.
35
fa01ffcc
JJ
362015-02-11 Jakub Jelinek <jakub@redhat.com>
37
38 PR c/64824
39 * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
40 check in the POP macro.
41
c3e38a03
MP
422015-02-09 Marek Polacek <polacek@redhat.com>
43
44 PR c/64856
45 * c-typeck.c (process_init_element): Don't always wrap
46 COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
47 initializing a range of elements.
48
4886ec8e
JJ
492015-02-04 Jakub Jelinek <jakub@redhat.com>
50
51 PR c/64824
52 PR c/64868
53 * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
54
c3e38a03 552015-02-02 Bruno Loff <bruno.loff@gmail.com>
a4bb6959
BL
56
57 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
58 processing enum declaration.
59
7b33f0c8
MP
602015-01-29 Marek Polacek <polacek@redhat.com>
61
62 PR c/64709
63 * c-typeck.c (pop_init_level): If constructor_elements has
64 exactly one element with integer_zerop value, set constructor_zeroinit
65 to 1. Remove braces around warning_init call.
66
dea63e49
JJ
672015-01-27 Jakub Jelinek <jakub@redhat.com>
68
69 PR c/64766
70 * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
71 of FUNCTION_DECLs with error_mark_node.
72
d38f7dce
JJ
732015-01-26 Jakub Jelinek <jakub@redhat.com>
74
75 PR c/64778
76 * c-typeck.c (convert_arguments): Return -1 if there are
77 error_args, even if we've diagnosed too many arguments.
78
cbf5d0e7
RB
792015-01-21 Richard Biener <rguenther@suse.de>
80
81 PR middle-end/64313
82 * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
83 for builtins the user declared correctly.
84
41dbbb37
TS
852015-01-15 Thomas Schwinge <thomas@codesourcery.com>
86 Bernd Schmidt <bernds@codesourcery.com>
87 Cesar Philippidis <cesar@codesourcery.com>
88 James Norris <jnorris@codesourcery.com>
89 Jakub Jelinek <jakub@redhat.com>
90 Ilmir Usmanov <i.usmanov@samsung.com>
91
92 * c-parser.c: Include "gomp-constants.h".
93 (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
94 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
95 Use OMP_CLAUSE_SET_MAP_KIND.
96 (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
97 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
98 (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
99 PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
100 PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
101 (c_parser_omp_clause_name): Handle "auto", "async", "copy",
102 "copyout", "create", "delete", "deviceptr", "gang", "host",
103 "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
104 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
105 "present_or_create", "pcreate", "seq", "self", "vector",
106 "vector_length", "wait", "worker".
107 (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
108 (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
109 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
110 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
111 (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
112 (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
113 (c_parser_oacc_data_clause_deviceptr)
114 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
115 (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
116 (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
117 (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
118 (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
119 (c_parser_oacc_parallel, c_parser_oacc_update)
120 (c_parser_oacc_wait): New functions.
121 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
122 (c_finish_oacc_data): New prototypes.
123 * c-typeck.c: Include "gomp-constants.h".
124 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
125 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
126 OMP_CLAUSE_SET_MAP_KIND.
127 (c_finish_oacc_parallel, c_finish_oacc_kernels)
128 (c_finish_oacc_data): New functions.
129 (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
130 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
131 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
132 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
133 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
134 GOMP_MAP_FORCE_DEVICEPTR.
135
adfac8df
JJ
1362015-01-09 Michael Collison <michael.collison@linaro.org>
137
138 * c-array-notation.c: Include hash-set.h, machmode.h,
139 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
140 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
141 * c-aux-info.c: Ditto.
142 * c-convert.c: Ditto.
143 * c-decl.c: Ditto.
144 * c-errors.c: Ditto.
145 * c-lang.c: Dittoxs.
146 * c-objc-common.c: Ditto.
147 * c-parser.c: Ditto.
148 * c-typeck.c: Include hash-set.h, machmode.h,
149 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
150 fold-const.h, wide-int.h, inchash.h, real.h and
151 fixed-value.h due to flattening of tree.h.
152
2cc901dc
MP
1532015-01-07 Marek Polacek <polacek@redhat.com>
154
155 PR c/64417
156 * c-typeck.c (process_init_element): Disallow initialization of
157 a flexible array member with a string constant if the structure
158 is in an array.
159
5624e564
JJ
1602015-01-05 Jakub Jelinek <jakub@redhat.com>
161
e5341100
JJ
162 PR sanitizer/64344
163 * c-typeck.c (convert_for_assignment, c_finish_return): For
164 -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
165 types also set in_late_binary_op around convert call.
166 * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
167 to integral type casts, if not in_late_binary_op, pass c_fully_fold
168 result on expr as last argument to ubsan_instrument_float_cast,
169 if in_late_binary_op, don't use c_save_expr but save_expr.
170
5624e564
JJ
171 Update copyright years.
172
5bd012f8
MP
1732015-01-05 Marek Polacek <polacek@redhat.com>
174
175 PR c/64423
176 * c-typeck.c (build_array_ref): Pass loc down to
177 warn_array_subscript_with_type_char.
178
768952be
MU
1792014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
180
181 * c-typeck.c: New behavious for pointers to arrays with qualifiers
182 (common-pointer-type): For pointers to arrays take qualifiers from
183 element type.
184 (build_conditional_expr): Add warnings for lost qualifiers.
185 (comp-target-types): Allow pointers to arrays with different qualifiers.
186 (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
187 WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
188 to PEDWARN_FOR_QUALIFIERS.
189
8f94a8c4
JJ
1902014-12-17 Jakub Jelinek <jakub@redhat.com>
191
192 PR sanitizer/64289
193 * c-convert.c: Include ubsan.h.
194 (convert): For real -> integral casts and
195 -fsanitize=float-cast-overflow don't call convert_to_integer, but
196 instead instrument the float cast directly.
197
b731b390
JJ
1982014-11-29 Jakub Jelinek <jakub@redhat.com>
199
200 * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
201 c_finish_stmt_expr): Remove NULL last argument from
202 create_tmp_var_raw and create_tmp_var calls.
203 * c-array-notation.c (fix_builtin_array_notation_fn,
204 build_array_notation_expr, fix_conditional_array_notations_1,
205 fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
206
541e35a6
MP
2072014-11-28 Marek Polacek <polacek@redhat.com>
208
209 PR c/63862
210 * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
211 convert the right operand to integer type.
212
b286be94
MP
2132014-11-25 Marek Polacek <polacek@redhat.com>
214
215 PR c/63877
216 * c-decl.c (start_function): Disable -Wmissing-declarations warning
217 for inline functions.
218
aa7da51a
JJ
2192014-11-21 Jakub Jelinek <jakub@redhat.com>
220
221 PR target/63764
222 * c-typeck.c (build_array_ref): Adjust
223 convert_vector_to_pointer_for_subscript caller. If it returns true,
224 call non_lvalue_loc on the result.
225
d876207f
RB
2262014-11-11 Richard Biener <rguenther@suse.de>
227
228 * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
229 to true.
230
e5e44252
AK
2312014-11-10 Andi Kleen <ak@linux.intel.com>
232
233 PR c/60804
234 * c-parser.c (c_parser_statement_after_labels): Call
235 check_no_cilk.
236 (c_parser_if_statement): Dito.
237 (c_parser_switch_statement): Dito.
238 (c_parser_while_statement): Dito.
239 (c_parser_do_statement): Dito.
240 (c_parser_for_statement): Dito.
241 * c-typeck.c (c_finish_loop): Dito.
242
13c21655
PC
2432014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
244
245 * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
246 OPT_Wshift_count_overflow in the warnings.
247
2d51fcef
MP
2482014-10-30 Marek Polacek <polacek@redhat.com>
249
250 * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
251 print the stripped version as well, if they're not the same.
252
ef4bddc2
RS
2532014-10-29 Richard Sandiford <richard.sandiford@arm.com>
254
255 * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
256 machine_mode.
257
c582198b
AM
2582014-10-28 Andrew MacLeod <amacleod@redhat.com>
259
260 * c-decl.c: Adjust include files.
261 * c-parser.c: Ditto.
262
ddc8de03
PM
2632014-10-27 Phil Muldoon <pmuldoon@redhat.com>
264 Tom Tromey <tromey@redhat.com>
265
266 * c-tree.h (enum c_oracle_request): New.
267 (c_binding_oracle_function): New typedef.
268 (c_binding_oracle, c_pushtag, c_bind): Declare.
269 * c-decl.c (c_binding_oracle): New global.
270 (I_SYMBOL_CHECKED): New macro.
271 (i_symbol_binding): New function.
272 (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
273 (I_TAG_CHECKED): New macro.
274 (i_tag_binding): New function.
275 (I_TAG_BINDING, I_TAG_DECL): Redefine.
276 (I_LABEL_CHECKED): New macro.
277 (i_label_binding): New function.
278 (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
279 (c_print_identifier): Save and restore c_binding_oracle.
280 (c_pushtag, c_bind): New functions.
281
60393bbc
AM
2822014-10-27 Andrew MacLeod <amacleod@redhat.com>
283
284 * c-typeck.c: Adjust include files.
285
d723bb7c
MLI
2862014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
287
288 PR c++/53061
289 * c-objc-common.c (c_objc_common_init): Do not do diagnostics
290 initialization here...
291 (c_initialize_diagnostics): ... but here. Set defaults after
292 building pretty-printer.
293
1bc5a451
MP
2942014-10-23 Marek Polacek <polacek@redhat.com>
295
296 PR c/63626
297 * c-decl.c (pop_scope): Don't print warning in external_scope.
298
4435bb92
MP
2992014-10-19 Marek Polacek <polacek@redhat.com>
300
301 PR c/63567
302 * c-typeck.c (output_init_element): Allow initializing objects with
303 static storage duration with compound literals even in C99 and add
304 pedwarn for it.
305
7278465e
MP
3062014-10-17 Marek Polacek <polacek@redhat.com>
307
308 PR c/63567
309 * c-typeck.c (digest_init): Allow initializing objects with static
310 storage duration with compound literals even in C99 and add pedwarn
311 for it.
312
d9b7be2e
MP
3132014-10-17 Marek Polacek <polacek@redhat.com>
314
315 PR c/63543
316 * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
317 * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
318 error multiple times. Print the type.
319
f406ae1f
MP
3202014-10-17 Marek Polacek <polacek@redhat.com>
321
322 PR c/63549
323 * c-typeck.c (build_array_ref): Bail if the index in an incomplete
324 type.
325
92574c7c
MP
3262014-10-17 Marek Polacek <polacek@redhat.com>
327
328 * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
329 (start_function): Use OPT_Wimplicit_int instead of 0.
330 (store_parm_decls_oldstyle): Likewise.
331
1bc4a978
MT
3322014-10-17 Alan Modra <amodra@gmail.com>
333
334 PR middle-end/61848
335 * c-decl.c (merge_decls): Don't merge section name or tls model
336 to newdecl symtab node, instead merge to olddecl. Override
337 existing olddecl section name. Set tls_model for all thread-local
338 vars, not just OMP thread-private ones. Remove incorrect comment.
339
83685514
AM
3402014-10-16 Andrew MacLeod <amacleod@redhat.com>
341
342 * c-decl.c: Adjust include files.
343
78a7c317
DD
3442014-10-14 DJ Delorie <dj@redhat.com>
345
346 * c-parser.c (c_parse_init): Add RID entries for each __intN.
347 (c_token_starts_typename): Check all __intN, not just __int128.
348 (c_token_starts_declspecs): Likewise.
349 (c_parser_declspecs): Likewise.
350 (c_parser_attribute_any_word): Likewise.
351 (c_parser_objc_selector): Likewise.
352 * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
353 (struct c_declspecs): Add int_n_idx field to record *which* __intN
354 is specified.
355 * c-decl.c (declspecs_add_type): Check for all __intN, not just
356 __int128.
357 (finish_declspecs): Likewise.
358
74d98c1e
AB
3592014-10-13 Anthony Brandon <anthony.brandon@gmail.com>
360
361 * c-parser.c (c_parser_all_labels): New function to replace
362 the duplicate code.
363 (c_parser_statement): Call the new function.
364
84937de2
MP
3652014-10-09 Marek Polacek <polacek@redhat.com>
366
367 PR c/63480
368 * c-typeck.c (pop_init_level): Don't warn about initializing
369 with { }.
370
0382aaa0
MP
3712014-10-07 Marek Polacek <polacek@redhat.com>
372
373 PR c/59717
374 * c-decl.c (header_for_builtin_fn): New function.
375 (implicitly_declare): Suggest which header to include.
376
7a0ca710
MP
3772014-10-07 Marek Polacek <polacek@redhat.com>
378
379 * c-convert.c (convert): Use error_operand_p.
380 * c-typeck.c (require_complete_type): Likewise.
381 (really_atomic_lvalue): Likewise.
382 (digest_init): Likewise.
383 (handle_omp_array_sections_1): Likewise.
384
6bc8a126
MP
3852014-10-03 Marek Polacek <polacek@redhat.com>
386
387 PR c/63453
388 * c-decl.c (pop_scope): Don't warn about "inline function declared
389 but never defined" for functions marked with gnu_inline attribute.
390
d90c0a59
JJ
3912014-09-25 Jakub Jelinek <jakub@redhat.com>
392
393 PR c++/63249
394 * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
395 on low_bound and length.
396
083e891e
MP
3972014-09-24 Marek Polacek <polacek@redhat.com>
398
399 PR c/61405
400 PR c/53874
401 * c-parser.c: Don't define CPP_KEYWORD.
402 (c_parser_switch_statement): Pass original type to c_finish_case.
403 * c-tree.h (c_finish_case): Update declaration.
404 * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it
405 conditionally to c_do_switch_warnings.
406
8d95fe25
MP
4072014-09-03 Marek Polacek <polacek@redhat.com>
408
409 PR c/62024
410 * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
411 conversions.
412
9a771876
JJ
4132014-09-02 Jakub Jelinek <jakub@redhat.com>
414 Balaji V. Iyer <balaji.v.iyer@intel.com>
415 Igor Zamyatin <igor.zamyatin@intel.com>
416
417 * c-parser.c (c_parser_cilk_for): New function.
418 (c_parser_cilk_grainsize): Likewise.
419 (c_get_temp_regvar): Likewise.
420 (c_parser_statement_after_labels): Added RID_CILK_FOR case.
421 (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
422 (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
423 * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
424 case.
425
b7679d96
CG
4262014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
427
428 * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
429 with using HOST_WIDE_INT without truncation to 'int'
430
59ea0364
MP
4312014-08-22 Marek Polacek <polacek@redhat.com>
432
433 PR c++/62199
434 * c-typeck.c (parser_build_binary_op): Adjust call to
435 warn_logical_not_parentheses.
436
671a475e
IZ
4372014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
438
439 PR other/62008
440 * c-parser.c (c_parser_array_notation): Check for correct
441 type of an array added.
442
04159acf
MP
4432014-08-19 Marek Polacek <polacek@redhat.com>
444
445 PR c++/62153
446 * c-typeck.c (build_binary_op): If either operand of a comparison
447 is a boolean expression, call maybe_warn_bool_compare.
448
c77935ee
PP
4492014-08-19 Patrick Palka <ppalka@gcc.gnu.org>
450
451 PR c/45584
452 * c-typeck.c (build_c_cast): Do a conversion even when the
453 TYPE_MAIN_VARIANTs are the same.
454
35aff4fb
MP
4552014-08-19 Marek Polacek <polacek@redhat.com>
456
457 * c-decl.c (diagnose_mismatched_decls): Unconditionally call
458 pedwarn_c99 instead of pedwarn.
459 (grokfield): Likewise.
460 (warn_defaults_to): New function.
461 (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
462 Unconditionally call pedwarn_c99 instead of pedwarn.
463 (start_function): Call warn_defaults_to instead of pedwarn_c99.
464 (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
465 check flag_isoc11 before.
466 * c-errors.c (pedwarn_c99): Change the return type to bool.
467 Handle -Wc99-c11-compat.
468 * c-parser.c (disable_extension_diagnostics): Handle
469 warn_c99_c11_compat.
470 (restore_extension_diagnostics): Likewise.
471 (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
472 instead of pedwarn, don't check flag_isoc11 before.
473 (c_parser_declspecs): Likewise.
474 (c_parser_alignas_specifier): Likewise.
475 (c_parser_alignof_expression): Likewise.
476 (c_parser_generic_selection): Likewise.
477 * c-tree.h (pedwarn_c99): Update declaration.
478 * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
479 of pedwarn_c99.
480
177cce46
MP
4812014-08-19 Marek Polacek <polacek@redhat.com>
482
483 * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
484 to pedwarn_c90.
485 * c-errors.c: Include "opts.h".
486 (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
487 * c-parser.c (disable_extension_diagnostics): Handle negative value
488 of warn_c90_c99_compat, too.
489 (restore_extension_diagnostics): Likewise.
490 (c_parser_compound_statement_nostart): Pass
491 OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
492
6dc99c33
MP
4932014-08-12 Marek Polacek <polacek@redhat.com>
494
495 * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
496 Add pedwarn.
497 (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
498 Likewise.
499 (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
500
f3bede71
MP
5012014-08-10 Marek Polacek <polacek@redhat.com>
502
503 PR c/51849
504 * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
505 Call pedwarn_c90 instead of pedwarn.
506 (check_bitfield_type_and_width): Likewise.
507 (declspecs_add_qual): Likewise.
508 (declspecs_add_type): Likewise.
509 (warn_variable_length_array): Unify function for -pedantic and -Wvla.
510 Adjust to only call pedwarn_c90.
511 (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
512 pedwarn_c90 instead of pedwarn.
513 * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
514 * c-parser.c (disable_extension_diagnostics): Handle
515 warn_c90_c99_compat.
516 (restore_extension_diagnostics): Likewise.
517 (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
518 pedwarn_c90 instead of pedwarn.
519 (c_parser_initelt): Likewise.
520 (c_parser_postfix_expression): Likewise.
521 (c_parser_postfix_expression_after_paren_type): Likewise.
522 (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
523 * c-tree.h: Fix formatting.
524 * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
525 pedwarn_c90 instead of pedwarn.
526
9f25a338
TS
5272014-08-07 Trevor Saunders <tsaunders@mozilla.com>
528
529 * c-typeck.c: Remove include of pointer-set.h.
530
044331a8
MP
5312014-08-07 Marek Polacek <polacek@redhat.com>
532
533 * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
534
b787e7a2
TS
5352014-08-02 Trevor Saunders <tsaunders@mozilla.com>
536
537 * c-typeck.c: Use hash_map instead of pointer_map.
538
6e2830c3
TS
5392014-08-02 Trevor Saunders <tsaunders@mozilla.com>
540
541 * c-decl.c: Use hash_set instead of pointer_set.
542
a7ee52fb
IZ
5432014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
544
545 PR middle-end/61455
546 * c-array-notation.c (expand_array_notations): Handling
547 of DECL_EXPR added.
548
b4dfdc11
MG
5492014-07-31 Marc Glisse <marc.glisse@inria.fr>
550
551 PR c++/60517
552 * c-typeck.c (c_finish_return): Return 0 instead of the address of
553 a local variable.
554
976d5a22
TT
5552014-07-30 Tom Tromey <tromey@redhat.com>
556
557 * c-typeck.c (struct constructor_stack) <designator_depth>: New
558 field.
559 (really_start_incremental_init, push_init_level): Initialize
560 designator_depth.
561 (pop_init_level): Set global designator_depth.
562 (process_init_element): Check for designated_init attribute.
563
30281de2
MP
5642014-07-20 Marek Polacek <polacek@redhat.com>
565
566 PR c/61852
567 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
568 (implicitly_declare): Pass location to implicit_decl_warning.
569
b108f48f
JJ
5702014-07-14 Jakub Jelinek <jakub@redhat.com>
571
572 PR middle-end/61294
573 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
574 If non-NULL, call c_parser_check_literal_zero.
575 (c_parser_check_literal_zero): New function.
576 (c_parser_postfix_expression_after_primary): Adjust
577 c_parser_expr_list caller, handle -Wmemset-transposed-args.
578
773ec47f
MP
5792014-07-06 Marek Polacek <polacek@redhat.com>
580
581 PR c/6940
582 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
583 * c-tree.h (C_ARRAY_PARAMETER): Define.
584 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
585 function parameter.
586
22e1cf1c
JH
5872014-07-02 Jan Hubicka <hubicka@ucw.cz>
588 Chen Gang <gang.chen.5i5j@gmail.com>
589
590 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
591 releasing symbol.
592
52ec0ea3
MP
5932014-07-01 Marek Polacek <polacek@redhat.com>
594
595 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
596 instead of 0 to WARN_FOR_ASSIGNMENT.
597
d5c3d343
MP
5982014-07-01 Marek Polacek <polacek@redhat.com>
599
600 PR c/58286
601 * c-typeck.c (convert_for_assignment): Pass
602 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
603
6a7253a4
MP
6042014-06-30 Marek Polacek <polacek@redhat.com>
605
606 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
607 has no_sanitize_undefined attribute.
608
5e88a8f4
IZ
6092014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
610
611 PR middle-end/57541
612 * c-array-notation.c (fix_builtin_array_notation_fn):
613 Check for 0 arguments in builtin call. Check that bultin argument is
614 correct.
615 * c-parser.c (c_parser_array_notation): Check for incorrect initial
616 index.
617
9698b078
SH
6182014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
619
620 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
621 qualifiers in __auto_type for atomic types.
622 (c_parser_typeof_specifier): Discard all type qualifiers in
623 __typeof__ for atomic types.
624
6e07c515
MP
6252014-06-25 Marek Polacek <polacek@redhat.com>
626
627 PR c/61162
628 * c-parser.c (c_parser_statement_after_labels): Pass the location of
629 the return expression to c_finish_return.
630
da6f124d
JJ
6312014-06-25 Jakub Jelinek <jakub@redhat.com>
632
633 * c-typeck.c (c_finish_omp_clauses): Make sure
634 OMP_CLAUSE_LINEAR_STEP has correct type.
635
c203e8a7
TS
6362014-06-24 Trevor Saunders <tsaunders@mozilla.com>
637
638 * c-decl.c: Adjust.
639
56ad0e38
JJ
6402014-06-24 Jakub Jelinek <jakub@redhat.com>
641
642 * c-parser.c (c_parser_omp_for_loop): For
643 #pragma omp parallel for simd move lastprivate clause from parallel
644 to for rather than simd.
645
47c2554f
MP
6462014-06-23 Marek Polacek <polacek@redhat.com>
647
648 * c-typeck.c (parser_build_binary_op): Don't call
649 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
650
56363ffd
JH
6512014-06-15 Jan Hubicka <hubicka@ucw.cz>
652
653 * c-parser.c (c_parser_omp_threadprivate): Likewise.
654 * c-decl.c (merge_decls): Likewise.
655
d7ff7ae5
MP
6562014-06-09 Marek Polacek <polacek@redhat.com>
657
658 PR c/36446
659 * c-typeck.c (error_init): Call inform instead of error_at.
660 (pedwarn_init): Call inform instead of pedwarn.
661 (warning_init): Call inform instead of warning_at.
662
24d047a3
JH
6632014-06-07 Jan Hubicka <hubicka@ucw.cz>
664
665 * c-decl.c (merge_decls): Use set_decl_section_name.
666 (duplicate_decls): Remove node if it exists.
667
9bac5cbb
G
6682014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
669
670 PR c/53119
671 * c-typeck.c (push_init_level, process_init_element,
672 pop_init_level): Correct check for zero initialization, move
673 missing brace warning to respect zero initialization.
674
8ffcdea8
MP
6752014-06-05 Marek Polacek <polacek@redhat.com>
676
677 PR c/56724
678 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
679
742938c9
MP
6802014-06-05 Marek Polacek <polacek@redhat.com>
681
682 PR c/49706
683 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
684 on the left hand side operand of a comparison.
685
6447c55d
MP
6862014-06-05 Marek Polacek <polacek@redhat.com>
687
688 PR c/48062
689 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
690 Print note only if the warning was printed.
691
9dc7743c
IZ
6922014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
693
694 PR c/58942
695 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
696 with a pointer.
697
fedfecef
MP
6982014-06-03 Marek Polacek <polacek@redhat.com>
699
700 PR c/60439
701 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
702 c_start_case.
703 * c-tree.h (c_start_case): Update.
704 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
705 switch condition has boolean value.
706
9b2b7279
AM
7072014-06-02 Andrew MacLeod <amacleod@redhat.com>
708
709 * c-decl.c: Include builtins.h.
710 * c-parser.c: Likewise.
711
5c1bc275
MP
7122014-05-27 Marek Polacek <polacek@redhat.com>
713
714 PR c/56724
715 * c-typeck.c (convert_arguments): Get location of a parameter. Change
716 error and warning calls to error_at and warning_at. Pass location of
717 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
718 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
719 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
720
97563bc8
IZ
7212014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
722
723 PR c/61191
724 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
725 function parameters.
726
aede2c10
JH
7272014-05-23 Jan Hubicka <hubicka@ucw.cz>
728
729 * c-decl.c (merge_decls): Preserve symtab node pointers.
730 (duplicate_decls): Free new decl.
731
edbba2ce
TS
7322014-05-23 Thomas Schwinge <thomas@codesourcery.com>
733
f3316c6d
TS
734 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
735 initialization.
736
edbba2ce
TS
737 * c-parser.c (c_parser_omp_target): Return bool values.
738
68c81f24
TS
7392014-05-22 Thomas Schwinge <thomas@codesourcery.com>
740
741 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
742 num_teams_loc variable to num_thread_limit_loc.
743
632f2871
RS
7442014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
745
746 * c-array-notation.c (expand_array_notations): Use void_node
747 instead of void_zero_node.
748
766090c2
TS
7492014-05-17 Trevor Saunders <tsaunders@mozilla.com>
750
751 * c-decl.c (finish_struct): Adjust.
752 (finish_enum): Likewise.
753 (bind): Adjust.
754 (record_inline_static): Likewise.
755 (push_scope): Likewise.
756 (make_label): Likewise.
757 (lookup_label_for_goto): Likewise.
758 (finish_struct): Likewise.
759 (finish_enum): Likewise.
760 (store_parm_decls): Likewise.
761 (c_push_function_context): Likewise.
762 * c-lang.h: Remove usage of variable_size gty attribute.
763 * c-parser.c (c_parse_init): Adjust.
764 (c_parse_file): Likewise.
765
2b107f6b
MP
7662014-05-13 Marek Polacek <polacek@redhat.com>
767
768 PR c/61162
769 * c-typeck.c (convert_for_assignment): Pass location to
770 WARN_FOR_ASSIGNMENT instead of input_location.
771
d033409e
MP
7722014-05-10 Marek Polacek <polacek@redhat.com>
773
774 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
775 maybe_warn_string_init.
776 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
777 maybe_warn_string_init.
778 * c-tree.h (maybe_warn_string_init): Update declaration.
779 * c-typeck.c (maybe_warn_string_init): Add location parameter.
780 Call pedwarn_init with loc instead of with input_location.
781 (digest_init): Pass init_loc to maybe_warn_string_init.
782 (pop_init_level): Call pedwarn_init with loc instead of with
783 input_location.
784 (set_init_index): Likewise.
785 (process_init_element): Likewise.
786
ea58ef42
MP
7872014-05-09 Marek Polacek <polacek@redhat.com>
788
789 PR c/61096
790 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
791 (c_parser_initelt): Pass location to set_init_label. Pass array index
792 location to set_init_index.
793 * c-tree.h (push_init_level): Update declaration.
794 (pop_init_level): Likewise.
795 (set_init_index): Likewise.
796 (set_init_label): Likewise.
797 * c-typeck.c (error_init): Add location parameter. Call error_at
798 instead of error.
799 (digest_init): Pass init_loc to error_init.
800 (really_start_incremental_init):
801 (push_init_level): Add location parameter. Pass loc to pop_init_level
802 and error_init.
803 (pop_init_level): Likewise.
804 (set_designator): Add location parameter. Pass loc to pop_init_level,
805 push_init_level, and error_init.
806 (set_init_index): Add location parameter. Pass loc to error_init and
807 set_designator.
808 (set_init_label): Likewise.
809 (output_init_element): Pass loc to error_init.
810 (process_init_element): Pass loc to error_init, pop_init_level,
811 pedwarn_init, and push_init_level.
812
661a0813
MP
8132014-05-09 Marek Polacek <polacek@redhat.com>
814
815 PR c/50459
816 * c-parser.c (c_parser_attributes): Parse the arguments as an
817 expression-list if the attribute takes identifier.
818
2793eeab
MP
8192014-05-08 Marek Polacek <polacek@redhat.com>
820
821 PR c/61053
822 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
823 TYPE_ALIGN_UNIT.
824
f827930a
MP
8252014-05-08 Marek Polacek <polacek@redhat.com>
826
827 PR c/61077
828 * c-decl.c (start_function): Warn for _Atomic-qualified return type
829 of main.
830
1d60af08
KZ
8312014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
832 Mike Stump <mikestump@comcast.net>
833 Richard Sandiford <rdsandiford@googlemail.com>
834
835 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
836 (finish_enum): Use wide-int interfaces.
837 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
838 * c-typeck.c (build_c_cast): Likewise.
839 (set_nonincremental_init_from_string): Likewise.
840 (c_tree_equal): Likewise.
841
a0e24419
MP
8422014-05-02 Marek Polacek <polacek@redhat.com>
843
844 PR c/25801
845 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
846 Return size_one_node when the type is not complete.
847 (pointer_diff): Remove comment.
848 (build_unary_op): Improve error messages.
849
19fc9faa
MP
8502014-05-02 Marek Polacek <polacek@redhat.com>
851
852 * c-typeck.c (c_finish_return): Separate warning_at calls.
853
63bc4e87
MP
8542014-05-02 Marek Polacek <polacek@redhat.com>
855
856 * c-tree.h (error_init): Remove declaration.
857 (pedwarn_init): Likewise.
858 * c-typeck.c (error_init): Make static and move above.
859 (pedwarn_init): Likewise.
860 (warning_init): Move above.
861 (maybe_warn_string_init): Likewise.
862
4bd2511b
JL
8632014-05-01 Jeff Law <law@redhat.com>
864
865 Revert:
866
867 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
868 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
869 avoid goto.
870
6a358dcb
MP
8712014-05-02 Marek Polacek <polacek@redhat.com>
872
873 PR c/60784
874 * c-typeck.c (push_init_level): Set constructor_designated to
875 p->designated for structures.
876
ae5ebda4
MP
8772014-05-01 Marek Polacek <polacek@redhat.com>
878
879 PR c/60915
880 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
881 function-definition has an attribute after the declarator.
882
96b40f8d
MP
8832014-05-01 Marek Polacek <polacek@redhat.com>
884
885 PR c/60257
886 * c-typeck.c (warning_init): Add location_t parameter. Call
887 warning_at instead of warning.
888 (push_init_level): Pass input_location to warning_init.
889 (add_pending_init): Add location_t parameter. Pass loc to
890 warning_init.
891 (set_nonincremental_init): Pass input_location to add_pending_init.
892 (set_nonincremental_init_from_string): Likewise.
893 (output_init_element): Pass loc to warning_init and to
894 add_pending_init.
895
32e00768
MP
8962014-05-01 Marek Polacek <polacek@redhat.com>
897
898 PR c/43395
899 * c-typeck.c (c_finish_return): Distinguish between label and variable
900 when warning about returning local address.
901
c9379ce2
MP
9022014-05-01 Marek Polacek <polacek@redhat.com>
903
904 PR c/29467
905 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
906 in C89 mode.
907
d00887e8
MP
9082014-05-01 Marek Polacek <polacek@redhat.com>
909
910 PR c/43245
911 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
912 instead of 0 to WARN_FOR_QUALIFIERS.
913
5436fa2e
MP
9142014-05-01 Marek Polacek <polacek@redhat.com>
915
916 PR c/56989
917 * c-typeck.c (default_conversion): Use better location for
918 error call.
919
f8ed5150
MP
9202014-04-30 Marek Polacek <polacek@redhat.com>
921
922 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
923 also when SANITIZE_FLOAT_DIVIDE is on.
924
8337d1db
MP
9252014-04-30 Marek Polacek <polacek@redhat.com>
926
927 PR c/60139
928 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
929 and pedwarn_init. Use loc insted of input_location.
930
c4bdc42f
MP
9312014-04-30 Marek Polacek <polacek@redhat.com>
932
933 PR c/60351
934 * c-typeck.c (build_binary_op): Use location when warning about
935 shift count.
936
45484dcf
MP
9372014-04-25 Marek Polacek <polacek@redhat.com>
938
939 PR c/18079
940 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
941 always_inline/noinline and hot/cold attributes.
942
34cf811f
MP
9432014-04-25 Marek Polacek <polacek@redhat.com>
944
945 PR c/60114
946 * c-parser.c (c_parser_initelt): Pass input_location to
947 process_init_element.
948 (c_parser_initval): Pass loc to process_init_element.
949 * c-tree.h (process_init_element): Adjust declaration.
950 * c-typeck.c (push_init_level): Pass input_location to
951 process_init_element.
952 (pop_init_level): Likewise.
953 (set_designator): Likewise.
954 (output_init_element): Add location_t parameter. Pass loc to
955 digest_init.
956 (output_pending_init_elements): Pass input_location to
957 output_init_element.
958 (process_init_element): Add location_t parameter. Pass loc to
959 output_init_element.
960
42056eac
JJ
9612014-04-24 Jakub Jelinek <jakub@redhat.com>
962
963 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
964 atomic-clause, allow comma in between atomic-clause and
965 seq_cst.
966
e162a134
JJ
9672014-04-22 Jakub Jelinek <jakub@redhat.com>
968
969 PR c/59073
970 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
971 fails, don't set OM_PARALLEL_COMBINED and return NULL.
972
2f6babac
IZ
9732014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
974
975 PR middle-end/60469
976 * c-array-notation.c (fix_builtin_array_notation_fn): Use
977 create_tmp_var instead build_decl for creating temps.
978 (build_array_notation_expr): Likewise.
979 (fix_conditional_array_notations_1): Likewise.
980 (fix_array_notation_expr): Likewise.
981 (fix_array_notation_call_expr): Likewise.
982
8edbfaa6
JJ
9832014-03-28 Jakub Jelinek <jakub@redhat.com>
984
985 PR c++/60689
986 * c-tree.h (c_build_function_call_vec): New prototype.
987 * c-typeck.c (build_function_call_vec): Don't call
988 resolve_overloaded_builtin here.
989 (c_build_function_call_vec): New wrapper function around
990 build_function_call_vec. Call resolve_overloaded_builtin here.
991 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
992 Call c_build_function_call_vec instead of build_function_call_vec.
993 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
994 * c-decl.c (finish_decl): Likewise.
995
7485aeea
MLI
9962014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
997
998 PR c/55383
999 * c-typeck.c: Use correct format string in cast-qual warning
1000
b17a8b07
TS
10012014-03-07 Thomas Schwinge <thomas@codesourcery.com>
1002
1003 * c-decl.c (c_decl_attributes): Use
1004 lang_hooks.types.omp_mappable_type.
1005 * c-typeck.c (c_finish_omp_clauses): Likewise.
1006
3af9c5e9
MP
10072014-03-06 Marek Polacek <polacek@redhat.com>
1008
1009 PR c/60197
1010 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
1011 of checking tree code.
1012
1c9f5f33
PK
10132014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1014
1015 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
1016 (c_parser_parameter_declaration): Likewise.
1017
cc28fc7f
MP
10182014-02-19 Marek Polacek <polacek@redhat.com>
1019
1020 PR c/60195
1021 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
1022 Call mark_exp_read on exp.value.
1023 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
1024 TREE_ADDRESSABLE on old instead of val.
1025 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
1026
b581c05c
PK
10272014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1028
1029 * c-parser.c (c_parser_get_builtin_args): Replace calls to
1030 C_EXPR_APPEND by vec_safe_push.
1031 * c-tree.h (C_EXPR_APPEND): Remove.
1032
81e5eca8
MP
10332014-01-31 Marek Polacek <polacek@redhat.com>
1034
1035 PR c/59963
1036 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
1037 build_function_call_vec.
1038 (build_function_call): Likewise.
1039 (build_atomic_assign): Likewise.
1040 (build_function_call_vec): Add arg_loc parameter. Use it.
1041 (convert_arguments): Likewise.
1042 (convert_for_assignment): Rename rhs_loc to expr_loc.
1043 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
1044 (c_parser_objc_keywordexpr): Likewise.
1045 (c_parser_postfix_expression_after_primary): Call
1046 build_function_call_vec with expr_loc rather than op_loc.
1047 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
1048 build_function_call_vec.
1049 (c_parser_expr_list): Add locations parameter. Fill it with locations
1050 of function arguments.
1051 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
1052
68fca595
MP
10532014-01-30 Marek Polacek <polacek@redhat.com>
1054
1055 PR c/59940
1056 * c-typeck.c (build_function_call_vec): Use loc parameter.
1057 (convert_arguments): Add location parameter. Use it.
1058 (ep_convert_and_check): Likewise.
1059 (build_atomic_assign): Adjust convert_for_assignment call.
1060 (build_modify_expr): Likewise.
1061 (digest_init): Likewise.
1062 (c_finish_return): Likewise.
1063 (build_conditional_expr): Adjust ep_convert_and_check calls.
1064 (convert_for_assignment): Add rhs_loc parameter. Use it.
1065 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
1066 calls.
1067
fa337f3a
RB
10682014-01-30 Richard Biener <rguenther@suse.de>
1069
1070 PR c/59905
1071 * c-typeck.c (build_function_call_vec): Do not replace calls
1072 to a function via an incompatible type with a runtime abort.
1073
b72271b9
BI
10742014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1075
1076 * c-parser.c (c_parser_declaration_or_fndef): Replaced
1077 flag_enable_cilkplus with flag_cilkplus.
1078 (c_parser_direct_declarator_inner): Likewise.
1079 (c_parser_attribute_any_word): Likewise.
1080 (c_parser_attributes): Likewise.
1081 (c_parser_compound_statement): Likewise.
1082 (c_parser_statement_after_labels): Likewise.
1083 (c_parser_if_statement): Likewise.
1084 (c_parser_switch_statement): Likewise.
1085 (c_parser_do_statement): Likewise.
1086 (c_parser_for_statement): Likewise.
1087 (c_parser_unary_expression): Likewise.
1088 (c_parser_postfix_expression): Likewise.
1089 (c_parser_postfix_expression_after_primary): Likewise.
1090 (c_parser_postfix_expression_after_primary): Likewise.
1091 (c_parser_omp_clause_name): Likewise.
1092 (c_finish_omp_declare_simd): Likewise.
1093 (c_parser_cilk_verify_simd): Likewise.
1094 * c-typeck.c (build_array_ref): Likewise.
1095 (build_function_call_vec): Likewise.
1096 (convert_arguments): Likewise.
1097 (build_compound_expr): Likewise.
1098 (c_finish_return): Likewise.
1099 (c_finish_if_stmt): Likewise.
1100 (c_finish_loop): Likewise.
1101 (build_binary_op): Likewise.
1102
393e8e8b
MP
11032014-01-23 Marek Polacek <polacek@redhat.com>
1104
1105 PR c/59846
1106 * c-typeck.c (parser_build_binary_op): Use location instead of
1107 input_location.
1108 (build_binary_op): Pass location to shorten_compare.
1109
f04dda30
MP
11102014-01-23 Marek Polacek <polacek@redhat.com>
1111
1112 PR c/58346
1113 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
1114 an empty aggregate.
1115
789eadcd
MP
11162014-01-23 Marek Polacek <polacek@redhat.com>
1117
1118 PR c/59871
1119 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
1120 of a comma expression.
1121 (emit_side_effect_warnings): Likewise.
1122
40f14e9f
BI
11232014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
1124
1125 PR c/59825
1126 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
1127 function to use walk_tree and moved a lot of its functionality to
1128 expand_array_notations.
1129 (expand_array_notations): New function.
1130
74558dd9
BI
11312014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
1132
1133 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
1134 attribute an attribute without value.
1135
652fea39
JJ
11362014-01-23 Jakub Jelinek <jakub@redhat.com>
1137
1138 PR middle-end/58809
1139 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
1140 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
1141
f34f1c87
MP
11422014-01-22 Marek Polacek <polacek@redhat.com>
1143
1144 PR c/59891
1145 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
1146 of remove_c_maybe_const_expr on op1 and op2.
1147
241f845a
JJ
11482014-01-15 Jakub Jelinek <jakub@redhat.com>
1149
1150 PR c/58943
1151 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
1152 effects, preevaluate rhs using SAVE_EXPR first.
1153
9a74f20c
BI
11542014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
1155
1156 PR c++/59631
1157 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
1158 statements with if-elseif statements.
1159
96066ce1
MP
11602014-01-06 Marek Polacek <polacek@redhat.com>
1161
1162 PR c/57773
1163 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
1164 defined bit-field types only in ISO C.
1165
23a5b65a
RS
11662014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1167
1168 Update copyright years
1169
f9030485
RS
11702014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1171
1172 * c-array-notation.c: Use the standard form for the copyright notice.
1173
41958c28
BI
11742013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1175
1176 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
1177 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
1178 field in parser is not empty. If not-empty, call the function
1179 c_parser_finish_omp_declare_simd.
1180 (c_parser_cilk_clause_vectorlength): Modified function to be shared
1181 between SIMD-enabled functions and #pragma simd. Added new parameter.
1182 (c_parser_cilk_all_clauses): Modified the usage of the function
1183 c_parser_cilk_clause_vectorlength as mentioned above.
1184 (c_parser_cilk_simd_fn_vector_attrs): New function.
1185 (c_finish_cilk_simd_fn_tokens): Likewise.
1186 (is_cilkplus_vector_p): Likewise.
1187 (c_parser_omp_clause_name): Added checking for "vectorlength,"
1188 "nomask," and "mask" strings in clause name.
1189 (c_parser_omp_all_clauses): Added 3 new case statements:
1190 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
1191 PRAGMA_CILK_CLAUSE_NOMASK.
1192 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
1193 check for vector attribute and if so call the function
1194 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
1195 called the function c_finish_cilk_simd_fn_tokens.
1196 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
1197 parser field is non-empty. If so, parse them as you would parse
1198 the omp declare simd pragma.
1199 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
1200 Added a check when step is a parameter and flag it as error.
1201 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
1202 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
1203 pragma_omp_clause.
1204
cef0fd0e
TS
12052013-12-17 Thomas Schwinge <thomas@codesourcery.com>
1206
1207 * c-parser.c (c_parser_omp_parallel): Fix description.
1208
12893402
BI
12092013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1210
1211 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
1212 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1213 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1214 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
1215
296674db
JM
12162013-12-04 Joseph Myers <joseph@codesourcery.com>
1217
1218 PR c/52023
1219 * c-parser.c (c_parser_alignas_specifier): Use
1220 c_sizeof_or_alignof_type instead of c_alignof.
1221 (c_parser_alignof_expression): Likewise, with min_alignof
1222 parameter depending on alignof spelling used.
1223
edd28054
MP
12242013-12-04 Marek Polacek <polacek@redhat.com>
1225
1226 PR c/54113
1227 * c-decl.c (start_function): Don't warn for missing prototype for
1228 inline functions.
1229
da0fc454
MP
12302013-12-03 Marek Polacek <polacek@redhat.com>
1231
1232 PR c/59351
1233 * c-decl.c (build_compound_literal): Allow compound literals with
1234 empty initial value.
1235
4c2ecab0
JM
12362013-12-02 Joseph Myers <joseph@codesourcery.com>
1237
1238 PR c/58235
1239 * c-typeck.c (build_modify_expr): Diagnose assignment to
1240 expression with array type.
1241
340baef7
JM
12422013-11-29 Joseph Myers <joseph@codesourcery.com>
1243
1244 PR c/42262
1245 * c-typeck.c (process_init_element): Do not treat a string as
1246 initializing a whole array when used with a designator for an
1247 individual element.
1248
6763b9f7
JM
12492013-11-29 Joseph Myers <joseph@codesourcery.com>
1250
1251 PR c/57574
1252 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
1253 an inline function following a static declaration.
1254
e7bd1de1
JJ
12552013-11-28 Jakub Jelinek <jakub@redhat.com>
1256
1257 PR c/59310
1258 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
1259 to p_name before calling c_parser_omp_teams instead of after.
1260 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
1261 argument. Remove unused p_name variable.
1262
0136f8f0
AH
12632013-11-27 Aldy Hernandez <aldyh@redhat.com>
1264 Jakub Jelinek <jakub@redhat.com>
1265
1266 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
1267 external_scope is NULL.
1268
241b71bb
TV
12692013-11-27 Tom de Vries <tom@codesourcery.com>
1270 Marc Glisse <marc.glisse@inria.fr>
1271
1272 PR c++/59032
1273 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
1274
2fb9a547
AM
12752013-11-22 Andrew MacLeod <amacleod@redhat.com>
1276
1277 * c-typeck.c: Add required include files from gimple.h.
1278
8400e75e
DM
12792013-11-22 David Malcolm <dmalcolm@redhat.com>
1280
1281 * c-decl.c (define_label, shadow_tag_warned)
1282 (check_bitfield_type_and_width, grokdeclarator, grokparms,
1283 store_parm_decls_newstyle, store_parm_decls_oldstyle)
1284 (declspecs_add_type): Remove use of in_system_header macro.
1285 * c-parser.c (c_parser_unary_expression): Likewise.
1286 * c-typeck.c (store_init_value, process_init_element)
1287 (c_start_case): Likewise.
1288
1289 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
1290 macro.
1291
1292 * c-parser.c (c_parser_set_source_position_from_token): Remove
1293 reference to in_system_header from comment.
1294
386b1f1f
RS
12952013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1296
1297 * c-decl.c (grokdeclarator): Update comment to refer to
1298 tree_to_[su]hwi rather than tree_low_cst.
1299
ae7e9ddd
RS
13002013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1301
1302 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
1303 tree_to_uhwi throughout.
1304
9439e9a1
RS
13052013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1306
1307 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
1308 throughout.
1309
9541ffee
RS
13102013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1311
1312 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1313 throughout.
1314
c02065fc
AH
13152013-11-15 Aldy Hernandez <aldyh@redhat.com>
1316
1317 * c-parser.c (c_parser_cilk_simd): New.
1318 (c_parser_cilk_verify_simd): New.
1319 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
1320 (c_parser_omp_for_loop): Add case for NE_EXPR.
1321 Set c_break_label for CILK_SIMD.
1322 (c_parser_cilk_clause_vectorlength): New.
1323 (c_parser_cilk_clause_linear): New.
1324 (c_parser_cilk_clause_name): New.
1325 (c_parser_cilk_all_clauses): New.
1326 * c-typeck.c (build_unary_op): Pass location argument to
1327 readonly_error.
1328 (build_modify_expr): Same.
1329 (build_asm_expr): Same.
1330 (c_finish_bc_stmt): Error on break/continue in loops.
1331
18f429e2
AM
13322013-11-14 Andrew MacLeod <amacleod@redhat.com>
1333
1334 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
1335
d8a2d370
DN
13362013-11-14 Diego Novillo <dnovillo@google.com>
1337
1338 * c-decl.c: Include print-tree.h.
1339 Include stor-layout.h.
1340 Include varasm.h.
1341 Include attribs.h.
1342 Include stringpool.h.
1343 * c-lang.c: Include fold-const.h.
1344 * c-parser.c: Include stringpool.h.
1345 Include attribs.h.
1346 Include stor-layout.h.
1347 Include varasm.h.
1348 Include trans-mem.h.
1349 * c-typeck.c: Include stor-layout.h.
1350 Include trans-mem.h.
1351 Include varasm.h.
1352 Include stmt.h.
1353
38b7bc7f
JM
13542013-11-13 Joseph Myers <joseph@codesourcery.com>
1355
1356 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
1357 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
1358 __auto_type.
1359 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
1360 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
1361 RID_AUTO_TYPE.
1362 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
1363 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
1364 (c_parser_declarator, c_parser_direct_declarator_inner)
1365 (c_parser_parameter_declaration, c_parser_type_name): All callers
1366 changed.
1367 (c_parser_declaration_or_fndef): Handle declarations with type
1368 determined from the initializer.
1369
45b0be94
AM
13702013-11-12 Andrew MacLeod <amacleod@redhat.com>
1371
18f429e2 1372 * c-typeck.c: Include gimplify.h.
45b0be94 1373
582d9b50
JM
13742013-11-12 Joseph Myers <joseph@codesourcery.com>
1375
1376 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
1377 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
1378 comment.
1379 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
1380 or _Thread_local as appropriate in diagnostics.
1381 (build_null_declspecs): Initialize ret->thread_gnu_p.
1382 (declspecs_add_scspec): Handle either __thread or _Thread_local
1383 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
1384 pedantic. Do not disallow _Thread_local extern and _Thread_local
1385 static.
1386
267bac10
JM
13872013-11-07 Joseph Myers <joseph@codesourcery.com>
1388 Andrew MacLeod <amacleod@redhat.com>
1389
1390 * c-aux-info.c (gen_type): Handle atomic qualifier.
1391 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
1392 qualifiers when compating types.
1393 (shadow_tag_warned): Handle atomic_p in declspecs.
1394 (quals_from_declspecs): Likewise.
1395 (start_decl): Use c_type_promotes_to when promoting argument
1396 types.
1397 (grokdeclarator): Handle _Atomic.
1398 (get_parm_info): Diagnose any qualifier on "void" as only
1399 parameter.
1400 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
1401 comparing types. Use c_type_promotes_to when promoting argument
1402 types.
1403 (finish_function): Use c_type_promotes_to when promoting argument
1404 types.
1405 (build_null_declspecs): Handle atomic_p in declspecs.
1406 (declspecs_add_qual): Handle RID_ATOMIC.
1407 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
1408 (c_token_starts_declspecs): Handle RID_ATOMIC.
1409 (c_parser_declspecs): Handle atomic type specifiers and
1410 qualifiers.
1411 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
1412 from types of expressions with atomic type.
1413 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
1414 (c_parser_attribute_any_word): Handle RID_ATOMIC.
1415 (c_parser_initializer, c_parser_initelt, c_parser_initval)
1416 (c_parser_statement_after_labels, c_parser_switch_statement)
1417 (c_parser_for_statement, c_parser_expr_no_commas)
1418 (c_parser_conditional_expression, c_parser_binary_expression)
1419 (c_parser_cast_expression, c_parser_unary_expression)
1420 (c_parser_postfix_expression)
1421 (c_parser_postfix_expression_after_primary, c_parser_expression):
1422 Use convert_lvalue_to_rvalue.
1423 (c_parser_expression_conv, c_parser_expr_list): Document
1424 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
1425 (c_parser_objc_synchronized_statement): Use
1426 convert_lvalue_to_rvalue.
1427 (c_parser_objc_selector): Handle RID_ATOMIC.
1428 (c_parser_objc_receiver, c_parser_array_notation): Use
1429 convert_lvalue_to_rvalue.
1430 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
1431 _Atomic (type-name).
1432 (struct c_declspecs): Add atomic_p field.
1433 (convert_lvalue_to_rvalue): Declare.
1434 * c-typeck.c (c_type_promotes_to): Promote atomic types to
1435 corresponding atomic types.
1436 (qualify_type): Don't add _Atomic qualifiers from second argument.
1437 (comp_target_types): Do not allow _Atomic mismatches.
1438 (type_lists_compatible_p): Do not remove atomic qualifiers when
1439 comparing types.
1440 (really_atomic_lvalue, convert_lvalue_to_rvalue)
1441 (build_atomic_assign): New functions.
1442 (build_unary_op): Use build_atomic_assign for atomic increment and
1443 decrement.
1444 (build_conditional_expr): Do not treat _Atomic void as a qualified
1445 version of void.
1446 (build_modify_expr): Use build_atomic_assign for atomic LHS.
1447 (find_anonymous_field_with_type, convert_to_anonymous_field)
1448 (convert_for_assignment): Do not remove atomic qualifiers when
1449 comparing types.
1450 (digest_init): Do not accept initialization of arrays of atomic
1451 elements by string constants.
1452 (build_asm_expr): Use convert_lvalue_to_rvalue.
1453 (build_binary_op): Do not treat _Atomic void as a qualified
1454 version of void.
1455
0c249d4b
DD
14562013-11-06 DJ Delorie <dj@redhat.com>
1457
1458 * c-decl.c (locate_old_decl): If a previous conflicting decl is
1459 both explicit and builtin, print the location of the explicit one.
1460
6d7f7e0a
TB
14612013-11-05 Tobias Burnus <burnus@net-b.de>
1462
1463 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
1464 c_parser_omp_distribute, c_parser_omp_teams,
1465 c_parser_omp_target, c_parser_omp_declare): Handle
1466 -fopenmp-simd.
1467
b906f4ca
MP
14682013-11-03 Marek Polacek <polacek@redhat.com>
1469
1470 * c-decl.c (grokdeclarator): Add VLA instrumentation.
1471
ee1d5a02
JJ
14722013-11-01 Jakub Jelinek <jakub@redhat.com>
1473
1474 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
1475 check_dup_generic at the end, unless remove is true.
1476 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
1477 remove = true;.
1478 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
1479
5a9785fb
JJ
14802013-10-31 Jakub Jelinek <jakub@redhat.com>
1481
1482 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
1483 with decl that is not pointer nor array.
1484
939b37da
BI
14852013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1486
1487 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
1488 a spawning function is found.
1489 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
1490 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1491 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1492 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
1493 case.
1494 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
1495 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
1496 expr.
1497 (c_finish_return): Added a check to reject _Cilk_spawn in return
1498 expression.
1499 (build_cilk_spawn): New function.
1500 (build_cilk_sync): Likewise.
1501 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
1502
d4af74d4
TB
15032013-10-27 Tobias Burnus <burnus@net-b.de>
1504
1505 PR other/33426
1506 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
1507 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
1508 (c_parser_statement_after_labels): Update calls.
1509
d73749df 15102013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1511
1512 PR other/33426
1513 * c-parser.c (c_parser_pragma, c_parser_for_statement):
1514 Handle PRAGMA_IVDEP.
1515 (c_parser_statement_after_labels): Update call.
1516
f28aa681
MP
15172013-10-24 Marek Polacek <polacek@redhat.com>
1518
1519 * c-parser.c (c_parser_struct_declaration): Add a comment.
1520 (c_parser_declarator): Don't allow _Alignas here.
1521
0645c1a2
AM
15222013-10-17 Andrew MacLeod <amacleod@redhat.com>
1523
1524 * c-parser.c: Include omp-low.h.
1525 * c-typeck.c: Likewise.
1526
568a31f2
MP
15272013-10-17 Marek Polacek <polacek@redhat.com>
1528
1529 PR c/58267
1530 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
1531 Document syntax of the array-declarator.
1532 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
1533 are not permitted.
1534 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
1535 (c_parser_struct_declaration): Likewise.
1536 (c_parser_declarator): Likewise.
1537 (c_parser_direct_declarator_inner): Likewise.
1538 (c_parser_parameter_declaration): Likewise.
1539 (c_parser_type_name): Likewise.
1540
acf0174b
JJ
15412013-10-11 Jakub Jelinek <jakub@redhat.com>
1542
1543 * c-lang.h (current_omp_declare_target_attribute): New extern
1544 decl.
1545 * c-parser.c: Include c-lang.h.
1546 (struct c_parser): Change tokens to c_token *.
1547 Add tokens_buf field. Change tokens_avail type to unsigned int.
1548 (c_parser_consume_token): If parser->tokens isn't
1549 &parser->tokens_buf[0], increment parser->tokens.
1550 (c_parser_consume_pragma): Likewise.
1551 (enum pragma_context): Add pragma_struct and pragma_param.
1552 (c_parser_external_declaration): Adjust
1553 c_parser_declaration_or_fndef caller.
1554 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
1555 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
1556 Adjust recursive call.
1557 (c_parser_struct_or_union_specifier): Use pragma_struct instead
1558 of pragma_external.
1559 (c_parser_parameter_declaration): Use pragma_param instead of
1560 pragma_external.
1561 (c_parser_compound_statement_nostart, c_parser_label,
1562 c_parser_for_statement): Adjust
1563 c_parser_declaration_or_fndef callers.
1564 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
1565 it through to c_parser_conditional_expression.
1566 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
1567 pass it through to c_parser_binary_expression. Adjust recursive
1568 call.
1569 (c_parser_binary_expression): Remove prec argument, add
1570 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
1571 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
1572 binop matches it, use build2 instead of parser_build_binary_op.
1573 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
1574 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
1575 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
1576 Handle pragma_struct and pragma_param the same as pragma_external.
1577 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
1578 (c_parser_omp_variable_list): Parse array sections for
1579 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
1580 (c_parser_omp_clause_collapse): Fully fold collapse expression.
1581 (c_parser_omp_clause_reduction): Handle user defined reductions.
1582 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
1583 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
1584 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
1585 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
1586 c_parser_omp_clause_depend, c_parser_omp_clause_map,
1587 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
1588 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
1589 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
1590 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
1591 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
1592 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
1593 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
1594 (c_parser_omp_for_loop): Add CODE argument, pass it through
1595 to c_finish_omp_for. Change last argument to cclauses,
1596 and adjust uses to grab parallel clauses from the array of all
1597 the split clauses. Adjust c_parser_binary_expression,
1598 c_parser_declaration_or_fndef and c_finish_omp_for callers.
1599 (omp_split_clauses): New function.
1600 (c_parser_omp_simd): New function.
1601 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
1602 Allow the function to be called also when parsing combined constructs,
1603 and call c_parser_omp_simd when parsing for simd.
1604 (c_parser_omp_sections_scope): If section-sequence doesn't start with
1605 #pragma omp section, require exactly one structured-block instead of
1606 sequence of statements.
1607 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
1608 Allow the function to be called also when parsing combined constructs.
1609 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
1610 Allow the function to be called also when parsing combined
1611 constructs.
1612 (c_parser_omp_taskgroup, c_parser_omp_cancel,
1613 c_parser_omp_cancellation_point, c_parser_omp_distribute,
1614 c_parser_omp_teams, c_parser_omp_target_data,
1615 c_parser_omp_target_update, c_parser_omp_target,
1616 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
1617 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
1618 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
1619 (c_parser_omp_construct): Add p_name and mask vars. Handle
1620 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
1621 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
1622 and c_parser_omp_sections callers.
1623 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
1624 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
1625 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
1626 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
1627 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
1628 OMP_CLAUSE_DEPEND.
1629 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
1630 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
1631 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
1632 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
1633 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
1634 * c-typeck.c: Include tree-inline.h.
1635 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
1636 handle_omp_array_sections_1, handle_omp_array_sections,
1637 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
1638 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
1639 user defined reductions.
1640 (c_tree_equal): New function.
1641 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
1642 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
1643 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
1644 c_check_omp_declare_reduction_r): New prototypes.
1645 * c-decl.c (current_omp_declare_target_attribute): New variable.
1646 (c_decl_attributes): New function.
1647 (start_decl, start_function): Use it instead of decl_attributes.
1648 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
1649 c_omp_reduction_decl, c_omp_reduction_lookup,
1650 c_check_omp_declare_reduction_r): New functions.
1651
0a6c2227
TT
16522013-09-25 Tom Tromey <tromey@redhat.com>
1653
1654 * Make-lang.in (c/gccspec.o): Remove.
1655 (CFLAGS-c/gccspec.o): New variable.
1656 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
1657 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
1658 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
1659
f3bc55f0
TT
16602013-09-25 Tom Tromey <tromey@redhat.com>
1661
1662 * Make-lang.in (c/gccspec.o): Don't use subshell.
1663
a24d975c
MP
16642013-09-18 Marek Polacek <polacek@redhat.com>
1665
1666 PR sanitize/58443
1667 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
1668 Remove unnecessary check.
1669
ce6923c5
MP
16702013-09-18 Marek Polacek <polacek@redhat.com>
1671
1672 PR sanitizer/58411
1673 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
1674 no_sanitize_undefined attribute.
1675
a1e51df9
KT
16762013-09-13 Kai Tietz <ktietz@redhat.com>
1677
1678 PR target/57848
1679 * c-decl.c (c_builtin_function_ext_scope): Remove
1680 wrong assumption that it is never called on prexisting
1681 symbol.
1682
0af94e6f
JR
16832013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
1684
1685 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
1686
20059c8b
GDR
16872013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
1688
1689 * c-objc-common.c (c_tree_printer): Tidy.
1690
de5a5fa1
MP
16912013-08-30 Marek Polacek <polacek@redhat.com>
1692
1693 * c-typeck.c (build_binary_op): Add division by zero and shift
1694 instrumentation.
1695
2531a1d9 16962013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 1697 Joseph Myers <joseph@codesourcery.com>
2531a1d9 1698
6e2bcc98 1699 PR c/35649
2531a1d9
JR
1700 * c-typeck.c (c_common_type): Prefer double_type_node over
1701 other REAL_TYPE types with the same precision.
1702 (convert_arguments): Likewise.
1703
025311c4
GDR
17042013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
1705
1706 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
1707 (c_initialize_diagnostics): Call a destructor for the early printer.
1708
da6ca2b5
GDR
17092013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1710
1711 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
1712 printer initialization.
1713
318cda85 17142013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 1715
318cda85
BI
1716 PR c/57490
1717 * c-array-notation.c (fix_conditional_array_notations_1): Added a
1718 check for truth values.
1719 (expand_array_notation_exprs): Added truth values case. Removed an
1720 unwanted else. Added for-loop to walk through subtrees in default
1721 case.
1722
b066401f
GDR
17232013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
1724
1725 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
1726
fb48aadc
JM
17272013-07-23 Joseph Myers <joseph@codesourcery.com>
1728
1729 * c-parser.c (struct c_generic_association): Fix typo.
1730
433cc7b0
TT
17312013-07-23 Tom Tromey <tromey@redhat.com>
1732 Joseph Myers <joseph@codesourcery.com>
1733
1734 * c-parser.c (struct c_generic_association): New.
1735 (c_generic_association_d): New typedef.
1736 (c_parser_generic_selection): New function.
1737 (c_parser_postfix_expression): Handle RID_GENERIC.
1738
26d40c3d
JM
17392013-07-13 Jason Merrill <jason@redhat.com>
1740
1741 PR c++/57793
1742 * c-decl.c (finish_struct): Check for too-large class.
1743
ecdbd01a 17442013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
1745
1746 PR c/57821
1747 * c-typeck.c (set_init_index): When folding, check for index overflow.
1748
1141ed3f
BI
17492013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1750
1751 * c-parser.c (c_parser_array_notation): Removed rejection of array
1752 notations in an array of function pointers.
1753
713b46fa
BI
17542013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1755
1756 * c-array-notation.c (make_triplet_val_inv): New function.
1757 (create_cmp_incr): Likewise.
1758 (create_array_refs): Likewise.
1759 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
1760 Also modularized common parts between functions and called the function.
1761 (build_array_notation_expr): Likewise.
1762 (fix_conditional_array_notations_1): Likewise.
1763 (fix_array_notation_expr): Likewise.
1764 (fix_array_notation_call_expr): Likewise.
1765
92f20202
MP
17662013-06-18 Marek Polacek <polacek@redhat.com>
1767
1768 PR c/57630
1769 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
1770
73a23b06
BI
17712013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
1772
1773 * c-array-notation.c (build_array_notation_expr): Reject array notation
1774 mismatch between LHS and RHS even inside a call_expr. Also, removed
1775 a couple while statements that were dead code.
1776
00b8517d
BI
17772013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
1778
1779 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
1780 excessive precision expressions in function parameters. Also removed
1781 couple unwanted while statements.
1782
1509bdda
BI
17832013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1784
1785 * c-array-notation.c (expand_array_notation_exprs): Added
1786 ARRAY_NOTATION_REF case.
1787
d60f1706
BI
17882013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1789
1790 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
1791 function to c-family/array-notation-common.c.
1792 (is_cilkplus_reduce_builtin): Likewise.
1793 (find_rank): Likewise.
1794 (extract_array_notation_exprs): Likewise.
1795 (replace_array_notations): Likewise.
1796 (find_inv_trees): Likewise.
1797 (replace_inv_trees): Likewise.
1798 (contains_array_notation_expr): Likewise.
1799 (find_correct_array_notation_type): Likewise.
1800 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
1801 (struct inv_list): Moved this to c-family/array-notation-common.c.
1802 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
1803
6d6efbb3
BI
18042013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
1805
1806 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
1807 reduction functions outside the for-loop. Added a check if the fundecl
1808 is non-NULL. Finally, removed an unwanted if-statement, and made the
1809 body unconditional.
1810
25c22937
BI
18112013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
1812
1813 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
1814 condition of the if-statement matches the rank of else-block and then-
1815 block when array notations are used.
1816 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
1817 expression after the entire function body is parsed.
1818 (c_parser_expr_no_commas): Delayed creating array notation expressions
1819 to the end of function parsing.
1820 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
1821 whole if-statement instead of just the condition.
1822 (expand_array_notation_exprs): Added MODIFY_EXPR case.
1823
edd25645
BI
18242013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
1825
1826 PR c/57474
1827 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
1828 array to NULL_TREE if they are unused. Also added a check for the
1829 field to be NULL before its fields are used in future.
1830
065ce7f1
RO
18312013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1832
1833 PR bootstrap/57450
1834 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
1835 (build_array_notation_expr): Likewise.
1836
36536d79
BI
18372013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1838
1839 * c-typeck.c (build_array_ref): Added a check to see if array's
1840 index is greater than one. If true, then emit an error.
1841 (build_function_call_vec): Exclude error reporting and checking
1842 for builtin array-notation functions.
1843 (convert_arguments): Likewise.
1844 (c_finish_return): Added a check for array notations as a return
1845 expression. If true, then emit an error.
1846 (c_finish_loop): Added a check for array notations in a loop
1847 condition. If true then emit an error.
1848 (lvalue_p): Added a ARRAY_NOTATION_REF case.
1849 (build_binary_op): Added a check for array notation expr inside
1850 op1 and op0. If present, we call another function to find correct
1851 type.
1852 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
1853 * c-parser.c (c_parser_compound_statement): Check if array
1854 notation code is used in tree, if so, then transform them into
1855 appropriate C code.
1856 (c_parser_expr_no_commas): Check if array notation is used in LHS
1857 or RHS, if so, then build array notation expression instead of
1858 regular modify.
1859 (c_parser_postfix_expression_after_primary): Added a check for
1860 colon(s) after square braces, if so then handle it like an array
1861 notation. Also, break up array notations in unary op if found.
1862 (c_parser_direct_declarator_inner): Added a check for array
1863 notation.
1864 (c_parser_compound_statement): Added a check for array notation in
1865 a stmt. If one is present, then expand array notation expr.
1866 (c_parser_if_statement): Likewise.
1867 (c_parser_switch_statement): Added a check for array notations in
1868 a switch statement's condition. If true, then output an error.
1869 (c_parser_while_statement): Similarly, but for a while.
1870 (c_parser_do_statement): Similarly, but for a do-while.
1871 (c_parser_for_statement): Similarly, but for a for-loop.
1872 (c_parser_unary_expression): Check if array notation is used in a
1873 pre-increment or pre-decrement expression. If true, then expand
1874 them.
1875 (c_parser_array_notation): New function.
1876 * c-array-notation.c: New file.
1877 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
1878
cd192ccc
MS
18792013-05-23 Mike Stump <mikestump@comcast.net>
1880
1881 * c-typeck.c (convert_for_assignment): Handle references to memory
1882 spaces better.
1883
427b248d
JM
18842013-05-16 Jason Merrill <jason@redhat.com>
1885
1886 * Make-lang.in (cc1$(exeext)): Use link mutex.
1887
44d90fe1
PC
18882013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1889
1890 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
1891 to simply use OPT_Wpointer_arith.
1892 (build_unary_op): Likewise.
1893
4e7d7b3d
JJ
18942013-04-03 Jakub Jelinek <jakub@redhat.com>
1895
1896 PR c/19449
1897 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
1898 argument. If set, or it temporarily for parsing of the first
1899 argument into force_folding_builtin_constant_p.
1900 (c_parser_postfix_expression): Adjust callers.
1901
839b422f
RB
19022013-03-21 Richard Biener <rguenther@suse.de>
1903
1904 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
1905 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
1906
2ee028f1
MP
19072013-02-12 Marek Polacek <polacek@redhat.com>
1908
1909 PR c/44938
1910 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
1911 origtypes to NULL.
1912
8824edff
JJ
19132013-01-24 Jakub Jelinek <jakub@redhat.com>
1914
1915 PR c/56078
1916 * c-typeck.c (set_nonincremental_init_from_string): If
1917 constructor_max_index is NULL, treat it as if tree_int_cst_lt
1918 returned false.
1919 (process_init_element): Likewise.
1920
eadd3d0d
JJ
19212012-12-20 Jakub Jelinek <jakub@redhat.com>
1922
1923 PR c++/55619
1924 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
1925 argument, don't call default_function_array_conversion
1926 nor c_fully_fold here.
1927 (c_parser_asm_statement): Adjust callers.
1928 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
1929 and outputs here, and call default_function_array_conversion
1930 on inputs that don't need to be addressable.
1931
f8a93a2e
JJ
19322012-12-18 Jakub Jelinek <jakub@redhat.com>
1933
1934 PR c/39464
1935 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
1936 warning require that both c_common_unsigned_type as well as
1937 c_common_signed_type is the same for both mvl and mvr types.
1938
9771b263
DN
19392012-11-16 Diego Novillo <dnovillo@google.com>
1940
1941 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
1942
1943 * c-common.c: Use new vec API in vec.h.
1944 * c-common.h: Likewise.
1945 * c-gimplify.c: Likewise.
1946 * c-pragma.c: Likewise.
1947 * c-pretty-print.c: Likewise.
1948 * c-pretty-print.h: Likewise.
1949 * c-semantics.c: Likewise.
1950 * c-decl.c: Likewise.
1951 * c-parser.c: Likewise.
1952 * c-tree.h: Likewise.
1953 * c-typeck.c: Likewise.
1954
880661a4
JW
19552012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1956
1957 PR c++/54930
1958 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
1959
077d1abe
MLI
19602012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1961
1962 PR c/53066
1963 * c-decl.c (warn_if_shadowing): Do not warn if a variable
1964 shadows a function, unless the variable is a function or a
1965 pointer-to-function.
1966
3a785c97
JJ
19672012-10-12 Jakub Jelinek <jakub@redhat.com>
1968
1969 PR c/54381
1970 * c-parser.c (struct c_tree_loc_pair): Removed.
1971 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
1972 add location_t * and tree * arguments, fill in array of 3
1973 sizeof_arg trees and corresponding locs.
1974 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
1975 c_parser_expr_list callers.
1976 (c_parser_postfix_expression_after_primary): Likewise. Pass
1977 array of 3 sizeof_arg trees and locs (corresponding to first
1978 3 arguments) to sizeof_pointer_memaccess_warning.
1979
703c8606
LC
19802012-10-09 Lawrence Crowl <crowl@google.com>
1981
1982 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
1983 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
1984 hash table.
1985
5d9de0d0
PC
19862012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1987
1988 PR c++/54194
1989 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
1990 call.
1991
a212e43f
MG
19922012-10-09 Marc Glisse <marc.glisse@inria.fr>
1993
1994 PR c++/54427
1995 * c-typeck.c: Include c-common.h.
1996 (enum stv_conv): Moved to c-common.h.
1997 (scalar_to_vector): Moved to c-common.c.
1998 (build_binary_op): Adapt to scalar_to_vector's new prototype.
1999 * Make-lang.in: c-typeck.c depends on c-common.h.
2000
3b78de56
AC
20012012-10-04 Arnaud Charlet <charlet@adacore.com>
2002
2003 * c-decl.c (c_write_global_declarations): Fix handling of
2004 -fdump-ada-spec*.
2005
78c60e3d
SS
20062012-09-30 Sharad Singhai <singhai@google.com>
2007
2008 * c-decl.c (c_write_global_declarations): Use a different method
2009 to determine if the dump has ben initialized.
2010
9f33203d
JM
20112012-09-14 Joseph Myers <joseph@codesourcery.com>
2012
2013 PR c/54552
2014 * c-typeck.c (c_cast_expr): When casting to a type requiring
2015 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
2016 c_fully_fold first.
2017
a27d595d
JM
20182012-09-14 Joseph Myers <joseph@codesourcery.com>
2019
2020 PR c/54103
2021 * c-typeck.c (build_unary_op): Pass original argument of
2022 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
2023 any C_MAYBE_CONST_EXPR, if it has integer operands.
2024 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
2025 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
2026 to c_objc_common_truthvalue_conversion, then remove any
2027 C_MAYBE_CONST_EXPR, if they have integer operands. Use
2028 c_objc_common_truthvalue_conversion not
2029 c_common_truthvalue_conversion.
2030 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
2031 call note_integer_operands for arguments with integer operands
2032 that are not integer constants.
2033
9feb29df
JJ
20342012-09-13 Jakub Jelinek <jakub@redhat.com>
2035
2036 PR c/54559
2037 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
2038 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
2039
d409320c
JJ
20402012-08-31 Jakub Jelinek <jakub@redhat.com>
2041
2042 PR c/54428
2043 * c-convert.c (convert): Don't call fold_convert_loc if
2044 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
2045 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
2046 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
2047
6265d07c
JJ
20482012-08-24 Jakub Jelinek <jakub@redhat.com>
2049
2050 PR c/54355
2051 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
2052 for nested and empty_ok arguments in the call to
2053 c_parser_declaration_or_fndef.
2054
1a4049e7
JJ
20552012-08-17 Jakub Jelinek <jakub@redhat.com>
2056
2057 * c-tree.h (c_last_sizeof_arg): Declare.
2058 * c-parser.c (struct c_tree_loc_pair): New type.
2059 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
2060 non-NULL.
2061 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
2062 (c_parser_postfix_expression_after_primary): Likewise. Call
2063 sizeof_pointer_memaccess_warning if needed.
2064 (sizeof_ptr_memacc_comptypes): New function.
2065 * c-typeck.c (c_last_sizeof_arg): New global variable.
2066 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
2067
0229aee9
UB
20682012-07-24 Uros Bizjak <ubizjak@gmail.com>
2069
2070 * c-lang.h (lang_decl): Add variable_size GTY option.
2071
7ee2468b
SB
20722012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2073
2074 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
2075 * Make-lang.in: Fix dependencies.
2076
d4a10d0a
SB
20772012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2078
2079 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
2080 and add language Makefile hooks.
2081 * config-lang.in: New file.
2082 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
2083 add the required "normal" config-lang.in rules.
2084 * c-lang.h: Moved from gcc/ to here.
2085 * c-tree.h: Likewise.
2086 * c-objc-common.c: Likewise.
2087 * c-objc-common.h: Likewise.
2088 * c-typeck.c: Likewise.
2089 * c-convert.c: Likewise.
2090 * c-lang.c: Likewise.
2091 * c-aux-info.c: Likewise.
2092 * c-errors.c: Likewise.
2093 * gccspec.c: Likewise.
2094 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
2095 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
2096\f
5624e564 2097Copyright (C) 2012-2015 Free Software Foundation, Inc.
d4a10d0a
SB
2098
2099Copying and distribution of this file, with or without modification,
2100are permitted in any medium without royalty provided the copyright
2101notice and this notice are preserved.