]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
exp_util.adb (Remove_Side_Effects): Also make a constant if we need to capture the...
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
aa4b467b
JM
12016-05-13 Joseph Myers <joseph@codesourcery.com>
2
3 * c-decl.c (grokdeclarator): For C11, discard qualifiers on
4 function return type.
5
4f2e1536
MP
62016-05-12 Marek Polacek <polacek@redhat.com>
7
8 PR c/70756
9 * c-decl.c (build_compound_literal): Pass LOC down to
10 c_incomplete_type_error.
11 * c-tree.h (require_complete_type): Adjust declaration.
12 (c_incomplete_type_error): Likewise.
13 * c-typeck.c (require_complete_type): Add location parameter, pass it
14 down to c_incomplete_type_error.
15 (c_incomplete_type_error): Add location parameter, pass it down to
16 error_at.
17 (build_component_ref): Pass location down to c_incomplete_type_error.
18 (default_conversion): Pass location down to require_complete_type.
19 (build_array_ref): Likewise.
20 (build_function_call_vec): Likewise.
21 (convert_arguments): Likewise.
22 (build_unary_op): Likewise.
23 (build_c_cast): Likewise.
24 (build_modify_expr): Likewise.
25 (convert_for_assignment): Likewise.
26 (c_finish_omp_clauses): Likewise.
27
d6e83a8d
MM
282016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
29
30 PR c/43651
31 * c-decl.c (declspecs_add_qual): Warn when -Wduplicate-decl-specifier
32 is enabled.
33 * c-errors.c (pedwarn_c90): Return true if warned.
34 * c-tree.h (pedwarn_c90): Change return type to bool.
35 (enum c_declspec_word): Add new enumerator cdw_atomic.
36
5c3a10fb
MP
372016-05-11 Marek Polacek <polacek@redhat.com>
38
39 PR c++/71024
40 * c-decl.c (diagnose_mismatched_decls): Factor out code to
41 diagnose_mismatched_attributes and call it.
42
cf68d92c
MP
432016-05-10 Marek Polacek <polacek@redhat.com>
44
45 PR c/70255
46 * c-decl.c (diagnose_mismatched_decls): Warn for optimize attribute
47 on a declaration following the definition.
48
351f85c5
JJ
492016-05-05 Jakub Jelinek <jakub@redhat.com>
50
51 * c-parser.c (c_parser_switch_statement): Add IF_P argument,
52 parse it through to c_parser_c99_block_statement.
53 (c_parser_statement_after_labels): Adjust c_parser_switch_statement
54 caller.
55
deef7113
MP
562016-05-04 Marek Polacek <polacek@redhat.com>
57
58 * c-parser.c (c_parser_if_statement): Replace OPT_Wparentheses with
59 OPT_Wdangling_else.
60
de55efd5
MP
612016-05-04 Marek Polacek <polacek@redhat.com>
62
63 PR c/48778
64 * c-typeck.c (build_binary_op): Don't issue -Waddress warnings
65 for macro expansions.
66
79ce98bc
MP
672016-05-03 Marek Polacek <polacek@redhat.com>
68
69 PR c/70859
70 * c-typeck.c (build_function_call_vec): Pass LOC and ARG_LOC down to
71 check_builtin_function_arguments.
72
fb2647aa
RB
732016-05-03 Richard Biener <rguenther@suse.de>
74
75 * Make-lang.in (cc1-checksum.c): For stage-final re-use
76 the checksum from the previous stage.
77
77886428
CP
782016-05-02 Cesar Philippidis <cesar@codesourcery.com>
79
80 * c-parser.c (c_parser_oacc_all_clauses): Update call to
81 c_finish_omp_clauses.
82 (c_parser_omp_all_clauses): Likewise.
83 (c_parser_oacc_cache): Likewise.
84 (c_parser_oacc_loop): Likewise.
85 (omp_split_clauses): Likewise.
86 (c_parser_omp_declare_target): Likewise.
87 (c_parser_cilk_all_clauses): Likewise.
88 (c_parser_cilk_for): Likewise.
89 * c-typeck.c (c_finish_omp_clauses): Replace bool arguments
90 is_omp, declare_simd, and is_cilk with enum c_omp_region_type ort.
91
7176a4a0
MP
922016-05-02 Marek Polacek <polacek@redhat.com>
93
94 PR c/70851
95 * c-decl.c (grokdeclarator): Diagnose when array's size has an
96 incomplete type.
97
e7ff0319
CP
982016-04-29 Cesar Philippidis <cesar@codesourcery.com>
99
100 PR middle-end/70626
101 * c-parser.c (c_parser_oacc_loop): Don't augment mask with
102 OACC_LOOP_CLAUSE_MASK.
103 (c_parser_oacc_kernels_parallel): Update call to
104 c_oacc_split_loop_clauses.
105
9f405ce1
AM
1062016-04-28 Andrew MacLeod <amacleod@redhat.com>
107
108 * c-array-notation.c (fix_builtin_array_notation_fn): Fix final
109 argument to build_modify_expr in two cases.
110
c1e1f433
BS
1112016-04-27 Bernd Schmidt <bschmidt@redhat.com>
112
113 * c-parser.c (c_parser_postfix_expression_after_primary): Call
114 warn_for_memset instead of warning directly here.
115
2448a956
MP
1162016-04-26 Marek Polacek <polacek@redhat.com>
117
118 PR c/67784
119 * c-parser.c (c_parser_maybe_reclassify_token): New function factored
120 out of ...
121 (c_parser_for_statement): ... here.
122 (c_parser_if_statement): Use it.
123 (c_parser_switch_statement): Use it.
124 (c_parser_while_statement): Use it.
125
b02a5e26
MP
126 PR c/70791
127 * c-decl.c (pushdecl): Pass LOCUS down to warning.
128
477d4906
IV
1292016-04-20 Ilya Verbin <ilya.verbin@intel.com>
130
131 PR c++/69363
132 * c-parser.c (c_parser_cilk_all_clauses): Use c_finish_omp_clauses
133 instead of c_finish_cilk_clauses.
134 * c-tree.h (c_finish_omp_clauses): Add new default argument.
135 * c-typeck.c (c_finish_omp_clauses): Add new argument. Allow
136 floating-point variables in the linear clause for Cilk Plus.
137
fe37c7af
MM
1382016-04-18 Michael Matz <matz@suse.de>
139
140 * c-decl.c (merge_decls): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
141 (grokdeclarator, parser_xref_tag, finish_enum): Use SET_TYPE_ALIGN.
142
949505a9
MP
1432016-04-15 Marek Polacek <polacek@redhat.com>
144
145 PR c/70671
146 * c-typeck.c (build_unary_op): Pass location down to error and
147 warning call.
148
dda1bf61
JJ
1492016-04-15 Jakub Jelinek <jakub@redhat.com>
150
151 PR c/70436
152 * c-parser.c (c_parser_pragma): Add IF_P argument, pass it down
153 where needed.
154 (c_parser_external_declaration, c_parser_struct_or_union_specifier,
155 c_parser_parameter_declaration, c_parser_compound_statement_nostart,
156 c_parser_objc_class_instance_variables, c_parser_objc_methodprotolist):
157 Adjust c_parser_pragma callers.
158 (c_parser_statement_after_labels): Likewise. Adjust c_parser_cilk_for
159 caller.
160 (c_parser_omp_structured_block): Add IF_P argument, pass it down to
161 c_parser_statement.
162 (c_parser_oacc_data, c_parser_oacc_host_data, c_parser_oacc_loop,
163 c_parser_oacc_kernels_parallel, c_parser_omp_critical,
164 c_parser_omp_simd, c_parser_omp_for, c_parser_omp_master,
165 c_parser_omp_ordered, c_parser_omp_parallel, c_parser_omp_single,
166 c_parser_omp_task, c_parser_omp_taskgroup, c_parser_omp_distribute,
167 c_parser_omp_teams, c_parser_omp_target_data, c_parser_omp_target,
168 c_parser_omp_taskloop, c_parser_omp_construct, c_parser_cilk_grainsize,
169 c_parser_cilk_simd, c_parser_cilk_for): Add IF_P argument, pass it
170 down where needed.
171 (c_parser_omp_for_loop): Likewise. Clear IF_P if nbraces.
172 (c_parser_omp_sections_scope): Adjust c_parser_omp_structured_block
173 calls.
174
99cd9857
MP
1752016-04-13 Marek Polacek <polacek@redhat.com>
176
177 PR c/70436
178 * c-parser.c (c_parser_statement_after_labels): Add IF_P argument and
179 adjust callers.
180 (c_parser_statement): Likewise.
181 (c_parser_c99_block_statement): Likewise.
182 (c_parser_while_statement): Likewise.
183 (c_parser_for_statement): Likewise.
184 (c_parser_if_body): Don't set IF_P here.
185 (c_parser_if_statement): Add IF_P argument. Set IF_P here. Warn
186 about dangling else here.
187 * c-tree.h (c_finish_if_stmt): Adjust declaration.
188 * c-typeck.c (c_finish_if_stmt): Remove NESTED_IF parameter. Don't
189 warn about dangling else here.
190
f13355da
MP
1912016-04-04 Marek Polacek <polacek@redhat.com>
192
193 PR c/70307
194 * c-fold.c (c_fully_fold_internal): Handle VEC_COND_EXPR.
195
5fde6a45
MP
1962016-03-31 Marek Polacek <polacek@redhat.com>
197
198 PR c/70297
199 * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN.
200
4bbf545b
DM
2012016-03-18 David Malcolm <dmalcolm@redhat.com>
202
203 PR c/70281
204 * c-parser.c (c_parser_postfix_expression): Set the source range
205 for uses of "__builtin_types_compatible_p".
206
fcc2b74f
JJ
2072016-03-17 Jakub Jelinek <jakub@redhat.com>
208
209 PR c/70280
210 * c-typeck.c (composite_type): Don't count void_list_node
211 into len, if the list is terminated by void_list_node, start
212 with void_list_node instead of NULL for newargs. Stop
213 at void_list_node.
214
ab4c578f
MP
2152016-03-16 Marek Polacek <polacek@redhat.com>
216
217 PR c/70093
218 * c-typeck.c (build_function_call_vec): Create a TARGET_EXPR for
219 nested functions returning VM types.
220
96b3c82d
CP
2212016-03-09 Cesar Philippidis <cesar@codesourcery.com>
222
223 * c-parser.c (c_parser_oacc_loop): Update cclauses and clauses
224 when calling c_finish_omp_clauses.
225
29b9828f
BS
2262016-03-04 Bernd Schmidt <bschmidt@redhat.com>
227
228 PR c/69824
229 * c-decl.c (get_parm_info): Don't queue implicit function declarations
230 for later.
231
7ff6ca38
MP
2322016-03-04 Marek Polacek <polacek@redhat.com>
233
234 PR c/69798
235 * c-parser.c (c_parser_postfix_expression): Call
236 c_parser_cast_expression rather than c_parser_postfix_expression.
237
686e2237
JJ
2382016-03-01 Jakub Jelinek <jakub@redhat.com>
239
240 PR c/69796
241 PR c/69974
242 * c-parser.c (c_parser_translation_unit): Don't change TREE_TYPE
243 of incomplete decls to error_mark_node.
244
0b05329b
MP
2452016-02-24 Marek Polacek <polacek@redhat.com>
246
247 PR c/69819
248 * c-decl.c (finish_decl): Don't update the copy of the type of a
249 different decl type.
250
067fbd8b
JJ
2512016-02-23 Jakub Jelinek <jakub@redhat.com>
252
253 PR objc/69844
254 * c-parser.c (c_parser_for_statement): Properly handle ObjC classes
255 in id_kind reclassification.
256
bf14eba2
JJ
2572016-02-16 Jakub Jelinek <jakub@redhat.com>
258
259 PR c/69835
260 * c-typeck.c (build_binary_op): Revert 2015-09-09 change.
261
ba539195
JN
2622016-02-16 James Norris <jnorris@codesourcery.com>
263
264 PR c/64748
265 * c-parser.c (c_parser_oacc_data_clause_deviceptr): Allow parms.
266
16595a1f
BS
2672016-02-12 Bernd Schmidt <bschmidt@redhat.com>
268
f48dfe98
BS
269 * c-decl.c (build_null_declspecs): Zero the entire struct.
270
16595a1f
BS
271 PR c/69522
272 * c-parser.c (c_parser_braced_init): New arg outer_obstack. All
273 callers changed. If nested_p is true, use it to call
274 finish_implicit_inits.
275 * c-tree.h (finish_implicit_inits): Declare.
276 * c-typeck.c (finish_implicit_inits): New function. Move code
277 from ...
278 (push_init_level): ... here.
279 (set_designator, process_init_element): Call finish_implicit_inits.
280
66756373
JJ
2812016-02-11 Jakub Jelinek <jakub@redhat.com>
282
283 PR c/69768
284 * c-typeck.c (parser_build_binary_op): Strip nops from integer_zerop
285 arguments for -Waddress warning.
286
1066e9b5
JJ
2872016-02-04 Jakub Jelinek <jakub@redhat.com>
288
289 PR c/69669
290 * c-decl.c (finish_enum): When honoring mode attribute,
291 make sure to use proper TYPE_MIN_VALUE and TYPE_MAX_VALUE.
292
3a5d2ba4
JJ
2932016-01-29 Jakub Jelinek <jakub@redhat.com>
294
295 PR debug/69518
296 * c-decl.c (finish_struct): Clear C_TYPE_INCOMPLETE_VARS in
297 all type variants, not just TYPE_MAIN_VARIANT.
298
cbdd8ae0
JJ
2992016-01-27 Jakub Jelinek <jakub@redhat.com>
300
301 PR debug/66869
302 * c-decl.c (c_write_global_declarations_1): Warn with
303 warn_unused_function if static prototype without definition
304 is not C_DECL_USED.
305
fa74a4bc
MP
3062016-01-27 Marek Polacek <polacek@redhat.com>
307
308 PR c/68062
309 * c-typeck.c (build_binary_op) [EQ_EXPR, GE_EXPR]: Promote operand
310 to unsigned, if needed. Add -Wsign-compare warning.
311
13f92e8d
JJ
3122016-01-26 Jakub Jelinek <jakub@redhat.com>
313
314 PR tree-optimization/69483
315 * c-parser.c (c_parser_translation_unit): Use FOR_EACH_VEC_ELT.
316
cd8e73dc 3172016-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
d25c7690
PK
318
319 PR c/24293
320 * c-tree.h (incomplete_record_decls): Declare.
321 * c-parser.c (incomplete_record_decls): Define.
322 (c_parser_translation_unit): Iterate through incomplete_record_decls and
323 report error if any decl has zero size.
324 * c-decl.c (finish_decl): Append static decl with incomplete struct/union
325 or enum type to incomplete_record_decls.
326
e6d6ec9e
TV
3272016-01-14 Tom de Vries <tom@codesourcery.com>
328
329 PR tree-optimization/68773
330 * c-parser.c (c_parser_oacc_declare, c_parser_omp_declare_target): Don't
331 set force_output.
332
00083992
MP
3332016-01-14 Marek Polacek <polacek@redhat.com>
334
335 PR c/69262
336 * c-decl.c (grokdeclarator): Provide more information for invalid
337 array declarations.
338
7443cf13
DM
3392016-01-06 David Malcolm <dmalcolm@redhat.com>
340
341 * c-parser.c (c_parser_unary_expression): For dereferences, build
342 a combined location before calling build_indirect_ref, so that
343 error reports cover the full range, manually updating the c_expr
344 src_range.
345
6b131d5b
MP
3462016-01-06 Marek Polacek <polacek@redhat.com>
347
348 PR sanitizer/69099
349 * c-convert.c (convert) [INTEGER_TYPE]: Drop ARG. Don't pass ARG to
350 ubsan_instrument_float_cast. Fold EXPR. Use NULL_TREE instead of
351 NULL.
352
818ab71a
JJ
3532016-01-04 Jakub Jelinek <jakub@redhat.com>
354
355 Update copyright years.
356
2fe0a208
MP
3572016-01-04 Marek Polacek <polacek@redhat.com>
358
359 PR c/68908
360 * c-typeck.c (build_atomic_assign): Improve commentary. Add
361 optimization to use __atomic_fetch_* built-in if possible.
362
c7b48c8a
TS
3632015-12-23 Thomas Schwinge <thomas@codesourcery.com>
364
365 * c-parser.c (c_parser_oacc_clause_use_device): Merge function
366 into...
367 (c_parser_omp_clause_use_device_ptr): ... this function. Adjust
368 all users.
369
fda5652f
MP
3702015-12-22 Marek Polacek <polacek@redhat.com>
371
372 PR c/69002
373 * c-typeck.c (build_component_ref): Warn when acessing elements of
374 atomic structures or unions.
375
745e411d
DM
3762015-12-21 David Malcolm <dmalcolm@redhat.com>
377
378 * c-typeck.c: Include "gcc-rich-location.h".
379 (build_binary_op): In the two places that call binary_op_error,
380 create a gcc_rich_location and populate it with the location of
381 the binary op and its two operands.
382
94c40e19
DM
3832015-12-16 David Malcolm <dmalcolm@redhat.com>
384
385 * c-parser.c (c_parser_statement_after_labels): When calling
386 c_finish_return, Use the return expression's location if it has
387 one, falling back to the location of the first token within it.
388 * c-typeck.c (c_finish_return): When issuing warnings about
389 the incorrect presence/absence of a return value, issue a note
390 showing the declaration of the function.
391
de67c4c3
DM
3922015-12-16 David Malcolm <dmalcolm@redhat.com>
393
394 * c-parser.c (struct c_parser): Expand array "tokens_buf" from 2
395 to 4.
396 (c_parser_peek_nth_token): New function.
397 (c_parser_peek_conflict_marker): New function.
398 (c_parser_error): Detect conflict markers and report them as such.
399
a10704e1
DM
4002015-12-16 David Malcolm <dmalcolm@redhat.com>
401
402 * c-parser.c (c_parser_postfix_expression): Use EXPR_LOC_OR_LOC
403 to preserve range information for the primary expression
404 in the call to c_parser_postfix_expression_after_primary.
405
8062bca6
DM
4062015-12-16 David Malcolm <dmalcolm@redhat.com>
407
408 * c-parser.c (c_parser_static_assert_declaration_no_semi): Use the
409 expression location, falling back on the first token location,
410 rather than always using the latter.
411
d06f8b75
MP
4122015-12-16 Marek Polacek <polacek@redhat.com>
413
414 PR c/64637
415 * c-typeck.c (c_process_expr_stmt): Use location of the expression if
416 available.
417
2994fb91
MP
4182015-12-15 Marek Polacek <polacek@redhat.com>
419
420 PR c/68907
421 * c-typeck.c (build_atomic_assign): Set TREE_NO_WARNING on an
422 artificial decl.
423
a1b93f8d
DM
4242015-12-08 David Malcolm <dmalcolm@redhat.com>
425
426 * c-parser.c (c_parser_alignof_expression): Capture location of
427 closing parenthesis (if any), or of end of unary expression, and
428 use it to build a src_range for the expression.
429
46c6e1e2
DM
4302015-12-08 David Malcolm <dmalcolm@redhat.com>
431
432 PR c/68757
433 * c-parser.c (c_parser_get_builtin_args): Add
434 "out_close_paren_loc" param, and write back to it.
435 (c_parser_postfix_expression): Capture the closing
436 parenthesis location for RID_CHOOSE_EXPR,
437 RID_BUILTIN_CALL_WITH_STATIC_CHAIN, RID_BUILTIN_COMPLEX,
438 RID_BUILTIN_SHUFFLE and use it to set the source range
439 for such expressions; within RID_BUILTIN_COMPLEX set
440 the underlying location.
441
66189108
MP
4422015-12-07 Marek Polacek <polacek@redhat.com>
443
444 PR c/68668
445 * c-decl.c (grokdeclarator): If ORIG_QUAL_INDIRECT is indirect, use
446 TREE_TYPE of ORIG_QUAL_TYPE, otherwise decrement ORIG_QUAL_INDIRECT.
447
f187980b
EB
4482015-12-04 Eric Botcazou <ebotcazou@adacore.com>
449
450 * c-tree.h (c_build_va_arg): Adjust prototype.
451 * c-parser.c (c_parser_postfix_expression): Adjust call to above.
452 * c-typeck.c (c_build_va_arg): Rename LOC parameter to LOC2, add LOC1
453 parameter, adjust throughout and issue an error if EXPR is a component
454 with reverse storage order.
455
4250754e
JM
4562015-12-02 Jason Merrill <jason@redhat.com>
457
458 * c-fold.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
459 (c_fully_fold_internal, decl_constant_value_for_optimization):
460 Move from c-common.c.
461 * c-tree.h: Declare decl_constant_value_for_optimization.
462 * Make-lang.in (C_AND_OBJC_OBJS): Add c-fold.o.
463
e9e32ee6
JM
4642015-12-02 Joseph Myers <joseph@codesourcery.com>
465
466 PR c/68162
467 * c-decl.c (grokdeclarator): Set first_non_attr_kind before
468 following link from declarator to next declarator. Track original
469 qualified type and pass it to c_build_qualified_type.
470 * c-typeck.c (c_build_qualified_type): Add arguments
471 orig_qual_type and orig_qual_indirect.
472
ff7a55bf
TS
4732015-12-02 Thomas Schwinge <thomas@codesourcery.com>
474
475 * c-parser.c (c_parser_omp_clause_name)
476 (c_parser_oacc_all_clauses): Alphabetical sorting.
477
657e4e47
JJ
4782015-12-02 Jakub Jelinek <jakub@redhat.com>
479
480 PR c/68533
481 * c-decl.c (get_parm_info): Use b->locus instead of input_location
482 for diagnostics.
483
37d5ad46
JB
4842015-12-01 Julian Brown <julian@codesourcery.com>
485 Cesar Philippidis <cesar@codesourcery.com>
486 James Norris <James_Norris@mentor.com>
487
488 * c-parser.c (c_parser_omp_clause_name): Add use_device support.
489 (c_parser_oacc_clause_use_device): New function.
490 (c_parser_oacc_all_clauses): Add use_device support.
491 (OACC_HOST_DATA_CLAUSE_MASK): New macro.
492 (c_parser_oacc_host_data): New function.
493 (c_parser_omp_construct): Add host_data support.
494 * c-tree.h (c_finish_oacc_host_data): Add prototype.
495 * c-typeck.c (c_finish_oacc_host_data): New function.
496 (c_finish_omp_clauses): Add use_device support.
497
a4850ce9
JH
4982015-11-29 Jan Hubicka <hubicka@ucw.cz>
499
500 PR c/67106
501 * c-decl.c: Set TYPE_PACKED in variants.
502
b58d3df2
ML
5032015-11-27 Martin Liska <mliska@suse.cz>
504
505 PR c++/68312
506 * c-array-notation.c (fix_builtin_array_notation_fn):
507 Use release_vec_vec instead of vec::release.
508 (build_array_notation_expr): Likewise.
509 (fix_conditional_array_notations_1): Likewise.
510 (fix_array_notation_expr): Likewise.
511 (fix_array_notation_call_expr): Likewise.
512
aec17bfe
JJ
5132015-11-27 Jakub Jelinek <jakub@redhat.com>
514
515 PR c/63326
516 * c-parser.c (c_parser_compound_statement_nostart): If
517 last_label is true, use pragma_stmt instead of pragma_compound
518 as second c_parser_pragma argument.
519 (c_parser_omp_ordered, c_parser_omp_target_update,
520 c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): Pass
521 false as second argument to c_parser_skip_to_pragma_eol after
522 diagnosing standalone directives used in pragma_stmt context.
523
688c4de0
IV
5242015-11-24 Ilya Verbin <ilya.verbin@intel.com>
525
526 * c-parser.c (c_parser_oacc_declare): Replace "ifdef ENABLE_OFFLOADING"
527 with "if (ENABLE_OFFLOADING)".
528
cbd03aee
DM
5292015-11-23 David Malcolm <dmalcolm@redhat.com>
530
531 PR objc/68438
532 * c-parser.c (c_parser_postfix_expression): Set up source ranges
533 for various Objective-C constructs: Class.name syntax,
534 @selector(), @protocol(), @encode(), and [] message syntax.
535
a87a86e1
DM
5362015-11-20 David Malcolm <dmalcolm@redhat.com>
537
538 PR 62314
539 * c-typeck.c (should_suggest_deref_p): New function.
540 (build_component_ref): Special-case POINTER_TYPE when
541 generating a "not a structure of union" error message, and
542 suggest a "->" rather than a ".", providing a fix-it hint.
543
8ece8dfb
DM
5442015-11-19 David Malcolm <dmalcolm@redhat.com>
545
546 * c-typeck.c (lookup_field_fuzzy): Move determination of closest
547 candidate into a new function, find_closest_identifier.
548
433068cc
MP
5492015-11-19 Marek Polacek <polacek@redhat.com>
550
551 PR c/68412
552 * c-typeck.c (parser_build_binary_op): Properly handle
553 C_MAYBE_CONST_EXPR before calling warn_tautological_cmp.
554
bef08b71
DM
5552015-11-17 David Malcolm <dmalcolm@redhat.com>
556
557 * c-parser.c (set_c_expr_source_range): Bulletproof both
558 overloaded implementations against NULL expr->value.
559 (c_parser_braced_init): Set src_range for "ret" to a sane pair of
560 values.
561 (c_parser_unary_expression): Likewise when handling addresses of
562 labels.
563 (c_parser_postfix_expression): Likewise for statement expressions,
564 for __FUNCTION__, __PRETTY_FUNCTION_ and __func__ keywords, for
565 __builtin_va_arg, and for __builtin_offset_of.
566 (c_parser_postfix_expression_after_paren_type): Initialize expr's
567 src_range using the range of the braced initializer.
568 (c_parser_transaction_expression): Set src_range for "ret" to a
569 sane pair of values.
570
fff77217
KY
5712015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
572
573 * c-parser.c (c_finish_omp_declare_simd): Look for
574 "simd" attribute as well. Update error message.
575
1d899da2
TS
5762015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
577
578 * c-parser.c (c_parser_omp_declare_target): Adjust.
579
e4606348
JJ
5802015-11-14 Jakub Jelinek <jakub@redhat.com>
581
582 * c-typeck.c (c_finish_omp_clauses): Don't mark
583 GOMP_MAP_FIRSTPRIVATE_POINTER decls addressable.
584
3e636daf
MP
5852015-11-14 Marek Polacek <polacek@redhat.com>
586
587 * c-decl.c: Use RECORD_OR_UNION_TYPE_P throughout.
588 * c-typeck.c: Likewise.
589
ebedc9a3
DM
5902015-11-13 David Malcolm <dmalcolm@redhat.com>
591
592 * c-decl.c (warn_defaults_to): Pass line_table to
593 rich_location ctor.
594 * c-errors.c (pedwarn_c99): Likewise.
595 (pedwarn_c90): Likewise.
596 * c-parser.c (set_c_expr_source_range): New functions.
597 (c_token::get_range): New method.
598 (c_token::get_finish): New method.
599 (c_parser_expr_no_commas): Call set_c_expr_source_range on the ret
600 based on the range from the start of the LHS to the end of the
601 RHS.
602 (c_parser_conditional_expression): Likewise, based on the range
603 from the start of the cond.value to the end of exp2.value.
604 (c_parser_binary_expression): Call set_c_expr_source_range on
605 the stack values for TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
606 (c_parser_cast_expression): Call set_c_expr_source_range on ret
607 based on the cast_loc through to the end of the expr.
608 (c_parser_unary_expression): Likewise, based on the
609 op_loc through to the end of op.
610 (c_parser_sizeof_expression) Likewise, based on the start of the
611 sizeof token through to either the closing paren or the end of
612 expr.
613 (c_parser_postfix_expression): Likewise, using the token range,
614 or from the open paren through to the close paren for
615 parenthesized expressions.
616 (c_parser_postfix_expression_after_primary): Likewise, for
617 various kinds of expression.
618 * c-tree.h (struct c_expr): Add field "src_range".
619 (c_expr::get_start): New method.
620 (c_expr::get_finish): New method.
621 (set_c_expr_source_range): New decls.
622 * c-typeck.c (parser_build_unary_op): Call set_c_expr_source_range
623 on ret for prefix unary ops.
624 (parser_build_binary_op): Likewise, running from the start of
625 arg1.value through to the end of arg2.value.
626
ec8b536f
MP
6272015-11-13 Marek Polacek <polacek@redhat.com>
628
629 PR c/68320
630 * c-parser.c (c_parser_for_statement): Treat unknown tokens as IDs.
631
277fe616
DM
6322015-11-13 David Malcolm <dmalcolm@redhat.com>
633
634 * c-typeck.c: Include spellcheck.h.
635 (lookup_field_fuzzy_find_candidates): New function.
636 (lookup_field_fuzzy): New function.
637 (build_component_ref): If the field was not found, try using
638 lookup_field_fuzzy and potentially offer a suggestion.
639
6e232ba4
JN
6402015-11-12 James Norris <jnorris@codesourcery.com>
641 Joseph Myers <joseph@codesourcery.com>
642
643 * c-parser.c (c_parser_pragma): Handle PRAGMA_OACC_DECLARE.
644 (c_parser_omp_clause_name): Handle 'device_resident' clause.
645 (c_parser_oacc_data_clause): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
646 and PRAGMA_OMP_CLAUSE_LINK.
647 (c_parser_oacc_all_clauses): Handle PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT
648 and PRAGMA_OACC_CLAUSE_LINK.
649 (OACC_DECLARE_CLAUSE_MASK): New definition.
650 (c_parser_oacc_declare): New function.
651
9be4f715
MP
6522015-11-12 Marek Polacek <polacek@redhat.com>
653
654 PR c/67784
655 * c-parser.c (c_parser_for_statement): Reclassify the token in
656 a correct scope.
657
e78bede6
MP
6582015-11-11 Marek Polacek <polacek@redhat.com>
659
660 PR c/68107
661 PR c++/68266
662 * c-decl.c (grokdeclarator): Call valid_array_size_p. Remove code
663 checking the size of an array.
664
69f293c9
AM
6652015-11-11 Andrew MacLeod <amacleod@redhat.com>
666
667 * c-array-notation.c: Remove unused header files.
668 * c-aux-info.c: Likewise.
669 * c-convert.c: Likewise.
670 * c-decl.c: Likewise.
671 * c-errors.c: Likewise.
672 * c-lang.c: Likewise.
673 * c-objc-common.c: Likewise.
674 * c-parser.c: Likewise.
675 * c-typeck.c: Likewise.
676 * gccspec.c: Likewise.
677
3a40d81d
NS
6782015-11-09 Thomas Schwinge <thomas@codesourcery.com>
679 Cesar Philippidis <cesar@codesourcery.com>
680 James Norris <jnorris@codesourcery.com>
681 Julian Brown <julian@codesourcery.com>
682 Nathan Sidwell <nathan@codesourcery.com>
683
684 c/
685 * c-parser.c (c_parser_declaration_or_fndef): Add OpenACC
686 routine arg.
687 (c_parser_declaration_or_fndef): Call c_finish_oacc_routine.
688 (c_parser_pragma): Parse 'acc routine'.
689 (OACC_ROUTINE_CLAUSE_MARK): Define.
690 (c_parser_oacc_routine, (c_finish_oacc_routine): New.
691
fc402eec
AA
6922015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
693
694 PR debug/67192
695 * c-typeck.c (c_finish_loop): For unconditional loops, set the
696 location of the backward-goto to the start of the loop body.
697
f6b0b3db
AA
6982015-11-09 Andreas Arnez <arnez@linux.vnet.ibm.com>
699
700 PR debug/67192
701 * c-parser.c (c_parser_while_statement): Finish the loop before
702 parsing ahead for misleading indentation.
703 (c_parser_for_statement): Likewise.
704
ee45a32d
EB
7052015-11-08 Eric Botcazou <ebotcazou@adacore.com>
706
707 * c-decl.c (finish_struct): If the structure has reverse storage
708 order, rewrite the type of array fields with scalar component. Call
709 maybe_apply_pragma_scalar_storage_order on entry.
710 * c-typeck.c (build_unary_op) <ADDR_EXPR>: Remove left-overs. Issue
711 errors on bit-fields and reverse SSO here and not...
712 (c_mark_addressable): ...here.
713 (output_init_element): Adjust call to initializer_constant_valid_p.
714 (c_build_qualified_type): Propagate TYPE_REVERSE_STORAGE_ORDER.
715
8a645150
DM
7162015-11-06 David Malcolm <dmalcolm@redhat.com>
717
718 * c-decl.c (warn_defaults_to): Update for change in signature
719 of diagnostic_set_info.
720 * c-errors.c (pedwarn_c99): Likewise.
721 (pedwarn_c90): Likewise.
722 * c-objc-common.c (c_tree_printer): Update for new "caret_p" param
723 for textinfo::set_location.
724
7a5e4956
CP
7252015-11-05 Cesar Philippidis <cesar@codesourcery.com>
726 Thomas Schwinge <thomas@codesourcery.com>
727 James Norris <jnorris@codesourcery.com>
728
729 * c-parser.c (c_parser_omp_clause_name): Add support for
730 PRAGMA_OACC_CLAUSE_INDEPENDENT and PRAGMA_OACC_CLAUSE_TILE.
731 (c_parser_omp_clause_default): Add is_oacc argument. Handle
732 default(none) in OpenACC.
733 (c_parser_oacc_shape_clause): Allow pointer variables as gang static
734 arguments.
735 (c_parser_oacc_clause_tile): New function.
736 (c_parser_oacc_all_clauses): Add support for OMP_CLAUSE_DEFAULT,
737 OMP_CLAUSE_INDEPENDENT and OMP_CLAUSE_TILE.
738 (OACC_LOOP_CLAUSE_MASK): Add PRAGMA_OACC_CLAUSE_{PRIVATE,INDEPENDENT,
739 TILE}.
740 (OACC_KERNELS_MASK): Add PRAGMA_OACC_CLAUSE_DEFAULT.
741 (OACC_PARALLEL_MASK): Add PRAGMA_OACC_CLAUSE_{DEFAULT,PRIVATE,
742 FIRSTPRIVATE}.
743 (c_parser_omp_all_clauses): Update call to c_parser_omp_clause_default.
744 (c_parser_oacc_update): Update the error message for missing clauses.
745 * c-typeck.c (c_finish_omp_clauses): Add support for OMP_CLAUSE_TILE
746 and OMP_CLAUSE_INDEPENDENT.
747
bfcfbfa0
MP
7482015-11-05 Marek Polacek <polacek@redhat.com>
749
750 PR c/68090
751 * c-parser.c (c_parser_postfix_expression_after_paren_type): Don't
752 deal with pre-evaluation on invalid types.
753
e01d41e5
JJ
7542015-11-05 Jakub Jelinek <jakub@redhat.com>
755 Ilya Verbin <ilya.verbin@intel.com>
756
757 * c-parser.c: Include context.h and gimple-expr.h.
758 (c_parser_omp_clause_schedule): Parse schedule modifiers, diagnose
759 monotonic together with nonmonotonic.
760 (c_parser_omp_for_loop): Call c_omp_check_loop_iv. Call add_stmt here.
761 (OMP_DISTRIBUTE_CLAUSE_MASK): Add lastprivate clause.
762 (c_parser_omp_target_data, c_parser_omp_target_enter_data,
763 c_parser_omp_target_exit_data): Allow GOMP_MAP_ALWAYS_POINTER.
764 (c_parser_omp_target): Likewise. Evaluate num_teams and thread_limit
765 expressions on combined target teams before the target.
766 (c_parser_omp_declare_target): If decl has "omp declare target" or
767 "omp declare target link" attribute, and cgraph or varpool node already
768 exists, then set corresponding flags. Call c_finish_omp_clauses
769 in the parenthesized extended-list syntax case.
770 * c-decl.c (c_decl_attributes): Don't diagnose block scope vars inside
771 declare target.
772 * c-typeck.c (handle_omp_array_sections_1): Allow non-zero low-bound
773 on OMP_CLAUSE_REDUCTION array sections.
774 (handle_omp_array_sections): Encode low-bound into the MEM_REF, either
775 into the constant offset, or for variable low-bound using
776 POINTER_PLUS_EXPR. For structure element based array sections use
777 GOMP_MAP_ALWAYS_POINTER instead of GOMP_MAP_FIRSTPRIVATE_POINTER.
778 (c_finish_omp_clauses): Drop generic_field_head, structure
779 elements are now always mapped even as array section bases,
780 diagnose same var in data sharing and mapping clauses. Diagnose if
781 linear step on declare simd is neither a constant nor a uniform
782 parameter. Look through POINTER_PLUS_EXPR for array section
783 reductions. Diagnose the same var or function appearing multiple
784 times on the same directive. Fix up wording for the to clause if t
785 is neither a FUNCTION_DECL nor a VAR_DECL. Diagnose nonmonotonic
786 modifier on kinds other than dynamic or guided or nonmonotonic
787 modifier together with ordered clause.
788
4bf9e5a8
TS
7892015-11-03 Thomas Schwinge <thomas@codesourcery.com>
790 Chung-Lin Tang <cltang@codesourcery.com>
791
792 * c-parser.c (c_parser_omp_construct): Handle PRAGMA_OACC_ATOMIC.
793
2adfab87
AM
7942015-10-29 Andrew MacLeod <amacleod@redhat.com>
795
796 * c-array-notation.c: Reorder #include's and remove duplicates.
797 * c-aux-info.c: Likewise.
798 * c-convert.c: Likewise.
799 * c-decl.c: Likewise.
800 * c-errors.c: Likewise.
801 * c-lang.c: Likewise.
802 * c-objc-common.c: Likewise.
803 * c-parser.c: Likewise.
804 * c-typeck.c: Likewise.
805
e922069e
JW
8062015-10-26 Jim Wilson <jim.wilson@linaro.org>
807
808 PR debug/66068
809 * c-typeck.c (c_build_qualified_type): Clear C_TYPE_INCOMPLETE_VARS
810 after calling build_qualified_type.
811
765dd391
CP
8122015-10-27 Cesar Philippidis <cesar@codesourcery.com>
813 Thomas Schwinge <thomas@codesourcery.com>
814 James Norris <jnorris@codesourcery.com>
815 Joseph Myers <joseph@codesourcery.com>
816 Julian Brown <julian@codesourcery.com>
817 Bernd Schmidt <bschmidt@redhat.com>
818
819 * c-parser.c (c_parser_oacc_shape_clause): New.
820 (c_parser_oacc_simple_clause): New.
821 (c_parser_oacc_all_clauses): Add auto, gang, seq, vector, worker.
822 (OACC_LOOP_CLAUSE_MASK): Add gang, worker, vector, auto, seq.
823
88bae6f4
TS
8242015-10-27 Thomas Schwinge <thomas@codesourcery.com>
825 James Norris <jnorris@codesourcery.com>
826 Cesar Philippidis <cesar@codesourcery.com>
827
828 PR c/64765
829 PR c/64880
830 * c-parser.c (c_parser_oacc_loop): Add mask, cclauses formal
831 parameters, and handle these. Adjust all users.
832 (c_parser_oacc_kernels, c_parser_oacc_parallel): Merge functions
833 into...
834 (c_parser_oacc_kernels_parallel): ... this new function. Adjust
835 all users.
836 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels): Don't
837 declare functions.
838 (c_finish_omp_construct): Declare function.
839 * c-typeck.c (c_finish_oacc_parallel, c_finish_oacc_kernels):
840 Merge functions into...
841 (c_finish_omp_construct): ... this new function.
842
a8fc2579
RB
8432015-10-22 Richard Biener <rguenther@suse.de>
844
845 * c-typeck.c (c_finish_omp_clauses): Properly convert operands
846 before folding a MINUS_EXPR.
847
e9122ef6
MP
8482015-10-21 Marek Polacek <polacek@redhat.com>
849
850 PR c/68024
851 * c-decl.c (start_function): Warn about vararg functions without
852 a prototype.
853
9f47c7e5
IE
8542015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
855
856 * c-typeck.c (build_conditional_expr): Use boolean vector
857 type for vector comparison.
858 (build_vec_cmp): New.
859 (build_binary_op): Use build_vec_cmp for comparison.
860
fa60eeb9
MP
8612015-10-20 Marek Polacek <polacek@redhat.com>
862
863 * c-parser.c (is_cilkplus_vector_p): Don't define here.
864
2c7020eb
MP
8652015-10-20 Marek Polacek <polacek@redhat.com>
866
867 PR c/67964
868 * c-parser.c (c_parser_attributes): Break out of the loop if the
869 token after an attribute isn't a comma.
870
d9a6bd32
JJ
8712015-10-13 Jakub Jelinek <jakub@redhat.com>
872 Aldy Hernandez <aldyh@redhat.com>
873
874 * c-parser.c (c_parser_pragma): Handle PRAGMA_OMP_ORDERED here.
875 (c_parser_omp_clause_name): Handle OpenMP 4.5 clauses.
876 (c_parser_omp_variable_list): Handle structure elements for
877 map, to and from clauses. Handle array sections in reduction
878 clause. Formatting fixes.
879 (c_parser_omp_clause_if): Add IS_OMP argument, handle parsing of
880 if clause modifiers.
881 (c_parser_omp_clause_num_tasks, c_parser_omp_clause_grainsize,
882 c_parser_omp_clause_priority, c_parser_omp_clause_hint,
883 c_parser_omp_clause_defaultmap, c_parser_omp_clause_use_device_ptr,
884 c_parser_omp_clause_is_device_ptr): New functions.
885 (c_parser_omp_clause_ordered): Parse optional parameter.
886 (c_parser_omp_clause_reduction): Handle array reductions.
887 (c_parser_omp_clause_schedule): Parse optional simd modifier.
888 (c_parser_omp_clause_nogroup, c_parser_omp_clause_orderedkind): New
889 functions.
890 (c_parser_omp_clause_linear): Parse linear clause modifiers.
891 (c_parser_omp_clause_depend_sink): New function.
892 (c_parser_omp_clause_depend): Parse source/sink depend kinds.
893 (c_parser_omp_clause_map): Parse release/delete map kinds and
894 optional always modifier.
895 (c_parser_oacc_all_clauses): Adjust c_parser_omp_clause_if
896 and c_finish_omp_clauses callers.
897 (c_parser_omp_all_clauses): Likewise. Parse OpenMP 4.5 clauses.
898 Parse "to" as OMP_CLAUSE_TO_DECLARE if on declare target directive.
899 (c_parser_oacc_cache): Adjust c_finish_omp_clauses caller.
900 (OMP_CRITICAL_CLAUSE_MASK): Define.
901 (c_parser_omp_critical): Parse critical clauses.
902 (c_parser_omp_for_loop): Handle doacross loops, adjust
903 c_finish_omp_for and c_finish_omp_clauses callers.
904 (OMP_SIMD_CLAUSE_MASK): Add simdlen clause.
905 (c_parser_omp_simd): Allow ordered clause if it has no parameter.
906 (OMP_FOR_CLAUSE_MASK): Add linear clause.
907 (c_parser_omp_for): Disallow ordered clause when combined with
908 distribute. Disallow linear clause when combined with distribute
909 and not combined with simd.
910 (OMP_ORDERED_CLAUSE_MASK, OMP_ORDERED_DEPEND_CLAUSE_MASK): Define.
911 (c_parser_omp_ordered): Add CONTEXT argument, remove LOC argument,
912 parse clauses and if depend clause is found, don't parse a body.
913 (c_parser_omp_parallel): Disallow copyin clause on target parallel.
914 Allow target parallel without for after it.
915 (OMP_TASK_CLAUSE_MASK): Add priority clause.
916 (OMP_TARGET_DATA_CLAUSE_MASK): Add use_device_ptr clause.
917 (c_parser_omp_target_data): Diagnose no map clauses or clauses with
918 invalid kinds.
919 (OMP_TARGET_UPDATE_CLAUSE_MASK): Add depend and nowait clauses.
920 (OMP_TARGET_ENTER_DATA_CLAUSE_MASK,
921 OMP_TARGET_EXIT_DATA_CLAUSE_MASK): Define.
922 (c_parser_omp_target_enter_data, c_parser_omp_target_exit_data): New
923 functions.
924 (OMP_TARGET_CLAUSE_MASK): Add depend, nowait, private, firstprivate,
925 defaultmap and is_device_ptr clauses.
926 (c_parser_omp_target): Parse target parallel and target simd. Set
927 OMP_TARGET_COMBINED on combined constructs. Parse target enter data
928 and target exit data. Diagnose invalid map kinds.
929 (OMP_DECLARE_TARGET_CLAUSE_MASK): Define.
930 (c_parser_omp_declare_target): Parse OpenMP 4.5 forms of this
931 construct.
932 (c_parser_omp_declare_reduction): Use STRIP_NOPS when checking for
933 &omp_priv.
934 (OMP_TASKLOOP_CLAUSE_MASK): Define.
935 (c_parser_omp_taskloop): New function.
936 (c_parser_omp_construct): Don't handle PRAGMA_OMP_ORDERED here,
937 handle PRAGMA_OMP_TASKLOOP.
938 (c_parser_cilk_for): Adjust c_finish_omp_clauses callers.
939 * c-tree.h (c_finish_omp_clauses): Add two new arguments.
940 * c-typeck.c (handle_omp_array_sections_1): Fix comment typo.
941 Add IS_OMP argument, handle structure element bases, diagnose
942 bitfields, pass IS_OMP recursively, diagnose known zero length
943 array sections in depend clauses, handle array sections in reduction
944 clause, diagnose negative length even for pointers.
945 (handle_omp_array_sections): Add IS_OMP argument, use auto_vec for
946 types, pass IS_OMP down to handle_omp_array_sections_1, handle
947 array sections in reduction clause, set
948 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION if map could be zero
949 length array section, use GOMP_MAP_FIRSTPRIVATE_POINTER for IS_OMP.
950 (c_finish_omp_clauses): Add IS_OMP and DECLARE_SIMD arguments.
951 Handle new OpenMP 4.5 clauses and new restrictions for the old ones.
952
21ba0cea
MP
9532015-10-06 Marek Polacek <polacek@redhat.com>
954
955 * c-parser.c (c_parser_statement_after_labels): Use
956 protected_set_expr_location.
957 (c_parser_omp_clause_num_gangs): Likewise.
958 (c_parser_omp_clause_num_threads): Likewise.
959 (c_parser_omp_clause_num_workers): Likewise.
960 (c_parser_omp_clause_vector_length): Likewise.
961 (c_parser_omp_clause_num_teams): Likewise.
962 (c_parser_omp_clause_thread_limit): Likewise.
963 * c-typeck.c (build_c_cast): Likewise.
964 (c_cast_expr): Likewise.
965
624d31fe
RS
9662015-10-05 Richard Sandiford <richard.sandiford@arm.com>
967
968 * c-typeck.c (c_tree_equal): Use real_equal instead of
969 REAL_VALUES_EQUAL.
970
b8fd7909
JM
9712015-10-04 Jason Merrill <jason@redhat.com>
972
973 * c-parser.c (c_lex_one_token): Handle @synchronized.
974 * c-decl.c (match_builtin_function_types): A declaration of a built-in
975 can change whether the function is transaction_safe.
976
1c7485af
MP
9772015-10-02 Marek Polacek <polacek@redhat.com>
978
979 PR c/67730
980 * c-typeck.c (convert_for_assignment): Use the expansion point
981 location throughout.
982
3e3b8d63
MP
9832015-10-02 Marek Polacek <polacek@redhat.com>
984
985 PR c/64249
986 * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
987 and pass it down to c_parser_if_statement.
988 (c_parser_else_body): Add CHAIN parameter and pass it down to
989 c_parser_statement_after_labels.
990 (c_parser_if_statement): Add CHAIN parameter. Add code to warn about
991 duplicated if-else-if conditions.
992
aabef2de
MP
9932015-10-01 Marek Polacek <polacek@redhat.com>
994
995 * c-typeck.c (convert_for_assignment): Improve commentary.
996
de8ddd5f
MP
9972015-09-30 Marek Polacek <polacek@redhat.com>
998
999 PR c/67730
1000 * c-typeck.c (c_finish_return): Use the expansion point location for
1001 certain "return with value" warnings.
1002
c4914de6
MLI
10032015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1004
1005 * c-parser.c (pragma_lex): Add loc argument.
1006
0e36f5c7
MP
10072015-09-15 Marek Polacek <polacek@redhat.com>
1008
1009 PR c/67580
1010 * c-decl.c (tag_exists_p): New function.
1011 * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
1012 struct/union/enum keywords are missing.
1013 * c-tree.h (tag_exists_p): Declare.
1014
2f3bb934
MP
10152015-09-15 Marek Polacek <polacek@redhat.com>
1016
1017 * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
1018 (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
1019 Return NULL_TREE instead of 0.
1020 (lookup_name): Return NULL_TREE instead of 0.
1021 (lookup_name_in_scope): Likewise.
1022 (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
1023 (parser_xref_tag): Use false instead of 0.
1024 (start_struct): Use true instead of 1.
1025 (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
1026
aa256c4a
MP
10272015-09-14 Marek Polacek <polacek@redhat.com>
1028
1029 * c-typeck.c (set_nonincremental_init_from_string): Use
1030 HOST_WIDE_INT_M1U when shifting a negative value.
1031
dbb68221
MW
10322015-09-09 Mark Wielaard <mjw@redhat.com>
1033
1034 * c-typeck.c (build_binary_op): Check and warn when nonnull arg
1035 parm against NULL.
1036
a8a098ac
JJ
10372015-09-10 Jakub Jelinek <jakub@redhat.com>
1038
1039 PR c/67502
1040 * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
1041 into OMP_FOR_PRE_BODY rather than before the loop.
1042
f4b189d5
JJ
10432015-09-09 Jakub Jelinek <jakub@redhat.com>
1044
0bb99c11
JJ
1045 PR c/67501
1046 * c-parser.c (c_parser_oacc_all_clauses,
1047 c_parser_omp_all_clauses): Remove invalid clause from
1048 list of clauses even if parser->error is set.
1049
fce5e5e3
JJ
1050 PR c/67500
1051 * c-parser.c (c_parser_omp_clause_aligned,
1052 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
1053 test for errors.
1054 * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
1055 error_mark_node.
1056
f4b189d5
JJ
1057 PR c/67495
1058 * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
1059 instead of c_parser_unary_expression. If the result is !lvalue_p,
1060 wrap the result of c_fully_fold into NON_LVALUE_EXPR.
1061
b2aaf235
MP
10622015-09-04 Marek Polacek <polacek@redhat.com>
1063
1064 PR sanitizer/67279
1065 * c-typeck.c (build_binary_op): Don't instrument static initializers.
1066
1807ffc1
MS
10672015-09-03 Martin Sebor <msebor@redhat.com>
1068
1069 PR c/66516
8b652e65
JJ
1070 * c-typeck.c (convert_arguments, parser_build_unary_op,
1071 build_conditional_expr, c_cast_expr, convert_for_assignment,
1072 build_binary_op, _objc_common_truthvalue_conversion): Call
1807ffc1
MS
1073 reject_gcc_builtin.
1074 (c_decl_implicit): Define.
1075
d04ff417
MP
10762015-09-02 Marek Polacek <polacek@redhat.com>
1077
1078 PR c/67432
1079 * c-parser.c (c_parser_enum_specifier): Give a better error for
1080 an empty enum.
1081
a79683d5
TS
10822015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1083
1084 * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
1085
191a6b94
MP
10862015-08-12 Marek Polacek <polacek@redhat.com>
1087
1088 * c-decl.c (grokdeclarator): Call error_at instead of error and pass
1089 LOC to it.
1090
420a9d9b
MP
10912015-08-03 Marek Polacek <polacek@redhat.com>
1092
1093 PR c/67088
1094 * c-decl.c (check_bitfield_type_and_width): Add location parameter.
1095 Use it.
1096 (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
1097
992118a1
PP
10982015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1099
1100 * c-parser.c (c_parser_if_body): Take token_indent_info
1101 argument. Call warn_for_misleading_indentation even when the
1102 body is a semicolon. Extract token_indent_infos corresponding
1103 to the guard, body and next tokens. Adjust call to
1104 warn_for_misleading_indentation accordingly.
1105 (c_parser_else_body): Likewise.
1106 (c_parser_if_statement): Likewise.
1107 (c_parser_while_statement): Likewise.
1108 (c_parser_for_statement): Likewise.
1109
46308474
LFSM
11102015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com>
1111 Manuel López-Ibáñez <manu@gcc.gnu.org>
1112
1113 * c-decl.c (get_parm_info): Remove static var. Update warning
1114 message.
1115
05b28fd6
MP
11162015-07-27 Marek Polacek <polacek@redhat.com>
1117
1118 PR c++/66555
1119 PR c/54979
1120 * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
1121
451b5e48
MP
11222015-07-20 Marek Polacek <polacek@redhat.com>
1123
1124 PR c++/55095
1125 * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
1126 (build_binary_op): Warn about left shift overflows.
1127
1916bcb5
AM
11282015-07-09 Andrew MacLeod <amacleod@redhat.com>
1129
1130 * c-array-notation.c: Adjust includes for flags.h changes.
1131 * c-objc-common.c: Likewise.
1132
c7131fb2
AM
11332015-07-07 Andrew MacLeod <amacleod@redhat.com>
1134
1135 * c-array-notation.c: Adjust includes.
1136 * c-aux-info.c: Likewise.
1137 * c-convert.c: Likewise.
1138 * c-decl.c: Likewise.
1139 * c-errors.c: Likewise.
1140 * c-lang.c: Likewise.
1141 * c-objc-common.c: Likewise.
1142 * c-parser.c: Likewise.
1143 * c-typeck.c: Likewise.
1144
da2e71c9
MLI
11452015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1146
1147 PR fortran/66605
1148 * c-decl.c (finish_function): Call do_warn_unused_parameter.
1149
b155cfd9
MP
11502015-06-29 Marek Polacek <polacek@redhat.com>
1151
1152 PR c/66322
1153 * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
1154 (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn
1155 about -Wswitch-bool here.
1156 (do_case): Update c_add_case_label call.
1157 (c_finish_case): Update c_do_switch_warnings call.
1158
31521951
MP
11592015-06-27 Marek Polacek <polacek@redhat.com>
1160
1161 * c-typeck.c: Use VECTOR_TYPE_P throughout.
1162
22d03525
MP
11632015-06-26 Marek Polacek <polacek@redhat.com>
1164
1165 * c-array-notation.c (fix_builtin_array_notation_fn): Use
1166 INDIRECT_REF_P.
1167 * c-typeck.c (array_to_pointer_conversion): Likewise.
1168 (build_unary_op): Likewise.
1169 (c_finish_return): Likewise.
1170
f0889939
AM
11712015-06-25 Andrew MacLeod <amacleod@redhat.com>
1172
1173 * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
1174 * c-parser.c: Likewise.
1175
8d67ee55
RS
11762015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1177
1178 * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
1179 instead of pointer_hash.
1180 (detect_field_duplicates): Likewise.
1181
0ae9bd27
MP
11822015-06-25 Marek Polacek <polacek@redhat.com>
1183
1184 * c-array-notation.c: Use VAR_P throughout.
1185 * c-decl.c: Likewise.
1186 * c-objc-common.c: Likewise.
1187 * c-parser.c: Likewise.
1188 * c-typeck.c: Likewise.
1189
62f9079a
MP
11902015-06-25 Marek Polacek <polacek@redhat.com>
1191
1192 * c-decl.c: Use is_global_var throughout.
1193 * c-parser.c: Likewise.
1194 * c-typeck.c: Likewise.
1195
abb226c9
AM
11962015-06-17 Andrew MacLeod <amacleod@redhat.com>
1197
1198 * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
1199 * c-aux-info.c: Likewise.
1200 * c-convert.c: Likewise.
1201 * c-decl.c: Likewise.
1202 * c-errors.c: Likewise.
1203 * c-lang.c: Likewise.
1204 * c-objc-common.c: Likewise.
1205 * c-parser.c: Likewise.
1206 * c-typeck.c: Likewise.
1207
8cbababc
JH
12082015-06-11 Jan Hubicka <hubicka@ucw.cz>
1209
1210 PR middle-end/66325
1211 * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
1212 variants.
1213
a0349665
PMR
12142015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
1215
1216 * c-decl.c (pop_scope): Register the main translation unit
1217 through the new debug hook.
1218
13fdf2e2
AM
12192015-06-08 Andrew MacLeod <amacleod@redhat.com>
1220
1221 * c-array-notation.c : Adjust include files.
1222 * c-aux-info.c : Likewise.
1223 * c-convert.c : Likewise.
1224 * c-decl.c : Likewise.
1225 * c-errors.c : Likewise.
1226 * c-lang.c : Likewise.
1227 * c-lang.h : Likewise.
1228 * c-objc-common.c : Likewise.
1229 * c-parser.c : Likewise.
1230 * c-typeck.c : Likewise.
1231
d7438551
AH
12322015-06-05 Aldy Hernandez <aldyh@redhat.com>
1233
1234 * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
1235 immediately clobber it.
1236 (c_write_global_declarations_1): Remove call to
1237 check_global_declaration_1.
1238 (c_write_global_declarations_2): Remove.
1239 (c_write_final_cleanups): Rename from c_write_global_declarations.
1240 Remove call to finalize_compilation_unit.
1241 Remove calls to debugging hooks.
1242 * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
1243 * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
1244 * c-tree.h: Remove c_write_global_declarations.
1245
ecb9f223
AM
12462015-06-04 Andrew MacLeod <amacleod@redhat.com>
1247
1248 * c-array-notation.c: Adjust includes for restructured coretypes.h.
1249 * c-aux-info.c: Likewise.
1250 * c-convert.c: Likewise.
1251 * c-decl.c: Likewise.
1252 * c-errors.c: Likewise.
1253 * c-lang.c: Likewise.
1254 * c-objc-common.c: Likewise.
1255 * c-parser.c: Likewise.
1256 * c-typeck.c: Likewise.
1257
9482b620
MP
12582015-06-04 Marek Polacek <polacek@redhat.com>
1259
1260 PR c/66341
1261 * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
1262 it is a lvalue.
1263
bc51ace3
PK
12642015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1265
1266 * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
1267 Warn for empty struct.
1268 (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
1269
ea5b45b6
AT
12702015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
1271
1272 * c-decl.c (start_function): Call plugin before parsing.
1273 (finish_function): Call plugin after parsing.
1274
c2d47482
PK
12752015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1276
1277 PR c/49551
1278 * c-decl.c (merge_decls): Merge DECL_COMMON.
1279
a95492ab
JW
12802015-05-22 Jim Wilson <jim.wilson@linaro.org>
1281
1282 * Make-lang.in (check_gcc_pallelize): Define.
1283
fd5c817a
MP
12842015-05-22 Marek Polacek <polacek@redhat.com>
1285
1286 PR c/47043
1287 * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
1288 attributes.
1289
c7b70a3c
MP
12902015-05-21 Marek Polacek <polacek@redhat.com>
1291
1292 * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
1293 DECL_BUILT_IN.
1294
21b634ae
MP
12952015-05-20 Marek Polacek <polacek@redhat.com>
1296
1297 * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1298 * c-typeck.c: Likewise.
1299
296a8c2f
MP
13002015-05-19 Marek Polacek <polacek@redhat.com>
1301
1302 * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
1303
41b37d5e
JJ
13042015-05-19 Jakub Jelinek <jakub@redhat.com>
1305
1306 PR middle-end/66199
1307 * c-parser.c (c_parser_omp_for_loop): Don't add
1308 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
1309 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
1310 (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
1311 constructs.
1312
fab27f52
MM
13132015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1314
1315 * c-typeck.c (build_array_ref): Use std::swap instead of explicit
296a8c2f 1316 swaps.
fab27f52 1317
40de31cf
MLI
13182015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1319
1320 PR fortran/44054
1321 * c-objc-common.c (c_tree_printer): Replace locus pointer with
1322 accessor function.
1323
3aa3c9fc
MP
13242015-05-14 Marek Polacek <polacek@redhat.com>
1325
1326 PR c/66066
1327 PR c/66127
1328 * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
1329 rather than with 0.
1330
c3388e62
DM
13312015-05-12 David Malcolm <dmalcolm@redhat.com>
1332
1333 * c-parser.c (c_parser_if_body): Add param "if_loc", use it
1334 to add a call to warn_for_misleading_indentation.
1335 (c_parser_else_body): Likewise, adding param "else_loc".
1336 (c_parser_if_statement): Check for misleading indentation.
1337 (c_parser_while_statement): Likewise.
1338 (c_parser_for_statement): Likewise.
1339
755e528f
MP
13402015-05-08 Marek Polacek <polacek@redhat.com>
1341
1342 PR c/64918
1343 * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
1344 (output_init_element): Likewise.
1345
0173bd2a
MP
13462015-05-07 Marek Polacek <polacek@redhat.com>
1347
1348 PR c/65179
1349 * c-typeck.c (build_binary_op): Warn when left shifting a negative
1350 value.
1351
9babc352
MP
13522015-04-30 Marek Polacek <polacek@redhat.com>
1353
1354 * c-typeck.c (set_init_label): Call error_at instead of error and
1355 pass LOC to it.
1356
ac9f18db
MP
1357 * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print
1358 the type of a decl.
1359
ec3fba51
MP
1360 * c-typeck.c (c_build_va_arg): Clarify the error message.
1361
b811915d
TS
13622015-04-29 Thomas Schwinge <thomas@codesourcery.com>
1363
1364 * c-parser.c (c_parser_oacc_enter_exit_data): Use
1365 OMP_STANDALONE_CLAUSES.
1366
f3075008
MP
13672015-04-28 Marek Polacek <polacek@redhat.com>
1368
1369 * c-parser.c (c_parser_binary_expression): Remove duplicate line.
1370
4e81b788
MP
13712015-04-28 Marek Polacek <polacek@redhat.com>
1372
1373 PR c/65901
1374 * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
1375
6c1db78e
MP
13762015-04-25 Marek Polacek <polacek@redhat.com>
1377
1378 PR c/52085
1379 * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode"
1380 attribute.
1381
5c4abbb8
MP
13822015-04-23 Marek Polacek <polacek@redhat.com>
1383
1384 PR c/65345
1385 * c-decl.c (set_labels_context_r): New function.
1386 (store_parm_decls): Call it via walk_tree_without_duplicates.
1387 * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
1388 instead of create_tmp_var. Build TARGET_EXPR instead of
1389 COMPOUND_EXPR.
1390 (build_atomic_assign): Use create_tmp_var_raw instead of
1391 create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR.
1392
06aca1d5
IV
13932015-04-20 Ilya Verbin <ilya.verbin@intel.com>
1394
1395 * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
1396 (c_parser_omp_target_update): Add missed %> to error_at ().
1397
8fba1830
BRF
13982015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1399
1400 PR target/55143
1401 * c-decl.c (c_default_pointer_mode): Remove definition.
1402 * c-tree.h (c_default_pointer_mode): Remove declaration.
1403
62021f64
TB
14042015-03-27 Tobias Burnus <burnus@net-b.de>
1405
1406 PR c/65586
1407 * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
1408 error out.
1409 (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
1410 c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
1411 Update calls to not error for skipped omp pragmas with -fopenmp-simd.
1412
9b65e171
JJ
14132015-03-19 Jakub Jelinek <jakub@redhat.com>
1414
1415 * c-decl.c (c_decl_attributes): Also add "omp declare target"
1416 attribute for DECL_EXTERNAL VAR_DECLs.
1417
17958621
JJ
14182015-03-11 Jakub Jelinek <jakub@redhat.com>
1419
1420 * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
1421 argument.
1422
7ccb1a11
JJ
14232015-03-10 Jakub Jelinek <jakub@redhat.com>
1424
1425 PR c/65120
1426 * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
1427 before preparing arguments to warn_logical_not_parentheses.
1428
01177669
JJ
14292015-03-09 Jakub Jelinek <jakub@redhat.com>
1430
1431 PR c/65120
1432 * c-typeck.c (parser_build_binary_op): Don't warn for
1433 !!x == y or !b == y where b is _Bool.
1434
802ac282
MP
14352015-03-09 Marek Polacek <polacek@redhat.com>
1436
1437 * c-convert.c (convert): Make use of do_ubsan_in_current_function.
1438 * c-decl.c (grokdeclarator): Likewise.
1439 * c-typeck.c (build_binary_op): Likewise.
1440
e5165b60
MP
14412015-02-27 Marek Polacek <polacek@redhat.com>
1442
1443 PR c/65228
1444 * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
1445
065d214c
MP
14462015-02-14 Marek Polacek <polacek@redhat.com>
1447
1448 PR c/64768
1449 * c-decl.c (grokdeclarator): Set the range of a flexible array member
1450 declared through a typedef name.
1451
e5d9235b
MP
14522015-02-13 Marek Polacek <polacek@redhat.com>
1453
1454 PR c/65050
1455 * c-decl.c (grokdeclarator): Print also the type when giving
1456 the error message about array's incomplete element type.
1457
fa01ffcc
JJ
14582015-02-11 Jakub Jelinek <jakub@redhat.com>
1459
1460 PR c/64824
1461 * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
1462 check in the POP macro.
1463
c3e38a03
MP
14642015-02-09 Marek Polacek <polacek@redhat.com>
1465
1466 PR c/64856
1467 * c-typeck.c (process_init_element): Don't always wrap
1468 COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
1469 initializing a range of elements.
1470
4886ec8e
JJ
14712015-02-04 Jakub Jelinek <jakub@redhat.com>
1472
1473 PR c/64824
1474 PR c/64868
1475 * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
1476
c3e38a03 14772015-02-02 Bruno Loff <bruno.loff@gmail.com>
a4bb6959
BL
1478
1479 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
1480 processing enum declaration.
1481
7b33f0c8
MP
14822015-01-29 Marek Polacek <polacek@redhat.com>
1483
1484 PR c/64709
1485 * c-typeck.c (pop_init_level): If constructor_elements has
1486 exactly one element with integer_zerop value, set constructor_zeroinit
1487 to 1. Remove braces around warning_init call.
1488
dea63e49
JJ
14892015-01-27 Jakub Jelinek <jakub@redhat.com>
1490
1491 PR c/64766
1492 * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
1493 of FUNCTION_DECLs with error_mark_node.
1494
d38f7dce
JJ
14952015-01-26 Jakub Jelinek <jakub@redhat.com>
1496
1497 PR c/64778
1498 * c-typeck.c (convert_arguments): Return -1 if there are
1499 error_args, even if we've diagnosed too many arguments.
1500
cbf5d0e7
RB
15012015-01-21 Richard Biener <rguenther@suse.de>
1502
1503 PR middle-end/64313
1504 * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
1505 for builtins the user declared correctly.
1506
41dbbb37
TS
15072015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1508 Bernd Schmidt <bernds@codesourcery.com>
1509 Cesar Philippidis <cesar@codesourcery.com>
1510 James Norris <jnorris@codesourcery.com>
1511 Jakub Jelinek <jakub@redhat.com>
1512 Ilmir Usmanov <i.usmanov@samsung.com>
1513
1514 * c-parser.c: Include "gomp-constants.h".
1515 (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
1516 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
1517 Use OMP_CLAUSE_SET_MAP_KIND.
1518 (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
1519 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
1520 (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
1521 PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
1522 PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
1523 (c_parser_omp_clause_name): Handle "auto", "async", "copy",
1524 "copyout", "create", "delete", "deviceptr", "gang", "host",
1525 "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
1526 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
1527 "present_or_create", "pcreate", "seq", "self", "vector",
1528 "vector_length", "wait", "worker".
1529 (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
1530 (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
1531 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
1532 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
1533 (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
1534 (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
1535 (c_parser_oacc_data_clause_deviceptr)
1536 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
1537 (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
1538 (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
1539 (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
1540 (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
1541 (c_parser_oacc_parallel, c_parser_oacc_update)
1542 (c_parser_oacc_wait): New functions.
1543 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
1544 (c_finish_oacc_data): New prototypes.
1545 * c-typeck.c: Include "gomp-constants.h".
1546 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
1547 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
1548 OMP_CLAUSE_SET_MAP_KIND.
1549 (c_finish_oacc_parallel, c_finish_oacc_kernels)
1550 (c_finish_oacc_data): New functions.
1551 (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
1552 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
1553 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
1554 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
1555 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
1556 GOMP_MAP_FORCE_DEVICEPTR.
1557
adfac8df
JJ
15582015-01-09 Michael Collison <michael.collison@linaro.org>
1559
1560 * c-array-notation.c: Include hash-set.h, machmode.h,
1561 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1562 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1563 * c-aux-info.c: Ditto.
1564 * c-convert.c: Ditto.
1565 * c-decl.c: Ditto.
1566 * c-errors.c: Ditto.
1567 * c-lang.c: Dittoxs.
1568 * c-objc-common.c: Ditto.
1569 * c-parser.c: Ditto.
1570 * c-typeck.c: Include hash-set.h, machmode.h,
1571 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1572 fold-const.h, wide-int.h, inchash.h, real.h and
1573 fixed-value.h due to flattening of tree.h.
1574
2cc901dc
MP
15752015-01-07 Marek Polacek <polacek@redhat.com>
1576
1577 PR c/64417
1578 * c-typeck.c (process_init_element): Disallow initialization of
1579 a flexible array member with a string constant if the structure
1580 is in an array.
1581
5624e564
JJ
15822015-01-05 Jakub Jelinek <jakub@redhat.com>
1583
e5341100
JJ
1584 PR sanitizer/64344
1585 * c-typeck.c (convert_for_assignment, c_finish_return): For
1586 -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
1587 types also set in_late_binary_op around convert call.
1588 * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
1589 to integral type casts, if not in_late_binary_op, pass c_fully_fold
1590 result on expr as last argument to ubsan_instrument_float_cast,
1591 if in_late_binary_op, don't use c_save_expr but save_expr.
1592
5624e564
JJ
1593 Update copyright years.
1594
5bd012f8
MP
15952015-01-05 Marek Polacek <polacek@redhat.com>
1596
1597 PR c/64423
1598 * c-typeck.c (build_array_ref): Pass loc down to
1599 warn_array_subscript_with_type_char.
1600
768952be
MU
16012014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1602
1603 * c-typeck.c: New behavious for pointers to arrays with qualifiers
1604 (common-pointer-type): For pointers to arrays take qualifiers from
1605 element type.
1606 (build_conditional_expr): Add warnings for lost qualifiers.
1607 (comp-target-types): Allow pointers to arrays with different qualifiers.
1608 (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
1609 WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
1610 to PEDWARN_FOR_QUALIFIERS.
1611
8f94a8c4
JJ
16122014-12-17 Jakub Jelinek <jakub@redhat.com>
1613
1614 PR sanitizer/64289
1615 * c-convert.c: Include ubsan.h.
1616 (convert): For real -> integral casts and
1617 -fsanitize=float-cast-overflow don't call convert_to_integer, but
1618 instead instrument the float cast directly.
1619
b731b390
JJ
16202014-11-29 Jakub Jelinek <jakub@redhat.com>
1621
1622 * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
1623 c_finish_stmt_expr): Remove NULL last argument from
1624 create_tmp_var_raw and create_tmp_var calls.
1625 * c-array-notation.c (fix_builtin_array_notation_fn,
1626 build_array_notation_expr, fix_conditional_array_notations_1,
1627 fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
1628
541e35a6
MP
16292014-11-28 Marek Polacek <polacek@redhat.com>
1630
1631 PR c/63862
1632 * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
1633 convert the right operand to integer type.
1634
b286be94
MP
16352014-11-25 Marek Polacek <polacek@redhat.com>
1636
1637 PR c/63877
1638 * c-decl.c (start_function): Disable -Wmissing-declarations warning
1639 for inline functions.
1640
aa7da51a
JJ
16412014-11-21 Jakub Jelinek <jakub@redhat.com>
1642
1643 PR target/63764
1644 * c-typeck.c (build_array_ref): Adjust
1645 convert_vector_to_pointer_for_subscript caller. If it returns true,
1646 call non_lvalue_loc on the result.
1647
d876207f
RB
16482014-11-11 Richard Biener <rguenther@suse.de>
1649
1650 * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
1651 to true.
1652
e5e44252
AK
16532014-11-10 Andi Kleen <ak@linux.intel.com>
1654
1655 PR c/60804
1656 * c-parser.c (c_parser_statement_after_labels): Call
1657 check_no_cilk.
1658 (c_parser_if_statement): Dito.
1659 (c_parser_switch_statement): Dito.
1660 (c_parser_while_statement): Dito.
1661 (c_parser_do_statement): Dito.
1662 (c_parser_for_statement): Dito.
1663 * c-typeck.c (c_finish_loop): Dito.
1664
13c21655
PC
16652014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1666
1667 * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
1668 OPT_Wshift_count_overflow in the warnings.
1669
2d51fcef
MP
16702014-10-30 Marek Polacek <polacek@redhat.com>
1671
1672 * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
1673 print the stripped version as well, if they're not the same.
1674
ef4bddc2
RS
16752014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1676
1677 * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
1678 machine_mode.
1679
c582198b
AM
16802014-10-28 Andrew MacLeod <amacleod@redhat.com>
1681
1682 * c-decl.c: Adjust include files.
1683 * c-parser.c: Ditto.
1684
ddc8de03
PM
16852014-10-27 Phil Muldoon <pmuldoon@redhat.com>
1686 Tom Tromey <tromey@redhat.com>
1687
1688 * c-tree.h (enum c_oracle_request): New.
1689 (c_binding_oracle_function): New typedef.
1690 (c_binding_oracle, c_pushtag, c_bind): Declare.
1691 * c-decl.c (c_binding_oracle): New global.
1692 (I_SYMBOL_CHECKED): New macro.
1693 (i_symbol_binding): New function.
1694 (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
1695 (I_TAG_CHECKED): New macro.
1696 (i_tag_binding): New function.
1697 (I_TAG_BINDING, I_TAG_DECL): Redefine.
1698 (I_LABEL_CHECKED): New macro.
1699 (i_label_binding): New function.
1700 (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
1701 (c_print_identifier): Save and restore c_binding_oracle.
1702 (c_pushtag, c_bind): New functions.
1703
60393bbc
AM
17042014-10-27 Andrew MacLeod <amacleod@redhat.com>
1705
1706 * c-typeck.c: Adjust include files.
1707
d723bb7c
MLI
17082014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1709
1710 PR c++/53061
1711 * c-objc-common.c (c_objc_common_init): Do not do diagnostics
1712 initialization here...
1713 (c_initialize_diagnostics): ... but here. Set defaults after
1714 building pretty-printer.
1715
1bc5a451
MP
17162014-10-23 Marek Polacek <polacek@redhat.com>
1717
1718 PR c/63626
1719 * c-decl.c (pop_scope): Don't print warning in external_scope.
1720
4435bb92
MP
17212014-10-19 Marek Polacek <polacek@redhat.com>
1722
1723 PR c/63567
1724 * c-typeck.c (output_init_element): Allow initializing objects with
1725 static storage duration with compound literals even in C99 and add
1726 pedwarn for it.
1727
7278465e
MP
17282014-10-17 Marek Polacek <polacek@redhat.com>
1729
1730 PR c/63567
1731 * c-typeck.c (digest_init): Allow initializing objects with static
1732 storage duration with compound literals even in C99 and add pedwarn
1733 for it.
1734
d9b7be2e
MP
17352014-10-17 Marek Polacek <polacek@redhat.com>
1736
1737 PR c/63543
1738 * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
1739 * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
1740 error multiple times. Print the type.
1741
f406ae1f
MP
17422014-10-17 Marek Polacek <polacek@redhat.com>
1743
1744 PR c/63549
1745 * c-typeck.c (build_array_ref): Bail if the index in an incomplete
1746 type.
1747
92574c7c
MP
17482014-10-17 Marek Polacek <polacek@redhat.com>
1749
1750 * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
1751 (start_function): Use OPT_Wimplicit_int instead of 0.
1752 (store_parm_decls_oldstyle): Likewise.
1753
1bc4a978
MT
17542014-10-17 Alan Modra <amodra@gmail.com>
1755
1756 PR middle-end/61848
1757 * c-decl.c (merge_decls): Don't merge section name or tls model
1758 to newdecl symtab node, instead merge to olddecl. Override
1759 existing olddecl section name. Set tls_model for all thread-local
1760 vars, not just OMP thread-private ones. Remove incorrect comment.
1761
83685514
AM
17622014-10-16 Andrew MacLeod <amacleod@redhat.com>
1763
1764 * c-decl.c: Adjust include files.
1765
78a7c317
DD
17662014-10-14 DJ Delorie <dj@redhat.com>
1767
1768 * c-parser.c (c_parse_init): Add RID entries for each __intN.
1769 (c_token_starts_typename): Check all __intN, not just __int128.
1770 (c_token_starts_declspecs): Likewise.
1771 (c_parser_declspecs): Likewise.
1772 (c_parser_attribute_any_word): Likewise.
1773 (c_parser_objc_selector): Likewise.
1774 * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
1775 (struct c_declspecs): Add int_n_idx field to record *which* __intN
1776 is specified.
1777 * c-decl.c (declspecs_add_type): Check for all __intN, not just
1778 __int128.
1779 (finish_declspecs): Likewise.
1780
74d98c1e
AB
17812014-10-13 Anthony Brandon <anthony.brandon@gmail.com>
1782
1783 * c-parser.c (c_parser_all_labels): New function to replace
1784 the duplicate code.
1785 (c_parser_statement): Call the new function.
1786
84937de2
MP
17872014-10-09 Marek Polacek <polacek@redhat.com>
1788
1789 PR c/63480
1790 * c-typeck.c (pop_init_level): Don't warn about initializing
1791 with { }.
1792
0382aaa0
MP
17932014-10-07 Marek Polacek <polacek@redhat.com>
1794
1795 PR c/59717
1796 * c-decl.c (header_for_builtin_fn): New function.
1797 (implicitly_declare): Suggest which header to include.
1798
7a0ca710
MP
17992014-10-07 Marek Polacek <polacek@redhat.com>
1800
1801 * c-convert.c (convert): Use error_operand_p.
1802 * c-typeck.c (require_complete_type): Likewise.
1803 (really_atomic_lvalue): Likewise.
1804 (digest_init): Likewise.
1805 (handle_omp_array_sections_1): Likewise.
1806
6bc8a126
MP
18072014-10-03 Marek Polacek <polacek@redhat.com>
1808
1809 PR c/63453
1810 * c-decl.c (pop_scope): Don't warn about "inline function declared
1811 but never defined" for functions marked with gnu_inline attribute.
1812
d90c0a59
JJ
18132014-09-25 Jakub Jelinek <jakub@redhat.com>
1814
1815 PR c++/63249
1816 * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
1817 on low_bound and length.
1818
083e891e
MP
18192014-09-24 Marek Polacek <polacek@redhat.com>
1820
1821 PR c/61405
1822 PR c/53874
1823 * c-parser.c: Don't define CPP_KEYWORD.
1824 (c_parser_switch_statement): Pass original type to c_finish_case.
1825 * c-tree.h (c_finish_case): Update declaration.
1826 * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it
1827 conditionally to c_do_switch_warnings.
1828
8d95fe25
MP
18292014-09-03 Marek Polacek <polacek@redhat.com>
1830
1831 PR c/62024
1832 * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
1833 conversions.
1834
9a771876
JJ
18352014-09-02 Jakub Jelinek <jakub@redhat.com>
1836 Balaji V. Iyer <balaji.v.iyer@intel.com>
1837 Igor Zamyatin <igor.zamyatin@intel.com>
1838
1839 * c-parser.c (c_parser_cilk_for): New function.
1840 (c_parser_cilk_grainsize): Likewise.
1841 (c_get_temp_regvar): Likewise.
1842 (c_parser_statement_after_labels): Added RID_CILK_FOR case.
1843 (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
1844 (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
1845 * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
1846 case.
1847
b7679d96
CG
18482014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
1849
1850 * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
1851 with using HOST_WIDE_INT without truncation to 'int'
1852
59ea0364
MP
18532014-08-22 Marek Polacek <polacek@redhat.com>
1854
1855 PR c++/62199
1856 * c-typeck.c (parser_build_binary_op): Adjust call to
1857 warn_logical_not_parentheses.
1858
671a475e
IZ
18592014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
1860
1861 PR other/62008
1862 * c-parser.c (c_parser_array_notation): Check for correct
1863 type of an array added.
1864
04159acf
MP
18652014-08-19 Marek Polacek <polacek@redhat.com>
1866
1867 PR c++/62153
1868 * c-typeck.c (build_binary_op): If either operand of a comparison
1869 is a boolean expression, call maybe_warn_bool_compare.
1870
c77935ee
PP
18712014-08-19 Patrick Palka <ppalka@gcc.gnu.org>
1872
1873 PR c/45584
1874 * c-typeck.c (build_c_cast): Do a conversion even when the
1875 TYPE_MAIN_VARIANTs are the same.
1876
35aff4fb
MP
18772014-08-19 Marek Polacek <polacek@redhat.com>
1878
1879 * c-decl.c (diagnose_mismatched_decls): Unconditionally call
1880 pedwarn_c99 instead of pedwarn.
1881 (grokfield): Likewise.
1882 (warn_defaults_to): New function.
1883 (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
1884 Unconditionally call pedwarn_c99 instead of pedwarn.
1885 (start_function): Call warn_defaults_to instead of pedwarn_c99.
1886 (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
1887 check flag_isoc11 before.
1888 * c-errors.c (pedwarn_c99): Change the return type to bool.
1889 Handle -Wc99-c11-compat.
1890 * c-parser.c (disable_extension_diagnostics): Handle
1891 warn_c99_c11_compat.
1892 (restore_extension_diagnostics): Likewise.
1893 (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
1894 instead of pedwarn, don't check flag_isoc11 before.
1895 (c_parser_declspecs): Likewise.
1896 (c_parser_alignas_specifier): Likewise.
1897 (c_parser_alignof_expression): Likewise.
1898 (c_parser_generic_selection): Likewise.
1899 * c-tree.h (pedwarn_c99): Update declaration.
1900 * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
1901 of pedwarn_c99.
1902
177cce46
MP
19032014-08-19 Marek Polacek <polacek@redhat.com>
1904
1905 * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
1906 to pedwarn_c90.
1907 * c-errors.c: Include "opts.h".
1908 (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
1909 * c-parser.c (disable_extension_diagnostics): Handle negative value
1910 of warn_c90_c99_compat, too.
1911 (restore_extension_diagnostics): Likewise.
1912 (c_parser_compound_statement_nostart): Pass
1913 OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
1914
6dc99c33
MP
19152014-08-12 Marek Polacek <polacek@redhat.com>
1916
1917 * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
1918 Add pedwarn.
1919 (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
1920 Likewise.
1921 (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
1922
f3bede71
MP
19232014-08-10 Marek Polacek <polacek@redhat.com>
1924
1925 PR c/51849
1926 * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
1927 Call pedwarn_c90 instead of pedwarn.
1928 (check_bitfield_type_and_width): Likewise.
1929 (declspecs_add_qual): Likewise.
1930 (declspecs_add_type): Likewise.
1931 (warn_variable_length_array): Unify function for -pedantic and -Wvla.
1932 Adjust to only call pedwarn_c90.
1933 (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
1934 pedwarn_c90 instead of pedwarn.
1935 * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
1936 * c-parser.c (disable_extension_diagnostics): Handle
1937 warn_c90_c99_compat.
1938 (restore_extension_diagnostics): Likewise.
1939 (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
1940 pedwarn_c90 instead of pedwarn.
1941 (c_parser_initelt): Likewise.
1942 (c_parser_postfix_expression): Likewise.
1943 (c_parser_postfix_expression_after_paren_type): Likewise.
1944 (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
1945 * c-tree.h: Fix formatting.
1946 * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
1947 pedwarn_c90 instead of pedwarn.
1948
9f25a338
TS
19492014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1950
1951 * c-typeck.c: Remove include of pointer-set.h.
1952
044331a8
MP
19532014-08-07 Marek Polacek <polacek@redhat.com>
1954
1955 * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
1956
b787e7a2
TS
19572014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1958
1959 * c-typeck.c: Use hash_map instead of pointer_map.
1960
6e2830c3
TS
19612014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1962
1963 * c-decl.c: Use hash_set instead of pointer_set.
1964
a7ee52fb
IZ
19652014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1966
1967 PR middle-end/61455
1968 * c-array-notation.c (expand_array_notations): Handling
1969 of DECL_EXPR added.
1970
b4dfdc11
MG
19712014-07-31 Marc Glisse <marc.glisse@inria.fr>
1972
1973 PR c++/60517
1974 * c-typeck.c (c_finish_return): Return 0 instead of the address of
1975 a local variable.
1976
976d5a22
TT
19772014-07-30 Tom Tromey <tromey@redhat.com>
1978
1979 * c-typeck.c (struct constructor_stack) <designator_depth>: New
1980 field.
1981 (really_start_incremental_init, push_init_level): Initialize
1982 designator_depth.
1983 (pop_init_level): Set global designator_depth.
1984 (process_init_element): Check for designated_init attribute.
1985
30281de2
MP
19862014-07-20 Marek Polacek <polacek@redhat.com>
1987
1988 PR c/61852
1989 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
1990 (implicitly_declare): Pass location to implicit_decl_warning.
1991
b108f48f
JJ
19922014-07-14 Jakub Jelinek <jakub@redhat.com>
1993
1994 PR middle-end/61294
1995 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
1996 If non-NULL, call c_parser_check_literal_zero.
1997 (c_parser_check_literal_zero): New function.
1998 (c_parser_postfix_expression_after_primary): Adjust
1999 c_parser_expr_list caller, handle -Wmemset-transposed-args.
2000
773ec47f
MP
20012014-07-06 Marek Polacek <polacek@redhat.com>
2002
2003 PR c/6940
2004 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
2005 * c-tree.h (C_ARRAY_PARAMETER): Define.
2006 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
2007 function parameter.
2008
22e1cf1c
JH
20092014-07-02 Jan Hubicka <hubicka@ucw.cz>
2010 Chen Gang <gang.chen.5i5j@gmail.com>
2011
2012 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
2013 releasing symbol.
2014
52ec0ea3
MP
20152014-07-01 Marek Polacek <polacek@redhat.com>
2016
2017 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
2018 instead of 0 to WARN_FOR_ASSIGNMENT.
2019
d5c3d343
MP
20202014-07-01 Marek Polacek <polacek@redhat.com>
2021
2022 PR c/58286
2023 * c-typeck.c (convert_for_assignment): Pass
2024 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
2025
6a7253a4
MP
20262014-06-30 Marek Polacek <polacek@redhat.com>
2027
2028 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
2029 has no_sanitize_undefined attribute.
2030
5e88a8f4
IZ
20312014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
2032
2033 PR middle-end/57541
2034 * c-array-notation.c (fix_builtin_array_notation_fn):
2035 Check for 0 arguments in builtin call. Check that bultin argument is
2036 correct.
2037 * c-parser.c (c_parser_array_notation): Check for incorrect initial
2038 index.
2039
9698b078
SH
20402014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
2041
2042 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
2043 qualifiers in __auto_type for atomic types.
2044 (c_parser_typeof_specifier): Discard all type qualifiers in
2045 __typeof__ for atomic types.
2046
6e07c515
MP
20472014-06-25 Marek Polacek <polacek@redhat.com>
2048
2049 PR c/61162
2050 * c-parser.c (c_parser_statement_after_labels): Pass the location of
2051 the return expression to c_finish_return.
2052
da6f124d
JJ
20532014-06-25 Jakub Jelinek <jakub@redhat.com>
2054
2055 * c-typeck.c (c_finish_omp_clauses): Make sure
2056 OMP_CLAUSE_LINEAR_STEP has correct type.
2057
c203e8a7
TS
20582014-06-24 Trevor Saunders <tsaunders@mozilla.com>
2059
2060 * c-decl.c: Adjust.
2061
56ad0e38
JJ
20622014-06-24 Jakub Jelinek <jakub@redhat.com>
2063
2064 * c-parser.c (c_parser_omp_for_loop): For
2065 #pragma omp parallel for simd move lastprivate clause from parallel
2066 to for rather than simd.
2067
47c2554f
MP
20682014-06-23 Marek Polacek <polacek@redhat.com>
2069
2070 * c-typeck.c (parser_build_binary_op): Don't call
2071 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
2072
56363ffd
JH
20732014-06-15 Jan Hubicka <hubicka@ucw.cz>
2074
2075 * c-parser.c (c_parser_omp_threadprivate): Likewise.
2076 * c-decl.c (merge_decls): Likewise.
2077
d7ff7ae5
MP
20782014-06-09 Marek Polacek <polacek@redhat.com>
2079
2080 PR c/36446
2081 * c-typeck.c (error_init): Call inform instead of error_at.
2082 (pedwarn_init): Call inform instead of pedwarn.
2083 (warning_init): Call inform instead of warning_at.
2084
24d047a3
JH
20852014-06-07 Jan Hubicka <hubicka@ucw.cz>
2086
2087 * c-decl.c (merge_decls): Use set_decl_section_name.
2088 (duplicate_decls): Remove node if it exists.
2089
9bac5cbb
G
20902014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
2091
2092 PR c/53119
2093 * c-typeck.c (push_init_level, process_init_element,
2094 pop_init_level): Correct check for zero initialization, move
2095 missing brace warning to respect zero initialization.
2096
8ffcdea8
MP
20972014-06-05 Marek Polacek <polacek@redhat.com>
2098
2099 PR c/56724
2100 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
2101
742938c9
MP
21022014-06-05 Marek Polacek <polacek@redhat.com>
2103
2104 PR c/49706
2105 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
2106 on the left hand side operand of a comparison.
2107
6447c55d
MP
21082014-06-05 Marek Polacek <polacek@redhat.com>
2109
2110 PR c/48062
2111 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
2112 Print note only if the warning was printed.
2113
9dc7743c
IZ
21142014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
2115
2116 PR c/58942
2117 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
2118 with a pointer.
2119
fedfecef
MP
21202014-06-03 Marek Polacek <polacek@redhat.com>
2121
2122 PR c/60439
2123 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
2124 c_start_case.
2125 * c-tree.h (c_start_case): Update.
2126 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
2127 switch condition has boolean value.
2128
9b2b7279
AM
21292014-06-02 Andrew MacLeod <amacleod@redhat.com>
2130
2131 * c-decl.c: Include builtins.h.
2132 * c-parser.c: Likewise.
2133
5c1bc275
MP
21342014-05-27 Marek Polacek <polacek@redhat.com>
2135
2136 PR c/56724
2137 * c-typeck.c (convert_arguments): Get location of a parameter. Change
2138 error and warning calls to error_at and warning_at. Pass location of
2139 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
2140 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
2141 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
2142
97563bc8
IZ
21432014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
2144
2145 PR c/61191
2146 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
2147 function parameters.
2148
aede2c10
JH
21492014-05-23 Jan Hubicka <hubicka@ucw.cz>
2150
2151 * c-decl.c (merge_decls): Preserve symtab node pointers.
2152 (duplicate_decls): Free new decl.
2153
edbba2ce
TS
21542014-05-23 Thomas Schwinge <thomas@codesourcery.com>
2155
f3316c6d
TS
2156 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
2157 initialization.
2158
edbba2ce
TS
2159 * c-parser.c (c_parser_omp_target): Return bool values.
2160
68c81f24
TS
21612014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2162
2163 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
2164 num_teams_loc variable to num_thread_limit_loc.
2165
632f2871
RS
21662014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2167
2168 * c-array-notation.c (expand_array_notations): Use void_node
2169 instead of void_zero_node.
2170
766090c2
TS
21712014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2172
2173 * c-decl.c (finish_struct): Adjust.
2174 (finish_enum): Likewise.
2175 (bind): Adjust.
2176 (record_inline_static): Likewise.
2177 (push_scope): Likewise.
2178 (make_label): Likewise.
2179 (lookup_label_for_goto): Likewise.
2180 (finish_struct): Likewise.
2181 (finish_enum): Likewise.
2182 (store_parm_decls): Likewise.
2183 (c_push_function_context): Likewise.
2184 * c-lang.h: Remove usage of variable_size gty attribute.
2185 * c-parser.c (c_parse_init): Adjust.
2186 (c_parse_file): Likewise.
2187
2b107f6b
MP
21882014-05-13 Marek Polacek <polacek@redhat.com>
2189
2190 PR c/61162
2191 * c-typeck.c (convert_for_assignment): Pass location to
2192 WARN_FOR_ASSIGNMENT instead of input_location.
2193
d033409e
MP
21942014-05-10 Marek Polacek <polacek@redhat.com>
2195
2196 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
2197 maybe_warn_string_init.
2198 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
2199 maybe_warn_string_init.
2200 * c-tree.h (maybe_warn_string_init): Update declaration.
2201 * c-typeck.c (maybe_warn_string_init): Add location parameter.
2202 Call pedwarn_init with loc instead of with input_location.
2203 (digest_init): Pass init_loc to maybe_warn_string_init.
2204 (pop_init_level): Call pedwarn_init with loc instead of with
2205 input_location.
2206 (set_init_index): Likewise.
2207 (process_init_element): Likewise.
2208
ea58ef42
MP
22092014-05-09 Marek Polacek <polacek@redhat.com>
2210
2211 PR c/61096
2212 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
2213 (c_parser_initelt): Pass location to set_init_label. Pass array index
2214 location to set_init_index.
2215 * c-tree.h (push_init_level): Update declaration.
2216 (pop_init_level): Likewise.
2217 (set_init_index): Likewise.
2218 (set_init_label): Likewise.
2219 * c-typeck.c (error_init): Add location parameter. Call error_at
2220 instead of error.
2221 (digest_init): Pass init_loc to error_init.
2222 (really_start_incremental_init):
2223 (push_init_level): Add location parameter. Pass loc to pop_init_level
2224 and error_init.
2225 (pop_init_level): Likewise.
2226 (set_designator): Add location parameter. Pass loc to pop_init_level,
2227 push_init_level, and error_init.
2228 (set_init_index): Add location parameter. Pass loc to error_init and
2229 set_designator.
2230 (set_init_label): Likewise.
2231 (output_init_element): Pass loc to error_init.
2232 (process_init_element): Pass loc to error_init, pop_init_level,
2233 pedwarn_init, and push_init_level.
2234
661a0813
MP
22352014-05-09 Marek Polacek <polacek@redhat.com>
2236
2237 PR c/50459
2238 * c-parser.c (c_parser_attributes): Parse the arguments as an
2239 expression-list if the attribute takes identifier.
2240
2793eeab
MP
22412014-05-08 Marek Polacek <polacek@redhat.com>
2242
2243 PR c/61053
2244 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
2245 TYPE_ALIGN_UNIT.
2246
f827930a
MP
22472014-05-08 Marek Polacek <polacek@redhat.com>
2248
2249 PR c/61077
2250 * c-decl.c (start_function): Warn for _Atomic-qualified return type
2251 of main.
2252
1d60af08
KZ
22532014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2254 Mike Stump <mikestump@comcast.net>
2255 Richard Sandiford <rdsandiford@googlemail.com>
2256
2257 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
2258 (finish_enum): Use wide-int interfaces.
2259 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
2260 * c-typeck.c (build_c_cast): Likewise.
2261 (set_nonincremental_init_from_string): Likewise.
2262 (c_tree_equal): Likewise.
2263
a0e24419
MP
22642014-05-02 Marek Polacek <polacek@redhat.com>
2265
2266 PR c/25801
2267 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
2268 Return size_one_node when the type is not complete.
2269 (pointer_diff): Remove comment.
2270 (build_unary_op): Improve error messages.
2271
19fc9faa
MP
22722014-05-02 Marek Polacek <polacek@redhat.com>
2273
2274 * c-typeck.c (c_finish_return): Separate warning_at calls.
2275
63bc4e87
MP
22762014-05-02 Marek Polacek <polacek@redhat.com>
2277
2278 * c-tree.h (error_init): Remove declaration.
2279 (pedwarn_init): Likewise.
2280 * c-typeck.c (error_init): Make static and move above.
2281 (pedwarn_init): Likewise.
2282 (warning_init): Move above.
2283 (maybe_warn_string_init): Likewise.
2284
4bd2511b
JL
22852014-05-01 Jeff Law <law@redhat.com>
2286
2287 Revert:
2288
2289 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2290 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
2291 avoid goto.
2292
6a358dcb
MP
22932014-05-02 Marek Polacek <polacek@redhat.com>
2294
2295 PR c/60784
2296 * c-typeck.c (push_init_level): Set constructor_designated to
2297 p->designated for structures.
2298
ae5ebda4
MP
22992014-05-01 Marek Polacek <polacek@redhat.com>
2300
2301 PR c/60915
2302 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
2303 function-definition has an attribute after the declarator.
2304
96b40f8d
MP
23052014-05-01 Marek Polacek <polacek@redhat.com>
2306
2307 PR c/60257
2308 * c-typeck.c (warning_init): Add location_t parameter. Call
2309 warning_at instead of warning.
2310 (push_init_level): Pass input_location to warning_init.
2311 (add_pending_init): Add location_t parameter. Pass loc to
2312 warning_init.
2313 (set_nonincremental_init): Pass input_location to add_pending_init.
2314 (set_nonincremental_init_from_string): Likewise.
2315 (output_init_element): Pass loc to warning_init and to
2316 add_pending_init.
2317
32e00768
MP
23182014-05-01 Marek Polacek <polacek@redhat.com>
2319
2320 PR c/43395
2321 * c-typeck.c (c_finish_return): Distinguish between label and variable
2322 when warning about returning local address.
2323
c9379ce2
MP
23242014-05-01 Marek Polacek <polacek@redhat.com>
2325
2326 PR c/29467
2327 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
2328 in C89 mode.
2329
d00887e8
MP
23302014-05-01 Marek Polacek <polacek@redhat.com>
2331
2332 PR c/43245
2333 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
2334 instead of 0 to WARN_FOR_QUALIFIERS.
2335
5436fa2e
MP
23362014-05-01 Marek Polacek <polacek@redhat.com>
2337
2338 PR c/56989
2339 * c-typeck.c (default_conversion): Use better location for
2340 error call.
2341
f8ed5150
MP
23422014-04-30 Marek Polacek <polacek@redhat.com>
2343
2344 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
2345 also when SANITIZE_FLOAT_DIVIDE is on.
2346
8337d1db
MP
23472014-04-30 Marek Polacek <polacek@redhat.com>
2348
2349 PR c/60139
2350 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
2351 and pedwarn_init. Use loc insted of input_location.
2352
c4bdc42f
MP
23532014-04-30 Marek Polacek <polacek@redhat.com>
2354
2355 PR c/60351
2356 * c-typeck.c (build_binary_op): Use location when warning about
2357 shift count.
2358
45484dcf
MP
23592014-04-25 Marek Polacek <polacek@redhat.com>
2360
2361 PR c/18079
2362 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
2363 always_inline/noinline and hot/cold attributes.
2364
34cf811f
MP
23652014-04-25 Marek Polacek <polacek@redhat.com>
2366
2367 PR c/60114
2368 * c-parser.c (c_parser_initelt): Pass input_location to
2369 process_init_element.
2370 (c_parser_initval): Pass loc to process_init_element.
2371 * c-tree.h (process_init_element): Adjust declaration.
2372 * c-typeck.c (push_init_level): Pass input_location to
2373 process_init_element.
2374 (pop_init_level): Likewise.
2375 (set_designator): Likewise.
2376 (output_init_element): Add location_t parameter. Pass loc to
2377 digest_init.
2378 (output_pending_init_elements): Pass input_location to
2379 output_init_element.
2380 (process_init_element): Add location_t parameter. Pass loc to
2381 output_init_element.
2382
42056eac
JJ
23832014-04-24 Jakub Jelinek <jakub@redhat.com>
2384
2385 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
2386 atomic-clause, allow comma in between atomic-clause and
2387 seq_cst.
2388
e162a134
JJ
23892014-04-22 Jakub Jelinek <jakub@redhat.com>
2390
2391 PR c/59073
2392 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
2393 fails, don't set OM_PARALLEL_COMBINED and return NULL.
2394
2f6babac
IZ
23952014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2396
2397 PR middle-end/60469
2398 * c-array-notation.c (fix_builtin_array_notation_fn): Use
2399 create_tmp_var instead build_decl for creating temps.
2400 (build_array_notation_expr): Likewise.
2401 (fix_conditional_array_notations_1): Likewise.
2402 (fix_array_notation_expr): Likewise.
2403 (fix_array_notation_call_expr): Likewise.
2404
8edbfaa6
JJ
24052014-03-28 Jakub Jelinek <jakub@redhat.com>
2406
2407 PR c++/60689
2408 * c-tree.h (c_build_function_call_vec): New prototype.
2409 * c-typeck.c (build_function_call_vec): Don't call
2410 resolve_overloaded_builtin here.
2411 (c_build_function_call_vec): New wrapper function around
2412 build_function_call_vec. Call resolve_overloaded_builtin here.
2413 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
2414 Call c_build_function_call_vec instead of build_function_call_vec.
2415 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
2416 * c-decl.c (finish_decl): Likewise.
2417
7485aeea
MLI
24182014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
2419
2420 PR c/55383
2421 * c-typeck.c: Use correct format string in cast-qual warning
2422
b17a8b07
TS
24232014-03-07 Thomas Schwinge <thomas@codesourcery.com>
2424
2425 * c-decl.c (c_decl_attributes): Use
2426 lang_hooks.types.omp_mappable_type.
2427 * c-typeck.c (c_finish_omp_clauses): Likewise.
2428
3af9c5e9
MP
24292014-03-06 Marek Polacek <polacek@redhat.com>
2430
2431 PR c/60197
2432 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
2433 of checking tree code.
2434
1c9f5f33
PK
24352014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2436
2437 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
2438 (c_parser_parameter_declaration): Likewise.
2439
cc28fc7f
MP
24402014-02-19 Marek Polacek <polacek@redhat.com>
2441
2442 PR c/60195
2443 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
2444 Call mark_exp_read on exp.value.
2445 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
2446 TREE_ADDRESSABLE on old instead of val.
2447 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
2448
b581c05c
PK
24492014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
2450
2451 * c-parser.c (c_parser_get_builtin_args): Replace calls to
2452 C_EXPR_APPEND by vec_safe_push.
2453 * c-tree.h (C_EXPR_APPEND): Remove.
2454
81e5eca8
MP
24552014-01-31 Marek Polacek <polacek@redhat.com>
2456
2457 PR c/59963
2458 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
2459 build_function_call_vec.
2460 (build_function_call): Likewise.
2461 (build_atomic_assign): Likewise.
2462 (build_function_call_vec): Add arg_loc parameter. Use it.
2463 (convert_arguments): Likewise.
2464 (convert_for_assignment): Rename rhs_loc to expr_loc.
2465 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
2466 (c_parser_objc_keywordexpr): Likewise.
2467 (c_parser_postfix_expression_after_primary): Call
2468 build_function_call_vec with expr_loc rather than op_loc.
2469 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
2470 build_function_call_vec.
2471 (c_parser_expr_list): Add locations parameter. Fill it with locations
2472 of function arguments.
2473 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
2474
68fca595
MP
24752014-01-30 Marek Polacek <polacek@redhat.com>
2476
2477 PR c/59940
2478 * c-typeck.c (build_function_call_vec): Use loc parameter.
2479 (convert_arguments): Add location parameter. Use it.
2480 (ep_convert_and_check): Likewise.
2481 (build_atomic_assign): Adjust convert_for_assignment call.
2482 (build_modify_expr): Likewise.
2483 (digest_init): Likewise.
2484 (c_finish_return): Likewise.
2485 (build_conditional_expr): Adjust ep_convert_and_check calls.
2486 (convert_for_assignment): Add rhs_loc parameter. Use it.
2487 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
2488 calls.
2489
fa337f3a
RB
24902014-01-30 Richard Biener <rguenther@suse.de>
2491
2492 PR c/59905
2493 * c-typeck.c (build_function_call_vec): Do not replace calls
2494 to a function via an incompatible type with a runtime abort.
2495
b72271b9
BI
24962014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2497
2498 * c-parser.c (c_parser_declaration_or_fndef): Replaced
2499 flag_enable_cilkplus with flag_cilkplus.
2500 (c_parser_direct_declarator_inner): Likewise.
2501 (c_parser_attribute_any_word): Likewise.
2502 (c_parser_attributes): Likewise.
2503 (c_parser_compound_statement): Likewise.
2504 (c_parser_statement_after_labels): Likewise.
2505 (c_parser_if_statement): Likewise.
2506 (c_parser_switch_statement): Likewise.
2507 (c_parser_do_statement): Likewise.
2508 (c_parser_for_statement): Likewise.
2509 (c_parser_unary_expression): Likewise.
2510 (c_parser_postfix_expression): Likewise.
2511 (c_parser_postfix_expression_after_primary): Likewise.
2512 (c_parser_postfix_expression_after_primary): Likewise.
2513 (c_parser_omp_clause_name): Likewise.
2514 (c_finish_omp_declare_simd): Likewise.
2515 (c_parser_cilk_verify_simd): Likewise.
2516 * c-typeck.c (build_array_ref): Likewise.
2517 (build_function_call_vec): Likewise.
2518 (convert_arguments): Likewise.
2519 (build_compound_expr): Likewise.
2520 (c_finish_return): Likewise.
2521 (c_finish_if_stmt): Likewise.
2522 (c_finish_loop): Likewise.
2523 (build_binary_op): Likewise.
2524
393e8e8b
MP
25252014-01-23 Marek Polacek <polacek@redhat.com>
2526
2527 PR c/59846
2528 * c-typeck.c (parser_build_binary_op): Use location instead of
2529 input_location.
2530 (build_binary_op): Pass location to shorten_compare.
2531
f04dda30
MP
25322014-01-23 Marek Polacek <polacek@redhat.com>
2533
2534 PR c/58346
2535 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
2536 an empty aggregate.
2537
789eadcd
MP
25382014-01-23 Marek Polacek <polacek@redhat.com>
2539
2540 PR c/59871
2541 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
2542 of a comma expression.
2543 (emit_side_effect_warnings): Likewise.
2544
40f14e9f
BI
25452014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
2546
2547 PR c/59825
2548 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
2549 function to use walk_tree and moved a lot of its functionality to
2550 expand_array_notations.
2551 (expand_array_notations): New function.
2552
74558dd9
BI
25532014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
2554
2555 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
2556 attribute an attribute without value.
2557
652fea39
JJ
25582014-01-23 Jakub Jelinek <jakub@redhat.com>
2559
2560 PR middle-end/58809
2561 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
2562 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
2563
f34f1c87
MP
25642014-01-22 Marek Polacek <polacek@redhat.com>
2565
2566 PR c/59891
2567 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
2568 of remove_c_maybe_const_expr on op1 and op2.
2569
241f845a
JJ
25702014-01-15 Jakub Jelinek <jakub@redhat.com>
2571
2572 PR c/58943
2573 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
2574 effects, preevaluate rhs using SAVE_EXPR first.
2575
9a74f20c
BI
25762014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
2577
2578 PR c++/59631
2579 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
2580 statements with if-elseif statements.
2581
96066ce1
MP
25822014-01-06 Marek Polacek <polacek@redhat.com>
2583
2584 PR c/57773
2585 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
2586 defined bit-field types only in ISO C.
2587
23a5b65a
RS
25882014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2589
2590 Update copyright years
2591
f9030485
RS
25922014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2593
2594 * c-array-notation.c: Use the standard form for the copyright notice.
2595
41958c28
BI
25962013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2597
2598 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
2599 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
2600 field in parser is not empty. If not-empty, call the function
2601 c_parser_finish_omp_declare_simd.
2602 (c_parser_cilk_clause_vectorlength): Modified function to be shared
2603 between SIMD-enabled functions and #pragma simd. Added new parameter.
2604 (c_parser_cilk_all_clauses): Modified the usage of the function
2605 c_parser_cilk_clause_vectorlength as mentioned above.
2606 (c_parser_cilk_simd_fn_vector_attrs): New function.
2607 (c_finish_cilk_simd_fn_tokens): Likewise.
2608 (is_cilkplus_vector_p): Likewise.
2609 (c_parser_omp_clause_name): Added checking for "vectorlength,"
2610 "nomask," and "mask" strings in clause name.
2611 (c_parser_omp_all_clauses): Added 3 new case statements:
2612 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
2613 PRAGMA_CILK_CLAUSE_NOMASK.
2614 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
2615 check for vector attribute and if so call the function
2616 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
2617 called the function c_finish_cilk_simd_fn_tokens.
2618 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
2619 parser field is non-empty. If so, parse them as you would parse
2620 the omp declare simd pragma.
2621 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
2622 Added a check when step is a parameter and flag it as error.
2623 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
2624 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
2625 pragma_omp_clause.
2626
cef0fd0e
TS
26272013-12-17 Thomas Schwinge <thomas@codesourcery.com>
2628
2629 * c-parser.c (c_parser_omp_parallel): Fix description.
2630
12893402
BI
26312013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2632
2633 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
2634 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
2635 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
2636 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
2637
296674db
JM
26382013-12-04 Joseph Myers <joseph@codesourcery.com>
2639
2640 PR c/52023
2641 * c-parser.c (c_parser_alignas_specifier): Use
2642 c_sizeof_or_alignof_type instead of c_alignof.
2643 (c_parser_alignof_expression): Likewise, with min_alignof
2644 parameter depending on alignof spelling used.
2645
edd28054
MP
26462013-12-04 Marek Polacek <polacek@redhat.com>
2647
2648 PR c/54113
2649 * c-decl.c (start_function): Don't warn for missing prototype for
2650 inline functions.
2651
da0fc454
MP
26522013-12-03 Marek Polacek <polacek@redhat.com>
2653
2654 PR c/59351
2655 * c-decl.c (build_compound_literal): Allow compound literals with
2656 empty initial value.
2657
4c2ecab0
JM
26582013-12-02 Joseph Myers <joseph@codesourcery.com>
2659
2660 PR c/58235
2661 * c-typeck.c (build_modify_expr): Diagnose assignment to
2662 expression with array type.
2663
340baef7
JM
26642013-11-29 Joseph Myers <joseph@codesourcery.com>
2665
2666 PR c/42262
2667 * c-typeck.c (process_init_element): Do not treat a string as
2668 initializing a whole array when used with a designator for an
2669 individual element.
2670
6763b9f7
JM
26712013-11-29 Joseph Myers <joseph@codesourcery.com>
2672
2673 PR c/57574
2674 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
2675 an inline function following a static declaration.
2676
e7bd1de1
JJ
26772013-11-28 Jakub Jelinek <jakub@redhat.com>
2678
2679 PR c/59310
2680 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
2681 to p_name before calling c_parser_omp_teams instead of after.
2682 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
2683 argument. Remove unused p_name variable.
2684
0136f8f0
AH
26852013-11-27 Aldy Hernandez <aldyh@redhat.com>
2686 Jakub Jelinek <jakub@redhat.com>
2687
2688 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
2689 external_scope is NULL.
2690
241b71bb
TV
26912013-11-27 Tom de Vries <tom@codesourcery.com>
2692 Marc Glisse <marc.glisse@inria.fr>
2693
2694 PR c++/59032
2695 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
2696
2fb9a547
AM
26972013-11-22 Andrew MacLeod <amacleod@redhat.com>
2698
2699 * c-typeck.c: Add required include files from gimple.h.
2700
8400e75e
DM
27012013-11-22 David Malcolm <dmalcolm@redhat.com>
2702
2703 * c-decl.c (define_label, shadow_tag_warned)
2704 (check_bitfield_type_and_width, grokdeclarator, grokparms,
2705 store_parm_decls_newstyle, store_parm_decls_oldstyle)
2706 (declspecs_add_type): Remove use of in_system_header macro.
2707 * c-parser.c (c_parser_unary_expression): Likewise.
2708 * c-typeck.c (store_init_value, process_init_element)
2709 (c_start_case): Likewise.
2710
2711 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
2712 macro.
2713
2714 * c-parser.c (c_parser_set_source_position_from_token): Remove
2715 reference to in_system_header from comment.
2716
386b1f1f
RS
27172013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2718
2719 * c-decl.c (grokdeclarator): Update comment to refer to
2720 tree_to_[su]hwi rather than tree_low_cst.
2721
ae7e9ddd
RS
27222013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2723
2724 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
2725 tree_to_uhwi throughout.
2726
9439e9a1
RS
27272013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2728
2729 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
2730 throughout.
2731
9541ffee
RS
27322013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2733
2734 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
2735 throughout.
2736
c02065fc
AH
27372013-11-15 Aldy Hernandez <aldyh@redhat.com>
2738
2739 * c-parser.c (c_parser_cilk_simd): New.
2740 (c_parser_cilk_verify_simd): New.
2741 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
2742 (c_parser_omp_for_loop): Add case for NE_EXPR.
2743 Set c_break_label for CILK_SIMD.
2744 (c_parser_cilk_clause_vectorlength): New.
2745 (c_parser_cilk_clause_linear): New.
2746 (c_parser_cilk_clause_name): New.
2747 (c_parser_cilk_all_clauses): New.
2748 * c-typeck.c (build_unary_op): Pass location argument to
2749 readonly_error.
2750 (build_modify_expr): Same.
2751 (build_asm_expr): Same.
2752 (c_finish_bc_stmt): Error on break/continue in loops.
2753
18f429e2
AM
27542013-11-14 Andrew MacLeod <amacleod@redhat.com>
2755
2756 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
2757
d8a2d370
DN
27582013-11-14 Diego Novillo <dnovillo@google.com>
2759
2760 * c-decl.c: Include print-tree.h.
2761 Include stor-layout.h.
2762 Include varasm.h.
2763 Include attribs.h.
2764 Include stringpool.h.
2765 * c-lang.c: Include fold-const.h.
2766 * c-parser.c: Include stringpool.h.
2767 Include attribs.h.
2768 Include stor-layout.h.
2769 Include varasm.h.
2770 Include trans-mem.h.
2771 * c-typeck.c: Include stor-layout.h.
2772 Include trans-mem.h.
2773 Include varasm.h.
2774 Include stmt.h.
2775
38b7bc7f
JM
27762013-11-13 Joseph Myers <joseph@codesourcery.com>
2777
2778 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
2779 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
2780 __auto_type.
2781 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
2782 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
2783 RID_AUTO_TYPE.
2784 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
2785 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
2786 (c_parser_declarator, c_parser_direct_declarator_inner)
2787 (c_parser_parameter_declaration, c_parser_type_name): All callers
2788 changed.
2789 (c_parser_declaration_or_fndef): Handle declarations with type
2790 determined from the initializer.
2791
45b0be94
AM
27922013-11-12 Andrew MacLeod <amacleod@redhat.com>
2793
18f429e2 2794 * c-typeck.c: Include gimplify.h.
45b0be94 2795
582d9b50
JM
27962013-11-12 Joseph Myers <joseph@codesourcery.com>
2797
2798 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
2799 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
2800 comment.
2801 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
2802 or _Thread_local as appropriate in diagnostics.
2803 (build_null_declspecs): Initialize ret->thread_gnu_p.
2804 (declspecs_add_scspec): Handle either __thread or _Thread_local
2805 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
2806 pedantic. Do not disallow _Thread_local extern and _Thread_local
2807 static.
2808
267bac10
JM
28092013-11-07 Joseph Myers <joseph@codesourcery.com>
2810 Andrew MacLeod <amacleod@redhat.com>
2811
2812 * c-aux-info.c (gen_type): Handle atomic qualifier.
2813 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
2814 qualifiers when compating types.
2815 (shadow_tag_warned): Handle atomic_p in declspecs.
2816 (quals_from_declspecs): Likewise.
2817 (start_decl): Use c_type_promotes_to when promoting argument
2818 types.
2819 (grokdeclarator): Handle _Atomic.
2820 (get_parm_info): Diagnose any qualifier on "void" as only
2821 parameter.
2822 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
2823 comparing types. Use c_type_promotes_to when promoting argument
2824 types.
2825 (finish_function): Use c_type_promotes_to when promoting argument
2826 types.
2827 (build_null_declspecs): Handle atomic_p in declspecs.
2828 (declspecs_add_qual): Handle RID_ATOMIC.
2829 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
2830 (c_token_starts_declspecs): Handle RID_ATOMIC.
2831 (c_parser_declspecs): Handle atomic type specifiers and
2832 qualifiers.
2833 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
2834 from types of expressions with atomic type.
2835 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
2836 (c_parser_attribute_any_word): Handle RID_ATOMIC.
2837 (c_parser_initializer, c_parser_initelt, c_parser_initval)
2838 (c_parser_statement_after_labels, c_parser_switch_statement)
2839 (c_parser_for_statement, c_parser_expr_no_commas)
2840 (c_parser_conditional_expression, c_parser_binary_expression)
2841 (c_parser_cast_expression, c_parser_unary_expression)
2842 (c_parser_postfix_expression)
2843 (c_parser_postfix_expression_after_primary, c_parser_expression):
2844 Use convert_lvalue_to_rvalue.
2845 (c_parser_expression_conv, c_parser_expr_list): Document
2846 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
2847 (c_parser_objc_synchronized_statement): Use
2848 convert_lvalue_to_rvalue.
2849 (c_parser_objc_selector): Handle RID_ATOMIC.
2850 (c_parser_objc_receiver, c_parser_array_notation): Use
2851 convert_lvalue_to_rvalue.
2852 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
2853 _Atomic (type-name).
2854 (struct c_declspecs): Add atomic_p field.
2855 (convert_lvalue_to_rvalue): Declare.
2856 * c-typeck.c (c_type_promotes_to): Promote atomic types to
2857 corresponding atomic types.
2858 (qualify_type): Don't add _Atomic qualifiers from second argument.
2859 (comp_target_types): Do not allow _Atomic mismatches.
2860 (type_lists_compatible_p): Do not remove atomic qualifiers when
2861 comparing types.
2862 (really_atomic_lvalue, convert_lvalue_to_rvalue)
2863 (build_atomic_assign): New functions.
2864 (build_unary_op): Use build_atomic_assign for atomic increment and
2865 decrement.
2866 (build_conditional_expr): Do not treat _Atomic void as a qualified
2867 version of void.
2868 (build_modify_expr): Use build_atomic_assign for atomic LHS.
2869 (find_anonymous_field_with_type, convert_to_anonymous_field)
2870 (convert_for_assignment): Do not remove atomic qualifiers when
2871 comparing types.
2872 (digest_init): Do not accept initialization of arrays of atomic
2873 elements by string constants.
2874 (build_asm_expr): Use convert_lvalue_to_rvalue.
2875 (build_binary_op): Do not treat _Atomic void as a qualified
2876 version of void.
2877
0c249d4b
DD
28782013-11-06 DJ Delorie <dj@redhat.com>
2879
2880 * c-decl.c (locate_old_decl): If a previous conflicting decl is
2881 both explicit and builtin, print the location of the explicit one.
2882
6d7f7e0a
TB
28832013-11-05 Tobias Burnus <burnus@net-b.de>
2884
2885 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
2886 c_parser_omp_distribute, c_parser_omp_teams,
2887 c_parser_omp_target, c_parser_omp_declare): Handle
2888 -fopenmp-simd.
2889
b906f4ca
MP
28902013-11-03 Marek Polacek <polacek@redhat.com>
2891
2892 * c-decl.c (grokdeclarator): Add VLA instrumentation.
2893
ee1d5a02
JJ
28942013-11-01 Jakub Jelinek <jakub@redhat.com>
2895
2896 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
2897 check_dup_generic at the end, unless remove is true.
2898 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
2899 remove = true;.
2900 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
2901
5a9785fb
JJ
29022013-10-31 Jakub Jelinek <jakub@redhat.com>
2903
2904 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
2905 with decl that is not pointer nor array.
2906
939b37da
BI
29072013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2908
2909 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
2910 a spawning function is found.
2911 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
2912 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
2913 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
2914 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
2915 case.
2916 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
2917 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
2918 expr.
2919 (c_finish_return): Added a check to reject _Cilk_spawn in return
2920 expression.
2921 (build_cilk_spawn): New function.
2922 (build_cilk_sync): Likewise.
2923 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
2924
d4af74d4
TB
29252013-10-27 Tobias Burnus <burnus@net-b.de>
2926
2927 PR other/33426
2928 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
2929 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
2930 (c_parser_statement_after_labels): Update calls.
2931
d73749df 29322013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
2933
2934 PR other/33426
2935 * c-parser.c (c_parser_pragma, c_parser_for_statement):
2936 Handle PRAGMA_IVDEP.
2937 (c_parser_statement_after_labels): Update call.
2938
f28aa681
MP
29392013-10-24 Marek Polacek <polacek@redhat.com>
2940
2941 * c-parser.c (c_parser_struct_declaration): Add a comment.
2942 (c_parser_declarator): Don't allow _Alignas here.
2943
0645c1a2
AM
29442013-10-17 Andrew MacLeod <amacleod@redhat.com>
2945
2946 * c-parser.c: Include omp-low.h.
2947 * c-typeck.c: Likewise.
2948
568a31f2
MP
29492013-10-17 Marek Polacek <polacek@redhat.com>
2950
2951 PR c/58267
2952 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
2953 Document syntax of the array-declarator.
2954 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
2955 are not permitted.
2956 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
2957 (c_parser_struct_declaration): Likewise.
2958 (c_parser_declarator): Likewise.
2959 (c_parser_direct_declarator_inner): Likewise.
2960 (c_parser_parameter_declaration): Likewise.
2961 (c_parser_type_name): Likewise.
2962
acf0174b
JJ
29632013-10-11 Jakub Jelinek <jakub@redhat.com>
2964
2965 * c-lang.h (current_omp_declare_target_attribute): New extern
2966 decl.
2967 * c-parser.c: Include c-lang.h.
2968 (struct c_parser): Change tokens to c_token *.
2969 Add tokens_buf field. Change tokens_avail type to unsigned int.
2970 (c_parser_consume_token): If parser->tokens isn't
2971 &parser->tokens_buf[0], increment parser->tokens.
2972 (c_parser_consume_pragma): Likewise.
2973 (enum pragma_context): Add pragma_struct and pragma_param.
2974 (c_parser_external_declaration): Adjust
2975 c_parser_declaration_or_fndef caller.
2976 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
2977 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
2978 Adjust recursive call.
2979 (c_parser_struct_or_union_specifier): Use pragma_struct instead
2980 of pragma_external.
2981 (c_parser_parameter_declaration): Use pragma_param instead of
2982 pragma_external.
2983 (c_parser_compound_statement_nostart, c_parser_label,
2984 c_parser_for_statement): Adjust
2985 c_parser_declaration_or_fndef callers.
2986 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
2987 it through to c_parser_conditional_expression.
2988 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
2989 pass it through to c_parser_binary_expression. Adjust recursive
2990 call.
2991 (c_parser_binary_expression): Remove prec argument, add
2992 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
2993 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
2994 binop matches it, use build2 instead of parser_build_binary_op.
2995 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
2996 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
2997 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
2998 Handle pragma_struct and pragma_param the same as pragma_external.
2999 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
3000 (c_parser_omp_variable_list): Parse array sections for
3001 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
3002 (c_parser_omp_clause_collapse): Fully fold collapse expression.
3003 (c_parser_omp_clause_reduction): Handle user defined reductions.
3004 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
3005 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
3006 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
3007 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
3008 c_parser_omp_clause_depend, c_parser_omp_clause_map,
3009 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
3010 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
3011 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
3012 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
3013 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
3014 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
3015 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
3016 (c_parser_omp_for_loop): Add CODE argument, pass it through
3017 to c_finish_omp_for. Change last argument to cclauses,
3018 and adjust uses to grab parallel clauses from the array of all
3019 the split clauses. Adjust c_parser_binary_expression,
3020 c_parser_declaration_or_fndef and c_finish_omp_for callers.
3021 (omp_split_clauses): New function.
3022 (c_parser_omp_simd): New function.
3023 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
3024 Allow the function to be called also when parsing combined constructs,
3025 and call c_parser_omp_simd when parsing for simd.
3026 (c_parser_omp_sections_scope): If section-sequence doesn't start with
3027 #pragma omp section, require exactly one structured-block instead of
3028 sequence of statements.
3029 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
3030 Allow the function to be called also when parsing combined constructs.
3031 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
3032 Allow the function to be called also when parsing combined
3033 constructs.
3034 (c_parser_omp_taskgroup, c_parser_omp_cancel,
3035 c_parser_omp_cancellation_point, c_parser_omp_distribute,
3036 c_parser_omp_teams, c_parser_omp_target_data,
3037 c_parser_omp_target_update, c_parser_omp_target,
3038 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
3039 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
3040 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
3041 (c_parser_omp_construct): Add p_name and mask vars. Handle
3042 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
3043 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
3044 and c_parser_omp_sections callers.
3045 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
3046 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
3047 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
3048 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
3049 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
3050 OMP_CLAUSE_DEPEND.
3051 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
3052 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
3053 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
3054 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
3055 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
3056 * c-typeck.c: Include tree-inline.h.
3057 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
3058 handle_omp_array_sections_1, handle_omp_array_sections,
3059 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
3060 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
3061 user defined reductions.
3062 (c_tree_equal): New function.
3063 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
3064 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
3065 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
3066 c_check_omp_declare_reduction_r): New prototypes.
3067 * c-decl.c (current_omp_declare_target_attribute): New variable.
3068 (c_decl_attributes): New function.
3069 (start_decl, start_function): Use it instead of decl_attributes.
3070 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
3071 c_omp_reduction_decl, c_omp_reduction_lookup,
3072 c_check_omp_declare_reduction_r): New functions.
3073
0a6c2227
TT
30742013-09-25 Tom Tromey <tromey@redhat.com>
3075
3076 * Make-lang.in (c/gccspec.o): Remove.
3077 (CFLAGS-c/gccspec.o): New variable.
3078 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
3079 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
3080 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
3081
f3bc55f0
TT
30822013-09-25 Tom Tromey <tromey@redhat.com>
3083
3084 * Make-lang.in (c/gccspec.o): Don't use subshell.
3085
a24d975c
MP
30862013-09-18 Marek Polacek <polacek@redhat.com>
3087
3088 PR sanitize/58443
3089 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
3090 Remove unnecessary check.
3091
ce6923c5
MP
30922013-09-18 Marek Polacek <polacek@redhat.com>
3093
3094 PR sanitizer/58411
3095 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
3096 no_sanitize_undefined attribute.
3097
a1e51df9
KT
30982013-09-13 Kai Tietz <ktietz@redhat.com>
3099
3100 PR target/57848
3101 * c-decl.c (c_builtin_function_ext_scope): Remove
3102 wrong assumption that it is never called on prexisting
3103 symbol.
3104
0af94e6f
JR
31052013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3106
3107 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
3108
20059c8b
GDR
31092013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3110
3111 * c-objc-common.c (c_tree_printer): Tidy.
3112
de5a5fa1
MP
31132013-08-30 Marek Polacek <polacek@redhat.com>
3114
3115 * c-typeck.c (build_binary_op): Add division by zero and shift
3116 instrumentation.
3117
2531a1d9 31182013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 3119 Joseph Myers <joseph@codesourcery.com>
2531a1d9 3120
6e2bcc98 3121 PR c/35649
2531a1d9
JR
3122 * c-typeck.c (c_common_type): Prefer double_type_node over
3123 other REAL_TYPE types with the same precision.
3124 (convert_arguments): Likewise.
3125
025311c4
GDR
31262013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
3127
3128 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
3129 (c_initialize_diagnostics): Call a destructor for the early printer.
3130
da6ca2b5
GDR
31312013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3132
3133 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
3134 printer initialization.
3135
318cda85 31362013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 3137
318cda85
BI
3138 PR c/57490
3139 * c-array-notation.c (fix_conditional_array_notations_1): Added a
3140 check for truth values.
3141 (expand_array_notation_exprs): Added truth values case. Removed an
3142 unwanted else. Added for-loop to walk through subtrees in default
3143 case.
3144
b066401f
GDR
31452013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3146
3147 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
3148
fb48aadc
JM
31492013-07-23 Joseph Myers <joseph@codesourcery.com>
3150
3151 * c-parser.c (struct c_generic_association): Fix typo.
3152
433cc7b0
TT
31532013-07-23 Tom Tromey <tromey@redhat.com>
3154 Joseph Myers <joseph@codesourcery.com>
3155
3156 * c-parser.c (struct c_generic_association): New.
3157 (c_generic_association_d): New typedef.
3158 (c_parser_generic_selection): New function.
3159 (c_parser_postfix_expression): Handle RID_GENERIC.
3160
26d40c3d
JM
31612013-07-13 Jason Merrill <jason@redhat.com>
3162
3163 PR c++/57793
3164 * c-decl.c (finish_struct): Check for too-large class.
3165
ecdbd01a 31662013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3167
3168 PR c/57821
3169 * c-typeck.c (set_init_index): When folding, check for index overflow.
3170
1141ed3f
BI
31712013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3172
3173 * c-parser.c (c_parser_array_notation): Removed rejection of array
3174 notations in an array of function pointers.
3175
713b46fa
BI
31762013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3177
3178 * c-array-notation.c (make_triplet_val_inv): New function.
3179 (create_cmp_incr): Likewise.
3180 (create_array_refs): Likewise.
3181 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
3182 Also modularized common parts between functions and called the function.
3183 (build_array_notation_expr): Likewise.
3184 (fix_conditional_array_notations_1): Likewise.
3185 (fix_array_notation_expr): Likewise.
3186 (fix_array_notation_call_expr): Likewise.
3187
92f20202
MP
31882013-06-18 Marek Polacek <polacek@redhat.com>
3189
3190 PR c/57630
3191 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
3192
73a23b06
BI
31932013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
3194
3195 * c-array-notation.c (build_array_notation_expr): Reject array notation
3196 mismatch between LHS and RHS even inside a call_expr. Also, removed
3197 a couple while statements that were dead code.
3198
00b8517d
BI
31992013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
3200
3201 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
3202 excessive precision expressions in function parameters. Also removed
3203 couple unwanted while statements.
3204
1509bdda
BI
32052013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3206
3207 * c-array-notation.c (expand_array_notation_exprs): Added
3208 ARRAY_NOTATION_REF case.
3209
d60f1706
BI
32102013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3211
3212 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
3213 function to c-family/array-notation-common.c.
3214 (is_cilkplus_reduce_builtin): Likewise.
3215 (find_rank): Likewise.
3216 (extract_array_notation_exprs): Likewise.
3217 (replace_array_notations): Likewise.
3218 (find_inv_trees): Likewise.
3219 (replace_inv_trees): Likewise.
3220 (contains_array_notation_expr): Likewise.
3221 (find_correct_array_notation_type): Likewise.
3222 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
3223 (struct inv_list): Moved this to c-family/array-notation-common.c.
3224 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
3225
6d6efbb3
BI
32262013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
3227
3228 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
3229 reduction functions outside the for-loop. Added a check if the fundecl
3230 is non-NULL. Finally, removed an unwanted if-statement, and made the
3231 body unconditional.
3232
25c22937
BI
32332013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
3234
3235 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
3236 condition of the if-statement matches the rank of else-block and then-
3237 block when array notations are used.
3238 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
3239 expression after the entire function body is parsed.
3240 (c_parser_expr_no_commas): Delayed creating array notation expressions
3241 to the end of function parsing.
3242 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
3243 whole if-statement instead of just the condition.
3244 (expand_array_notation_exprs): Added MODIFY_EXPR case.
3245
edd25645
BI
32462013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
3247
3248 PR c/57474
3249 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
3250 array to NULL_TREE if they are unused. Also added a check for the
3251 field to be NULL before its fields are used in future.
3252
065ce7f1
RO
32532013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3254
3255 PR bootstrap/57450
3256 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
3257 (build_array_notation_expr): Likewise.
3258
36536d79
BI
32592013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3260
3261 * c-typeck.c (build_array_ref): Added a check to see if array's
3262 index is greater than one. If true, then emit an error.
3263 (build_function_call_vec): Exclude error reporting and checking
3264 for builtin array-notation functions.
3265 (convert_arguments): Likewise.
3266 (c_finish_return): Added a check for array notations as a return
3267 expression. If true, then emit an error.
3268 (c_finish_loop): Added a check for array notations in a loop
3269 condition. If true then emit an error.
3270 (lvalue_p): Added a ARRAY_NOTATION_REF case.
3271 (build_binary_op): Added a check for array notation expr inside
3272 op1 and op0. If present, we call another function to find correct
3273 type.
3274 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
3275 * c-parser.c (c_parser_compound_statement): Check if array
3276 notation code is used in tree, if so, then transform them into
3277 appropriate C code.
3278 (c_parser_expr_no_commas): Check if array notation is used in LHS
3279 or RHS, if so, then build array notation expression instead of
3280 regular modify.
3281 (c_parser_postfix_expression_after_primary): Added a check for
3282 colon(s) after square braces, if so then handle it like an array
3283 notation. Also, break up array notations in unary op if found.
3284 (c_parser_direct_declarator_inner): Added a check for array
3285 notation.
3286 (c_parser_compound_statement): Added a check for array notation in
3287 a stmt. If one is present, then expand array notation expr.
3288 (c_parser_if_statement): Likewise.
3289 (c_parser_switch_statement): Added a check for array notations in
3290 a switch statement's condition. If true, then output an error.
3291 (c_parser_while_statement): Similarly, but for a while.
3292 (c_parser_do_statement): Similarly, but for a do-while.
3293 (c_parser_for_statement): Similarly, but for a for-loop.
3294 (c_parser_unary_expression): Check if array notation is used in a
3295 pre-increment or pre-decrement expression. If true, then expand
3296 them.
3297 (c_parser_array_notation): New function.
3298 * c-array-notation.c: New file.
3299 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
3300
cd192ccc
MS
33012013-05-23 Mike Stump <mikestump@comcast.net>
3302
3303 * c-typeck.c (convert_for_assignment): Handle references to memory
3304 spaces better.
3305
427b248d
JM
33062013-05-16 Jason Merrill <jason@redhat.com>
3307
3308 * Make-lang.in (cc1$(exeext)): Use link mutex.
3309
44d90fe1
PC
33102013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3311
3312 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
3313 to simply use OPT_Wpointer_arith.
3314 (build_unary_op): Likewise.
3315
4e7d7b3d
JJ
33162013-04-03 Jakub Jelinek <jakub@redhat.com>
3317
3318 PR c/19449
3319 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
3320 argument. If set, or it temporarily for parsing of the first
3321 argument into force_folding_builtin_constant_p.
3322 (c_parser_postfix_expression): Adjust callers.
3323
839b422f
RB
33242013-03-21 Richard Biener <rguenther@suse.de>
3325
3326 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
3327 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
3328
2ee028f1
MP
33292013-02-12 Marek Polacek <polacek@redhat.com>
3330
3331 PR c/44938
3332 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
3333 origtypes to NULL.
3334
8824edff
JJ
33352013-01-24 Jakub Jelinek <jakub@redhat.com>
3336
3337 PR c/56078
3338 * c-typeck.c (set_nonincremental_init_from_string): If
3339 constructor_max_index is NULL, treat it as if tree_int_cst_lt
3340 returned false.
3341 (process_init_element): Likewise.
3342
eadd3d0d
JJ
33432012-12-20 Jakub Jelinek <jakub@redhat.com>
3344
3345 PR c++/55619
3346 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
3347 argument, don't call default_function_array_conversion
3348 nor c_fully_fold here.
3349 (c_parser_asm_statement): Adjust callers.
3350 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
3351 and outputs here, and call default_function_array_conversion
3352 on inputs that don't need to be addressable.
3353
f8a93a2e
JJ
33542012-12-18 Jakub Jelinek <jakub@redhat.com>
3355
3356 PR c/39464
3357 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
3358 warning require that both c_common_unsigned_type as well as
3359 c_common_signed_type is the same for both mvl and mvr types.
3360
9771b263
DN
33612012-11-16 Diego Novillo <dnovillo@google.com>
3362
3363 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
3364
3365 * c-common.c: Use new vec API in vec.h.
3366 * c-common.h: Likewise.
3367 * c-gimplify.c: Likewise.
3368 * c-pragma.c: Likewise.
3369 * c-pretty-print.c: Likewise.
3370 * c-pretty-print.h: Likewise.
3371 * c-semantics.c: Likewise.
3372 * c-decl.c: Likewise.
3373 * c-parser.c: Likewise.
3374 * c-tree.h: Likewise.
3375 * c-typeck.c: Likewise.
3376
880661a4
JW
33772012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3378
3379 PR c++/54930
3380 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
3381
077d1abe
MLI
33822012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3383
3384 PR c/53066
3385 * c-decl.c (warn_if_shadowing): Do not warn if a variable
3386 shadows a function, unless the variable is a function or a
3387 pointer-to-function.
3388
3a785c97
JJ
33892012-10-12 Jakub Jelinek <jakub@redhat.com>
3390
3391 PR c/54381
3392 * c-parser.c (struct c_tree_loc_pair): Removed.
3393 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
3394 add location_t * and tree * arguments, fill in array of 3
3395 sizeof_arg trees and corresponding locs.
3396 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
3397 c_parser_expr_list callers.
3398 (c_parser_postfix_expression_after_primary): Likewise. Pass
3399 array of 3 sizeof_arg trees and locs (corresponding to first
3400 3 arguments) to sizeof_pointer_memaccess_warning.
3401
703c8606
LC
34022012-10-09 Lawrence Crowl <crowl@google.com>
3403
3404 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
3405 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
3406 hash table.
3407
5d9de0d0
PC
34082012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3409
3410 PR c++/54194
3411 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
3412 call.
3413
a212e43f
MG
34142012-10-09 Marc Glisse <marc.glisse@inria.fr>
3415
3416 PR c++/54427
3417 * c-typeck.c: Include c-common.h.
3418 (enum stv_conv): Moved to c-common.h.
3419 (scalar_to_vector): Moved to c-common.c.
3420 (build_binary_op): Adapt to scalar_to_vector's new prototype.
3421 * Make-lang.in: c-typeck.c depends on c-common.h.
3422
3b78de56
AC
34232012-10-04 Arnaud Charlet <charlet@adacore.com>
3424
3425 * c-decl.c (c_write_global_declarations): Fix handling of
3426 -fdump-ada-spec*.
3427
78c60e3d
SS
34282012-09-30 Sharad Singhai <singhai@google.com>
3429
3430 * c-decl.c (c_write_global_declarations): Use a different method
3431 to determine if the dump has ben initialized.
3432
9f33203d
JM
34332012-09-14 Joseph Myers <joseph@codesourcery.com>
3434
3435 PR c/54552
3436 * c-typeck.c (c_cast_expr): When casting to a type requiring
3437 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
3438 c_fully_fold first.
3439
a27d595d
JM
34402012-09-14 Joseph Myers <joseph@codesourcery.com>
3441
3442 PR c/54103
3443 * c-typeck.c (build_unary_op): Pass original argument of
3444 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
3445 any C_MAYBE_CONST_EXPR, if it has integer operands.
3446 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
3447 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
3448 to c_objc_common_truthvalue_conversion, then remove any
3449 C_MAYBE_CONST_EXPR, if they have integer operands. Use
3450 c_objc_common_truthvalue_conversion not
3451 c_common_truthvalue_conversion.
3452 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
3453 call note_integer_operands for arguments with integer operands
3454 that are not integer constants.
3455
9feb29df
JJ
34562012-09-13 Jakub Jelinek <jakub@redhat.com>
3457
3458 PR c/54559
3459 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
3460 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
3461
d409320c
JJ
34622012-08-31 Jakub Jelinek <jakub@redhat.com>
3463
3464 PR c/54428
3465 * c-convert.c (convert): Don't call fold_convert_loc if
3466 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
3467 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
3468 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
3469
6265d07c
JJ
34702012-08-24 Jakub Jelinek <jakub@redhat.com>
3471
3472 PR c/54355
3473 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
3474 for nested and empty_ok arguments in the call to
3475 c_parser_declaration_or_fndef.
3476
1a4049e7
JJ
34772012-08-17 Jakub Jelinek <jakub@redhat.com>
3478
3479 * c-tree.h (c_last_sizeof_arg): Declare.
3480 * c-parser.c (struct c_tree_loc_pair): New type.
3481 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
3482 non-NULL.
3483 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
3484 (c_parser_postfix_expression_after_primary): Likewise. Call
3485 sizeof_pointer_memaccess_warning if needed.
3486 (sizeof_ptr_memacc_comptypes): New function.
3487 * c-typeck.c (c_last_sizeof_arg): New global variable.
3488 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
3489
0229aee9
UB
34902012-07-24 Uros Bizjak <ubizjak@gmail.com>
3491
3492 * c-lang.h (lang_decl): Add variable_size GTY option.
3493
7ee2468b
SB
34942012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3495
3496 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
3497 * Make-lang.in: Fix dependencies.
3498
d4a10d0a
SB
34992012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3500
3501 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
3502 and add language Makefile hooks.
3503 * config-lang.in: New file.
3504 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
3505 add the required "normal" config-lang.in rules.
3506 * c-lang.h: Moved from gcc/ to here.
3507 * c-tree.h: Likewise.
3508 * c-objc-common.c: Likewise.
3509 * c-objc-common.h: Likewise.
3510 * c-typeck.c: Likewise.
3511 * c-convert.c: Likewise.
3512 * c-lang.c: Likewise.
3513 * c-aux-info.c: Likewise.
3514 * c-errors.c: Likewise.
3515 * gccspec.c: Likewise.
3516 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
3517 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
3518\f
818ab71a 3519Copyright (C) 2012-2016 Free Software Foundation, Inc.
d4a10d0a
SB
3520
3521Copying and distribution of this file, with or without modification,
3522are permitted in any medium without royalty provided the copyright
3523notice and this notice are preserved.