]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c/ChangeLog
re PR ipa/67783 (quadratic time consumption in IPA inlining with -O1 and higher)
[thirdparty/gcc.git] / gcc / c / ChangeLog
CommitLineData
b8fd7909
JM
12015-10-04 Jason Merrill <jason@redhat.com>
2
3 * c-parser.c (c_lex_one_token): Handle @synchronized.
4 * c-decl.c (match_builtin_function_types): A declaration of a built-in
5 can change whether the function is transaction_safe.
6
1c7485af
MP
72015-10-02 Marek Polacek <polacek@redhat.com>
8
9 PR c/67730
10 * c-typeck.c (convert_for_assignment): Use the expansion point
11 location throughout.
12
3e3b8d63
MP
132015-10-02 Marek Polacek <polacek@redhat.com>
14
15 PR c/64249
16 * c-parser.c (c_parser_statement_after_labels): Add CHAIN parameter
17 and pass it down to c_parser_if_statement.
18 (c_parser_else_body): Add CHAIN parameter and pass it down to
19 c_parser_statement_after_labels.
20 (c_parser_if_statement): Add CHAIN parameter. Add code to warn about
21 duplicated if-else-if conditions.
22
aabef2de
MP
232015-10-01 Marek Polacek <polacek@redhat.com>
24
25 * c-typeck.c (convert_for_assignment): Improve commentary.
26
de8ddd5f
MP
272015-09-30 Marek Polacek <polacek@redhat.com>
28
29 PR c/67730
30 * c-typeck.c (c_finish_return): Use the expansion point location for
31 certain "return with value" warnings.
32
c4914de6
MLI
332015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
34
35 * c-parser.c (pragma_lex): Add loc argument.
36
0e36f5c7
MP
372015-09-15 Marek Polacek <polacek@redhat.com>
38
39 PR c/67580
40 * c-decl.c (tag_exists_p): New function.
41 * c-parser.c (c_parser_declaration_or_fndef): Give a hint when
42 struct/union/enum keywords are missing.
43 * c-tree.h (tag_exists_p): Declare.
44
2f3bb934
MP
452015-09-15 Marek Polacek <polacek@redhat.com>
46
47 * c-decl.c (lookup_label): Return NULL_TREE instead of 0.
48 (lookup_tag): Change the type of THISLEVEL_ONLY to bool.
49 Return NULL_TREE instead of 0.
50 (lookup_name): Return NULL_TREE instead of 0.
51 (lookup_name_in_scope): Likewise.
52 (shadow_tag_warned): Use true instead of 1 and NULL_TREE instead of 0.
53 (parser_xref_tag): Use false instead of 0.
54 (start_struct): Use true instead of 1.
55 (start_enum): Use true instead of 1 and NULL_TREE instead of 0.
56
aa256c4a
MP
572015-09-14 Marek Polacek <polacek@redhat.com>
58
59 * c-typeck.c (set_nonincremental_init_from_string): Use
60 HOST_WIDE_INT_M1U when shifting a negative value.
61
dbb68221
MW
622015-09-09 Mark Wielaard <mjw@redhat.com>
63
64 * c-typeck.c (build_binary_op): Check and warn when nonnull arg
65 parm against NULL.
66
a8a098ac
JJ
672015-09-10 Jakub Jelinek <jakub@redhat.com>
68
69 PR c/67502
70 * c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
71 into OMP_FOR_PRE_BODY rather than before the loop.
72
f4b189d5
JJ
732015-09-09 Jakub Jelinek <jakub@redhat.com>
74
0bb99c11
JJ
75 PR c/67501
76 * c-parser.c (c_parser_oacc_all_clauses,
77 c_parser_omp_all_clauses): Remove invalid clause from
78 list of clauses even if parser->error is set.
79
fce5e5e3
JJ
80 PR c/67500
81 * c-parser.c (c_parser_omp_clause_aligned,
82 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen): Fix up
83 test for errors.
84 * c-decl.c (temp_pop_parm_decls): Allow b->decl equal to
85 error_mark_node.
86
f4b189d5
JJ
87 PR c/67495
88 * c-parser.c (c_parser_omp_atomic): Use c_parser_cast_expression
89 instead of c_parser_unary_expression. If the result is !lvalue_p,
90 wrap the result of c_fully_fold into NON_LVALUE_EXPR.
91
b2aaf235
MP
922015-09-04 Marek Polacek <polacek@redhat.com>
93
94 PR sanitizer/67279
95 * c-typeck.c (build_binary_op): Don't instrument static initializers.
96
1807ffc1
MS
972015-09-03 Martin Sebor <msebor@redhat.com>
98
99 PR c/66516
8b652e65
JJ
100 * c-typeck.c (convert_arguments, parser_build_unary_op,
101 build_conditional_expr, c_cast_expr, convert_for_assignment,
102 build_binary_op, _objc_common_truthvalue_conversion): Call
1807ffc1
MS
103 reject_gcc_builtin.
104 (c_decl_implicit): Define.
105
d04ff417
MP
1062015-09-02 Marek Polacek <polacek@redhat.com>
107
108 PR c/67432
109 * c-parser.c (c_parser_enum_specifier): Give a better error for
110 an empty enum.
111
a79683d5
TS
1122015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
113
114 * c-aux-info.c, c-parser.c, c-tree.h: Remove useless typedefs.
115
191a6b94
MP
1162015-08-12 Marek Polacek <polacek@redhat.com>
117
118 * c-decl.c (grokdeclarator): Call error_at instead of error and pass
119 LOC to it.
120
420a9d9b
MP
1212015-08-03 Marek Polacek <polacek@redhat.com>
122
123 PR c/67088
124 * c-decl.c (check_bitfield_type_and_width): Add location parameter.
125 Use it.
126 (grokdeclarator): Pass LOC down to check_bitfield_type_and_width.
127
992118a1
PP
1282015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
129
130 * c-parser.c (c_parser_if_body): Take token_indent_info
131 argument. Call warn_for_misleading_indentation even when the
132 body is a semicolon. Extract token_indent_infos corresponding
133 to the guard, body and next tokens. Adjust call to
134 warn_for_misleading_indentation accordingly.
135 (c_parser_else_body): Likewise.
136 (c_parser_if_statement): Likewise.
137 (c_parser_while_statement): Likewise.
138 (c_parser_for_statement): Likewise.
139
46308474
LFSM
1402015-07-28 Luis Felipe Strano Moraes <luis.strano@gmail.com>
141 Manuel López-Ibáñez <manu@gcc.gnu.org>
142
143 * c-decl.c (get_parm_info): Remove static var. Update warning
144 message.
145
05b28fd6
MP
1462015-07-27 Marek Polacek <polacek@redhat.com>
147
148 PR c++/66555
149 PR c/54979
150 * c-typeck.c (parser_build_binary_op): Call warn_tautological_cmp.
151
451b5e48
MP
1522015-07-20 Marek Polacek <polacek@redhat.com>
153
154 PR c++/55095
155 * c-typeck.c (digest_init): Pass OPT_Wpedantic to pedwarn_init.
156 (build_binary_op): Warn about left shift overflows.
157
1916bcb5
AM
1582015-07-09 Andrew MacLeod <amacleod@redhat.com>
159
160 * c-array-notation.c: Adjust includes for flags.h changes.
161 * c-objc-common.c: Likewise.
162
c7131fb2
AM
1632015-07-07 Andrew MacLeod <amacleod@redhat.com>
164
165 * c-array-notation.c: Adjust includes.
166 * c-aux-info.c: Likewise.
167 * c-convert.c: Likewise.
168 * c-decl.c: Likewise.
169 * c-errors.c: Likewise.
170 * c-lang.c: Likewise.
171 * c-objc-common.c: Likewise.
172 * c-parser.c: Likewise.
173 * c-typeck.c: Likewise.
174
da2e71c9
MLI
1752015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
176
177 PR fortran/66605
178 * c-decl.c (finish_function): Call do_warn_unused_parameter.
179
b155cfd9
MP
1802015-06-29 Marek Polacek <polacek@redhat.com>
181
182 PR c/66322
183 * c-typeck.c (struct c_switch): Add BOOL_COND_P and OUTSIDE_RANGE_P.
184 (c_start_case): Set BOOL_COND_P and OUTSIDE_RANGE_P. Don't warn
185 about -Wswitch-bool here.
186 (do_case): Update c_add_case_label call.
187 (c_finish_case): Update c_do_switch_warnings call.
188
31521951
MP
1892015-06-27 Marek Polacek <polacek@redhat.com>
190
191 * c-typeck.c: Use VECTOR_TYPE_P throughout.
192
22d03525
MP
1932015-06-26 Marek Polacek <polacek@redhat.com>
194
195 * c-array-notation.c (fix_builtin_array_notation_fn): Use
196 INDIRECT_REF_P.
197 * c-typeck.c (array_to_pointer_conversion): Likewise.
198 (build_unary_op): Likewise.
199 (c_finish_return): Likewise.
200
f0889939
AM
2012015-06-25 Andrew MacLeod <amacleod@redhat.com>
202
203 * c-decl.c: Remove ipa-ref.h and plugin-api.h from include list.
204 * c-parser.c: Likewise.
205
8d67ee55
RS
2062015-06-25 Richard Sandiford <richard.sandiford@arm.com>
207
208 * c-decl.c (detect_field_duplicates_hash): Use nofree_ptr_hash
209 instead of pointer_hash.
210 (detect_field_duplicates): Likewise.
211
0ae9bd27
MP
2122015-06-25 Marek Polacek <polacek@redhat.com>
213
214 * c-array-notation.c: Use VAR_P throughout.
215 * c-decl.c: Likewise.
216 * c-objc-common.c: Likewise.
217 * c-parser.c: Likewise.
218 * c-typeck.c: Likewise.
219
62f9079a
MP
2202015-06-25 Marek Polacek <polacek@redhat.com>
221
222 * c-decl.c: Use is_global_var throughout.
223 * c-parser.c: Likewise.
224 * c-typeck.c: Likewise.
225
abb226c9
AM
2262015-06-17 Andrew MacLeod <amacleod@redhat.com>
227
228 * c-array-notation.c: Do not include input.h, line-map.h or is-a.h.
229 * c-aux-info.c: Likewise.
230 * c-convert.c: Likewise.
231 * c-decl.c: Likewise.
232 * c-errors.c: Likewise.
233 * c-lang.c: Likewise.
234 * c-objc-common.c: Likewise.
235 * c-parser.c: Likewise.
236 * c-typeck.c: Likewise.
237
8cbababc
JH
2382015-06-11 Jan Hubicka <hubicka@ucw.cz>
239
240 PR middle-end/66325
241 * c-decl.c (start_enum): Set TYPE_PACKED consistently among type
242 variants.
243
a0349665
PMR
2442015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
245
246 * c-decl.c (pop_scope): Register the main translation unit
247 through the new debug hook.
248
13fdf2e2
AM
2492015-06-08 Andrew MacLeod <amacleod@redhat.com>
250
251 * c-array-notation.c : Adjust include files.
252 * c-aux-info.c : Likewise.
253 * c-convert.c : Likewise.
254 * c-decl.c : Likewise.
255 * c-errors.c : Likewise.
256 * c-lang.c : Likewise.
257 * c-lang.h : Likewise.
258 * c-objc-common.c : Likewise.
259 * c-parser.c : Likewise.
260 * c-typeck.c : Likewise.
261
d7438551
AH
2622015-06-05 Aldy Hernandez <aldyh@redhat.com>
263
264 * c-decl.c (finish_struct): Save C_TYPE_INCOMPLETE_VARS and
265 immediately clobber it.
266 (c_write_global_declarations_1): Remove call to
267 check_global_declaration_1.
268 (c_write_global_declarations_2): Remove.
269 (c_write_final_cleanups): Rename from c_write_global_declarations.
270 Remove call to finalize_compilation_unit.
271 Remove calls to debugging hooks.
272 * c-objc-common.c: Adjust comment for c_warn_unused_global_decl.
273 * c-objc-common.h: Remove LANG_HOOKS_WRITE_GLOBALS.
274 * c-tree.h: Remove c_write_global_declarations.
275
ecb9f223
AM
2762015-06-04 Andrew MacLeod <amacleod@redhat.com>
277
278 * c-array-notation.c: Adjust includes for restructured coretypes.h.
279 * c-aux-info.c: Likewise.
280 * c-convert.c: Likewise.
281 * c-decl.c: Likewise.
282 * c-errors.c: Likewise.
283 * c-lang.c: Likewise.
284 * c-objc-common.c: Likewise.
285 * c-parser.c: Likewise.
286 * c-typeck.c: Likewise.
287
9482b620
MP
2882015-06-04 Marek Polacek <polacek@redhat.com>
289
290 PR c/66341
291 * c-typeck.c (build_c_cast): Wrap VALUE into NON_LVALUE_EXPR if
292 it is a lvalue.
293
bc51ace3
PK
2942015-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
295
296 * c-decl.c (warn_cxx_compat_finish_struct): New parameters code, record_loc.
297 Warn for empty struct.
298 (finish_struct): Pass TREE_CODE(t) and loc to warn_cxx_compat_finish_struct.
299
ea5b45b6
AT
3002015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
301
302 * c-decl.c (start_function): Call plugin before parsing.
303 (finish_function): Call plugin after parsing.
304
c2d47482
PK
3052015-06-02 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
306
307 PR c/49551
308 * c-decl.c (merge_decls): Merge DECL_COMMON.
309
a95492ab
JW
3102015-05-22 Jim Wilson <jim.wilson@linaro.org>
311
312 * Make-lang.in (check_gcc_pallelize): Define.
313
fd5c817a
MP
3142015-05-22 Marek Polacek <polacek@redhat.com>
315
316 PR c/47043
317 * c-parser.c (c_parser_enum_specifier): Parse and apply enumerator
318 attributes.
319
c7b70a3c
MP
3202015-05-21 Marek Polacek <polacek@redhat.com>
321
322 * c-typeck.c (inform_declaration): Use DECL_IS_BUILTIN instead of
323 DECL_BUILT_IN.
324
21b634ae
MP
3252015-05-20 Marek Polacek <polacek@redhat.com>
326
327 * c-decl.c: Use VAR_OR_FUNCTION_DECL_P throughout.
328 * c-typeck.c: Likewise.
329
296a8c2f
MP
3302015-05-19 Marek Polacek <polacek@redhat.com>
331
332 * c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
333
41b37d5e
JJ
3342015-05-19 Jakub Jelinek <jakub@redhat.com>
335
336 PR middle-end/66199
337 * c-parser.c (c_parser_omp_for_loop): Don't add
338 OMP_CLAUSE_SHARED to OMP_PARALLEL_CLAUSES when moving
339 OMP_CLAUSE_LASTPRIVATE clause to OMP_FOR_CLAUSES.
340 (c_parser_omp_teams): Set OMP_TEAMS_COMBINED for combined
341 constructs.
342
fab27f52
MM
3432015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
344
345 * c-typeck.c (build_array_ref): Use std::swap instead of explicit
296a8c2f 346 swaps.
fab27f52 347
40de31cf
MLI
3482015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
349
350 PR fortran/44054
351 * c-objc-common.c (c_tree_printer): Replace locus pointer with
352 accessor function.
353
3aa3c9fc
MP
3542015-05-14 Marek Polacek <polacek@redhat.com>
355
356 PR c/66066
357 PR c/66127
358 * c-typeck.c (digest_init): Call pedwarn_init with OPT_Wpedantic
359 rather than with 0.
360
c3388e62
DM
3612015-05-12 David Malcolm <dmalcolm@redhat.com>
362
363 * c-parser.c (c_parser_if_body): Add param "if_loc", use it
364 to add a call to warn_for_misleading_indentation.
365 (c_parser_else_body): Likewise, adding param "else_loc".
366 (c_parser_if_statement): Check for misleading indentation.
367 (c_parser_while_statement): Likewise.
368 (c_parser_for_statement): Likewise.
369
755e528f
MP
3702015-05-08 Marek Polacek <polacek@redhat.com>
371
372 PR c/64918
373 * c-typeck.c (add_pending_init): Use OPT_Woverride_init_side_effects.
374 (output_init_element): Likewise.
375
0173bd2a
MP
3762015-05-07 Marek Polacek <polacek@redhat.com>
377
378 PR c/65179
379 * c-typeck.c (build_binary_op): Warn when left shifting a negative
380 value.
381
9babc352
MP
3822015-04-30 Marek Polacek <polacek@redhat.com>
383
384 * c-typeck.c (set_init_label): Call error_at instead of error and
385 pass LOC to it.
386
ac9f18db
MP
387 * c-typeck.c (c_incomplete_type_error): Refactor to use %qT. Print
388 the type of a decl.
389
ec3fba51
MP
390 * c-typeck.c (c_build_va_arg): Clarify the error message.
391
b811915d
TS
3922015-04-29 Thomas Schwinge <thomas@codesourcery.com>
393
394 * c-parser.c (c_parser_oacc_enter_exit_data): Use
395 OMP_STANDALONE_CLAUSES.
396
f3075008
MP
3972015-04-28 Marek Polacek <polacek@redhat.com>
398
399 * c-parser.c (c_parser_binary_expression): Remove duplicate line.
400
4e81b788
MP
4012015-04-28 Marek Polacek <polacek@redhat.com>
402
403 PR c/65901
404 * c-typeck.c (c_build_va_arg): Require TYPE be a complete type.
405
6c1db78e
MP
4062015-04-25 Marek Polacek <polacek@redhat.com>
407
408 PR c/52085
409 * c-decl.c (finish_enum): Copy over TYPE_ALIGN. Also check for "mode"
410 attribute.
411
5c4abbb8
MP
4122015-04-23 Marek Polacek <polacek@redhat.com>
413
414 PR c/65345
415 * c-decl.c (set_labels_context_r): New function.
416 (store_parm_decls): Call it via walk_tree_without_duplicates.
417 * c-typeck.c (convert_lvalue_to_rvalue): Use create_tmp_var_raw
418 instead of create_tmp_var. Build TARGET_EXPR instead of
419 COMPOUND_EXPR.
420 (build_atomic_assign): Use create_tmp_var_raw instead of
421 create_tmp_var. Build TARGET_EXPRs instead of MODIFY_EXPR.
422
06aca1d5
IV
4232015-04-20 Ilya Verbin <ilya.verbin@intel.com>
424
425 * c-parser.c (c_parser_oacc_enter_exit_data): Remove excess semicolon.
426 (c_parser_omp_target_update): Add missed %> to error_at ().
427
8fba1830
BRF
4282015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
429
430 PR target/55143
431 * c-decl.c (c_default_pointer_mode): Remove definition.
432 * c-tree.h (c_default_pointer_mode): Remove declaration.
433
62021f64
TB
4342015-03-27 Tobias Burnus <burnus@net-b.de>
435
436 PR c/65586
437 * c-parser.c (c_parser_skip_to_pragma_eol): Optionally, don't
438 error out.
439 (c_parser_omp_for, c_parser_omp_parallel, c_parser_omp_distribute,
440 c_parser_omp_teams, c_parser_omp_target, c_parser_omp_declare):
441 Update calls to not error for skipped omp pragmas with -fopenmp-simd.
442
9b65e171
JJ
4432015-03-19 Jakub Jelinek <jakub@redhat.com>
444
445 * c-decl.c (c_decl_attributes): Also add "omp declare target"
446 attribute for DECL_EXTERNAL VAR_DECLs.
447
17958621
JJ
4482015-03-11 Jakub Jelinek <jakub@redhat.com>
449
450 * c-parser.c (c_parse_init): Don't call xstrdup on get_identifier
451 argument.
452
7ccb1a11
JJ
4532015-03-10 Jakub Jelinek <jakub@redhat.com>
454
455 PR c/65120
456 * c-typeck.c (parser_build_binary_op): Check for tcc_comparison
457 before preparing arguments to warn_logical_not_parentheses.
458
01177669
JJ
4592015-03-09 Jakub Jelinek <jakub@redhat.com>
460
461 PR c/65120
462 * c-typeck.c (parser_build_binary_op): Don't warn for
463 !!x == y or !b == y where b is _Bool.
464
802ac282
MP
4652015-03-09 Marek Polacek <polacek@redhat.com>
466
467 * c-convert.c (convert): Make use of do_ubsan_in_current_function.
468 * c-decl.c (grokdeclarator): Likewise.
469 * c-typeck.c (build_binary_op): Likewise.
470
e5165b60
MP
4712015-02-27 Marek Polacek <polacek@redhat.com>
472
473 PR c/65228
474 * c-decl.c (start_decl): Return NULL_TREE if decl is an error node.
475
065d214c
MP
4762015-02-14 Marek Polacek <polacek@redhat.com>
477
478 PR c/64768
479 * c-decl.c (grokdeclarator): Set the range of a flexible array member
480 declared through a typedef name.
481
e5d9235b
MP
4822015-02-13 Marek Polacek <polacek@redhat.com>
483
484 PR c/65050
485 * c-decl.c (grokdeclarator): Print also the type when giving
486 the error message about array's incomplete element type.
487
fa01ffcc
JJ
4882015-02-11 Jakub Jelinek <jakub@redhat.com>
489
490 PR c/64824
491 * c-parser.c (c_parser_binary_expression): Fix OpenMP stack[sp].prec
492 check in the POP macro.
493
c3e38a03
MP
4942015-02-09 Marek Polacek <polacek@redhat.com>
495
496 PR c/64856
497 * c-typeck.c (process_init_element): Don't always wrap
498 COMPOUND_LITERAL_EXPR in a SAVE_EXPR in C99 mode when
499 initializing a range of elements.
500
4886ec8e
JJ
5012015-02-04 Jakub Jelinek <jakub@redhat.com>
502
503 PR c/64824
504 PR c/64868
505 * c-parser.c (c_parser_omp_atomic): Handle RDIV_EXPR.
506
c3e38a03 5072015-02-02 Bruno Loff <bruno.loff@gmail.com>
a4bb6959
BL
508
509 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks after
510 processing enum declaration.
511
7b33f0c8
MP
5122015-01-29 Marek Polacek <polacek@redhat.com>
513
514 PR c/64709
515 * c-typeck.c (pop_init_level): If constructor_elements has
516 exactly one element with integer_zerop value, set constructor_zeroinit
517 to 1. Remove braces around warning_init call.
518
dea63e49
JJ
5192015-01-27 Jakub Jelinek <jakub@redhat.com>
520
521 PR c/64766
522 * c-typeck.c (store_init_value): Don't overwrite DECL_INITIAL
523 of FUNCTION_DECLs with error_mark_node.
524
d38f7dce
JJ
5252015-01-26 Jakub Jelinek <jakub@redhat.com>
526
527 PR c/64778
528 * c-typeck.c (convert_arguments): Return -1 if there are
529 error_args, even if we've diagnosed too many arguments.
530
cbf5d0e7
RB
5312015-01-21 Richard Biener <rguenther@suse.de>
532
533 PR middle-end/64313
534 * c-decl.c (merge_decls): Call set_builtin_decl_declared_p
535 for builtins the user declared correctly.
536
41dbbb37
TS
5372015-01-15 Thomas Schwinge <thomas@codesourcery.com>
538 Bernd Schmidt <bernds@codesourcery.com>
539 Cesar Philippidis <cesar@codesourcery.com>
540 James Norris <jnorris@codesourcery.com>
541 Jakub Jelinek <jakub@redhat.com>
542 Ilmir Usmanov <i.usmanov@samsung.com>
543
544 * c-parser.c: Include "gomp-constants.h".
545 (c_parser_omp_clause_map): Use enum gomp_map_kind instead of enum
546 omp_clause_map_kind. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*.
547 Use OMP_CLAUSE_SET_MAP_KIND.
548 (c_parser_pragma): Handle PRAGMA_OACC_ENTER_DATA,
549 PRAGMA_OACC_EXIT_DATA, PRAGMA_OACC_UPDATE.
550 (c_parser_omp_construct): Handle PRAGMA_OACC_CACHE,
551 PRAGMA_OACC_DATA, PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP,
552 PRAGMA_OACC_PARALLEL, PRAGMA_OACC_WAIT.
553 (c_parser_omp_clause_name): Handle "auto", "async", "copy",
554 "copyout", "create", "delete", "deviceptr", "gang", "host",
555 "num_gangs", "num_workers", "present", "present_or_copy", "pcopy",
556 "present_or_copyin", "pcopyin", "present_or_copyout", "pcopyout",
557 "present_or_create", "pcreate", "seq", "self", "vector",
558 "vector_length", "wait", "worker".
559 (OACC_DATA_CLAUSE_MASK, OACC_KERNELS_CLAUSE_MASK)
560 (OACC_ENTER_DATA_CLAUSE_MASK, OACC_EXIT_DATA_CLAUSE_MASK)
561 (OACC_LOOP_CLAUSE_MASK, OACC_PARALLEL_CLAUSE_MASK)
562 (OACC_UPDATE_CLAUSE_MASK, OACC_WAIT_CLAUSE_MASK): New macros.
563 (c_parser_omp_variable_list): Handle OMP_CLAUSE__CACHE_.
564 (c_parser_oacc_wait_list, c_parser_oacc_data_clause)
565 (c_parser_oacc_data_clause_deviceptr)
566 (c_parser_omp_clause_num_gangs, c_parser_omp_clause_num_workers)
567 (c_parser_oacc_clause_async, c_parser_oacc_clause_wait)
568 (c_parser_omp_clause_vector_length, c_parser_oacc_all_clauses)
569 (c_parser_oacc_cache, c_parser_oacc_data, c_parser_oacc_kernels)
570 (c_parser_oacc_enter_exit_data, c_parser_oacc_loop)
571 (c_parser_oacc_parallel, c_parser_oacc_update)
572 (c_parser_oacc_wait): New functions.
573 * c-tree.h (c_finish_oacc_parallel, c_finish_oacc_kernels)
574 (c_finish_oacc_data): New prototypes.
575 * c-typeck.c: Include "gomp-constants.h".
576 (handle_omp_array_sections): Handle GOMP_MAP_FORCE_DEVICEPTR. Use
577 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
578 OMP_CLAUSE_SET_MAP_KIND.
579 (c_finish_oacc_parallel, c_finish_oacc_kernels)
580 (c_finish_oacc_data): New functions.
581 (c_finish_omp_clauses): Handle OMP_CLAUSE__CACHE_,
582 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
583 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
584 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_GANG,
585 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, and OMP_CLAUSE_MAP's
586 GOMP_MAP_FORCE_DEVICEPTR.
587
adfac8df
JJ
5882015-01-09 Michael Collison <michael.collison@linaro.org>
589
590 * c-array-notation.c: Include hash-set.h, machmode.h,
591 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
592 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
593 * c-aux-info.c: Ditto.
594 * c-convert.c: Ditto.
595 * c-decl.c: Ditto.
596 * c-errors.c: Ditto.
597 * c-lang.c: Dittoxs.
598 * c-objc-common.c: Ditto.
599 * c-parser.c: Ditto.
600 * c-typeck.c: Include hash-set.h, machmode.h,
601 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
602 fold-const.h, wide-int.h, inchash.h, real.h and
603 fixed-value.h due to flattening of tree.h.
604
2cc901dc
MP
6052015-01-07 Marek Polacek <polacek@redhat.com>
606
607 PR c/64417
608 * c-typeck.c (process_init_element): Disallow initialization of
609 a flexible array member with a string constant if the structure
610 is in an array.
611
5624e564
JJ
6122015-01-05 Jakub Jelinek <jakub@redhat.com>
613
e5341100
JJ
614 PR sanitizer/64344
615 * c-typeck.c (convert_for_assignment, c_finish_return): For
616 -fsanitize=float-cast-overflow casts from REAL_TYPE to integer/enum
617 types also set in_late_binary_op around convert call.
618 * c-convert.c (convert): For -fsanitize=float-cast-overflow REAL_TYPE
619 to integral type casts, if not in_late_binary_op, pass c_fully_fold
620 result on expr as last argument to ubsan_instrument_float_cast,
621 if in_late_binary_op, don't use c_save_expr but save_expr.
622
5624e564
JJ
623 Update copyright years.
624
5bd012f8
MP
6252015-01-05 Marek Polacek <polacek@redhat.com>
626
627 PR c/64423
628 * c-typeck.c (build_array_ref): Pass loc down to
629 warn_array_subscript_with_type_char.
630
768952be
MU
6312014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
632
633 * c-typeck.c: New behavious for pointers to arrays with qualifiers
634 (common-pointer-type): For pointers to arrays take qualifiers from
635 element type.
636 (build_conditional_expr): Add warnings for lost qualifiers.
637 (comp-target-types): Allow pointers to arrays with different qualifiers.
638 (convert-for-assignment): Adapt warnings for discarded qualifiers. Add
639 WARNING_FOR_QUALIFIERS macro and rename WARN_FOR_QUALIFIERS
640 to PEDWARN_FOR_QUALIFIERS.
641
8f94a8c4
JJ
6422014-12-17 Jakub Jelinek <jakub@redhat.com>
643
644 PR sanitizer/64289
645 * c-convert.c: Include ubsan.h.
646 (convert): For real -> integral casts and
647 -fsanitize=float-cast-overflow don't call convert_to_integer, but
648 instead instrument the float cast directly.
649
b731b390
JJ
6502014-11-29 Jakub Jelinek <jakub@redhat.com>
651
652 * c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
653 c_finish_stmt_expr): Remove NULL last argument from
654 create_tmp_var_raw and create_tmp_var calls.
655 * c-array-notation.c (fix_builtin_array_notation_fn,
656 build_array_notation_expr, fix_conditional_array_notations_1,
657 fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
658
541e35a6
MP
6592014-11-28 Marek Polacek <polacek@redhat.com>
660
661 PR c/63862
662 * c-typeck.c (build_binary_op) <RSHIFT_EXPR, LSHIFT_EXPR>: Don't
663 convert the right operand to integer type.
664
b286be94
MP
6652014-11-25 Marek Polacek <polacek@redhat.com>
666
667 PR c/63877
668 * c-decl.c (start_function): Disable -Wmissing-declarations warning
669 for inline functions.
670
aa7da51a
JJ
6712014-11-21 Jakub Jelinek <jakub@redhat.com>
672
673 PR target/63764
674 * c-typeck.c (build_array_ref): Adjust
675 convert_vector_to_pointer_for_subscript caller. If it returns true,
676 call non_lvalue_loc on the result.
677
d876207f
RB
6782014-11-11 Richard Biener <rguenther@suse.de>
679
680 * c-decl.c (c_init_decl_processing): Do not set pedantic_lvalues
681 to true.
682
e5e44252
AK
6832014-11-10 Andi Kleen <ak@linux.intel.com>
684
685 PR c/60804
686 * c-parser.c (c_parser_statement_after_labels): Call
687 check_no_cilk.
688 (c_parser_if_statement): Dito.
689 (c_parser_switch_statement): Dito.
690 (c_parser_while_statement): Dito.
691 (c_parser_do_statement): Dito.
692 (c_parser_for_statement): Dito.
693 * c-typeck.c (c_finish_loop): Dito.
694
13c21655
PC
6952014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
696
697 * c-typeck.c (build_binary_op): Use OPT_Wshift_count_negative and
698 OPT_Wshift_count_overflow in the warnings.
699
2d51fcef
MP
7002014-10-30 Marek Polacek <polacek@redhat.com>
701
702 * c-objc-common.c (c_tree_printer) <case 'T'>: For a typedef name,
703 print the stripped version as well, if they're not the same.
704
ef4bddc2
RS
7052014-10-29 Richard Sandiford <richard.sandiford@arm.com>
706
707 * c-decl.c, c-tree.h, c-typeck.c: Remove redundant enum from
708 machine_mode.
709
c582198b
AM
7102014-10-28 Andrew MacLeod <amacleod@redhat.com>
711
712 * c-decl.c: Adjust include files.
713 * c-parser.c: Ditto.
714
ddc8de03
PM
7152014-10-27 Phil Muldoon <pmuldoon@redhat.com>
716 Tom Tromey <tromey@redhat.com>
717
718 * c-tree.h (enum c_oracle_request): New.
719 (c_binding_oracle_function): New typedef.
720 (c_binding_oracle, c_pushtag, c_bind): Declare.
721 * c-decl.c (c_binding_oracle): New global.
722 (I_SYMBOL_CHECKED): New macro.
723 (i_symbol_binding): New function.
724 (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine.
725 (I_TAG_CHECKED): New macro.
726 (i_tag_binding): New function.
727 (I_TAG_BINDING, I_TAG_DECL): Redefine.
728 (I_LABEL_CHECKED): New macro.
729 (i_label_binding): New function.
730 (I_LABEL_BINDING, I_LABEL_DECL): Redefine.
731 (c_print_identifier): Save and restore c_binding_oracle.
732 (c_pushtag, c_bind): New functions.
733
60393bbc
AM
7342014-10-27 Andrew MacLeod <amacleod@redhat.com>
735
736 * c-typeck.c: Adjust include files.
737
d723bb7c
MLI
7382014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
739
740 PR c++/53061
741 * c-objc-common.c (c_objc_common_init): Do not do diagnostics
742 initialization here...
743 (c_initialize_diagnostics): ... but here. Set defaults after
744 building pretty-printer.
745
1bc5a451
MP
7462014-10-23 Marek Polacek <polacek@redhat.com>
747
748 PR c/63626
749 * c-decl.c (pop_scope): Don't print warning in external_scope.
750
4435bb92
MP
7512014-10-19 Marek Polacek <polacek@redhat.com>
752
753 PR c/63567
754 * c-typeck.c (output_init_element): Allow initializing objects with
755 static storage duration with compound literals even in C99 and add
756 pedwarn for it.
757
7278465e
MP
7582014-10-17 Marek Polacek <polacek@redhat.com>
759
760 PR c/63567
761 * c-typeck.c (digest_init): Allow initializing objects with static
762 storage duration with compound literals even in C99 and add pedwarn
763 for it.
764
d9b7be2e
MP
7652014-10-17 Marek Polacek <polacek@redhat.com>
766
767 PR c/63543
768 * c-tree.h (C_TYPE_ERROR_REPORTED): Define.
769 * c-typeck.c (build_indirect_ref): Don't print the "dereferencing..."
770 error multiple times. Print the type.
771
f406ae1f
MP
7722014-10-17 Marek Polacek <polacek@redhat.com>
773
774 PR c/63549
775 * c-typeck.c (build_array_ref): Bail if the index in an incomplete
776 type.
777
92574c7c
MP
7782014-10-17 Marek Polacek <polacek@redhat.com>
779
780 * c-decl.c (grokdeclarator): Use OPT_Wimplicit_int unconditionally.
781 (start_function): Use OPT_Wimplicit_int instead of 0.
782 (store_parm_decls_oldstyle): Likewise.
783
1bc4a978
MT
7842014-10-17 Alan Modra <amodra@gmail.com>
785
786 PR middle-end/61848
787 * c-decl.c (merge_decls): Don't merge section name or tls model
788 to newdecl symtab node, instead merge to olddecl. Override
789 existing olddecl section name. Set tls_model for all thread-local
790 vars, not just OMP thread-private ones. Remove incorrect comment.
791
83685514
AM
7922014-10-16 Andrew MacLeod <amacleod@redhat.com>
793
794 * c-decl.c: Adjust include files.
795
78a7c317
DD
7962014-10-14 DJ Delorie <dj@redhat.com>
797
798 * c-parser.c (c_parse_init): Add RID entries for each __intN.
799 (c_token_starts_typename): Check all __intN, not just __int128.
800 (c_token_starts_declspecs): Likewise.
801 (c_parser_declspecs): Likewise.
802 (c_parser_attribute_any_word): Likewise.
803 (c_parser_objc_selector): Likewise.
804 * c-tree.h (c_typespec_keyword): cts_int128 -> cts_int_n.
805 (struct c_declspecs): Add int_n_idx field to record *which* __intN
806 is specified.
807 * c-decl.c (declspecs_add_type): Check for all __intN, not just
808 __int128.
809 (finish_declspecs): Likewise.
810
74d98c1e
AB
8112014-10-13 Anthony Brandon <anthony.brandon@gmail.com>
812
813 * c-parser.c (c_parser_all_labels): New function to replace
814 the duplicate code.
815 (c_parser_statement): Call the new function.
816
84937de2
MP
8172014-10-09 Marek Polacek <polacek@redhat.com>
818
819 PR c/63480
820 * c-typeck.c (pop_init_level): Don't warn about initializing
821 with { }.
822
0382aaa0
MP
8232014-10-07 Marek Polacek <polacek@redhat.com>
824
825 PR c/59717
826 * c-decl.c (header_for_builtin_fn): New function.
827 (implicitly_declare): Suggest which header to include.
828
7a0ca710
MP
8292014-10-07 Marek Polacek <polacek@redhat.com>
830
831 * c-convert.c (convert): Use error_operand_p.
832 * c-typeck.c (require_complete_type): Likewise.
833 (really_atomic_lvalue): Likewise.
834 (digest_init): Likewise.
835 (handle_omp_array_sections_1): Likewise.
836
6bc8a126
MP
8372014-10-03 Marek Polacek <polacek@redhat.com>
838
839 PR c/63453
840 * c-decl.c (pop_scope): Don't warn about "inline function declared
841 but never defined" for functions marked with gnu_inline attribute.
842
d90c0a59
JJ
8432014-09-25 Jakub Jelinek <jakub@redhat.com>
844
845 PR c++/63249
846 * c-parser.c (c_parser_omp_variable_list): Call mark_exp_read
847 on low_bound and length.
848
083e891e
MP
8492014-09-24 Marek Polacek <polacek@redhat.com>
850
851 PR c/61405
852 PR c/53874
853 * c-parser.c: Don't define CPP_KEYWORD.
854 (c_parser_switch_statement): Pass original type to c_finish_case.
855 * c-tree.h (c_finish_case): Update declaration.
856 * c-typeck.c (c_finish_case): Add TYPE parameter. Pass it
857 conditionally to c_do_switch_warnings.
858
8d95fe25
MP
8592014-09-03 Marek Polacek <polacek@redhat.com>
860
861 PR c/62024
862 * c-parser.c (c_parser_static_assert_declaration_no_semi): Strip no-op
863 conversions.
864
9a771876
JJ
8652014-09-02 Jakub Jelinek <jakub@redhat.com>
866 Balaji V. Iyer <balaji.v.iyer@intel.com>
867 Igor Zamyatin <igor.zamyatin@intel.com>
868
869 * c-parser.c (c_parser_cilk_for): New function.
870 (c_parser_cilk_grainsize): Likewise.
871 (c_get_temp_regvar): Likewise.
872 (c_parser_statement_after_labels): Added RID_CILK_FOR case.
873 (c_parser_pragma): Added PRAGMA_CILK_GRAINSIZE case.
874 (c_parser_omp_for_loop): Added CILK_FOR and CILK_SIMD checks.
875 * c-typeck.c (c_finish_omp_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_
876 case.
877
b7679d96
CG
8782014-08-27 Chen Gang <gang.chen.5i5j@gmail.com>
879
880 * c-aux-info.c (gen_type): Resize 'buff' from 10 to 23 bytes,
881 with using HOST_WIDE_INT without truncation to 'int'
882
59ea0364
MP
8832014-08-22 Marek Polacek <polacek@redhat.com>
884
885 PR c++/62199
886 * c-typeck.c (parser_build_binary_op): Adjust call to
887 warn_logical_not_parentheses.
888
671a475e
IZ
8892014-08-22 Igor Zamyatin <igor.zamyatin@intel.com>
890
891 PR other/62008
892 * c-parser.c (c_parser_array_notation): Check for correct
893 type of an array added.
894
04159acf
MP
8952014-08-19 Marek Polacek <polacek@redhat.com>
896
897 PR c++/62153
898 * c-typeck.c (build_binary_op): If either operand of a comparison
899 is a boolean expression, call maybe_warn_bool_compare.
900
c77935ee
PP
9012014-08-19 Patrick Palka <ppalka@gcc.gnu.org>
902
903 PR c/45584
904 * c-typeck.c (build_c_cast): Do a conversion even when the
905 TYPE_MAIN_VARIANTs are the same.
906
35aff4fb
MP
9072014-08-19 Marek Polacek <polacek@redhat.com>
908
909 * c-decl.c (diagnose_mismatched_decls): Unconditionally call
910 pedwarn_c99 instead of pedwarn.
911 (grokfield): Likewise.
912 (warn_defaults_to): New function.
913 (grokdeclarator): Call warn_defaults_to instead of pedwarn_c99.
914 Unconditionally call pedwarn_c99 instead of pedwarn.
915 (start_function): Call warn_defaults_to instead of pedwarn_c99.
916 (declspecs_add_scspec): Call pedwarn_c99 instead of pedwarn, don't
917 check flag_isoc11 before.
918 * c-errors.c (pedwarn_c99): Change the return type to bool.
919 Handle -Wc99-c11-compat.
920 * c-parser.c (disable_extension_diagnostics): Handle
921 warn_c99_c11_compat.
922 (restore_extension_diagnostics): Likewise.
923 (c_parser_static_assert_declaration_no_semi): Call pedwarn_c99
924 instead of pedwarn, don't check flag_isoc11 before.
925 (c_parser_declspecs): Likewise.
926 (c_parser_alignas_specifier): Likewise.
927 (c_parser_alignof_expression): Likewise.
928 (c_parser_generic_selection): Likewise.
929 * c-tree.h (pedwarn_c99): Update declaration.
930 * c-typeck.c (c_finish_return): Call pedwarn or warning_at instead
931 of pedwarn_c99.
932
177cce46
MP
9332014-08-19 Marek Polacek <polacek@redhat.com>
934
935 * c-decl.c (warn_variable_length_array): Pass OPT_Wvla unconditionally
936 to pedwarn_c90.
937 * c-errors.c: Include "opts.h".
938 (pedwarn_c90): Rewrite to handle -Wno-c90-c99-compat better.
939 * c-parser.c (disable_extension_diagnostics): Handle negative value
940 of warn_c90_c99_compat, too.
941 (restore_extension_diagnostics): Likewise.
942 (c_parser_compound_statement_nostart): Pass
943 OPT_Wdeclaration_after_statement unconditionally to pedwarn_c90.
944
6dc99c33
MP
9452014-08-12 Marek Polacek <polacek@redhat.com>
946
947 * c-parser.c (c_parser_postfix_expression) <case RID_FUNCTION_NAME>:
948 Add pedwarn.
949 (c_parser_postfix_expression) <case RID_PRETTY_FUNCTION_NAME>:
950 Likewise.
951 (c_parser_postfix_expression) <case RID_C99_FUNCTION_NAME>: Likewise.
952
f3bede71
MP
9532014-08-10 Marek Polacek <polacek@redhat.com>
954
955 PR c/51849
956 * c-decl.c (build_array_declarator): Remove check for !flag_isoc99.
957 Call pedwarn_c90 instead of pedwarn.
958 (check_bitfield_type_and_width): Likewise.
959 (declspecs_add_qual): Likewise.
960 (declspecs_add_type): Likewise.
961 (warn_variable_length_array): Unify function for -pedantic and -Wvla.
962 Adjust to only call pedwarn_c90.
963 (grokdeclarator): Remove pedantic && !flag_isoc99 check. Call
964 pedwarn_c90 instead of pedwarn.
965 * c-errors.c (pedwarn_c90): Handle -Wc90-c99-compat.
966 * c-parser.c (disable_extension_diagnostics): Handle
967 warn_c90_c99_compat.
968 (restore_extension_diagnostics): Likewise.
969 (c_parser_enum_specifier): Remove check for !flag_isoc99. Call
970 pedwarn_c90 instead of pedwarn.
971 (c_parser_initelt): Likewise.
972 (c_parser_postfix_expression): Likewise.
973 (c_parser_postfix_expression_after_paren_type): Likewise.
974 (c_parser_compound_statement_nostart): Remove check for !flag_isoc99.
975 * c-tree.h: Fix formatting.
976 * c-typeck.c (build_array_ref): Remove check for !flag_isoc99. Call
977 pedwarn_c90 instead of pedwarn.
978
9f25a338
TS
9792014-08-07 Trevor Saunders <tsaunders@mozilla.com>
980
981 * c-typeck.c: Remove include of pointer-set.h.
982
044331a8
MP
9832014-08-07 Marek Polacek <polacek@redhat.com>
984
985 * c-typeck.c (pointer_diff): Remove P - (P + CST) optimization.
986
b787e7a2
TS
9872014-08-02 Trevor Saunders <tsaunders@mozilla.com>
988
989 * c-typeck.c: Use hash_map instead of pointer_map.
990
6e2830c3
TS
9912014-08-02 Trevor Saunders <tsaunders@mozilla.com>
992
993 * c-decl.c: Use hash_set instead of pointer_set.
994
a7ee52fb
IZ
9952014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
996
997 PR middle-end/61455
998 * c-array-notation.c (expand_array_notations): Handling
999 of DECL_EXPR added.
1000
b4dfdc11
MG
10012014-07-31 Marc Glisse <marc.glisse@inria.fr>
1002
1003 PR c++/60517
1004 * c-typeck.c (c_finish_return): Return 0 instead of the address of
1005 a local variable.
1006
976d5a22
TT
10072014-07-30 Tom Tromey <tromey@redhat.com>
1008
1009 * c-typeck.c (struct constructor_stack) <designator_depth>: New
1010 field.
1011 (really_start_incremental_init, push_init_level): Initialize
1012 designator_depth.
1013 (pop_init_level): Set global designator_depth.
1014 (process_init_element): Check for designated_init attribute.
1015
30281de2
MP
10162014-07-20 Marek Polacek <polacek@redhat.com>
1017
1018 PR c/61852
1019 * c-decl.c (implicit_decl_warning): Add location_t parameter. Use it.
1020 (implicitly_declare): Pass location to implicit_decl_warning.
1021
b108f48f
JJ
10222014-07-14 Jakub Jelinek <jakub@redhat.com>
1023
1024 PR middle-end/61294
1025 * c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
1026 If non-NULL, call c_parser_check_literal_zero.
1027 (c_parser_check_literal_zero): New function.
1028 (c_parser_postfix_expression_after_primary): Adjust
1029 c_parser_expr_list caller, handle -Wmemset-transposed-args.
1030
773ec47f
MP
10312014-07-06 Marek Polacek <polacek@redhat.com>
1032
1033 PR c/6940
1034 * c-decl.c (grokdeclarator): Set C_ARRAY_PARAMETER.
1035 * c-tree.h (C_ARRAY_PARAMETER): Define.
1036 * c-typeck.c (c_expr_sizeof_expr): Warn when using sizeof on an array
1037 function parameter.
1038
22e1cf1c
JH
10392014-07-02 Jan Hubicka <hubicka@ucw.cz>
1040 Chen Gang <gang.chen.5i5j@gmail.com>
1041
1042 * c-decl.c (duplicate_decls): CLear DECL_STRUCT_FUNCTION before
1043 releasing symbol.
1044
52ec0ea3
MP
10452014-07-01 Marek Polacek <polacek@redhat.com>
1046
1047 * c-typeck.c (convert_for_assignment): Pass OPT_Wint_conversion
1048 instead of 0 to WARN_FOR_ASSIGNMENT.
1049
d5c3d343
MP
10502014-07-01 Marek Polacek <polacek@redhat.com>
1051
1052 PR c/58286
1053 * c-typeck.c (convert_for_assignment): Pass
1054 OPT_Wincompatible_pointer_types instead of 0 to WARN_FOR_ASSIGNMENT.
1055
6a7253a4
MP
10562014-06-30 Marek Polacek <polacek@redhat.com>
1057
1058 * c-decl.c (grokdeclarator): Don't instrument VLAs if the function
1059 has no_sanitize_undefined attribute.
1060
5e88a8f4
IZ
10612014-06-30 Igor Zamyatin <igor.zamyatin@intel.com>
1062
1063 PR middle-end/57541
1064 * c-array-notation.c (fix_builtin_array_notation_fn):
1065 Check for 0 arguments in builtin call. Check that bultin argument is
1066 correct.
1067 * c-parser.c (c_parser_array_notation): Check for incorrect initial
1068 index.
1069
9698b078
SH
10702014-06-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
1071
1072 * c-parser.c (c_parser_declaration_or_fndef): Discard all type
1073 qualifiers in __auto_type for atomic types.
1074 (c_parser_typeof_specifier): Discard all type qualifiers in
1075 __typeof__ for atomic types.
1076
6e07c515
MP
10772014-06-25 Marek Polacek <polacek@redhat.com>
1078
1079 PR c/61162
1080 * c-parser.c (c_parser_statement_after_labels): Pass the location of
1081 the return expression to c_finish_return.
1082
da6f124d
JJ
10832014-06-25 Jakub Jelinek <jakub@redhat.com>
1084
1085 * c-typeck.c (c_finish_omp_clauses): Make sure
1086 OMP_CLAUSE_LINEAR_STEP has correct type.
1087
c203e8a7
TS
10882014-06-24 Trevor Saunders <tsaunders@mozilla.com>
1089
1090 * c-decl.c: Adjust.
1091
56ad0e38
JJ
10922014-06-24 Jakub Jelinek <jakub@redhat.com>
1093
1094 * c-parser.c (c_parser_omp_for_loop): For
1095 #pragma omp parallel for simd move lastprivate clause from parallel
1096 to for rather than simd.
1097
47c2554f
MP
10982014-06-23 Marek Polacek <polacek@redhat.com>
1099
1100 * c-typeck.c (parser_build_binary_op): Don't call
1101 warn_logical_not_parentheses if the RHS is TRUTH_NOT_EXPR.
1102
56363ffd
JH
11032014-06-15 Jan Hubicka <hubicka@ucw.cz>
1104
1105 * c-parser.c (c_parser_omp_threadprivate): Likewise.
1106 * c-decl.c (merge_decls): Likewise.
1107
d7ff7ae5
MP
11082014-06-09 Marek Polacek <polacek@redhat.com>
1109
1110 PR c/36446
1111 * c-typeck.c (error_init): Call inform instead of error_at.
1112 (pedwarn_init): Call inform instead of pedwarn.
1113 (warning_init): Call inform instead of warning_at.
1114
24d047a3
JH
11152014-06-07 Jan Hubicka <hubicka@ucw.cz>
1116
1117 * c-decl.c (merge_decls): Use set_decl_section_name.
1118 (duplicate_decls): Remove node if it exists.
1119
9bac5cbb
G
11202014-06-05 S. Gilles <sgilles@terpmail.umd.edu>
1121
1122 PR c/53119
1123 * c-typeck.c (push_init_level, process_init_element,
1124 pop_init_level): Correct check for zero initialization, move
1125 missing brace warning to respect zero initialization.
1126
8ffcdea8
MP
11272014-06-05 Marek Polacek <polacek@redhat.com>
1128
1129 PR c/56724
1130 * c-typeck.c (convert_for_assignment): Use expr_loc for ic_argpass.
1131
742938c9
MP
11322014-06-05 Marek Polacek <polacek@redhat.com>
1133
1134 PR c/49706
1135 * c-typeck.c (parser_build_binary_op): Warn when logical not is used
1136 on the left hand side operand of a comparison.
1137
6447c55d
MP
11382014-06-05 Marek Polacek <polacek@redhat.com>
1139
1140 PR c/48062
1141 * c-decl.c (warn_if_shadowing): Call inform instead of warning_at.
1142 Print note only if the warning was printed.
1143
9dc7743c
IZ
11442014-06-04 Igor Zamyatin <igor.zamyatin@intel.com>
1145
1146 PR c/58942
1147 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case
1148 with a pointer.
1149
fedfecef
MP
11502014-06-03 Marek Polacek <polacek@redhat.com>
1151
1152 PR c/60439
1153 * c-parser.c (c_parser_switch_statement): Pass explicit_cast_p to
1154 c_start_case.
1155 * c-tree.h (c_start_case): Update.
1156 * c-typeck.c (c_start_case): Add new boolean parameter. Warn if
1157 switch condition has boolean value.
1158
9b2b7279
AM
11592014-06-02 Andrew MacLeod <amacleod@redhat.com>
1160
1161 * c-decl.c: Include builtins.h.
1162 * c-parser.c: Likewise.
1163
5c1bc275
MP
11642014-05-27 Marek Polacek <polacek@redhat.com>
1165
1166 PR c/56724
1167 * c-typeck.c (convert_arguments): Get location of a parameter. Change
1168 error and warning calls to error_at and warning_at. Pass location of
1169 a parameter to it. Call warning_at with OPT_Wtraditional_conversion.
1170 (convert_for_assignment): Add parameter to WARN_FOR_ASSIGNMENT and
1171 WARN_FOR_QUALIFIERS. Pass expr_loc to those.
1172
97563bc8
IZ
11732014-05-26 Igor Zamyatin <igor.zamyatin@intel.com>
1174
1175 PR c/61191
1176 * c-array-notation.c (fix_builtin_array_notation_fn): Check invalid
1177 function parameters.
1178
aede2c10
JH
11792014-05-23 Jan Hubicka <hubicka@ucw.cz>
1180
1181 * c-decl.c (merge_decls): Preserve symtab node pointers.
1182 (duplicate_decls): Free new decl.
1183
edbba2ce
TS
11842014-05-23 Thomas Schwinge <thomas@codesourcery.com>
1185
f3316c6d
TS
1186 * c-typeck.c (c_finish_omp_clauses): Remove duplicated variable
1187 initialization.
1188
edbba2ce
TS
1189 * c-parser.c (c_parser_omp_target): Return bool values.
1190
68c81f24
TS
11912014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1192
1193 * c-parser.c (c_parser_omp_clause_thread_limit): Rename
1194 num_teams_loc variable to num_thread_limit_loc.
1195
632f2871
RS
11962014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1197
1198 * c-array-notation.c (expand_array_notations): Use void_node
1199 instead of void_zero_node.
1200
766090c2
TS
12012014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1202
1203 * c-decl.c (finish_struct): Adjust.
1204 (finish_enum): Likewise.
1205 (bind): Adjust.
1206 (record_inline_static): Likewise.
1207 (push_scope): Likewise.
1208 (make_label): Likewise.
1209 (lookup_label_for_goto): Likewise.
1210 (finish_struct): Likewise.
1211 (finish_enum): Likewise.
1212 (store_parm_decls): Likewise.
1213 (c_push_function_context): Likewise.
1214 * c-lang.h: Remove usage of variable_size gty attribute.
1215 * c-parser.c (c_parse_init): Adjust.
1216 (c_parse_file): Likewise.
1217
2b107f6b
MP
12182014-05-13 Marek Polacek <polacek@redhat.com>
1219
1220 PR c/61162
1221 * c-typeck.c (convert_for_assignment): Pass location to
1222 WARN_FOR_ASSIGNMENT instead of input_location.
1223
d033409e
MP
12242014-05-10 Marek Polacek <polacek@redhat.com>
1225
1226 * c-parser.c (c_parser_declaration_or_fndef): Pass init_loc to
1227 maybe_warn_string_init.
1228 (c_parser_postfix_expression_after_paren_type): Pass type_loc to
1229 maybe_warn_string_init.
1230 * c-tree.h (maybe_warn_string_init): Update declaration.
1231 * c-typeck.c (maybe_warn_string_init): Add location parameter.
1232 Call pedwarn_init with loc instead of with input_location.
1233 (digest_init): Pass init_loc to maybe_warn_string_init.
1234 (pop_init_level): Call pedwarn_init with loc instead of with
1235 input_location.
1236 (set_init_index): Likewise.
1237 (process_init_element): Likewise.
1238
ea58ef42
MP
12392014-05-09 Marek Polacek <polacek@redhat.com>
1240
1241 PR c/61096
1242 * c-parser.c (c_parser_braced_init): Pass brace_loc to push_init_level.
1243 (c_parser_initelt): Pass location to set_init_label. Pass array index
1244 location to set_init_index.
1245 * c-tree.h (push_init_level): Update declaration.
1246 (pop_init_level): Likewise.
1247 (set_init_index): Likewise.
1248 (set_init_label): Likewise.
1249 * c-typeck.c (error_init): Add location parameter. Call error_at
1250 instead of error.
1251 (digest_init): Pass init_loc to error_init.
1252 (really_start_incremental_init):
1253 (push_init_level): Add location parameter. Pass loc to pop_init_level
1254 and error_init.
1255 (pop_init_level): Likewise.
1256 (set_designator): Add location parameter. Pass loc to pop_init_level,
1257 push_init_level, and error_init.
1258 (set_init_index): Add location parameter. Pass loc to error_init and
1259 set_designator.
1260 (set_init_label): Likewise.
1261 (output_init_element): Pass loc to error_init.
1262 (process_init_element): Pass loc to error_init, pop_init_level,
1263 pedwarn_init, and push_init_level.
1264
661a0813
MP
12652014-05-09 Marek Polacek <polacek@redhat.com>
1266
1267 PR c/50459
1268 * c-parser.c (c_parser_attributes): Parse the arguments as an
1269 expression-list if the attribute takes identifier.
1270
2793eeab
MP
12712014-05-08 Marek Polacek <polacek@redhat.com>
1272
1273 PR c/61053
1274 * c-decl.c (grokdeclarator): Use min_align_of_type instead of
1275 TYPE_ALIGN_UNIT.
1276
f827930a
MP
12772014-05-08 Marek Polacek <polacek@redhat.com>
1278
1279 PR c/61077
1280 * c-decl.c (start_function): Warn for _Atomic-qualified return type
1281 of main.
1282
1d60af08
KZ
12832014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1284 Mike Stump <mikestump@comcast.net>
1285 Richard Sandiford <rdsandiford@googlemail.com>
1286
1287 * c-decl.c (check_bitfield_type_and_width): Use TYPE_SIGN.
1288 (finish_enum): Use wide-int interfaces.
1289 * c-parser.c (c_parser_cilk_clause_vectorlength): Likewise.
1290 * c-typeck.c (build_c_cast): Likewise.
1291 (set_nonincremental_init_from_string): Likewise.
1292 (c_tree_equal): Likewise.
1293
a0e24419
MP
12942014-05-02 Marek Polacek <polacek@redhat.com>
1295
1296 PR c/25801
1297 * c-typeck.c (c_size_in_bytes): Update comment. Don't call error.
1298 Return size_one_node when the type is not complete.
1299 (pointer_diff): Remove comment.
1300 (build_unary_op): Improve error messages.
1301
19fc9faa
MP
13022014-05-02 Marek Polacek <polacek@redhat.com>
1303
1304 * c-typeck.c (c_finish_return): Separate warning_at calls.
1305
63bc4e87
MP
13062014-05-02 Marek Polacek <polacek@redhat.com>
1307
1308 * c-tree.h (error_init): Remove declaration.
1309 (pedwarn_init): Likewise.
1310 * c-typeck.c (error_init): Make static and move above.
1311 (pedwarn_init): Likewise.
1312 (warning_init): Move above.
1313 (maybe_warn_string_init): Likewise.
1314
4bd2511b
JL
13152014-05-01 Jeff Law <law@redhat.com>
1316
1317 Revert:
1318
1319 2014-04-24 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1320 * c-parser.c (c_parser_sizeof_expression): Reorganize slightly to
1321 avoid goto.
1322
6a358dcb
MP
13232014-05-02 Marek Polacek <polacek@redhat.com>
1324
1325 PR c/60784
1326 * c-typeck.c (push_init_level): Set constructor_designated to
1327 p->designated for structures.
1328
ae5ebda4
MP
13292014-05-01 Marek Polacek <polacek@redhat.com>
1330
1331 PR c/60915
1332 * c-parser.c (c_parser_declaration_or_fndef): Give better error if
1333 function-definition has an attribute after the declarator.
1334
96b40f8d
MP
13352014-05-01 Marek Polacek <polacek@redhat.com>
1336
1337 PR c/60257
1338 * c-typeck.c (warning_init): Add location_t parameter. Call
1339 warning_at instead of warning.
1340 (push_init_level): Pass input_location to warning_init.
1341 (add_pending_init): Add location_t parameter. Pass loc to
1342 warning_init.
1343 (set_nonincremental_init): Pass input_location to add_pending_init.
1344 (set_nonincremental_init_from_string): Likewise.
1345 (output_init_element): Pass loc to warning_init and to
1346 add_pending_init.
1347
32e00768
MP
13482014-05-01 Marek Polacek <polacek@redhat.com>
1349
1350 PR c/43395
1351 * c-typeck.c (c_finish_return): Distinguish between label and variable
1352 when warning about returning local address.
1353
c9379ce2
MP
13542014-05-01 Marek Polacek <polacek@redhat.com>
1355
1356 PR c/29467
1357 * c-decl.c (declspecs_add_type): Pedwarn if boolean types are used
1358 in C89 mode.
1359
d00887e8
MP
13602014-05-01 Marek Polacek <polacek@redhat.com>
1361
1362 PR c/43245
1363 * c-typeck.c (convert_for_assignment): Pass OPT_Wdiscarded_qualifiers
1364 instead of 0 to WARN_FOR_QUALIFIERS.
1365
5436fa2e
MP
13662014-05-01 Marek Polacek <polacek@redhat.com>
1367
1368 PR c/56989
1369 * c-typeck.c (default_conversion): Use better location for
1370 error call.
1371
f8ed5150
MP
13722014-04-30 Marek Polacek <polacek@redhat.com>
1373
1374 * c-typeck.c (build_binary_op): Call ubsan_instrument_division
1375 also when SANITIZE_FLOAT_DIVIDE is on.
1376
8337d1db
MP
13772014-04-30 Marek Polacek <polacek@redhat.com>
1378
1379 PR c/60139
1380 * c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
1381 and pedwarn_init. Use loc insted of input_location.
1382
c4bdc42f
MP
13832014-04-30 Marek Polacek <polacek@redhat.com>
1384
1385 PR c/60351
1386 * c-typeck.c (build_binary_op): Use location when warning about
1387 shift count.
1388
45484dcf
MP
13892014-04-25 Marek Polacek <polacek@redhat.com>
1390
1391 PR c/18079
1392 * c-decl.c (diagnose_mismatched_decls): Warn for mismatched
1393 always_inline/noinline and hot/cold attributes.
1394
34cf811f
MP
13952014-04-25 Marek Polacek <polacek@redhat.com>
1396
1397 PR c/60114
1398 * c-parser.c (c_parser_initelt): Pass input_location to
1399 process_init_element.
1400 (c_parser_initval): Pass loc to process_init_element.
1401 * c-tree.h (process_init_element): Adjust declaration.
1402 * c-typeck.c (push_init_level): Pass input_location to
1403 process_init_element.
1404 (pop_init_level): Likewise.
1405 (set_designator): Likewise.
1406 (output_init_element): Add location_t parameter. Pass loc to
1407 digest_init.
1408 (output_pending_init_elements): Pass input_location to
1409 output_init_element.
1410 (process_init_element): Add location_t parameter. Pass loc to
1411 output_init_element.
1412
42056eac
JJ
14132014-04-24 Jakub Jelinek <jakub@redhat.com>
1414
1415 * c-parser.c (c_parser_omp_atomic): Allow seq_cst before
1416 atomic-clause, allow comma in between atomic-clause and
1417 seq_cst.
1418
e162a134
JJ
14192014-04-22 Jakub Jelinek <jakub@redhat.com>
1420
1421 PR c/59073
1422 * c-parser.c (c_parser_omp_parallel): If c_parser_omp_for
1423 fails, don't set OM_PARALLEL_COMBINED and return NULL.
1424
2f6babac
IZ
14252014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1426
1427 PR middle-end/60469
1428 * c-array-notation.c (fix_builtin_array_notation_fn): Use
1429 create_tmp_var instead build_decl for creating temps.
1430 (build_array_notation_expr): Likewise.
1431 (fix_conditional_array_notations_1): Likewise.
1432 (fix_array_notation_expr): Likewise.
1433 (fix_array_notation_call_expr): Likewise.
1434
8edbfaa6
JJ
14352014-03-28 Jakub Jelinek <jakub@redhat.com>
1436
1437 PR c++/60689
1438 * c-tree.h (c_build_function_call_vec): New prototype.
1439 * c-typeck.c (build_function_call_vec): Don't call
1440 resolve_overloaded_builtin here.
1441 (c_build_function_call_vec): New wrapper function around
1442 build_function_call_vec. Call resolve_overloaded_builtin here.
1443 (convert_lvalue_to_rvalue, build_function_call, build_atomic_assign):
1444 Call c_build_function_call_vec instead of build_function_call_vec.
1445 * c-parser.c (c_parser_postfix_expression_after_primary): Likewise.
1446 * c-decl.c (finish_decl): Likewise.
1447
7485aeea
MLI
14482014-03-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1449
1450 PR c/55383
1451 * c-typeck.c: Use correct format string in cast-qual warning
1452
b17a8b07
TS
14532014-03-07 Thomas Schwinge <thomas@codesourcery.com>
1454
1455 * c-decl.c (c_decl_attributes): Use
1456 lang_hooks.types.omp_mappable_type.
1457 * c-typeck.c (c_finish_omp_clauses): Likewise.
1458
3af9c5e9
MP
14592014-03-06 Marek Polacek <polacek@redhat.com>
1460
1461 PR c/60197
1462 * c-typeck.c (c_finish_return): Call contains_cilk_spawn_stmt instead
1463 of checking tree code.
1464
1c9f5f33
PK
14652014-02-19 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1466
1467 * c-parser.c (c_parser_declspecs): Replace call to error by error_at.
1468 (c_parser_parameter_declaration): Likewise.
1469
cc28fc7f
MP
14702014-02-19 Marek Polacek <polacek@redhat.com>
1471
1472 PR c/60195
1473 * c-typeck.c (convert_lvalue_to_rvalue): Set TREE_NO_WARNING on tmp.
1474 Call mark_exp_read on exp.value.
1475 (build_atomic_assign): Set TREE_NO_WARNING on val and old. Set
1476 TREE_ADDRESSABLE on old instead of val.
1477 (emit_side_effect_warnings): Warn only if RHS has !TREE_NO_WARNING.
1478
b581c05c
PK
14792014-02-07 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
1480
1481 * c-parser.c (c_parser_get_builtin_args): Replace calls to
1482 C_EXPR_APPEND by vec_safe_push.
1483 * c-tree.h (C_EXPR_APPEND): Remove.
1484
81e5eca8
MP
14852014-01-31 Marek Polacek <polacek@redhat.com>
1486
1487 PR c/59963
1488 * c-typeck.c (convert_lvalue_to_rvalue): Pass vNULL to
1489 build_function_call_vec.
1490 (build_function_call): Likewise.
1491 (build_atomic_assign): Likewise.
1492 (build_function_call_vec): Add arg_loc parameter. Use it.
1493 (convert_arguments): Likewise.
1494 (convert_for_assignment): Rename rhs_loc to expr_loc.
1495 * c-parser.c (c_parser_attributes): Pass NULL to c_parser_expr_list.
1496 (c_parser_objc_keywordexpr): Likewise.
1497 (c_parser_postfix_expression_after_primary): Call
1498 build_function_call_vec with expr_loc rather than op_loc.
1499 Call c_parser_expr_list to fill arg_loc. Pass arg_loc to
1500 build_function_call_vec.
1501 (c_parser_expr_list): Add locations parameter. Fill it with locations
1502 of function arguments.
1503 * c-decl.c (finish_decl): Pass vNULL to build_function_call_vec.
1504
68fca595
MP
15052014-01-30 Marek Polacek <polacek@redhat.com>
1506
1507 PR c/59940
1508 * c-typeck.c (build_function_call_vec): Use loc parameter.
1509 (convert_arguments): Add location parameter. Use it.
1510 (ep_convert_and_check): Likewise.
1511 (build_atomic_assign): Adjust convert_for_assignment call.
1512 (build_modify_expr): Likewise.
1513 (digest_init): Likewise.
1514 (c_finish_return): Likewise.
1515 (build_conditional_expr): Adjust ep_convert_and_check calls.
1516 (convert_for_assignment): Add rhs_loc parameter. Use it.
1517 (build_binary_op): Adjust convert_and_check and ep_convert_and_check
1518 calls.
1519
fa337f3a
RB
15202014-01-30 Richard Biener <rguenther@suse.de>
1521
1522 PR c/59905
1523 * c-typeck.c (build_function_call_vec): Do not replace calls
1524 to a function via an incompatible type with a runtime abort.
1525
b72271b9
BI
15262014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1527
1528 * c-parser.c (c_parser_declaration_or_fndef): Replaced
1529 flag_enable_cilkplus with flag_cilkplus.
1530 (c_parser_direct_declarator_inner): Likewise.
1531 (c_parser_attribute_any_word): Likewise.
1532 (c_parser_attributes): Likewise.
1533 (c_parser_compound_statement): Likewise.
1534 (c_parser_statement_after_labels): Likewise.
1535 (c_parser_if_statement): Likewise.
1536 (c_parser_switch_statement): Likewise.
1537 (c_parser_do_statement): Likewise.
1538 (c_parser_for_statement): Likewise.
1539 (c_parser_unary_expression): Likewise.
1540 (c_parser_postfix_expression): Likewise.
1541 (c_parser_postfix_expression_after_primary): Likewise.
1542 (c_parser_postfix_expression_after_primary): Likewise.
1543 (c_parser_omp_clause_name): Likewise.
1544 (c_finish_omp_declare_simd): Likewise.
1545 (c_parser_cilk_verify_simd): Likewise.
1546 * c-typeck.c (build_array_ref): Likewise.
1547 (build_function_call_vec): Likewise.
1548 (convert_arguments): Likewise.
1549 (build_compound_expr): Likewise.
1550 (c_finish_return): Likewise.
1551 (c_finish_if_stmt): Likewise.
1552 (c_finish_loop): Likewise.
1553 (build_binary_op): Likewise.
1554
393e8e8b
MP
15552014-01-23 Marek Polacek <polacek@redhat.com>
1556
1557 PR c/59846
1558 * c-typeck.c (parser_build_binary_op): Use location instead of
1559 input_location.
1560 (build_binary_op): Pass location to shorten_compare.
1561
f04dda30
MP
15622014-01-23 Marek Polacek <polacek@redhat.com>
1563
1564 PR c/58346
1565 * c-typeck.c (pointer_diff): Give an error on arithmetic on pointer to
1566 an empty aggregate.
1567
789eadcd
MP
15682014-01-23 Marek Polacek <polacek@redhat.com>
1569
1570 PR c/59871
1571 * c-typeck.c (build_compound_expr): Warn even for right-hand operand
1572 of a comma expression.
1573 (emit_side_effect_warnings): Likewise.
1574
40f14e9f
BI
15752014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
1576
1577 PR c/59825
1578 * c-array-notation.c (expand_array_notation_exprs): Rewrote this
1579 function to use walk_tree and moved a lot of its functionality to
1580 expand_array_notations.
1581 (expand_array_notations): New function.
1582
74558dd9
BI
15832014-01-23 Balaji V. Iyer <balaji.v.iyer@intel.com>
1584
1585 * c-parser.c (c_finish_omp_declare_simd): Made "cilk simd function"
1586 attribute an attribute without value.
1587
652fea39
JJ
15882014-01-23 Jakub Jelinek <jakub@redhat.com>
1589
1590 PR middle-end/58809
1591 * c-typeck.c (c_finish_omp_clause): Reject MIN_EXPR, MAX_EXPR,
1592 BIT_AND_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR on COMPLEX_TYPEs.
1593
f34f1c87
MP
15942014-01-22 Marek Polacek <polacek@redhat.com>
1595
1596 PR c/59891
1597 * c-typeck.c (build_conditional_expr): Call c_fully_fold instead
1598 of remove_c_maybe_const_expr on op1 and op2.
1599
241f845a
JJ
16002014-01-15 Jakub Jelinek <jakub@redhat.com>
1601
1602 PR c/58943
1603 * c-typeck.c (build_modify_expr): For lhs op= rhs, if rhs has side
1604 effects, preevaluate rhs using SAVE_EXPR first.
1605
9a74f20c
BI
16062014-01-09 Balaji V. Iyer <balaji.v.iyer@intel.com>
1607
1608 PR c++/59631
1609 * c-parser.c (c_parser_postfix_expression): Replaced consecutive if
1610 statements with if-elseif statements.
1611
96066ce1
MP
16122014-01-06 Marek Polacek <polacek@redhat.com>
1613
1614 PR c/57773
1615 * c-decl.c (check_bitfield_type_and_width): Warn for implementation
1616 defined bit-field types only in ISO C.
1617
23a5b65a
RS
16182014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1619
1620 Update copyright years
1621
f9030485
RS
16222014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1623
1624 * c-array-notation.c: Use the standard form for the copyright notice.
1625
41958c28
BI
16262013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1627
1628 * c-parser.c (struct c_parser::cilk_simd_fn_tokens): Added new field.
1629 (c_parser_declaration_or_fndef): Added a check if cilk_simd_fn_tokens
1630 field in parser is not empty. If not-empty, call the function
1631 c_parser_finish_omp_declare_simd.
1632 (c_parser_cilk_clause_vectorlength): Modified function to be shared
1633 between SIMD-enabled functions and #pragma simd. Added new parameter.
1634 (c_parser_cilk_all_clauses): Modified the usage of the function
1635 c_parser_cilk_clause_vectorlength as mentioned above.
1636 (c_parser_cilk_simd_fn_vector_attrs): New function.
1637 (c_finish_cilk_simd_fn_tokens): Likewise.
1638 (is_cilkplus_vector_p): Likewise.
1639 (c_parser_omp_clause_name): Added checking for "vectorlength,"
1640 "nomask," and "mask" strings in clause name.
1641 (c_parser_omp_all_clauses): Added 3 new case statements:
1642 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_MASK and
1643 PRAGMA_CILK_CLAUSE_NOMASK.
1644 (c_parser_attributes): Added a cilk_simd_fn_tokens parameter. Added a
1645 check for vector attribute and if so call the function
1646 c_parser_cilk_simd_fn_vector_attrs. Also, when Cilk plus is enabled,
1647 called the function c_finish_cilk_simd_fn_tokens.
1648 (c_finish_omp_declare_simd): Added a check if cilk_simd_fn_tokens in
1649 parser field is non-empty. If so, parse them as you would parse
1650 the omp declare simd pragma.
1651 (c_parser_omp_clause_linear): Added a new bool parm. is_cilk_simd_fn.
1652 Added a check when step is a parameter and flag it as error.
1653 (CILK_SIMD_FN_CLAUSE_MASK): New #define.
1654 (c_parser_cilk_clause_name): Changed pragma_cilk_clause to
1655 pragma_omp_clause.
1656
cef0fd0e
TS
16572013-12-17 Thomas Schwinge <thomas@codesourcery.com>
1658
1659 * c-parser.c (c_parser_omp_parallel): Fix description.
1660
12893402
BI
16612013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1662
1663 * c-objc-common.h (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Remove.
1664 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1665 (LANG_HOOKS_CILKPLUS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
1666 * c-typeck.c (cilk_install_body_with_frame_cleanup): New function.
1667
296674db
JM
16682013-12-04 Joseph Myers <joseph@codesourcery.com>
1669
1670 PR c/52023
1671 * c-parser.c (c_parser_alignas_specifier): Use
1672 c_sizeof_or_alignof_type instead of c_alignof.
1673 (c_parser_alignof_expression): Likewise, with min_alignof
1674 parameter depending on alignof spelling used.
1675
edd28054
MP
16762013-12-04 Marek Polacek <polacek@redhat.com>
1677
1678 PR c/54113
1679 * c-decl.c (start_function): Don't warn for missing prototype for
1680 inline functions.
1681
da0fc454
MP
16822013-12-03 Marek Polacek <polacek@redhat.com>
1683
1684 PR c/59351
1685 * c-decl.c (build_compound_literal): Allow compound literals with
1686 empty initial value.
1687
4c2ecab0
JM
16882013-12-02 Joseph Myers <joseph@codesourcery.com>
1689
1690 PR c/58235
1691 * c-typeck.c (build_modify_expr): Diagnose assignment to
1692 expression with array type.
1693
340baef7
JM
16942013-11-29 Joseph Myers <joseph@codesourcery.com>
1695
1696 PR c/42262
1697 * c-typeck.c (process_init_element): Do not treat a string as
1698 initializing a whole array when used with a designator for an
1699 individual element.
1700
6763b9f7
JM
17012013-11-29 Joseph Myers <joseph@codesourcery.com>
1702
1703 PR c/57574
1704 * c-decl.c (merge_decls): Clear DECL_EXTERNAL for a definition of
1705 an inline function following a static declaration.
1706
e7bd1de1
JJ
17072013-11-28 Jakub Jelinek <jakub@redhat.com>
1708
1709 PR c/59310
1710 * c-parser.c (c_parser_omp_target): Copy "#pragma omp target"
1711 to p_name before calling c_parser_omp_teams instead of after.
1712 (c_parser_cilk_simd): Remove wrong ATTRIBUTE_UNUSED from parser
1713 argument. Remove unused p_name variable.
1714
0136f8f0
AH
17152013-11-27 Aldy Hernandez <aldyh@redhat.com>
1716 Jakub Jelinek <jakub@redhat.com>
1717
1718 * c-decl.c (c_builtin_function_ext_scope): Avoid binding if
1719 external_scope is NULL.
1720
241b71bb
TV
17212013-11-27 Tom de Vries <tom@codesourcery.com>
1722 Marc Glisse <marc.glisse@inria.fr>
1723
1724 PR c++/59032
1725 * c-typeck.c (build_unary_op): Allow vector increment and decrement.
1726
2fb9a547
AM
17272013-11-22 Andrew MacLeod <amacleod@redhat.com>
1728
1729 * c-typeck.c: Add required include files from gimple.h.
1730
8400e75e
DM
17312013-11-22 David Malcolm <dmalcolm@redhat.com>
1732
1733 * c-decl.c (define_label, shadow_tag_warned)
1734 (check_bitfield_type_and_width, grokdeclarator, grokparms,
1735 store_parm_decls_newstyle, store_parm_decls_oldstyle)
1736 (declspecs_add_type): Remove use of in_system_header macro.
1737 * c-parser.c (c_parser_unary_expression): Likewise.
1738 * c-typeck.c (store_init_value, process_init_element)
1739 (c_start_case): Likewise.
1740
1741 * c-decl.c (build_enumerator): Remove use of EXPR_LOC_OR_HERE
1742 macro.
1743
1744 * c-parser.c (c_parser_set_source_position_from_token): Remove
1745 reference to in_system_header from comment.
1746
386b1f1f
RS
17472013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1748
1749 * c-decl.c (grokdeclarator): Update comment to refer to
1750 tree_to_[su]hwi rather than tree_low_cst.
1751
ae7e9ddd
RS
17522013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1753
1754 * c-decl.c, c-typeck.c: Replace tree_low_cst (..., 1) with
1755 tree_to_uhwi throughout.
1756
9439e9a1
RS
17572013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1758
1759 * c-parser.c: Replace tree_low_cst (..., 0) with tree_to_shwi
1760 throughout.
1761
9541ffee
RS
17622013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1763
1764 * c-parser.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
1765 throughout.
1766
c02065fc
AH
17672013-11-15 Aldy Hernandez <aldyh@redhat.com>
1768
1769 * c-parser.c (c_parser_cilk_simd): New.
1770 (c_parser_cilk_verify_simd): New.
1771 (c_parser_pragma): Add case for PRAGMA_CILK_SIMD.
1772 (c_parser_omp_for_loop): Add case for NE_EXPR.
1773 Set c_break_label for CILK_SIMD.
1774 (c_parser_cilk_clause_vectorlength): New.
1775 (c_parser_cilk_clause_linear): New.
1776 (c_parser_cilk_clause_name): New.
1777 (c_parser_cilk_all_clauses): New.
1778 * c-typeck.c (build_unary_op): Pass location argument to
1779 readonly_error.
1780 (build_modify_expr): Same.
1781 (build_asm_expr): Same.
1782 (c_finish_bc_stmt): Error on break/continue in loops.
1783
18f429e2
AM
17842013-11-14 Andrew MacLeod <amacleod@redhat.com>
1785
1786 * c-typeck.c: Include only gimplify.h and gimple.h as needed.
1787
d8a2d370
DN
17882013-11-14 Diego Novillo <dnovillo@google.com>
1789
1790 * c-decl.c: Include print-tree.h.
1791 Include stor-layout.h.
1792 Include varasm.h.
1793 Include attribs.h.
1794 Include stringpool.h.
1795 * c-lang.c: Include fold-const.h.
1796 * c-parser.c: Include stringpool.h.
1797 Include attribs.h.
1798 Include stor-layout.h.
1799 Include varasm.h.
1800 Include trans-mem.h.
1801 * c-typeck.c: Include stor-layout.h.
1802 Include trans-mem.h.
1803 Include varasm.h.
1804 Include stmt.h.
1805
38b7bc7f
JM
18062013-11-13 Joseph Myers <joseph@codesourcery.com>
1807
1808 * c-tree.h (c_typespec_keyword): Add cts_auto_type.
1809 * c-decl.c (declspecs_add_type, finish_declspecs): Handle
1810 __auto_type.
1811 * c-parser.c (c_token_starts_typename, c_token_starts_declspecs)
1812 (c_parser_attribute_any_word, c_parser_objc_selector): Handle
1813 RID_AUTO_TYPE.
1814 (c_parser_declspecs): Take argument AUTO_TYPE_OK.
1815 (c_parser_declaration_or_fndef, c_parser_struct_declaration)
1816 (c_parser_declarator, c_parser_direct_declarator_inner)
1817 (c_parser_parameter_declaration, c_parser_type_name): All callers
1818 changed.
1819 (c_parser_declaration_or_fndef): Handle declarations with type
1820 determined from the initializer.
1821
45b0be94
AM
18222013-11-12 Andrew MacLeod <amacleod@redhat.com>
1823
18f429e2 1824 * c-typeck.c: Include gimplify.h.
45b0be94 1825
582d9b50
JM
18262013-11-12 Joseph Myers <joseph@codesourcery.com>
1827
1828 * c-tree.h (struct c_declspecs): Add thread_gnu_p field.
1829 * c-parser.c (c_parser_declspecs): Mention _Thread_local in
1830 comment.
1831 * c-decl.c (shadow_tag_warned, grokdeclarator): Mention __thread
1832 or _Thread_local as appropriate in diagnostics.
1833 (build_null_declspecs): Initialize ret->thread_gnu_p.
1834 (declspecs_add_scspec): Handle either __thread or _Thread_local
1835 for RID_THREAD. Diagnose _Thread_local for pre-C11 standards if
1836 pedantic. Do not disallow _Thread_local extern and _Thread_local
1837 static.
1838
267bac10
JM
18392013-11-07 Joseph Myers <joseph@codesourcery.com>
1840 Andrew MacLeod <amacleod@redhat.com>
1841
1842 * c-aux-info.c (gen_type): Handle atomic qualifier.
1843 * c-decl.c (validate_proto_after_old_defn): Do not remove atomic
1844 qualifiers when compating types.
1845 (shadow_tag_warned): Handle atomic_p in declspecs.
1846 (quals_from_declspecs): Likewise.
1847 (start_decl): Use c_type_promotes_to when promoting argument
1848 types.
1849 (grokdeclarator): Handle _Atomic.
1850 (get_parm_info): Diagnose any qualifier on "void" as only
1851 parameter.
1852 (store_parm_decls_oldstyle): Do not remove atomic qualifiers when
1853 comparing types. Use c_type_promotes_to when promoting argument
1854 types.
1855 (finish_function): Use c_type_promotes_to when promoting argument
1856 types.
1857 (build_null_declspecs): Handle atomic_p in declspecs.
1858 (declspecs_add_qual): Handle RID_ATOMIC.
1859 * c-parser.c (c_token_starts_typename, c_token_is_qualifier)
1860 (c_token_starts_declspecs): Handle RID_ATOMIC.
1861 (c_parser_declspecs): Handle atomic type specifiers and
1862 qualifiers.
1863 (c_parser_typeof_specifier): Remove const and _Atomic qualifiers
1864 from types of expressions with atomic type.
1865 (c_parser_direct_declarator_inner): Use convert_lvalue_to_rvalue.
1866 (c_parser_attribute_any_word): Handle RID_ATOMIC.
1867 (c_parser_initializer, c_parser_initelt, c_parser_initval)
1868 (c_parser_statement_after_labels, c_parser_switch_statement)
1869 (c_parser_for_statement, c_parser_expr_no_commas)
1870 (c_parser_conditional_expression, c_parser_binary_expression)
1871 (c_parser_cast_expression, c_parser_unary_expression)
1872 (c_parser_postfix_expression)
1873 (c_parser_postfix_expression_after_primary, c_parser_expression):
1874 Use convert_lvalue_to_rvalue.
1875 (c_parser_expression_conv, c_parser_expr_list): Document
1876 conversion of lvalues to rvalues. Use convert_lvalue_to_rvalue.
1877 (c_parser_objc_synchronized_statement): Use
1878 convert_lvalue_to_rvalue.
1879 (c_parser_objc_selector): Handle RID_ATOMIC.
1880 (c_parser_objc_receiver, c_parser_array_notation): Use
1881 convert_lvalue_to_rvalue.
1882 * c-tree.h (ctsk_typeof): Adjust comment to mention use for
1883 _Atomic (type-name).
1884 (struct c_declspecs): Add atomic_p field.
1885 (convert_lvalue_to_rvalue): Declare.
1886 * c-typeck.c (c_type_promotes_to): Promote atomic types to
1887 corresponding atomic types.
1888 (qualify_type): Don't add _Atomic qualifiers from second argument.
1889 (comp_target_types): Do not allow _Atomic mismatches.
1890 (type_lists_compatible_p): Do not remove atomic qualifiers when
1891 comparing types.
1892 (really_atomic_lvalue, convert_lvalue_to_rvalue)
1893 (build_atomic_assign): New functions.
1894 (build_unary_op): Use build_atomic_assign for atomic increment and
1895 decrement.
1896 (build_conditional_expr): Do not treat _Atomic void as a qualified
1897 version of void.
1898 (build_modify_expr): Use build_atomic_assign for atomic LHS.
1899 (find_anonymous_field_with_type, convert_to_anonymous_field)
1900 (convert_for_assignment): Do not remove atomic qualifiers when
1901 comparing types.
1902 (digest_init): Do not accept initialization of arrays of atomic
1903 elements by string constants.
1904 (build_asm_expr): Use convert_lvalue_to_rvalue.
1905 (build_binary_op): Do not treat _Atomic void as a qualified
1906 version of void.
1907
0c249d4b
DD
19082013-11-06 DJ Delorie <dj@redhat.com>
1909
1910 * c-decl.c (locate_old_decl): If a previous conflicting decl is
1911 both explicit and builtin, print the location of the explicit one.
1912
6d7f7e0a
TB
19132013-11-05 Tobias Burnus <burnus@net-b.de>
1914
1915 * c-parser.c (c_parser_omp_for, c_parser_omp_parallel,
1916 c_parser_omp_distribute, c_parser_omp_teams,
1917 c_parser_omp_target, c_parser_omp_declare): Handle
1918 -fopenmp-simd.
1919
b906f4ca
MP
19202013-11-03 Marek Polacek <polacek@redhat.com>
1921
1922 * c-decl.c (grokdeclarator): Add VLA instrumentation.
1923
ee1d5a02
JJ
19242013-11-01 Jakub Jelinek <jakub@redhat.com>
1925
1926 * c-typeck.c (c_finish_omp_clauses) <case OMP_CLAUSE_UNIFORM>: Go to
1927 check_dup_generic at the end, unless remove is true.
1928 (c_finish_omp_clauses) <case OMP_CLAUSE_REDUCTION>: Add break; after
1929 remove = true;.
1930 (c_finish_omp_clauses) <case OMP_CLAUSE_COPYIN>: Likewise.
1931
5a9785fb
JJ
19322013-10-31 Jakub Jelinek <jakub@redhat.com>
1933
1934 * c-typeck.c (c_finish_omp_clauses): Diagnose aligned clause
1935 with decl that is not pointer nor array.
1936
939b37da
BI
19372013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1938
1939 * c-decl.c (finish_function): Added a call for insert_cilk_frame when
1940 a spawning function is found.
1941 * c-objc-common.h (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): New #define.
1942 (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
1943 (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): Likewise.
1944 * c-parser.c (c_parser_statement_after_labels): Added RID_CILK_SYNC
1945 case.
1946 (c_parser_postfix_expression): Added RID_CILK_SPAWN case.
1947 * c-typeck.c (build_compound_expr): Reject _Cilk_spawn in a comma
1948 expr.
1949 (c_finish_return): Added a check to reject _Cilk_spawn in return
1950 expression.
1951 (build_cilk_spawn): New function.
1952 (build_cilk_sync): Likewise.
1953 * Makefile.in (c-decl.o): Added cilk.h in dependency list.
1954
d4af74d4
TB
19552013-10-27 Tobias Burnus <burnus@net-b.de>
1956
1957 PR other/33426
1958 * c-parser.c (c_parser_while_statement, c_parser_while_statement,
1959 c_parser_pragma): Add GCC ivdep support to 'do' and 'while'.
1960 (c_parser_statement_after_labels): Update calls.
1961
d73749df 19622013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
1963
1964 PR other/33426
1965 * c-parser.c (c_parser_pragma, c_parser_for_statement):
1966 Handle PRAGMA_IVDEP.
1967 (c_parser_statement_after_labels): Update call.
1968
f28aa681
MP
19692013-10-24 Marek Polacek <polacek@redhat.com>
1970
1971 * c-parser.c (c_parser_struct_declaration): Add a comment.
1972 (c_parser_declarator): Don't allow _Alignas here.
1973
0645c1a2
AM
19742013-10-17 Andrew MacLeod <amacleod@redhat.com>
1975
1976 * c-parser.c: Include omp-low.h.
1977 * c-typeck.c: Likewise.
1978
568a31f2
MP
19792013-10-17 Marek Polacek <polacek@redhat.com>
1980
1981 PR c/58267
1982 * c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
1983 Document syntax of the array-declarator.
1984 (c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
1985 are not permitted.
1986 (c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
1987 (c_parser_struct_declaration): Likewise.
1988 (c_parser_declarator): Likewise.
1989 (c_parser_direct_declarator_inner): Likewise.
1990 (c_parser_parameter_declaration): Likewise.
1991 (c_parser_type_name): Likewise.
1992
acf0174b
JJ
19932013-10-11 Jakub Jelinek <jakub@redhat.com>
1994
1995 * c-lang.h (current_omp_declare_target_attribute): New extern
1996 decl.
1997 * c-parser.c: Include c-lang.h.
1998 (struct c_parser): Change tokens to c_token *.
1999 Add tokens_buf field. Change tokens_avail type to unsigned int.
2000 (c_parser_consume_token): If parser->tokens isn't
2001 &parser->tokens_buf[0], increment parser->tokens.
2002 (c_parser_consume_pragma): Likewise.
2003 (enum pragma_context): Add pragma_struct and pragma_param.
2004 (c_parser_external_declaration): Adjust
2005 c_parser_declaration_or_fndef caller.
2006 (c_parser_declaration_or_fndef): Add omp_declare_simd_clauses
2007 argument, if it is non-vNULL vector, call c_finish_omp_declare_simd.
2008 Adjust recursive call.
2009 (c_parser_struct_or_union_specifier): Use pragma_struct instead
2010 of pragma_external.
2011 (c_parser_parameter_declaration): Use pragma_param instead of
2012 pragma_external.
2013 (c_parser_compound_statement_nostart, c_parser_label,
2014 c_parser_for_statement): Adjust
2015 c_parser_declaration_or_fndef callers.
2016 (c_parser_expr_no_commas): Add omp_atomic_lhs argument, pass
2017 it through to c_parser_conditional_expression.
2018 (c_parser_conditional_expression): Add omp_atomic_lhs argument,
2019 pass it through to c_parser_binary_expression. Adjust recursive
2020 call.
2021 (c_parser_binary_expression): Remove prec argument, add
2022 omp_atomic_lhs argument instead. Always start from PREC_NONE, if
2023 omp_atomic_lhs is non-NULL and one of the arguments of toplevel
2024 binop matches it, use build2 instead of parser_build_binary_op.
2025 (c_parser_pragma): Handle PRAGMA_OMP_CANCEL,
2026 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_TARGET,
2027 PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_DECLARE_REDUCTION.
2028 Handle pragma_struct and pragma_param the same as pragma_external.
2029 (c_parser_omp_clause_name): Parse new OpenMP 4.0 clause names.
2030 (c_parser_omp_variable_list): Parse array sections for
2031 OMP_CLAUSE_{DEPEND,MAP,TO,FROM} clauses.
2032 (c_parser_omp_clause_collapse): Fully fold collapse expression.
2033 (c_parser_omp_clause_reduction): Handle user defined reductions.
2034 (c_parser_omp_clause_branch, c_parser_omp_clause_cancelkind,
2035 c_parser_omp_clause_num_teams, c_parser_omp_clause_thread_limit,
2036 c_parser_omp_clause_aligned, c_parser_omp_clause_linear,
2037 c_parser_omp_clause_safelen, c_parser_omp_clause_simdlen,
2038 c_parser_omp_clause_depend, c_parser_omp_clause_map,
2039 c_parser_omp_clause_device, c_parser_omp_clause_dist_schedule,
2040 c_parser_omp_clause_proc_bind, c_parser_omp_clause_to,
2041 c_parser_omp_clause_from, c_parser_omp_clause_uniform): New functions.
2042 (c_parser_omp_all_clauses): Add finish_p argument. Don't call
2043 c_finish_omp_clauses if it is false. Handle new OpenMP 4.0 clauses.
2044 (c_parser_omp_atomic): Parse seq_cst clause, pass true if it is
2045 present to c_finish_omp_atomic. Handle OpenMP 4.0 atomic forms.
2046 (c_parser_omp_for_loop): Add CODE argument, pass it through
2047 to c_finish_omp_for. Change last argument to cclauses,
2048 and adjust uses to grab parallel clauses from the array of all
2049 the split clauses. Adjust c_parser_binary_expression,
2050 c_parser_declaration_or_fndef and c_finish_omp_for callers.
2051 (omp_split_clauses): New function.
2052 (c_parser_omp_simd): New function.
2053 (c_parser_omp_for): Add p_name, mask and cclauses arguments.
2054 Allow the function to be called also when parsing combined constructs,
2055 and call c_parser_omp_simd when parsing for simd.
2056 (c_parser_omp_sections_scope): If section-sequence doesn't start with
2057 #pragma omp section, require exactly one structured-block instead of
2058 sequence of statements.
2059 (c_parser_omp_sections): Add p_name, mask and cclauses arguments.
2060 Allow the function to be called also when parsing combined constructs.
2061 (c_parser_omp_parallel): Add p_name, mask and cclauses arguments.
2062 Allow the function to be called also when parsing combined
2063 constructs.
2064 (c_parser_omp_taskgroup, c_parser_omp_cancel,
2065 c_parser_omp_cancellation_point, c_parser_omp_distribute,
2066 c_parser_omp_teams, c_parser_omp_target_data,
2067 c_parser_omp_target_update, c_parser_omp_target,
2068 c_parser_omp_declare_simd, c_finish_omp_declare_simd,
2069 c_parser_omp_declare_target, c_parser_omp_end_declare_target,
2070 c_parser_omp_declare_reduction, c_parser_omp_declare): New functions.
2071 (c_parser_omp_construct): Add p_name and mask vars. Handle
2072 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_SIMD, PRAGMA_OMP_TASKGROUP,
2073 PRAGMA_OMP_TEAMS. Adjust c_parser_omp_for, c_parser_omp_parallel
2074 and c_parser_omp_sections callers.
2075 (c_parse_file): Initialize tparser.tokens and the_parser->tokens here.
2076 (OMP_FOR_CLAUSE_MASK, OMP_SECTIONS_CLAUSE_MASK,
2077 OMP_SINGLE_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1.
2078 (OMP_PARALLEL_CLAUSE_MASK): Likewise. Add OMP_CLAUSE_PROC_BIND.
2079 (OMP_TASK_CLAUSE_MASK): Use OMP_CLAUSE_MASK_1 instead of 1. Add
2080 OMP_CLAUSE_DEPEND.
2081 (OMP_SIMD_CLAUSE_MASK, OMP_CANCEL_CLAUSE_MASK,
2082 OMP_CANCELLATION_POINT_CLAUSE_MASK, OMP_DISTRIBUTE_CLAUSE_MASK,
2083 OMP_TEAMS_CLAUSE_MASK, OMP_TARGET_DATA_CLAUSE_MASK,
2084 OMP_TARGET_UPDATE_CLAUSE_MASK, OMP_TARGET_CLAUSE_MASK,
2085 OMP_DECLARE_SIMD_CLAUSE_MASK): Define.
2086 * c-typeck.c: Include tree-inline.h.
2087 (c_finish_omp_cancel, c_finish_omp_cancellation_point,
2088 handle_omp_array_sections_1, handle_omp_array_sections,
2089 c_clone_omp_udr, c_find_omp_placeholder_r): New functions.
2090 (c_finish_omp_clauses): Handle new OpenMP 4.0 clauses and
2091 user defined reductions.
2092 (c_tree_equal): New function.
2093 * c-tree.h (temp_store_parm_decls, temp_pop_parm_decls,
2094 c_finish_omp_cancel, c_finish_omp_cancellation_point, c_tree_equal,
2095 c_omp_reduction_id, c_omp_reduction_decl, c_omp_reduction_lookup,
2096 c_check_omp_declare_reduction_r): New prototypes.
2097 * c-decl.c (current_omp_declare_target_attribute): New variable.
2098 (c_decl_attributes): New function.
2099 (start_decl, start_function): Use it instead of decl_attributes.
2100 (temp_store_parm_decls, temp_pop_parm_decls, c_omp_reduction_id,
2101 c_omp_reduction_decl, c_omp_reduction_lookup,
2102 c_check_omp_declare_reduction_r): New functions.
2103
0a6c2227
TT
21042013-09-25 Tom Tromey <tromey@redhat.com>
2105
2106 * Make-lang.in (c/gccspec.o): Remove.
2107 (CFLAGS-c/gccspec.o): New variable.
2108 (cc1-checksum.o, C_TREE_H, c/c-aux-info.o, c/c-convert.o)
2109 (c/c-decl.o, c/c-errors.o, c/c-lang.o, c/c-objc-common.o)
2110 (c/c-parser.o, c/c-typeck.o, c/c-array-notation.o): Remove.
2111
f3bc55f0
TT
21122013-09-25 Tom Tromey <tromey@redhat.com>
2113
2114 * Make-lang.in (c/gccspec.o): Don't use subshell.
2115
a24d975c
MP
21162013-09-18 Marek Polacek <polacek@redhat.com>
2117
2118 PR sanitize/58443
2119 * c-typeck.c (build_binary_op): Properly honor -fsanitize options.
2120 Remove unnecessary check.
2121
ce6923c5
MP
21222013-09-18 Marek Polacek <polacek@redhat.com>
2123
2124 PR sanitizer/58411
2125 * c-typeck.c (build_binary_op): Don't sanitize function if it has the
2126 no_sanitize_undefined attribute.
2127
a1e51df9
KT
21282013-09-13 Kai Tietz <ktietz@redhat.com>
2129
2130 PR target/57848
2131 * c-decl.c (c_builtin_function_ext_scope): Remove
2132 wrong assumption that it is never called on prexisting
2133 symbol.
2134
0af94e6f
JR
21352013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2136
2137 * c-typeck.c (build_binary_op): Use vector_types_compatible_elements_p.
2138
20059c8b
GDR
21392013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2140
2141 * c-objc-common.c (c_tree_printer): Tidy.
2142
de5a5fa1
MP
21432013-08-30 Marek Polacek <polacek@redhat.com>
2144
2145 * c-typeck.c (build_binary_op): Add division by zero and shift
2146 instrumentation.
2147
2531a1d9 21482013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
0fdd4508 2149 Joseph Myers <joseph@codesourcery.com>
2531a1d9 2150
6e2bcc98 2151 PR c/35649
2531a1d9
JR
2152 * c-typeck.c (c_common_type): Prefer double_type_node over
2153 other REAL_TYPE types with the same precision.
2154 (convert_arguments): Likewise.
2155
025311c4
GDR
21562013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
2157
2158 * c-objc-common.c (c_tree_printer): Document the nature of the cast.
2159 (c_initialize_diagnostics): Call a destructor for the early printer.
2160
da6ca2b5
GDR
21612013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2162
2163 * c-objc-common.c (c_initialize_diagnostics): Simplify C pretty
2164 printer initialization.
2165
318cda85 21662013-08-19 Balaji V. Iyer <balaji.v.iyer@intel.com>
da6ca2b5 2167
318cda85
BI
2168 PR c/57490
2169 * c-array-notation.c (fix_conditional_array_notations_1): Added a
2170 check for truth values.
2171 (expand_array_notation_exprs): Added truth values case. Removed an
2172 unwanted else. Added for-loop to walk through subtrees in default
2173 case.
2174
b066401f
GDR
21752013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2176
2177 * c-objc-common.c (c_initialize_diagnostics): Don't call pp_base.
2178
fb48aadc
JM
21792013-07-23 Joseph Myers <joseph@codesourcery.com>
2180
2181 * c-parser.c (struct c_generic_association): Fix typo.
2182
433cc7b0
TT
21832013-07-23 Tom Tromey <tromey@redhat.com>
2184 Joseph Myers <joseph@codesourcery.com>
2185
2186 * c-parser.c (struct c_generic_association): New.
2187 (c_generic_association_d): New typedef.
2188 (c_parser_generic_selection): New function.
2189 (c_parser_postfix_expression): Handle RID_GENERIC.
2190
26d40c3d
JM
21912013-07-13 Jason Merrill <jason@redhat.com>
2192
2193 PR c++/57793
2194 * c-decl.c (finish_struct): Check for too-large class.
2195
ecdbd01a 21962013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
2197
2198 PR c/57821
2199 * c-typeck.c (set_init_index): When folding, check for index overflow.
2200
1141ed3f
BI
22012013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2202
2203 * c-parser.c (c_parser_array_notation): Removed rejection of array
2204 notations in an array of function pointers.
2205
713b46fa
BI
22062013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2207
2208 * c-array-notation.c (make_triplet_val_inv): New function.
2209 (create_cmp_incr): Likewise.
2210 (create_array_refs): Likewise.
2211 (fix_builtin_array_notation_fn): Replaced all mallocs with tree vec.
2212 Also modularized common parts between functions and called the function.
2213 (build_array_notation_expr): Likewise.
2214 (fix_conditional_array_notations_1): Likewise.
2215 (fix_array_notation_expr): Likewise.
2216 (fix_array_notation_call_expr): Likewise.
2217
92f20202
MP
22182013-06-18 Marek Polacek <polacek@redhat.com>
2219
2220 PR c/57630
2221 * c-decl.c (check_for_loop_decls): Improve diagnostics messages.
2222
73a23b06
BI
22232013-06-12 Balaji V. Iyer <balaji.v.iyer@intel.com>
2224
2225 * c-array-notation.c (build_array_notation_expr): Reject array notation
2226 mismatch between LHS and RHS even inside a call_expr. Also, removed
2227 a couple while statements that were dead code.
2228
00b8517d
BI
22292013-06-10 Balaji V. Iyer <balaji.v.iyer@intel.com>
2230
2231 * c-array-notation.c (fix_builtin_array_notation_fn): Fully folded
2232 excessive precision expressions in function parameters. Also removed
2233 couple unwanted while statements.
2234
1509bdda
BI
22352013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2236
2237 * c-array-notation.c (expand_array_notation_exprs): Added
2238 ARRAY_NOTATION_REF case.
2239
d60f1706
BI
22402013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2241
2242 * c-array-notation.c (length_mismatch_in_expr_p): Moved this
2243 function to c-family/array-notation-common.c.
2244 (is_cilkplus_reduce_builtin): Likewise.
2245 (find_rank): Likewise.
2246 (extract_array_notation_exprs): Likewise.
2247 (replace_array_notations): Likewise.
2248 (find_inv_trees): Likewise.
2249 (replace_inv_trees): Likewise.
2250 (contains_array_notation_expr): Likewise.
2251 (find_correct_array_notation_type): Likewise.
2252 (replace_invariant_exprs): Initialized additional_tcodes to NULL.
2253 (struct inv_list): Moved this to c-family/array-notation-common.c.
2254 * c-tree.h (is_cilkplus_builtin_reduce): Remove prototype.
2255
6d6efbb3
BI
22562013-06-05 Balaji V. Iyer <balaji.v.iyer@intel.com>
2257
2258 * c-typeck.c (convert_arguments): Moved checking of builtin cilkplus
2259 reduction functions outside the for-loop. Added a check if the fundecl
2260 is non-NULL. Finally, removed an unwanted if-statement, and made the
2261 body unconditional.
2262
25c22937
BI
22632013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
2264
2265 * c-typeck.c (c_finish_if_stmt): Added a check to see if the rank of the
2266 condition of the if-statement matches the rank of else-block and then-
2267 block when array notations are used.
2268 * c-parser.c (c_parser_declaration_or_fndef): Expanded array notation
2269 expression after the entire function body is parsed.
2270 (c_parser_expr_no_commas): Delayed creating array notation expressions
2271 to the end of function parsing.
2272 * c-array-notation.c (fix_conditional_array_notations_1): Expanded the
2273 whole if-statement instead of just the condition.
2274 (expand_array_notation_exprs): Added MODIFY_EXPR case.
2275
edd25645
BI
22762013-06-03 Balaji V. Iyer <balaji.v.iyer@intel.com>
2277
2278 PR c/57474
2279 * c-array-notation.c (build_array_notation_expr): Initialized rhs_length
2280 array to NULL_TREE if they are unused. Also added a check for the
2281 field to be NULL before its fields are used in future.
2282
065ce7f1
RO
22832013-05-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2284
2285 PR bootstrap/57450
2286 * c-array-notation.c (length_mismatch_in_expr_p): Use absu_hwi.
2287 (build_array_notation_expr): Likewise.
2288
36536d79
BI
22892013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2290
2291 * c-typeck.c (build_array_ref): Added a check to see if array's
2292 index is greater than one. If true, then emit an error.
2293 (build_function_call_vec): Exclude error reporting and checking
2294 for builtin array-notation functions.
2295 (convert_arguments): Likewise.
2296 (c_finish_return): Added a check for array notations as a return
2297 expression. If true, then emit an error.
2298 (c_finish_loop): Added a check for array notations in a loop
2299 condition. If true then emit an error.
2300 (lvalue_p): Added a ARRAY_NOTATION_REF case.
2301 (build_binary_op): Added a check for array notation expr inside
2302 op1 and op0. If present, we call another function to find correct
2303 type.
2304 * Make-lang.in (C_AND_OBJC_OBJS): Added c-array-notation.o.
2305 * c-parser.c (c_parser_compound_statement): Check if array
2306 notation code is used in tree, if so, then transform them into
2307 appropriate C code.
2308 (c_parser_expr_no_commas): Check if array notation is used in LHS
2309 or RHS, if so, then build array notation expression instead of
2310 regular modify.
2311 (c_parser_postfix_expression_after_primary): Added a check for
2312 colon(s) after square braces, if so then handle it like an array
2313 notation. Also, break up array notations in unary op if found.
2314 (c_parser_direct_declarator_inner): Added a check for array
2315 notation.
2316 (c_parser_compound_statement): Added a check for array notation in
2317 a stmt. If one is present, then expand array notation expr.
2318 (c_parser_if_statement): Likewise.
2319 (c_parser_switch_statement): Added a check for array notations in
2320 a switch statement's condition. If true, then output an error.
2321 (c_parser_while_statement): Similarly, but for a while.
2322 (c_parser_do_statement): Similarly, but for a do-while.
2323 (c_parser_for_statement): Similarly, but for a for-loop.
2324 (c_parser_unary_expression): Check if array notation is used in a
2325 pre-increment or pre-decrement expression. If true, then expand
2326 them.
2327 (c_parser_array_notation): New function.
2328 * c-array-notation.c: New file.
2329 * c-tree.h (is_cilkplus_reduce_builtin): Protoize.
2330
cd192ccc
MS
23312013-05-23 Mike Stump <mikestump@comcast.net>
2332
2333 * c-typeck.c (convert_for_assignment): Handle references to memory
2334 spaces better.
2335
427b248d
JM
23362013-05-16 Jason Merrill <jason@redhat.com>
2337
2338 * Make-lang.in (cc1$(exeext)): Use link mutex.
2339
44d90fe1
PC
23402013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2341
2342 * c-typeck.c (pointer_diff): Change -Wpointer-arith pedwarns
2343 to simply use OPT_Wpointer_arith.
2344 (build_unary_op): Likewise.
2345
4e7d7b3d
JJ
23462013-04-03 Jakub Jelinek <jakub@redhat.com>
2347
2348 PR c/19449
2349 * c-parser.c (c_parser_get_builtin_args): Add choose_expr_p
2350 argument. If set, or it temporarily for parsing of the first
2351 argument into force_folding_builtin_constant_p.
2352 (c_parser_postfix_expression): Adjust callers.
2353
839b422f
RB
23542013-03-21 Richard Biener <rguenther@suse.de>
2355
2356 * c-objc-common.c (c_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
2357 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
2358
2ee028f1
MP
23592013-02-12 Marek Polacek <polacek@redhat.com>
2360
2361 PR c/44938
2362 * c-parser.c (c_parser_postfix_expression_after_primary): Initialize
2363 origtypes to NULL.
2364
8824edff
JJ
23652013-01-24 Jakub Jelinek <jakub@redhat.com>
2366
2367 PR c/56078
2368 * c-typeck.c (set_nonincremental_init_from_string): If
2369 constructor_max_index is NULL, treat it as if tree_int_cst_lt
2370 returned false.
2371 (process_init_element): Likewise.
2372
eadd3d0d
JJ
23732012-12-20 Jakub Jelinek <jakub@redhat.com>
2374
2375 PR c++/55619
2376 * c-parser.c (c_parser_asm_operands): Remove CONVERT_P
2377 argument, don't call default_function_array_conversion
2378 nor c_fully_fold here.
2379 (c_parser_asm_statement): Adjust callers.
2380 * c-typeck.c (build_asm_expr): Call c_fully_fold on inputs
2381 and outputs here, and call default_function_array_conversion
2382 on inputs that don't need to be addressable.
2383
f8a93a2e
JJ
23842012-12-18 Jakub Jelinek <jakub@redhat.com>
2385
2386 PR c/39464
2387 * c-typeck.c (convert_for_assignment): For -Wpointer-sign
2388 warning require that both c_common_unsigned_type as well as
2389 c_common_signed_type is the same for both mvl and mvr types.
2390
9771b263
DN
23912012-11-16 Diego Novillo <dnovillo@google.com>
2392
2393 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
2394
2395 * c-common.c: Use new vec API in vec.h.
2396 * c-common.h: Likewise.
2397 * c-gimplify.c: Likewise.
2398 * c-pragma.c: Likewise.
2399 * c-pretty-print.c: Likewise.
2400 * c-pretty-print.h: Likewise.
2401 * c-semantics.c: Likewise.
2402 * c-decl.c: Likewise.
2403 * c-parser.c: Likewise.
2404 * c-tree.h: Likewise.
2405 * c-typeck.c: Likewise.
2406
880661a4
JW
24072012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2408
2409 PR c++/54930
2410 * c-typeck.c (c_finish_return): Use OPT_Wreturn_local_addr.
2411
077d1abe
MLI
24122012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2413
2414 PR c/53066
2415 * c-decl.c (warn_if_shadowing): Do not warn if a variable
2416 shadows a function, unless the variable is a function or a
2417 pointer-to-function.
2418
3a785c97
JJ
24192012-10-12 Jakub Jelinek <jakub@redhat.com>
2420
2421 PR c/54381
2422 * c-parser.c (struct c_tree_loc_pair): Removed.
2423 (c_parser_expr_list): Remove struct c_tree_loc_pair * argument,
2424 add location_t * and tree * arguments, fill in array of 3
2425 sizeof_arg trees and corresponding locs.
2426 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust
2427 c_parser_expr_list callers.
2428 (c_parser_postfix_expression_after_primary): Likewise. Pass
2429 array of 3 sizeof_arg trees and locs (corresponding to first
2430 3 arguments) to sizeof_pointer_memaccess_warning.
2431
703c8606
LC
24322012-10-09 Lawrence Crowl <crowl@google.com>
2433
2434 * Make-lang.in (c-decl.o): Add dependence on hash-table.h.
2435 * c-decl.c (detect_field_duplicates_hash): Change to new type-safe
2436 hash table.
2437
5d9de0d0
PC
24382012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2439
2440 PR c++/54194
2441 * c-typeck.c (parser_build_binary_op): Update warn_about_parentheses
2442 call.
2443
a212e43f
MG
24442012-10-09 Marc Glisse <marc.glisse@inria.fr>
2445
2446 PR c++/54427
2447 * c-typeck.c: Include c-common.h.
2448 (enum stv_conv): Moved to c-common.h.
2449 (scalar_to_vector): Moved to c-common.c.
2450 (build_binary_op): Adapt to scalar_to_vector's new prototype.
2451 * Make-lang.in: c-typeck.c depends on c-common.h.
2452
3b78de56
AC
24532012-10-04 Arnaud Charlet <charlet@adacore.com>
2454
2455 * c-decl.c (c_write_global_declarations): Fix handling of
2456 -fdump-ada-spec*.
2457
78c60e3d
SS
24582012-09-30 Sharad Singhai <singhai@google.com>
2459
2460 * c-decl.c (c_write_global_declarations): Use a different method
2461 to determine if the dump has ben initialized.
2462
9f33203d
JM
24632012-09-14 Joseph Myers <joseph@codesourcery.com>
2464
2465 PR c/54552
2466 * c-typeck.c (c_cast_expr): When casting to a type requiring
2467 C_MAYBE_CONST_EXPR to be created, pass the inner expression to
2468 c_fully_fold first.
2469
a27d595d
JM
24702012-09-14 Joseph Myers <joseph@codesourcery.com>
2471
2472 PR c/54103
2473 * c-typeck.c (build_unary_op): Pass original argument of
2474 TRUTH_NOT_EXPR to c_objc_common_truthvalue_conversion, then remove
2475 any C_MAYBE_CONST_EXPR, if it has integer operands.
2476 (build_binary_op): Pass original arguments of TRUTH_ANDIF_EXPR,
2477 TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR and TRUTH_XOR_EXPR
2478 to c_objc_common_truthvalue_conversion, then remove any
2479 C_MAYBE_CONST_EXPR, if they have integer operands. Use
2480 c_objc_common_truthvalue_conversion not
2481 c_common_truthvalue_conversion.
2482 (c_objc_common_truthvalue_conversion): Build NE_EXPR directly and
2483 call note_integer_operands for arguments with integer operands
2484 that are not integer constants.
2485
9feb29df
JJ
24862012-09-13 Jakub Jelinek <jakub@redhat.com>
2487
2488 PR c/54559
2489 * c-typeck.c (c_finish_return): Do convert to BOOLEAN_TYPE or
2490 COMPLEX_TYPE with in_late_binary_op set temporarily to true.
2491
d409320c
JJ
24922012-08-31 Jakub Jelinek <jakub@redhat.com>
2493
2494 PR c/54428
2495 * c-convert.c (convert): Don't call fold_convert_loc if
2496 TYPE_MAIN_VARIANT of a COMPLEX_TYPE is the same, unless e
2497 is a COMPLEX_EXPR. Remove TYPE_MAIN_VARIANT check from
2498 COMPLEX_TYPE -> COMPLEX_TYPE conversion.
2499
6265d07c
JJ
25002012-08-24 Jakub Jelinek <jakub@redhat.com>
2501
2502 PR c/54355
2503 * c-decl.c (c_parser_label): Pass true as nested and fix up comments
2504 for nested and empty_ok arguments in the call to
2505 c_parser_declaration_or_fndef.
2506
1a4049e7
JJ
25072012-08-17 Jakub Jelinek <jakub@redhat.com>
2508
2509 * c-tree.h (c_last_sizeof_arg): Declare.
2510 * c-parser.c (struct c_tree_loc_pair): New type.
2511 (c_parser_expr_list): Add sizeof_arg argument. Fill it in if
2512 non-NULL.
2513 (c_parser_attributes, c_parser_objc_keywordexpr): Adjust callers.
2514 (c_parser_postfix_expression_after_primary): Likewise. Call
2515 sizeof_pointer_memaccess_warning if needed.
2516 (sizeof_ptr_memacc_comptypes): New function.
2517 * c-typeck.c (c_last_sizeof_arg): New global variable.
2518 (c_expr_sizeof_expr, c_expr_sizeof_type): Initialize it.
2519
0229aee9
UB
25202012-07-24 Uros Bizjak <ubizjak@gmail.com>
2521
2522 * c-lang.h (lang_decl): Add variable_size GTY option.
2523
7ee2468b
SB
25242012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2525
2526 * c-decl.c: Include dumpfile.h instead of tree-dump.h.
2527 * Make-lang.in: Fix dependencies.
2528
d4a10d0a
SB
25292012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2530
2531 * Make-lang.in: New file, rules migrated from gcc/Makefile.in
2532 and add language Makefile hooks.
2533 * config-lang.in: New file.
2534 * c-config-lang.in: Moved from gcc/config-lang.in to here, and
2535 add the required "normal" config-lang.in rules.
2536 * c-lang.h: Moved from gcc/ to here.
2537 * c-tree.h: Likewise.
2538 * c-objc-common.c: Likewise.
2539 * c-objc-common.h: Likewise.
2540 * c-typeck.c: Likewise.
2541 * c-convert.c: Likewise.
2542 * c-lang.c: Likewise.
2543 * c-aux-info.c: Likewise.
2544 * c-errors.c: Likewise.
2545 * gccspec.c: Likewise.
2546 * c-decl.c: Likewise. Include gt-c-c-decl.h, not gt-c-decl.h.
2547 * c-parser.c: Likewise. Include gt-c-c-parser.h, not gt-c-parser.h.
2548\f
5624e564 2549Copyright (C) 2012-2015 Free Software Foundation, Inc.
d4a10d0a
SB
2550
2551Copying and distribution of this file, with or without modification,
2552are permitted in any medium without royalty provided the copyright
2553notice and this notice are preserved.