]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
re PR tree-optimization/71625 (missing strlen optimization on different array initial...
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
4aa83879
RB
12016-06-29 Richard Biener <rguenther@suse.de>
2
3 PR middle-end/71002
4 * c-common.c (c_common_get_alias_set): Remove union type punning case.
5
a25bd9e6
JM
62016-06-24 Jason Merrill <jason@redhat.com>
7
8 P0145R2: Refining Expression Order for C++.
9 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
10 MODIFY_EXPR.
11
a86451b9
JJ
122016-06-24 Jakub Jelinek <jakub@redhat.com>
13
14 * c-common.c (check_builtin_function_arguments): Require last
15 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
16 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
17 if the last argument is pointer to enumerated or boolean type.
18
1a4f11c8
DM
192016-06-22 David Malcolm <dmalcolm@redhat.com>
20
21 PR c/70339
22 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
23 (lookup_name_fuzzy): New prototype.
24
fe55692c
JDA
252016-06-21 John David Anglin <danglin@gcc.gnu.org>
26
27 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
28
4eb24e01
JM
292016-06-14 Jason Merrill <jason@redhat.com>
30
31 P0145R2: Refining Expression Order for C++.
32 * c.opt (fargs-in-order): New.
33 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
34
ef7cf206
JJ
352016-06-13 Jakub Jelinek <jakub@redhat.com>
36
0dda258b
JJ
37 PR sanitizer/71498
38 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
39 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
40
ef7cf206
JJ
41 PR preprocessor/71183
42 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
43 to cb_get_source_date_epoch.
44
50b15873
JJ
452016-06-10 Jakub Jelinek <jakub@redhat.com>
46
47 PR c/68657
48 * c.opt (Wpsabi): Add Warning flag.
49
4d926e34
MS
502016-06-10 Martin Sebor <msebor@redhat.com>
51
52 PR c/71392
53 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
54 the nonnull attribute in type-generic builtins.
55
e01b4e16
MS
562016-06-09 Martin Sebor <msebor@redhat.com>
57
58 PR c/70883
59 * c-common.c (builtin_function_validate_nargs): Make text of error
60 message consistent with others like it.
61
44a845ca
MS
622016-06-08 Martin Sebor <msebor@redhat.com>
63 Jakub Jelinek <jakub@redhat.com>
64
65 PR c++/70507
66 PR c/68120
67 * c-common.c (check_builtin_function_arguments): Handle
68 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
69
a80a7051
RB
702016-06-08 Richard Biener <rguenther@suse.de>
71
72 * c-common.c (parse_optimize_options): Improve diagnostic messages.
73
bfd67b47
RB
742016-06-07 Richard Biener <rguenther@suse.de>
75
76 PR c/61564
77 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
78 options and warn about others.
79
15c98b2e
ES
802016-06-01 Eduard Sanou <dhole@openmailbox.org>
81
82 * c-common.c (get_source_date_epoch): Rename to
83 cb_get_source_date_epoch.
84 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
85 message when the parsing fails. Use error_at instead of fatal_error.
86 * c-common.h (get_source_date_epoch): Rename to
87 cb_get_source_date_epoch.
88 * c-common.h (cb_get_source_date_epoch): Prototype.
89 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
90 * c-common.h (c_omp_region_type): Remove trailing comma.
91 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
92 * c-lex.c (c_lex_with_flags): Remove initialization of
93 pfile->source_date_epoch.
94
00631022
JJ
952016-05-30 Jakub Jelinek <jakub@redhat.com>
96
97 PR c++/71349
98 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
99 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
100 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
101 instead of C_OMP_CLAUSE_SPLIT_FOR.
102
f17a223d
RB
1032016-05-24 Richard Biener <rguenther@suse.de>
104
105 PR middle-end/70434
106 PR c/69504
107 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
108 (convert_vector_to_array_for_subscript): ... this.
109 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
110 VIEW_CONVERT_EXPR to an array type. Rename to ...
111 (convert_vector_to_array_for_subscript): ... this.
112
4f2e1536
MP
1132016-05-12 Marek Polacek <polacek@redhat.com>
114
115 PR c/70756
116 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
117 size_in_bytes and pass LOC to it.
118
d6e83a8d
MM
1192016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
120
121 PR c/43651
122 * c.opt (Wduplicate-decl-specifier): New option.
123
5c3a10fb
MP
1242016-05-11 Marek Polacek <polacek@redhat.com>
125
126 PR c++/71024
127 * c-common.c (diagnose_mismatched_attributes): New function.
128 * c-common.h (diagnose_mismatched_attributes): Declare.
129
deef7113
MP
1302016-05-04 Marek Polacek <polacek@redhat.com>
131
132 * c.opt (Wdangling-else): New option.
133
79ce98bc
MP
1342016-05-03 Marek Polacek <polacek@redhat.com>
135
136 PR c/70859
137 * c-common.c (builtin_function_validate_nargs): Add location
138 parameter. Use it.
139 (check_builtin_function_arguments): Add location and arguments
140 parameters. Use them.
141 * c-common.h (check_builtin_function_arguments): Update declaration.
142
381cdae4
RB
1432016-05-03 Richard Biener <rguenther@suse.de>
144
145 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
146 allow call args to gimplify to SSA names.
147
1d793c34
MP
1482016-05-03 Marek Polacek <polacek@redhat.com>
149
150 * c-common.h (enum c_omp_region_type): Remove stray comma.
151
77886428
CP
1522016-05-02 Cesar Philippidis <cesar@codesourcery.com>
153
154 * c-common.h (enum c_omp_region_type): Define.
155
697e0b28
RS
1562016-05-02 Richard Sandiford <richard.sandiford@arm.com>
157
158 * c-common.c (shorten_compare): Use wi::to_wide.
159
e7ff0319
CP
1602016-04-29 Cesar Philippidis <cesar@codesourcery.com>
161
162 PR middle-end/70626
163 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
164 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
165 reduction clauses in acc parallel loops.
166
2fff3db8
MP
1672016-04-29 Marek Polacek <polacek@redhat.com>
168
169 PR c/70852
170 * c-common.c (warn_for_memset): Check domain before accessing it.
171
509063eb
DV
1722016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
173
174 PR/69089
175 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
176 "aligned" attribute.
177
b632761d
JM
1782016-04-28 Jason Merrill <jason@redhat.com>
179
180 * c-lex.c (c_common_has_attribute): Handle nodiscard.
181
174f6622
ES
1822016-04-28 Eduard Sanou <dhole@openmailbox.org>
183 Matthias Klose <doko@debian.org>
184
185 * c-common.c (get_source_date_epoch): New function, gets the environment
186 variable SOURCE_DATE_EPOCH and parses it as long long with error
187 handling.
188 * c-common.h (get_source_date_epoch): Prototype.
189 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
190
6bc2bb18
RB
1912015-04-27 Ryan Burn <contact@rnburn.com>
192
193 PR c++/69024
194 PR c++/68997
195 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
196 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
197 external linkage.
198 (cilk_detect_and_unwrap): Corresponding changes.
199 (extract_free_variables): Don't extract free variables from
200 AGGR_INIT_EXPR slot.
201 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
202 (cilk_recognize_spawn): Likewise.
203
c1e1f433
BS
2042016-04-27 Bernd Schmidt <bschmidt@redhat.com>
205
206 * c.opt (Wmemset-elt-size): New option.
207 * c-common.c (warn_for_memset): New function.
208 * c-common.h (warn_for_memset): Declare.
209
d067e05f
JM
2102016-04-25 Jason Merrill <jason@redhat.com>
211
212 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
213 No longer static.
214 * c-common.h: Declare it.
215 * c-lex.c (c_common_has_attribute): Add maybe_unused.
216
9aa36ae5
JM
2172016-04-22 Jason Merrill <jason@redhat.com>
218
219 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
220
477d4906
IV
2212016-04-20 Ilya Verbin <ilya.verbin@intel.com>
222
223 PR c++/69363
224 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
225 * c-common.h (c_finish_cilk_clauses): Remove declaration.
226
fe37c7af
MM
2272016-04-18 Michael Matz <matz@suse.de>
228
229 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
230 and SET_DECL_ALIGN.
231
23f2660f
EB
2322016-04-17 Eric Botcazou <ebotcazou@adacore.com>
233
234 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
235 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
236 to incomplete types.
237 (dump_nested_type): Remove redundant tests and tidy up.
238 (print_ada_declaration): Also set TREE_VISITED on the declaration of
239 a type which is the typedef of an original type.
240
1e77281b
MP
2412016-04-15 Marek Polacek <polacek@redhat.com>
242
243 PR c/70651
244 * c-common.c (build_va_arg): Change two asserts into errors and return
245 error_mark_node.
246
b3a77f21
MP
2472016-04-13 Marek Polacek <polacek@redhat.com>
248
249 PR c++/70639
250 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
251 for switch statements, too.
252
322b8466
JM
2532016-03-28 Jason Merrill <jason@redhat.com>
254
255 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
256
fbdb6baf
MP
2572016-03-23 Marek Polacek <polacek@redhat.com>
258
259 PR c++/69884
260 * c.opt (Wignored-attributes): New option.
261
5c240f4d
DM
2622016-03-22 David Malcolm <dmalcolm@redhat.com>
263
264 PR c/69993
265 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
266 diagnostic text, reversing the order of the warning and note so
267 that they appear in source order.
268
14ba7b28
MP
2692016-03-17 Marek Polacek <polacek@redhat.com>
270
271 PR c/69407
272 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
273 operations.
274
08a1cadc
JM
2752016-03-14 Jason Merrill <jason@redhat.com>
276
2aaeea19
JM
277 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
278
08a1cadc
JM
279 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
280
c06d25bb
RB
2812016-03-09 Richard Biener <rguenther@suse.de>
282
283 PR c/70143
284 * c-common.c (strict_aliasing_warning): Add back
285 alias_sets_conflict_p check.
286
80aac5c8
JM
2872016-03-08 Jason Merrill <jason@redhat.com>
288
289 * c-opts.c (set_std_cxx1z): Don't enable concepts.
290
64b23c13
DM
2912016-03-04 David Malcolm <dmalcolm@redhat.com>
292
293 PR c/68187
294 * c-indentation.c (get_visual_column): Move code to determine next
295 tab stop to...
296 (next_tab_stop): ...this new function.
297 (line_contains_hash_if): Delete function.
298 (detect_preprocessor_logic): Delete function.
299 (get_first_nws_vis_column): New function.
300 (detect_intervening_unindent): New function.
301 (should_warn_for_misleading_indentation): Replace call to
302 detect_preprocessor_logic with a call to
303 detect_intervening_unindent.
304
729526f5
DM
3052016-03-04 David Malcolm <dmalcolm@redhat.com>
306
307 PR c/68187
308 * c-indentation.c (should_warn_for_misleading_indentation): When
309 suppressing warnings about cases where the guard and body are on
310 the same column, only use the first non-whitespace column in place
311 of the guard token column when dealing with "else" clauses.
312 When rejecting aligned BODY and NEXT, loosen the requirement
313 from equality with the first non-whitespace of guard to simply
314 that they not be indented relative to it.
315
e9a35493
RB
3162016-03-04 Richard Biener <rguenther@suse.de>
317
318 PR c++/70054
319 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
320 instead of alias_sets_conflict_p.
321
1be56bc5
MP
3222016-03-01 Marek Polacek <polacek@redhat.com>
323
324 PR c++/69795
325 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
326 any DECL.
327
35886f0b
MS
3282016-02-22 Martin Sebor <msebor@redhat.com>
329
330 PR middle-end/69780
331 * c-common.c (check_builtin_function_arguments): Validate and
332 reject invalid arguments to __builtin_alloca_with_align.
333
4246c8da
MW
3342016-02-20 Mark Wielaard <mjw@redhat.com>
335
336 PR c/28901
337 * c.opt (Wunused-const-variable): Turn into Alias for...
338 (Wunused-const-variable=): New option.
339
268be88c
BE
3402016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
341
342 PR c++/69865
343 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
344 here...
345 (c_common_init_options): ...to here.
346 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
347
871b3f47
JJ
3482016-02-19 Jakub Jelinek <jakub@redhat.com>
349
350 PR c++/69826
351 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
352 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
353 flag_preprocess_only.
354
bf14eba2
JJ
3552016-02-16 Jakub Jelinek <jakub@redhat.com>
356
357 PR c/69835
358 * c.opt (Wnonnull-compare): Enable for -Wall.
359
ba6b3795
JJ
3602016-02-15 Jakub Jelinek <jakub@redhat.com>
361
362 PR c++/69797
363 * c-common.c (sync_resolve_size): Diagnose too few arguments
364 even when params is non-NULL empty vector.
365
a011cd92
BS
3662016-02-08 Bernd Schmidt <bschmidt@redhat.com>
367
368 PR target/60410
369 * c.opt (fshort-double): Remove.
370
46cb9332
MS
3712016-02-05 Martin Sebor <msebor@redhat.com>
372
373 PR c++/69662
374 * c.opt (Warning options): Update -Wplacement-new to take
375 an optional argument.
376
e1b81f2b
JJ
3772016-02-01 Jakub Jelinek <jakub@redhat.com>
378
379 PR preprocessor/69543
380 PR c/69558
381 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
382 instead of loc to control_warning_option.
383
b6adbb9f
NS
3842016-02-01 Nathan Sidwell <nathan@codesourcery.com>
385
386 * c.opt (fopenacc-dim=): New option.
387
5d70666e
RB
3882016-01-27 Ryan Burn <contact@rnburn.com>
389
390 PR cilkplus/69267
391 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
392 gimplify_arg. Removed superfluous post_p argument.
393 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
394 superfluous post_p argument.
395 * c-gimplify.c (c_gimplify_expr): Likewise.
396
01e1dea3
DM
3972016-01-26 David Malcolm <dmalcolm@redhat.com>
398
399 PR other/69006
400 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
401 pp_newline_and_flush with pp_flush.
402
9f04a53e
MS
4032016-01-20 Martin Sebor <msebor@redhat.com>
404
405 PR c/69405
406 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
407 an incompatible argument when the argument isn't a valid tree node.
408
7f26f7df
JM
4092016-01-18 Jason Merrill <jason@redhat.com>
410
411 PR c++/68767
412 * c-common.c (check_function_arguments_recurse): Fold the whole
413 COND_EXPR, not just the condition.
414
f62bf092
TV
4152016-01-18 Tom de Vries <tom@codesourcery.com>
416
417 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
418 classify as loop clause.
419
e0a575ff
JJ
4202016-01-15 Jakub Jelinek <jakub@redhat.com>
421
422 PR bootstrap/68271
423 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
424 C++ FE no longer has limit on number of pragmas.
425
4262015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
427
428 PR c++/69048
429 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 430 to add missing cleanup point.
b6e3db06 431
c7df95d8
DM
4322016-01-14 David Malcolm <dmalcolm@redhat.com>
433
434 PR c++/68819
435 * c-indentation.c (get_visual_column): Add location_t param.
436 Handle the column number being zero by effectively disabling the
437 warning, with an "inform".
438 (should_warn_for_misleading_indentation): Add location_t argument
439 for all uses of get_visual_column.
440
21efdd80
PP
4412016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
442
443 PR c++/69029
444 * c-indentation.c (should_warn_for_misleading_indentation):
445 Don't warn about do-while statements.
446
7a127fa7
MS
4472016-01-07 Martin Sebor <msebor@redhat.com>
448
449 PR c/68966
450 * c-common.c (sync_resolve_size): Reject first argument when it's
451 a pointer to _Bool.
452
c589e975
DM
4532016-01-05 David Malcolm <dmalcolm@redhat.com>
454
455 PR c/69122
456 * c-indentation.c (get_visual_column): Remove default argument.
457 (should_warn_for_misleading_indentation): For the multiline case,
458 update call to get_visual_column for next_stmt_exploc so that it
459 captures the location of the first non-whitespace character in the
460 relevant line. Don't issue warnings if there is non-whitespace
461 before the next statement.
462
818ab71a
JJ
4632016-01-04 Jakub Jelinek <jakub@redhat.com>
464
465 Update copyright years.
466
745e411d
DM
4672015-12-21 David Malcolm <dmalcolm@redhat.com>
468
469 * c-common.c (binary_op_error): Convert first param from
470 location_t to rich_location * and use it when emitting an error.
471 * c-common.h (binary_op_error): Convert first param from
472 location_t to rich_location *.
473
de67c4c3
DM
4742015-12-16 David Malcolm <dmalcolm@redhat.com>
475
476 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
477 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
478
4a38b02b
IV
4792015-12-15 Ilya Verbin <ilya.verbin@intel.com>
480
481 * c-common.c (c_common_attribute_table): Handle "omp declare target
482 link" attribute.
483
54d62f51
JJ
4842015-12-14 Jakub Jelinek <jakub@redhat.com>
485
486 PR c/68833
487 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
488
8d4227c8
TB
4892014-12-12 Tobias Burnus <burnus@net-b.de>
490
491 PR fortran/68815
492 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
493 specifiers (%d, %i,%u and %c).
494
f6069ccc
DM
4952015-12-10 David Malcolm <dmalcolm@redhat.com>
496
497 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
498
63bbf46d
JJ
4992015-12-08 Jakub Jelinek <jakub@redhat.com>
500
501 PR c/48088
502 PR c/68657
503 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
504 * c-pragma.c (handle_pragma_diagnostic): Adjust
505 control_warning_option caller.
506
f79520bb
DM
5072015-12-07 David Malcolm <dmalcolm@redhat.com>
508
509 * c-common.c (c_cpp_error): Update for change to
510 rich_location::set_range.
511
b3d5bc62
JJ
5122015-12-04 Paolo Bonzini <bonzini@gnu.org>
513
514 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
515 shifting 1 out of the sign bit.
516
5172015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
518
519 * c-common.c (c_common_attribute_table[]): Update max arguments
520 count for "simd" attribute.
521 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
522
6eb4a537
JJ
5232015-12-03 Jakub Jelinek <jakub@redhat.com>
524
525 PR preprocessor/57580
526 * c-ppoutput.c (print): Change printed field to bool.
527 Move src_file last for smaller padding.
528 (init_pp_output): Set print.printed to false instead of 0.
529 (scan_translation_unit): Fix up formatting. Set print.printed
530 to true after printing something other than newline.
531 (scan_translation_unit_trad): Set print.printed to true instead of 1.
532 (maybe_print_line_1): Set print.printed to false instead of 0.
533 (print_line_1): Likewise.
534 (do_line_change): Set print.printed to true instead of 1.
535 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
536 dump_macro): Set print.printed to false after printing newline.
537
4250754e
JM
5382015-12-02 Jason Merrill <jason@redhat.com>
539
f479b43d
JM
540 * c-common.c (fold_for_warn): New.
541 (warn_logical_operator, warn_tautological_cmp)
542 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
543
4250754e
JM
544 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
545 (c_fully_fold_internal, decl_constant_value_for_optimization):
546 Move to c/c-fold.c.
547 * c-common.h: Don't declare decl_constant_value_for_optimization.
548
e9e32ee6
JM
5492015-12-02 Joseph Myers <joseph@codesourcery.com>
550
551 PR c/68162
552 * c-common.h (c_build_qualified_type): Add extra default
553 arguments.
554
37d5ad46
JB
5552015-12-01 Julian Brown <julian@codesourcery.com>
556 Cesar Philippidis <cesar@codesourcery.com>
557 James Norris <James_Norris@mentor.com>
558
559 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
560 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
561 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
562
f07862c7
EB
5632015-11-30 Eric Botcazou <ebotcazou@adacore.com>
564
565 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
566 (decl_sloc_common): Delete and move bulk of processing to...
567 (decl_sloc): ...here.
568 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
569 (dump_ada_double_name): Remove S parameter and compute the suffix.
570 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
571 element type and deal with an anonymous one.
572 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
573 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
574 and remove reference to QUAL_UNION_TYPE.
575 (dump_nested_types): Make 2 passes on the fields and move bulk to...
576 (dump_nested_type): ...here. New function extracted from above.
577 Generate a full declaration for anonymous element type of arrays.
578 (print_ada_declaration): Really skip anonymous declarations. Remove
579 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
580 Clean up processing of declarations of array types and objects.
581 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
582 Remove obsolete code and tidy up.
583
75c8aac3
JH
5842015-11-29 Jan Hubicka <hubicka@ucw.cz>
585
586 PR c/67581
587 * c-common.c (handle_transparent_union_attribute): Update
588 also type variants.
589
b58d3df2
ML
5902015-11-27 Martin Liska <mliska@suse.cz>
591
592 PR c++/68312
593 * array-notation-common.c (cilkplus_extract_an_triplets):
594 Release vector of vectors.
595 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
596
89a01fcf
EB
5972015-11-26 Eric Botcazou <ebotcazou@adacore.com>
598
599 PR c++/68527
600 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
601 (print_ada_struct_decl): Likewise.
602
cc5c5226
IZ
6032015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
604
605 PR c++/68001
606 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
607 * cilk.c (recognize_spawn): Determine location in a more precise
608 way.
609
269adb9d
JM
6102015-11-19 Jason Merrill <jason@redhat.com>
611
612 * c-common.c (shorten_compare): But look through macros from
613 system headers.
614
d0eccfcd
JM
6152015-11-18 Jason Merrill <jason@redhat.com>
616
617 * c-common.c (shorten_compare): Don't -Wtype-limits if the
618 non-constant operand comes from a macro.
619
3e44547c
JM
6202015-11-17 Jason Merrill <jason@redhat.com>
621
622 PR bootstrap/68346
623 * c-common.c (warn_tautological_cmp): Fold before checking for
624 constants.
625
0f62c7a0
MP
6262015-11-16 Marek Polacek <polacek@redhat.com>
627
628 PR c++/68362
629 * c-common.c (check_case_bounds): Fold low and high cases.
630
a868811e
MP
6312015-11-16 Marek Polacek <polacek@redhat.com>
632
633 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
634 * c-common.c (c_common_get_alias_set): Likewise.
635 (handle_visibility_attribute): Likewise.
636
fff77217
KY
6372015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
638
639 * c-common.c (handle_simd_attribute): New.
640 (struct attribute_spec): Add entry for "simd".
641 (handle_simd_attribute): New.
642
269e63b7
KT
6432015-11-13 Kai Tietz <ktietz70@googlemail.com>
644
645 * c-lex.c (interpret_float): Use fold_convert.
646
ebedc9a3
DM
6472015-11-13 David Malcolm <dmalcolm@redhat.com>
648
649 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
650 and store it on the result.
651 * c-opts.c (c_common_init_options): Set
652 global_dc->colorize_source_p.
653
6e232ba4
JN
6542015-11-12 James Norris <jnorris@codesourcery.com>
655 Joseph Myers <joseph@codesourcery.com>
656
657 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
658 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
659 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
660 PRAGMA_OACC_CLAUSE_LINK.
661
e78bede6
MP
6622015-11-11 Marek Polacek <polacek@redhat.com>
663
664 PR c/68107
665 PR c++/68266
666 * c-common.c (valid_array_size_p): New function.
667 * c-common.h (valid_array_size_p): Declare.
668
4ac93c7c
DH
6692015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
670
671 PR bootstrap/68271
672 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
673
69f293c9
AM
6742015-11-11 Andrew MacLeod <amacleod@redhat.com>
675
676 * array-notation-common.c: Remove unused header files.
677 * c-ada-spec.c: Likewise.
678 * c-cilkplus.c: Likewise.
679 * c-common.c: Likewise.
680 * c-cppbuiltin.c: Likewise.
681 * c-dump.c: Likewise.
682 * c-format.c: Likewise.
683 * c-gimplify.c: Likewise.
684 * c-indentation.c: Likewise.
685 * c-lex.c: Likewise.
686 * c-omp.c: Likewise.
687 * c-opts.c: Likewise.
688 * c-pch.c: Likewise.
689 * c-ppoutput.c: Likewise.
690 * c-pragma.c: Likewise.
691 * c-pretty-print.c: Likewise.
692 * c-semantics.c: Likewise.
693 * c-ubsan.c: Likewise.
694 * cilk.c: Likewise.
695 * stub-objc.c: Likewise.
696
3a40d81d
NS
6972015-11-09 Thomas Schwinge <thomas@codesourcery.com>
698 Cesar Philippidis <cesar@codesourcery.com>
699 James Norris <jnorris@codesourcery.com>
700 Julian Brown <julian@codesourcery.com>
701 Nathan Sidwell <nathan@codesourcery.com>
702
703 * c-pragma.c (oacc_pragmas): Add "routine".
704 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
705
ee45a32d
EB
7062015-11-08 Eric Botcazou <ebotcazou@adacore.com>
707
708 * c-common.c (c_common_attributes): Add scalar_storage_order.
709 (handle_scalar_storage_order_attribute): New function.
710 * c-pragma.c (global_sso): New variable.
711 (maybe_apply_pragma_scalar_storage_order): New function.
712 (handle_pragma_scalar_storage_order): Likewise.
713 (init_pragma): Register scalar_storage_order.
714 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
715 * c.opt (Wscalar-storage-order): New warning.
716 (fsso-struct=): New option.
717
eb11eb15
MS
7182015-11-08 Martin Sebor <msebor@redhat.com>
719
720 * c.opt (Wplacement-new): Add a period to the end of a sentence.
721
0aad0198
RS
7222015-11-07 Richard Sandiford <richard.sandiford@arm.com>
723
724 * c-common.c: Don't undef DEF_BUILTIN.
725
8a645150
DM
7262015-11-06 David Malcolm <dmalcolm@redhat.com>
727
728 * c-common.c (c_cpp_error): Convert parameter from location_t to
729 rich_location *. Eliminate the "column_override" parameter and
730 the call to diagnostic_override_column.
731 Update the "done_lexing" clause to set range 0
732 on the rich_location, rather than overwriting a location_t.
733 * c-common.h (c_cpp_error): Convert parameter from location_t to
734 rich_location *. Eliminate the "column_override" parameter.
735
7a5e4956
CP
7362015-11-05 Cesar Philippidis <cesar@codesourcery.com>
737 Thomas Schwinge <thomas@codesourcery.com>
738 James Norris <jnorris@codesourcery.com>
739
740 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
741 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
742 clauses with parallel and kernels and loops.
743 * c-pragma.h (enum pragma_omp_clause): Add entries for
744 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
745 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
746 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
747 INDEPENDENT,SEQ}.
748 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
749
e2f5cc96
MS
7502015-11-05 Martin Sebor <msebor@redhat.com>
751
752 PR c++/67942
753 * c.opt (-Wplacement-new): New option.
754
e01d41e5
JJ
7552015-11-05 Jakub Jelinek <jakub@redhat.com>
756
757 * c-common.h (c_finish_omp_atomic): Add TEST argument.
758 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
759 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
760 save_expr or create_tmp_var* if TEST is true.
761 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
762 Don't call add_stmt here.
763 (struct c_omp_check_loop_iv_data): New type.
764 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
765 c_omp_check_loop_iv_exprs): New functions.
766 (c_omp_split_clauses): Adjust for lastprivate being allowed on
767 distribute.
768 (c_omp_declare_simd_clauses_to_numbers): Change
769 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
770 (c_omp_declare_simd_clauses_to_decls): Similarly change those
771 from numbers to PARM_DECLs.
772
595278be
MM
7732015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
774
775 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
776 flag_checking.
777
c85158de
MS
7782015-11-03 Bernd Schmidt <bschmidt@redhat.com>
779
780 PR c++-common/67882
b3d5bc62
JJ
781 * c-common.h (fold_offsetof_1): Add argument.
782 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
783 offsetof expressions that reference elements past the end of
784 an array.
785
4bf9e5a8
TS
7862015-11-03 Thomas Schwinge <thomas@codesourcery.com>
787 Chung-Lin Tang <cltang@codesourcery.com>
788
789 * c-pragma.c (oacc_pragmas): Add "atomic".
790 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
791
3b1661a9
ES
7922015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
793
794 * c-common.c (handle_target_clones_attribute): New.
795 (c_common_attribute_table): Add handle_target_clones_attribute.
796 (handle_always_inline_attribute): Add check on target_clones attribute.
797 (handle_target_attribute): Ditto.
798
2adfab87
AM
7992015-10-29 Andrew MacLeod <amacleod@redhat.com>
800
801 * array-notation-common.c: Reorder #include's and remove duplicates.
802 * c-ada-spec.c: Likewise.
803 * c-cilkplus.c: Likewise.
804 * c-common.c: Likewise.
805 * c-cppbuiltin.c: Likewise.
806 * c-dump.c: Likewise.
807 * c-format.c: Likewise.
808 * c-gimplify.c: Likewise.
809 * c-indentation.c: Likewise.
810 * c-lex.c: Likewise.
811 * c-omp.c: Likewise.
812 * c-opts.c: Likewise.
813 * c-pch.c: Likewise.
814 * c-ppoutput.c: Likewise.
815 * c-pragma.c: Likewise.
816 * c-pretty-print.c: Likewise.
817 * c-semantics.c: Likewise.
818 * c-ubsan.c: Likewise.
819 * cilk.c: Likewise.
820 * stub-objc.c: Likewise.
821
d90ec4f2
JM
8222015-10-28 Jason Merrill <jason@redhat.com>
823
824 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
825
88bae6f4
TS
8262015-10-27 Thomas Schwinge <thomas@codesourcery.com>
827 James Norris <jnorris@codesourcery.com>
828 Cesar Philippidis <cesar@codesourcery.com>
829
830 PR c/64765
831 PR c/64880
832 * c-common.h (c_oacc_split_loop_clauses): Declare function.
833 * c-omp.c (c_oacc_split_loop_clauses): New function.
834
b1726d6c
MS
8352015-10-21 Martin Sebor <msebor@redhat.com>
836
837 PR driver/68043
838 * c.opt: End each sentence that describes an option with a period.
839
fa60eeb9
MP
8402015-10-20 Marek Polacek <polacek@redhat.com>
841
842 * array-notation-common.c (is_cilkplus_vector_p): Define.
843 * c-common.h (is_cilkplus_vector_p): Declare.
844
95979049
MP
8452015-10-20 Marek Polacek <polacek@redhat.com>
846
847 * c.opt (std=gnu++11): Do not describe as experimental.
848 (std=gnu++14): Likewise.
849
2a9fb712
JM
8502015-10-19 Jason Merrill <jason@redhat.com>
851
852 * c-cppbuiltin.c (c_cpp_builtins): Define
853 __cpp_nontype_template_args.
854
13b380a3
JM
8552015-10-19 Jason Merrill <jason@redhat.com>
856
857 * c-cppbuiltin.c (c_cpp_builtins): Define
858 __cpp_enumerator_attributes, __cpp_fold_expressions,
859 __cpp_unicode_characters.
860
d9a6bd32
JJ
8612015-10-13 Jakub Jelinek <jakub@redhat.com>
862 Aldy Hernandez <aldyh@redhat.com>
863
864 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
865 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
866 (c_define_builtins): Likewise.
867 * c-common.h (enum c_omp_clause_split): Add
868 C_OMP_CLAUSE_SPLIT_TASKLOOP.
869 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
870 (c_finish_omp_for): Add ORIG_DECLV argument.
871 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
872 201511 instead of 201307.
873 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
874 OMP_CRITICAL_CLAUSES to it.
875 (c_finish_omp_ordered): Add CLAUSES argument, set
876 OMP_ORDERED_CLAUSES to it.
877 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
878 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
879 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
880 constructs and new OpenMP 4.5 clauses. Clear
881 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
882 verification code.
883 * c-pragma.c (omp_pragmas_simd): Add taskloop.
884 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
885 (enum pragma_omp_clause): Add
886 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
887 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
888
624d31fe
RS
8892015-10-05 Richard Sandiford <richard.sandiford@arm.com>
890
891 * c-lex.c (interpret_float): Use real_equal instead of
892 REAL_VALUES_EQUAL.
893
b8fd7909
JM
8942015-10-04 Jason Merrill <jason@redhat.com>
895
896 Implement N4514, C++ Extensions for Transactional Memory.
897 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
898 (c_common_attribute_table): Add transaction_safe_dynamic.
899 transaction_safe now affects type identity.
900 (handle_tm_attribute): Handle transaction_safe_dynamic.
901 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
902 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
903 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
904 (D_TRANSMEM): New.
905 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
906 * c-pretty-print.c (pp_c_attributes_display): Don't print
907 transaction_safe in C++.
908
12651878
MP
9092015-10-02 Marek Polacek <polacek@redhat.com>
910
911 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
912
3e3b8d63
MP
9132015-10-02 Marek Polacek <polacek@redhat.com>
914
915 PR c/64249
916 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
917 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
918 * c.opt (Wduplicated-cond): New option.
919
0d1a8f75
JM
9202015-10-01 Joseph Myers <joseph@codesourcery.com>
921
922 * c.opt (std=c11): Do not describe as experimental.
923 (std=gnu11): Likewise.
924 (std=iso9899:2011): Likewise.
925
3e32ee19
NS
9262015-09-28 Nathan Sidwell <nathan@codesourcery.com>
927
928 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
929 (DEF_FUNCTION_TYPE_VAR_11): Delete.
930
974348ee
MP
9312015-09-25 Marek Polacek <polacek@redhat.com>
932
933 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
934 (ubsan_instrument_shift): Likewise.
935
15dbc1a6
MP
9362015-09-25 Marek Polacek <polacek@redhat.com>
937
938 PR sanitizer/64906
939 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
940
6b95d7cc
PP
9412015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
942
943 * c-indentation.c (should_warn_for_misleading_indentation):
944 Compare next_stmt_vis_column with guard_line_first_nws instead
945 of with guard_line_vis_column.
946
c1822f9c
MLI
9472015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
948
949 PR c/49654
950 PR c/49655
951 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
952 options and options not valid for the current language.
953
d5398058
PP
9542015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
955
956 * c-indentation.c (should_warn_for_misleading_indentation):
957 Float out and consolidate the calls to get_visual_column that
958 are passed guard_exploc as an argument. Compare
959 next_stmt_vis_column with guard_line_first_nws instead of with
960 body_line_first_nws.
961
6b333269
NS
9622015-09-22 Nathan Sidwell <nathan@codesourcery.com>
963
964 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
965 Wnamespaces): New C++ warnings.
966
a75f1574
JM
9672015-09-22 Jason Merrill <jason@redhat.com>
968
969 * c-common.h (abi_compat_version_crosses): New.
970 (warn_abi_version): Declare.
971 * c-common.c: Define it.
972 * c-opts.c (c_common_post_options): Handle it.
973 flag_abi_compat_version defaults to 8.
974
bdaaa8b7
VV
9752015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
976
977 Complete the implementation of N4230, Nested namespace definition.
978 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
979 __cpp_nested_namespace_definitions.
980
eaa797e8
MLI
9812015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
982
983 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
984
c4914de6
MLI
9852015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
986
987 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
988 when warning.
989 * c-pragma.h (pragma_lex): Add optional loc argument.
990
fcb87c50
MM
9912015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
992
993 * c-format.c (check_format_arg): Adjust to use common block size in all
994 object pools.
995
31bdd08a
DM
9962015-09-15 David Malcolm <dmalcolm@redhat.com>
997
998 * c-format.c (location_from_offset): Update for change in
999 signature of location_get_source_line.
1000 * c-indentation.c (get_visual_column): Likewise.
1001 (line_contains_hash_if): Likewise.
1002
aa9f4b4c
MP
10032015-09-14 Marek Polacek <polacek@redhat.com>
1004
1005 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1006 setting various warnings.
1007
aa256c4a
MP
10082015-09-14 Marek Polacek <polacek@redhat.com>
1009
1010 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1011 a negative value.
1012
0f876f22
MW
10132015-09-11 Mark Wielaard <mjw@redhat.com>
1014
1015 PR c/28901
1016 * c.opt (Wunused-variable): Option from common.opt.
1017 (Wunused-const-variable): New option.
1018
273aa49e
PC
10192015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1020
1021 PR c++/53184
1022 * c.opt ([Wsubobject-linkage]): Add.
1023
1807ffc1
MS
10242015-09-03 Martin Sebor <msebor@redhat.com>
1025
1026 PR c/66516
1027 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1028 functions.
1029 * c-common.c (reject_gcc_builtin): Define.
1030
38942840
BI
10312015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1032
1033 PR middle-end/60586
1034 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1035 prototype.
1036 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1037 cilk_gimplify_call_params_in_spawned_fn.
1038 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1039 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1040 unwrapping.
1041
c316b5e4
MP
10422015-08-25 Marek Polacek <polacek@redhat.com>
1043
1044 PR middle-end/67330
1045 * c-common.c (handle_weak_attribute): Don't check whether the
1046 visibility can be changed here.
1047
584a7c46
MLI
10482015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1049
1050 * c-lex.c (c_lex_with_flags): Use explicit locations.
1051
a79683d5
TS
10522015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1053
1054 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1055 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1056
61717a45
FXC
10572015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1058
1059 PR middle-end/36757
1060 * c-common.c (check_builtin_function_arguments): Add check
1061 for BUILT_IN_SIGNBIT argument.
1062
329524f5
PC
10632015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1064
1065 PR c++/67160
1066 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1067 in c++1z mode.
1068
4ee55665
MP
10692015-08-17 Marek Polacek <polacek@redhat.com>
1070
1071 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1072 with whitespaces before qualifier names.
1073
b893e375
MP
10742015-08-12 Marek Polacek <polacek@redhat.com>
1075
1076 PR c++/55095
1077 * c-common.c (maybe_warn_shift_overflow): Properly handle
1078 left-shifting 1 into the sign bit.
1079
c2d89095
MLI
10802015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1081
1082 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1083
971e17ff
AS
10842015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1085 Braden Obrzut <admin@maniacsvault.net>
1086 Jason Merrill <jason@redhat.com>
1087
1088 Add C++ Concepts TS support.
1089 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1090 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1091 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1092 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1093 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1094 * c.opt (fconcepts): New.
1095
b3d5bc62
JJ
10962015-08-02 Martin Sebor <msebor@redhat.com>
1097
1098 * c.opt (-Wframe-address): New warning option.
1099
8ebca419
PP
11002015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1101
1102 * c-indentation.c (should_warn_for_misleading_indentation):
1103 Improve heuristics.
1104
1a1e101f
PP
11052015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1106
1107 * c-indentation.c (get_visual_column): Add parameter first_nws,
1108 use it. Update comment documenting the function.
1109 (is_first_nonwhitespace_on_line): Remove.
1110 (should_warn_for_misleading_indentation): Replace usage of
1111 of is_first_nonwhitespace_on_line with get_visual_column.
1112
992118a1
PP
11132015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1114
1115 * c-indentation.h (struct token_indent_info): Define.
1116 (get_token_indent_info): Define.
1117 (warn_for_misleading_information): Declare.
1118 * c-common.h (warn_for_misleading_information): Remove.
1119 * c-identation.c (warn_for_misleading_indentation):
1120 Change declaration to take three token_indent_infos. Adjust
1121 accordingly.
1122 * c-identation.c (should_warn_for_misleading_indentation):
1123 Likewise. Bail out early if the body is a compound statement.
1124 (guard_tinfo_to_string): Define.
1125
e8fa3817
JM
11262015-07-30 Jason Merrill <jason@redhat.com>
1127
1128 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1129 '*' for reference decay.
1130
173864e8
MP
11312015-07-30 Marek Polacek <polacek@redhat.com>
1132
1133 * c-common.c (warn_tautological_cmp): Bail for float types.
1134
f2afe6dd
MP
11352015-07-27 Marek Polacek <polacek@redhat.com>
1136
1137 PR bootstrap/67030
1138 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1139
05b28fd6
MP
11402015-07-27 Marek Polacek <polacek@redhat.com>
1141
1142 PR c++/66555
1143 PR c/54979
1144 * c-common.c (find_array_ref_with_const_idx_r): New function.
1145 (warn_tautological_cmp): New function.
1146 * c-common.h (warn_tautological_cmp): Declare.
1147 * c.opt (Wtautological-compare): New option.
1148
5a5062b8
MP
11492015-07-23 Marek Polacek <polacek@redhat.com>
1150
1151 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1152 (ubsan_instrument_shift): Likewise.
1153
dc891fe7
MP
11542015-07-23 Marek Polacek <polacek@redhat.com>
1155
1156 PR sanitizer/66908
1157 * c-ubsan.c: Include gimplify.h.
1158 (ubsan_instrument_division): Unshare OP0 and OP1.
1159 (ubsan_instrument_shift): Likewise.
1160
451b5e48
MP
11612015-07-20 Marek Polacek <polacek@redhat.com>
1162 Richard Sandiford <richard.sandiford@arm.com>
1163
1164 PR c++/55095
1165 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1166 Use EXPR_LOC_OR_LOC.
1167 (maybe_warn_shift_overflow): New function.
1168 * c-common.h (maybe_warn_shift_overflow): Declare.
1169 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1170 * c.opt (Wshift-overflow): New option.
1171
fb0b2914
ML
11722015-07-16 Martin Liska <mliska@suse.cz>
1173
1174 * c-format.c (static void check_format_info_main): Use
1175 object_allocator instead of pool_allocator.
1176 (check_format_arg): Likewise.
1177 (check_format_info_main): Likewise.
1178
903f5c23
AM
11792015-07-15 Andrew MacLeod <amacleod@redhat.com>
1180
1181 * c-opts.c: Remove multiline #include comment.
1182
026c3cfd
AH
11832015-07-12 Aldy Hernandez <aldyh@redhat.com>
1184
1185 * c-common.c: Fix double word typos.
1186
bb49ee66
EB
11872015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1188
1189 * c-ada-spec.h (cpp_operation): Revert latest change.
1190 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1191 constructors and destructors.
1192
1916bcb5
AM
11932015-07-09 Andrew MacLeod <amacleod@redhat.com>
1194
1195 * c-common.h: Adjust includes for flags.h changes.
1196 * stub-objc.c: Likewise.
026c3cfd 1197
a9dcd529
EB
11982015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1199
1200 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1201 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1202
b03b462f
JJ
12032015-07-08 Jakub Jelinek <jakub@redhat.com>
1204
1205 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1206 are to be removed, return NULL rather than original clauses list.
1207
c7131fb2
AM
12082015-07-07 Andrew MacLeod <amacleod@redhat.com>
1209
1210 * array-notation-common.c: Adjust includes.
1211 * c-ada-spec.c: Likewise.
1212 * c-cilkplus.c: Likewise.
1213 * c-common.h: Likewise.
1214 * c-cppbuiltin.c: Likewise.
1215 * c-dump.c: Likewise.
1216 * c-format.c: Likewise.
1217 * c-gimplify.c: Likewise.
1218 * c-indentation.c: Likewise.
1219 * c-lex.c: Likewise.
1220 * c-omp.c: Likewise.
1221 * c-opts.c: Likewise.
1222 * c-pch.c: Likewise.
1223 * c-ppoutput.c: Likewise.
1224 * c-pragma.c: Likewise.
1225 * c-pretty-print.c: Likewise.
1226 * c-semantics.c: Likewise.
1227 * c-ubsan.c: Likewise.
1228 * cilk.c: Likewise.
1229 * stub-objc.c: Likewise.
1230
2a7fb83f
EB
12312015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1232
1233 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1234 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1235
a03c9bf1
JM
12362015-07-01 Jason Merrill <jason@redhat.com>
1237
36a85135
JM
1238 * c-common.h (D_CXX11): Rename from D_CXX0X.
1239 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1240 * c-common.c: Adjust.
1241
e7fa68d5
JM
1242 * c-opts.c (c_common_post_options): Default to C++14.
1243
a03c9bf1
JM
1244 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1245
fe95b036
ESR
12462015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1247
1248 Implement N4197 - Adding u8 character literals
b3d5bc62 1249 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 1250 CPP_CHAR.
b3d5bc62 1251 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 1252 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 1253 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
1254 and CPP_UTF8CHAR tokens.
1255 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 1256
da2e71c9
MLI
12572015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1258
1259 PR fortran/66605
1260 * c-common.c (do_warn_unused_parameter): Move here.
1261 * c-common.h (do_warn_unused_parameter): Declare.
1262
b155cfd9
MP
12632015-06-29 Marek Polacek <polacek@redhat.com>
1264
1265 PR c/66322
1266 * c-common.c (check_case_bounds): Add bool * parameter. Set
1267 OUTSIDE_RANGE_P.
1268 (c_add_case_label): Add bool * parameter. Pass it down to
1269 check_case_bounds.
1270 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1271 warning here.
1272 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1273 declarations.
1274
31521951
MP
12752015-06-27 Marek Polacek <polacek@redhat.com>
1276
1277 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1278 or VECTOR_INTEGER_TYPE_P throughout.
1279 * c-gimplify.c: Likewise.
1280
22d03525
MP
12812015-06-26 Marek Polacek <polacek@redhat.com>
1282
1283 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1284 * c-common.c (c_fully_fold_internal): Likewise.
1285 (c_alignof_expr): Likewise.
1286 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1287 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1288 * cilk.c (create_parm_list): Likewise.
22d03525 1289
af05e6e5
MP
12902015-06-26 Marek Polacek <polacek@redhat.com>
1291
1292 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1293
f0889939
AM
12942015-06-25 Andrew MacLeod <amacleod@redhat.com>
1295
1296 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1297 * c-gimplify.c: Likewise.
1298 * c-pragma.c: Likewise.
1299 * c-ubsan.c: Likewise.
1300 * cilk.c: Likewise.
1301
ca752f39
RS
13022015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1303
1304 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1305 ggc_hasher.
1306
16a16ec7
AM
13072015-06-25 Andrew MacLeod <amacleod@redhat.com>
1308
1309 * cilk.c: Move calls.h after tm.h in the include chain.
1310
0ae9bd27
MP
13112015-06-25 Marek Polacek <polacek@redhat.com>
1312
1313 * array-notation-common.c: Use VAR_P throughout.
1314 * c-ada-spec.c: Likewise.
1315 * c-common.c: Likewise.
1316 * c-format.c: Likewise.
1317 * c-gimplify.c: Likewise.
1318 * c-omp.c: Likewise.
1319 * c-pragma.c: Likewise.
1320 * c-pretty-print.c: Likewise.
1321 * cilk.c: Likewise.
1322
62f9079a
MP
13232015-06-25 Marek Polacek <polacek@redhat.com>
1324
1325 * cilk.c (extract_free_variables): Use is_global_var.
1326
0fa16060
RS
13272015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1328
1329 * c-common.c: Don't include target-def.h.
1330
a68ae2e1
MP
13312015-06-23 Marek Polacek <polacek@redhat.com>
1332
1333 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1334 when comparing INTEGER_CSTs.
1335
c6a2f2d9
PMR
13362015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1337
1338 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1339 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1340 (dump_ada_template): Skip partially specialized types.
1341
6b4db501
MM
13422015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1343
1344 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1345 swapping.
1346
abb226c9
AM
13472015-06-17 Andrew MacLeod <amacleod@redhat.com>
1348
1349 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1350 * c-ada-spec.c: Likewise.
1351 * c-cilkplus.c: Likewise.
1352 * c-common.c: Likewise.
1353 * c-common.h: Likewise.
1354 * c-cppbuiltin.c: Likewise.
1355 * c-dump.c: Likewise.
1356 * c-format.c: Likewise.
1357 * c-gimplify.c: Likewise.
1358 * c-indentation.c: Likewise.
1359 * c-lex.c: Likewise.
1360 * c-omp.c: Likewise.
1361 * c-opts.c: Likewise.
1362 * c-pch.c: Likewise.
1363 * c-ppoutput.c: Likewise.
1364 * c-pragma.c: Likewise.
1365 * c-pretty-print.c: Likewise.
1366 * c-semantics.c: Likewise.
1367 * c-ubsan.c: Likewise.
1368 * cilk.c: Likewise.
1369 * stub-objc.c: Likewise.
1370
076fecad
PP
13712015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1372
1373 PR c++/65168
1374 * c-common.c (c_common_truthvalue_conversion): Warn when
1375 converting an address of a reference to a truth value.
1376
13fdf2e2
AM
13772015-06-08 Andrew MacLeod <amacleod@redhat.com>
1378
1379 * array-notation-common.c : Adjust include files.
1380 * c-ada-spec.c : Likewise.
1381 * c-cilkplus.c : Likewise.
1382 * c-common.c : Likewise.
1383 * c-common.h : Likewise.
1384 * c-cppbuiltin.c : Likewise.
1385 * c-dump.c : Likewise.
1386 * c-format.c : Likewise.
1387 * c-gimplify.c : Likewise.
1388 * c-indentation.c : Likewise.
1389 * c-lex.c : Likewise.
1390 * c-omp.c : Likewise.
1391 * c-opts.c : Likewise.
1392 * c-pch.c : Likewise.
1393 * c-ppoutput.c : Likewise.
1394 * c-pragma.c : Likewise.
1395 * c-pretty-print.c : Likewise.
1396 * c-semantics.c : Likewise.
1397 * c-ubsan.c : Likewise.
1398 * cilk.c : Likewise.
1399 * stub-objc.c : Likewise.
1400
a1661b90
MP
14012015-06-08 Marek Polacek <polacek@redhat.com>
1402
1403 PR c/66415
1404 * c-format.c (location_from_offset): Return LOC if LINE is null.
1405
d7438551
AH
14062015-06-05 Aldy Hernandez <aldyh@redhat.com>
1407
1408 * c-common.h (c_parse_final_cleanups): New prototype.
1409 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1410
b3d5bc62
JJ
14112015-06-04 Sriraman Tallam <tmsriram@google.com>
1412
1413 * c-common.c (noplt): New attribute.
1414 (handle_noplt_attribute): New handler.
1415
ecb9f223
AM
14162015-06-04 Andrew MacLeod <amacleod@redhat.com>
1417
1418 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1419 * c-ada-spec.c: Likewise.
1420 * c-cilkplus.c: Likewise.
1421 * c-common.c: Likewise.
1422 * c-common.h: Likewise.
1423 * c-cppbuiltin.c: Likewise.
1424 * c-dump.c: Likewise.
1425 * c-format.c: Likewise.
1426 * c-gimplify.c: Likewise.
1427 * c-indentation.c: Likewise.
1428 * c-lex.c: Likewise.
1429 * c-omp.c: Likewise.
1430 * c-opts.c: Likewise.
1431 * c-pch.c: Likewise.
1432 * c-ppoutput.c: Likewise.
1433 * c-pragma.c: Likewise.
1434 * c-pretty-print.c: Likewise.
1435 * c-semantics.c: Likewise.
1436 * c-ubsan.c: Likewise.
1437 * cilk.c: Likewise.
1438 * stub-objc.c: Likewise.
1439
6ac48155
DM
14402015-06-02 David Malcolm <dmalcolm@redhat.com>
1441
1442 PR c/66220:
1443 * c-indentation.c (should_warn_for_misleading_indentation): Use
1444 expand_location rather than expand_location_to_spelling_point.
1445 Don't warn if the guarding statement is more indented than the
1446 next/body stmts.
1447
773ce42e
DM
14482015-06-02 David Malcolm <dmalcolm@redhat.com>
1449
1450 * c-indentation.c (warn_for_misleading_indentation): Bail out
1451 immediately if -Wmisleading-indentation isn't enabled.
1452
4fef8379
ML
14532015-06-01 Martin Liska <mliska@suse.cz>
1454
1455 * c-format.c (check_format_arg):Use new type-based pool allocator.
1456 (check_format_info_main) Likewise.
1457
1edfb384
EB
14582015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1459
1460 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1461 (has_nontrivial_methods): Likewise.
1462
9677ef52
MP
14632015-05-25 Marek Polacek <polacek@redhat.com>
1464
1465 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1466
fd5c817a
MP
14672015-05-22 Marek Polacek <polacek@redhat.com>
1468
1469 PR c/47043
1470 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1471
a2f45fe6 14722015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1473
1474 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1475 STACK_GROWS_DOWNWARD.
1476
a2f45fe6 14772015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1478
1479 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1480 STACK_GROWS_DOWNWARD rather than if it is defined.
1481
0fee2ac2 14822015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1483
0fee2ac2
MLI
1484 PR c/52952
1485 * c-format.c (location_column_from_byte_offset): New.
1486 (location_from_offset): New.
1487 (struct format_wanted_type): Add offset_loc field.
1488 (check_format_info): Move handling of location for extra arguments
1489 closer to the point of warning.
1490 (check_format_info_main): Pass the result of location_from_offset
1491 to warning_at.
1492 (format_type_warning): Pass the result of location_from_offset
1493 to warning_at.
1494
cf4ef6f7
MP
14952015-05-20 Marek Polacek <polacek@redhat.com>
1496
1497 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1498
3a65ee74
MP
14992015-05-20 Marek Polacek <polacek@redhat.com>
1500
1501 * c-ada-spec.c (dump_sloc): Use DECL_P.
1502
21b634ae
MP
15032015-05-20 Marek Polacek <polacek@redhat.com>
1504
1505 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1506 * c-common.c: Likewise.
1507
0e50b624
DM
15082015-05-19 David Malcolm <dmalcolm@redhat.com>
1509
1510 * c-common.h (fe_file_change): Strengthen param from
1511 const line_map * to const line_map_ordinary *.
1512 (pp_file_change): Likewise.
1513 * c-lex.c (fe_file_change): Likewise.
1514 (cb_define): Use linemap_check_ordinary when invoking
1515 SOURCE_LINE.
1516 (cb_undef): Likewise.
1517 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1518 invoking cb_file_change.
1519 (c_finish_options): Likewise.
1520 (push_command_line_include): Likewise.
1521 (cb_file_change): Strengthen param "new_map" from
1522 const line_map * to const line_map_ordinary *.
1523 * c-ppoutput.c (cb_define): Likewise for local "map".
1524 (pp_file_change): Likewise for param "map" and local "from".
1525
fab27f52
MM
15262015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1527
1528 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1529
2fe1d762
TV
15302015-05-18 Tom de Vries <tom@codesourcery.com>
1531
1532 * c-common.c (build_va_arg_1): New function.
1533 (build_va_arg): Add address operator to va_list operand if necessary.
1534
7a37fa90
MM
15352015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1536
1537 PR c/48956
1538 * c-common.c (int_safely_convertible_to_real_p): Define.
1539 (unsafe_conversion_p): Check conversions involving complex types.
1540 (conversion_warning): Add new warning message for conversions which
1541 discard imaginary component.
1542 * c-common.h: (enum conversion_safety): Add new enumerator for such
1543 conversions.
1544
3aa3c9fc
MP
15452015-05-14 Marek Polacek <polacek@redhat.com>
1546
1547 PR c/66066
1548 PR c/66127
1549 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1550 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1551 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1552 use it. If FOR_INT_CONST, require that all evaluated operands be
1553 INTEGER_CSTs.
1554
c3388e62
DM
15552015-05-12 David Malcolm <dmalcolm@redhat.com>
1556
1557 * c-common.h (warn_for_misleading_indentation): New prototype.
1558 * c-indentation.c: New file.
1559 * c.opt (Wmisleading-indentation): New option.
1560
c7b38fd5
TV
15612015-05-12 Tom de Vries <tom@codesourcery.com>
1562
1563 PR tree-optimization/66010
1564 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1565
381bf11e
JM
15662015-05-09 Jason Merrill <jason@redhat.com>
1567
edff0c06
JM
1568 * c-opts.c (c_common_post_options): Also clear
1569 cpp_opts->cpp_warn_cxx11_compat.
1570
129211bc
JM
1571 * c-common.h (enum cxx_dialect): Add cxx_unset.
1572 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1573 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1574
381bf11e
JM
1575 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1576 (std=gnu++0x): Mark as Undocumented.
1577 (std=gnu++1y): Add deprecated message.
1578
fe191308
JM
15792015-05-08 Jason Merrill <jason@redhat.com>
1580
765189ff
JM
1581 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1582 * c-opts.c: Adjust.
1583
fe191308
JM
1584 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1585
755e528f
MP
15862015-05-08 Marek Polacek <polacek@redhat.com>
1587
1588 PR c/64918
1589 * c.opt (Woverride-init-side-effects): New option.
1590
0173bd2a
MP
15912015-05-07 Marek Polacek <polacek@redhat.com>
1592
1593 PR c/65179
1594 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1595 negative value.
1596 * c.opt (Wshift-negative-value): New option.
1597 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1598 when -Wextra and C99/C++11 mode.
1599
e0f0d3b9
MP
16002015-05-07 Marek Polacek <polacek@redhat.com>
1601 Martin Uecker <uecker@eecs.berkeley.edu>
1602
1603 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1604 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1605
8243e2a9
JM
16062015-05-05 Jason Merrill <jason@redhat.com>
1607
1608 * c.opt (Wterminate): New.
1609
577cd070
MP
16102015-04-30 Marek Polacek <polacek@redhat.com>
1611
1612 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1613 require that the non-constant be of a boolean type.
1614
0373796b
JT
16152015-04-29 Josh Triplett <josh@joshtriplett.org>
1616
e0f0d3b9
MP
1617 * c-common.c (handle_section_attribute): Refactor to reduce
1618 nesting and distinguish between error cases.
0373796b 1619
716c0ba6
MP
16202015-04-29 Marek Polacek <polacek@redhat.com>
1621
1622 PR c/64610
1623 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1624 with 0/1.
1625
8848828b
JJ
16262015-04-29 Jakub Jelinek <jakub@redhat.com>
1627
1628 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1629 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1630 HOST_BITS_PER_WIDE_INT.
1631
ecd0e562
TV
16322015-04-28 Tom de Vries <tom@codesourcery.com>
1633
1634 PR tree-optimization/65887
1635 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1636
2a877204 16372015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 1638 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
1639
1640 * c-ada-spec.c (in_function): Delete.
1641 (dump_generic_ada_node): Do not change in_function and remove the
1642 redundant code dealing with it.
1643 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1644 (print_ada_methods): Output the static member functions in a nested
1645 package after the regular methods as well as associated renamings.
1646
4853031e
MP
16472015-04-24 Marek Polacek <polacek@redhat.com>
1648
1649 PR c/65830
1650 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1651 and OPT_Wshift_count_overflow.
1652
8c2b7f79
MP
1653 PR c/63357
1654 * c-common.c (warn_logical_operator): Warn if the operands have the
1655 same expressions.
1656
b8787813
MP
16572015-04-24 Marek Polacek <polacek@redhat.com>
1658
1659 PR c/61534
1660 * c-common.c (warn_logical_operator): Bail if either operand comes
1661 from a macro expansion.
1662
8fba1830
BRF
16632015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1664
1665 PR target/55143
1666 * c-common.c (c_default_pointer_mode): Add definition.
1667 * c-common.h (c_default_pointer_mode): Add declaration.
1668
17958621
JJ
16692015-03-11 Jakub Jelinek <jakub@redhat.com>
1670
1671 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1672 on record_builtin_type argument.
1673
7ccb1a11
JJ
16742015-03-10 Jakub Jelinek <jakub@redhat.com>
1675
1676 PR c/65120
1677 * c-common.c (warn_logical_not_parentheses): Don't warn for
1678 !x == 0 or !x != 0.
1679
04fd785e
MP
16802015-03-07 Marek Polacek <polacek@redhat.com>
1681
1682 PR sanitizer/65280
1683 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1684 before trying to figure out whether we have a flexible array member.
1685
a4e26206
EB
16862015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1687 Jonathan Wakely <jwakely.gcc@gmail.com>
1688
1689 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1690
0d2489f4
EB
16912015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1692
1693 PR ada/65319
1694 * c-ada-spec.c (print_destructor): Remove obsolete code.
1695
83ed54d7
EB
16962015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1697
1698 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1699 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1700 DECL_TEMPLATE_RESULT emulations.
1701 (dump_ada_template)): Add guard for TYPE_METHODS.
1702
7631f0e2
MP
17032015-02-27 Marek Polacek <polacek@redhat.com>
1704
1705 PR c/65040
1706 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1707
d1783ae5
KT
17082015-02-27 Kai Tietz <ktietz@redhat.com>
1709
1710 PR c/35330
1711 * c-pragma.c (handle_pragma_weak): Do not try to create
1712 weak/alias of declarations not being function, or variable
1713 declarations.
1714
56a9f6bc
TS
17152015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1716
1717 PR libgomp/64625
1718 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1719 Remove macros.
1720 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1721
3d5cb23d
MP
17222015-02-16 Marek Polacek <polacek@redhat.com>
1723
1724 PR c/65066
1725 * c-format.c (check_format_types): Handle null param.
1726
fa008882
MP
17272015-02-13 Marek Polacek <polacek@redhat.com>
1728
1729 PR c/65040
1730 * c-format.c (check_format_types): Don't warn about different
1731 signedness if the original value is in the range of WANTED_TYPE.
1732
785f21af
JM
17332015-02-12 Jason Merrill <jason@redhat.com>
1734
1735 PR c++/64956
1736 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1737 to the current highest version.
1738 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1739
4886ec8e
JJ
17402015-02-04 Jakub Jelinek <jakub@redhat.com>
1741
1742 PR c/64824
1743 PR c/64868
1744 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1745 instead of RDIV_EXPR. Use build_binary_op instead of
1746 build2_loc.
1747
40fecdd6
JM
17482015-01-30 Joseph Myers <joseph@codesourcery.com>
1749
1750 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1751 to pass input_location as first argument.
1752
a0c88d06
TV
17532015-01-23 Tom de Vries <tom@codesourcery.com>
1754
1755 PR libgomp/64672
1756 * c.opt (fopenacc): Mark as LTO option.
1757
1506ae0e
TV
17582015-01-23 Tom de Vries <tom@codesourcery.com>
1759
1760 PR libgomp/64707
1761 * c.opt (fopenmp): Mark as LTO option.
1762
31be63ab
JJ
17632015-01-21 Jakub Jelinek <jakub@redhat.com>
1764
1765 PR c/63307
b1726d6c 1766 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
1767 (compare_decls): Fix up formatting.
1768
17692015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1770
1771 PR c/63307
1772 * cilk.c: Include vec.h.
1773 (struct cilk_decls): New structure.
1774 (wrapper_parm_cb): Split this function to...
1775 (fill_decls_vec): ...this...
1776 (create_parm_list): ...and this.
1777 (compare_decls): New function.
1778 (for_local_cb): Remove.
1779 (wrapper_local_cb): Ditto.
1780 (build_wrapper_type): For now first traverse and fill vector of
1781 declarations then sort it and then deal with sorted vector.
1782 (cilk_outline): Ditto.
1783 (declare_one_free_variable): Ditto.
1784
6875457f
JM
17852015-01-21 Jason Merrill <jason@redhat.com>
1786
1787 PR c++/64629
1788 * c-format.c (check_format_arg): Call decl_constant_value.
1789
185c9e56
ML
17902015-01-19 Martin Liska <mliska@suse.cz>
1791
1792 * c-common.c (handle_noicf_attribute): New function.
1793
41dbbb37
TS
17942015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1795 Bernd Schmidt <bernds@codesourcery.com>
1796 James Norris <jnorris@codesourcery.com>
1797 Cesar Philippidis <cesar@codesourcery.com>
1798 Ilmir Usmanov <i.usmanov@samsung.com>
1799 Jakub Jelinek <jakub@redhat.com>
1800
1801 * c.opt (fopenacc): New option.
1802 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1803 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1804 New macros.
1805 * c-common.h (c_finish_oacc_wait): New prototype.
1806 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1807 (c_finish_oacc_wait): New function.
1808 * c-pragma.c (oacc_pragmas): New variable.
1809 (c_pp_lookup_pragma, init_pragma): Handle it.
1810 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1811 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1812 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1813 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1814 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1815 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1816 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1817 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1818 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1819 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1820 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1821 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1822 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1823 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1824 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1825 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1826 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1827 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1828 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1829 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1830 PRAGMA_OACC_CLAUSE_WORKER.
1831
5434dc07
MD
18322015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1833
1834 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1835 for the new option fstack-protector_explicit.
1836 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1837 (handle_stack_protect_attribute): New function.
1838
de1b5c17
MU
18392015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1840
1841 * c.opt: New option -Warray-bounds=.
1842
adfac8df
JJ
18432015-01-09 Michael Collison <michael.collison@linaro.org>
1844
1845 * array-notation-common.c: Include hash-set.h, machmode.h,
1846 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1847 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1848 * c-ada-spec.c: Ditto.
1849 * c-cilkplus.c: Ditto.
1850 * c-common.c: Include input.h due to flattening of tree.h.
1851 Define macro GCC_C_COMMON_C.
1852 * c-common.h: Flatten tree.h header files into c-common.h.
1853 Remove include of tree-core.h.
1854 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1855 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1856 fold-const.h, wide-int.h, and inchash.h due to
1857 flattening of tree.h.
1858 * c-dump.c: Ditto.
1859 * c-format.c: Flatten tree.h header files into c-common.h.
1860 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1861 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1862 fold-const.h, wide-int.h, and inchash.h due to
1863 flattening of tree.h.
1864 * c-dump.c: Include hash-set.h, machmode.h,
1865 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1866 fold-const.h, wide-int.h, and inchash.h due to
1867 flattening of tree.h.
1868 * c-format.c: Include hash-set.h, machmode.h,
1869 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1870 fold-const.h, wide-int.h, inchash.h and real.h due to
1871 flattening of tree.h.
1872 * c-gimplify.c: Include hash-set.h, machmode.h,
1873 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1874 fold-const.h, wide-int.h, and inchash.h due to
1875 flattening of tree.h.
1876 * cilk.c: Ditto.
1877 * c-lex.c: Ditto.
1878 * c-omp.c: Ditto.
1879 * c-opts.c: Ditto.
1880 * c-pch.c: Ditto.
1881 * c-ppoutput.c: Ditto.
1882 * c-pragma.c: Ditto.
1883 * c-pretty-print.c: Ditto.
1884 * c-semantics.c: Ditto.
1885 * c-ubsan.c: Ditto.
1886 * stub-objc.c: Ditto.
1887
f5481fc4
JM
18882015-01-08 Jason Merrill <jason@redhat.com>
1889
1890 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1891 do_ubsan_in_current_function.
1892 (ubsan_maybe_instrument_reference_or_call): Likewise.
1893 * c-ubsan.h: Declare it.
1894
de35aa66
MS
18952015-01-08 Mike Stump <mikestump@comcast.net>
1896
1897 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1898
4a9a42ab
MP
18992015-01-07 Marek Polacek <polacek@redhat.com>
1900
1901 PR c/64440
1902 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1903 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1904
2f42e5de
TS
19052015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1906
1907 PR c++/31397
1908 * c.opt (Wsuggest-override): New option.
1909
5624e564
JJ
19102015-01-05 Jakub Jelinek <jakub@redhat.com>
1911
1912 Update copyright years.
1913
5bd012f8
MP
19142015-01-05 Marek Polacek <polacek@redhat.com>
1915
1916 PR c/64423
1917 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1918 parameter. Use it.
1919 * c-common.h (warn_array_subscript_with_type_char): Update
1920 declaration.
1921
a7fa8d18
ESR
19222014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1923
1924 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1925 Control macro with flag_sized_deallocation.
1926
768952be
MU
19272014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1928
1929 * c.opt (Wdiscarded-array-qualifiers): New option.
1930
1f8d3e84
JJ
19312014-12-19 Jakub Jelinek <jakub@redhat.com>
1932
1933 PR preprocessor/63831
1934 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1935 and __has_cpp_attribute here.
1936 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1937 c_common_has_attribute.
1938 * c-common.h (c_common_has_attribute): New prototype.
1939 * c-lex.c (init_c_lex): Set cb->has_attribute to
1940 c_common_has_attribute instead of cb_has_attribute.
1941 (get_token_no_padding): New function.
1942 (cb_has_attribute): Renamed to ...
1943 (c_common_has_attribute): ... this. No longer static. Use
1944 get_token_no_padding, require ()s, don't build TREE_LIST
1945 unnecessarily, fix up formatting, adjust diagnostics, call
1946 init_attributes.
1947
20b06add
JM
19482014-12-15 Jason Merrill <jason@redhat.com>
1949
1950 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1951 (-Wsized-deallocation): New.
1952 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1953 to on in C++14 and up.
1954
94a073b2
JM
19552014-12-11 Jason Merrill <jason@redhat.com>
1956
acaa5911
JM
1957 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1958
94a073b2
JM
1959 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1960 we aren't complaining about VLAs.
1961
7fb66c15
MP
19622014-12-06 Marek Polacek <polacek@redhat.com>
1963
1964 PR tree-optimization/64183
1965 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1966 shift-expression if it is integer_type_node. Use types_compatible_p.
1967
b731b390
JJ
19682014-11-29 Jakub Jelinek <jakub@redhat.com>
1969
1970 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1971 last argument from create_tmp_var_raw and create_tmp_var calls.
1972 * cilk.c (gimplify_cilk_spawn): Likewise.
1973 * c-omp.c (c_finish_omp_atomic): Likewise.
1974
6a4da643
MP
19752014-11-28 Marek Polacek <polacek@redhat.com>
1976
1977 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1978 instead of unsigned_type_node.
1979
541e35a6
MP
19802014-11-28 Marek Polacek <polacek@redhat.com>
1981
1982 PR c/63862
1983 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1984 to op1_utype.
1985 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1986 expression to unsigned_type_node.
1987
dcc97066
MW
19882014-11-20 Mark Wielaard <mjw@redhat.com>
1989
1990 PR debug/38757
1991 * c-opts.c (set_std_c89): Set lang_hooks.name.
1992 (set_std_c99): Likewise.
1993 (set_std_c11): Likewise.
1994 (set_std_cxx98): Likewise.
1995 (set_std_cxx11): Likewise.
1996 (set_std_cxx14): Likewise.
1997 (set_std_cxx1z): Likewise.
1998
aa7da51a
JJ
19992014-11-21 Jakub Jelinek <jakub@redhat.com>
2000
2001 PR target/63764
2002 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2003 return type to bool.
009a3480 2004 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
2005 (convert_vector_to_pointer_for_subscript): Change return type to
2006 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2007 and copy it into a TARGET_EXPR and use that instead of *vecp
2008 directly.
2009
538dd0b7
DM
20102014-11-19 David Malcolm <dmalcolm@redhat.com>
2011
2012 Merger of git branch "gimple-classes-v2-option-3".
2013 * ChangeLog.gimple-classes: New.
2014 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2015 from being just a vec<gimple> to a vec<gbind *>.
2016
c39a5e99
JJ
20172014-11-18 Jakub Jelinek <jakub@redhat.com>
2018
2019 PR sanitizer/63813
2020 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2021 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2022 get_pointer_alignment for non-pointers. Use ptype, or if it is
2023 reference type, corresponding pointer type, as type of kind
2024 argument.
2025 (ubsan_maybe_instrument_reference,
2026 ubsan_maybe_instrument_member_call): Adjust callers.
2027
8537a4a9
MP
20282014-11-15 Marek Polacek <polacek@redhat.com>
2029
2030 PR middle-end/63884
2031 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2032 for NULL fndecl.
2033 (extract_array_notation_exprs): Return for NULL node.
2034
2079956a
JM
20352014-11-12 Joseph Myers <joseph@codesourcery.com>
2036
2037 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2038 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2039
1304953e
JJ
20402014-11-12 Jakub Jelinek <jakub@redhat.com>
2041
2042 PR c/59708
2043 * c-common.c (check_builtin_function_arguments): Handle
2044 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2045
e5e44252
AK
20462014-11-10 Andi Kleen <ak@linux.intel.com>
2047
2048 PR c/60804
2049 * c-common.h (check_no_cilk): Declare.
2050 * cilk.c (get_error_location): New function.
2051 (check_no_cilk): Dito.
2052
e64b984d
AK
20532014-11-10 Andi Kleen <ak@linux.intel.com>
2054
2055 * cilk.c (recognize_spawn): Use expression location
2056 for error message.
2057
13c21655
PC
20582014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2059
2060 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2061
42fd12b1
ESR
20622014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2063
2064 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2065 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2066 (__cpp_range_based_for, __cpp_initializer_lists,
2067 __cpp_delegating_constructors, __cpp_nsdmi,
2068 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2069 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2070 __has_cpp_attribute.
2071 * c-lex.c (cb_has_attribute): New callback CPP function;
2072 (init_c_lex): Set has_attribute callback.
2073
6f450181
RB
20742014-11-04 Richard Biener <rguenther@suse.de>
2075
2076 * c-common.c (shorten_compare): Do not shorten mixed
2077 DFP and non-DFP compares.
2078
26f0e1d6
ESR
20792014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2080
2081 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2082 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2083 Commentary and rearrangement of tests.
2084 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2085 Commentary and rearrangement of tests.
2086 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2087 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2088
ef4bddc2
RS
20892014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2090
2091 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2092 enum from machine_mode.
2093
c582198b
AM
20942014-10-28 Andrew MacLeod <amacleod@redhat.com>
2095
adfac8df
JJ
2096 * c-common.c: Adjust include files.
2097 * c-gimplify.c: Ditto.
2098 * cilk.c: Ditto.
2099 * c-pragma.c: Ditto.
2100 * c-ubsan.c: Ditto.
c582198b 2101
60393bbc
AM
21022014-10-27 Andrew MacLeod <amacleod@redhat.com>
2103
2104 * c-gimplify.c: Adjust include files.
2105
d723bb7c
MLI
21062014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2107
2108 PR c++/53061
2109 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2110 c_common_initialize_diagnostics.
2111 * c-common.h: Likewise.
2112
90f3520e
MP
21132014-10-24 Marek Polacek <polacek@redhat.com>
2114
2115 PR c/56980
2116 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2117 print "struct"/"union"/"enum" for typedefed names.
2118
59d7607a
MP
21192014-10-23 Marek Polacek <polacek@redhat.com>
2120
2121 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2122 in unsigned type.
2123
d95a2703
JJ
21242014-10-22 Jakub Jelinek <jakub@redhat.com>
2125 Yury Gribov <y.gribov@samsung.com>
2126
2127 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2128 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2129 instead of flag_sanitize_recover as bool flag.
2130
8e6ef852
KY
21312014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2132
2133 * cilk.c: Revert previous change.
2134
948cf550
IZ
21352014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2136
2137 PR c/63307
2138 * cilk.c: Include vec.h.
2139 (struct cilk_decls): New structure.
2140 (wrapper_parm_cb): Split this function to...
2141 (fill_decls_vec): ...this...
2142 (create_parm_list): ...and this.
2143 (compare_decls): New function.
2144 (for_local_cb): Remove.
2145 (wrapper_local_cb): Ditto.
2146 (build_wrapper_type): For now first traverse and fill vector of
2147 declarations then sort it and then deal with sorted vector.
2148 (cilk_outline): Ditto.
2149 (declare_one_free_variable): Ditto.
2150
92574c7c
MP
21512014-10-17 Marek Polacek <polacek@redhat.com>
2152
2153 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2154 * c.opt (Wimplicit-int): Initialize to -1.
2155
83685514
AM
21562014-10-16 Andrew MacLeod <amacleod@redhat.com>
2157
2158 * c-pragma.c: Adjust include files.
2159 * c-semantics.c: Likewise.
2160
5b8300ea
DD
21612014-10-16 DJ Delorie <dj@redhat.com>
2162
2163 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2164 multiples of bytes.
2165
5f83e90b
JM
21662014-10-14 Jason Merrill <jason@redhat.com>
2167
2168 PR c++/63455
2169 * c-common.h (CPP_PREPARSED_EXPR): New.
2170 (N_CP_TTYPES): Adjust.
2171
d73326ca
MP
21722014-10-15 Marek Polacek <polacek@redhat.com>
2173
2174 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2175
78a7c317
DD
21762014-10-14 DJ Delorie <dj@redhat.com>
2177
2178 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2179 types, not just __int128.
2180 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2181 types, not just __int128.
2182 (cpp_atomic_builtins): Round pointer sizes up.
2183 (type_suffix): Use type precision, not specific types.
2184 * c-common.c (c_common_reswords): Remove __int128 special case.
2185 (c_common_type_for_size): Check for all __intN types, not just
2186 __int128.
2187 (c_common_type_for_mode): Likewise.
2188 (c_common_signed_or_unsigned_type): Likewise.
2189 (c_build_bitfield_integer_type): Likewise.
2190 (c_common_nodes_and_builtins): Likewise.
2191 (keyword_begins_type_specifier): Likewise.
2192 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2193 __intN variants.
2194
2a22f99c
TS
21952014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2196
2197 * c-common.c: Use hash_table instead of hashtab.
2198
2a8ef767
ESR
21992014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2200
adfac8df 2201 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
2202 C++11 section.
2203
3c9aabbd
MG
22042014-10-03 Marc Glisse <marc.glisse@inria.fr>
2205
2206 PR c++/54427
2207 PR c++/57198
2208 PR c++/58845
2209 * c-common.c (warn_logical_operator): Punt for vectors.
2210
a15f7cb8
ESR
22112014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2212
2213 Implement SD-6: SG10 Feature Test Recommendations
2214 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2215 macros and the __has_header macro.
2216
8d0cf15e
JM
22172014-09-30 Jason Merrill <jason@redhat.com>
2218
dd5d5481
JM
2219 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2220 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2221 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2222
b752325e
JM
2223 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2224 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2225
8d0cf15e
JM
2226 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2227 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2228
083e891e
MP
22292014-09-24 Marek Polacek <polacek@redhat.com>
2230
2231 PR c/61405
2232 PR c/53874
2233 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2234
7861b648
AK
22352014-09-23 Andi Kleen <ak@linux.intel.com>
2236
2237 * c-common.c (handle_no_reorder_attribute): New function.
2238 (c_common_attribute_table): Add no_reorder attribute.
2239
9a79452d
JM
22402014-09-22 Joseph Myers <joseph@codesourcery.com>
2241
2242 * c-cppbuiltin.c (c_cpp_builtins): Define
2243 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2244 modes.
2245
dd69f047
JM
22462014-09-18 Joseph Myers <joseph@codesourcery.com>
2247
2248 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2249 for supported floating-point modes.
2250
737a4826
MLI
22512014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2252
2253 * c.opt (Wpsabi): Use LangEnabledBy.
2254 * c-opts.c (c_common_handle_option): Do not handle here.
2255
8cc4b7a2
JM
22562014-09-12 Joseph Myers <joseph@codesourcery.com>
2257
2258 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2259 macros for floating-point modes.
2260
179b5a55
MG
22612014-09-11 Marc Glisse <marc.glisse@inria.fr>
2262
2263 PR target/58757
2264 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2265 __*_DENORM_MIN__ without denormals.
2266
570a11fe
JJ
22672014-09-10 Jakub Jelinek <jakub@redhat.com>
2268
2269 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2270 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2271 ubsan_create_data callers.
2272 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2273 index is constant or BIT_AND_EXPR with constant mask and is
2274 small enough for the bound.
2275 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2276 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2277
b559c810
MLI
22782014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2279
2280 * c.opt: Add CppReason to various flags.
2281 (Wdate-time): Re-sort.
2282 * c-common.c: Include c-common.h earlier.
2283 (struct reason_option_codes_t): Delete.
2284 (c_option_controlling_cpp_error): Prefix global type and struct
2285 with cpp_.
2286
1ef33fd4
MLI
22872014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2288
2289 * c.opt (Wnormalized): New.
2290 (Wnormalized=): Use Enum and Reject Negative.
2291 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2292
66bb34c0
JM
22932014-09-08 Joseph Myers <joseph@codesourcery.com>
2294
2295 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2296 digits of floating-point modes if -fbuilding-libgcc.
2297
53d68b9f
JM
22982014-09-05 Joseph Myers <joseph@codesourcery.com>
2299
2300 * c-cppbuiltin.c (c_cpp_builtins): Also define
2301 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2302 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2303 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2304 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2305 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2306 __LIBGCC_STACK_GROWS_DOWNWARD__,
2307 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2308 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2309 __LIBGCC_DWARF_FRAME_REGISTERS__,
2310 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2311 __LIBGCC_STACK_POINTER_REGNUM__ and
2312 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2313 (builtin_define_with_value): Handle backslash-escaping in string
2314 macro values.
2315
f65586dc
RB
23162014-09-05 Richard Biener <rguenther@suse.de>
2317
2318 PR middle-end/63148
2319 * c-format.c (check_format_arg): Properly handle
2320 effectively signed POINTER_PLUS_EXPR offset.
2321
2b71f4a4
MLI
23222014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2323
2324 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2325 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2326 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2327 and Init.
2328 * c-opts.c (c_common_handle_option): Do not handle here.
2329 (sanitize_cpp_opts): Likewise.
2330 * c-common.c (struct reason_option_codes_t): Handle
2331 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2332
d2e4feca
MP
23332014-09-03 Marek Polacek <polacek@redhat.com>
2334
2335 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2336
9a771876
JJ
23372014-09-02 Jakub Jelinek <jakub@redhat.com>
2338 Balaji V. Iyer <balaji.v.iyer@intel.com>
2339 Igor Zamyatin <igor.zamyatin@intel.com>
2340
2341 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2342 * c-common.c (c_common_reswords): Added _Cilk_for.
2343 * c-common.h (enum rid): Added RID_CILK_FOR.
2344 (cilk_for_number_of_iterations): Add declaration.
2345 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2346 CILK_FOR.
2347 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2348 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2349
81b5d104
MLI
23502014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2351
2352 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2353 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2354 Wundef): Use CPP, Var and Init.
2355 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2356
b753b37b
MLI
23572014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2358
2359 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2360 * c-opts.c (c_common_handle_option): Do not handle here.
2361
028aee17
JM
23622014-08-25 Jason Merrill <jason@redhat.com>
2363
2364 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2365 -std=c++14 and -std=gnu++14, rather than the reverse.
2366 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2367 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2368 * c-common.h (cxx_dialect): Remove cxx1y.
2369
e4276ba5
ESR
23702014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2371
2372 * c-common.h (enum cxx_dialect): Add cxx14.
2373 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2374 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2375 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2376
a545cacd
JM
23772014-08-22 Jason Merrill <jason@redhat.com>
2378
2379 * c.opt (std=gnu++17): Fix alias.
2380
59ea0364
MP
23812014-08-22 Marek Polacek <polacek@redhat.com>
2382
2383 PR c++/62199
2384 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2385 check for vector types. Drop LHS argument.
2386 * c-common.h (warn_logical_not_parentheses): Adjust.
2387
596e808c
MLI
23882014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2389
2390 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2391 (Wmultichar): Likewise.
2392 (Wdate-time): Use C-family languages instead of Common. Use CPP
2393 and Var.
2394 * c-opts.c (c_common_handle_option): Do not handle the above
2395 options here.
2396 (sanitize_cpp_opts): Likewise.
2397
18767f65
MLI
23982014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2399
2400 PR fortran/44054
2401 * c-opts.c: Include tree-diagnostics.h.
2402 (c_diagnostic_finalizer): New.
2403 (c_common_initialize_diagnostics): Use it.
2404
b4413594
MLI
24052014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2406
2407 PR preprocessor/51303
2408 * c-common.c (struct reason_option_codes_t option_codes):
2409 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2410
43f9a13c
MLI
24112014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2412
2413 PR c/60975
2414 PR c/53063
2415 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2416 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2417 (c_common_post_options): Call init_global_opts_from_cpp.
2418 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2419
04159acf
MP
24202014-08-19 Marek Polacek <polacek@redhat.com>
2421
2422 PR c++/62153
2423 * c-common.c (maybe_warn_bool_compare): New function.
2424 * c-common.h (maybe_warn_bool_compare): Declare.
2425 * c.opt (Wbool-compare): New option.
2426
35aff4fb
MP
24272014-08-19 Marek Polacek <polacek@redhat.com>
2428
2429 * c.opt (Wc99-c11-compat): New option.
2430
177cce46
MP
24312014-08-19 Marek Polacek <polacek@redhat.com>
2432
2433 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2434 to warn_c90_c99_compat.
2435 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2436 to -1.
2437
6ae9194f
MLI
24382014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2439 Steven Bosscher <steven@gcc.gnu.org>
2440
2441 PR c/52952
2442 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2443 format_check_results.
2444 (check_function_format): Use true and add comment for boolean
2445 argument.
2446 (finish_dollar_format_checking): Use explicit location when warning.
2447 (check_format_info): Likewise.
2448 (check_format_arg): Set extra_arg_loc and format_string_loc.
2449 (check_format_info_main): Use explicit location when warning.
2450 (check_format_types): Pass explicit location.
2451 (format_type_warning): Likewise.
2452
8e54f6d3
MLI
24532014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2454
2455 PR fortran/44054
2456 * c-format.c: Handle Fortran flags.
2457
cd4e76fc
IZ
24582014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2459
2460 PR other/61962
2461 * array-notation-common.c (find_rank): Added handling for other
2462 types of references.
2463
f3bede71
MP
24642014-08-10 Marek Polacek <polacek@redhat.com>
2465
2466 PR c/51849
2467 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2468 * c.opt (Wc90-c99-compat): Add option.
2469
9f25a338
TS
24702014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2471
2472 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2473
62e4eb35
MP
24742014-08-03 Marek Polacek <polacek@redhat.com>
2475
2476 * c-common.c (check_case_value): Add location_t parameter. Use it.
2477 (c_add_case_label): Pass loc to check_case_value.
2478
b787e7a2
TS
24792014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2480
2481 * cilk.c: Use hash_map instead of pointer_map.
2482
6e2830c3
TS
24832014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2484
2485 * c-gimplify.c: Use hash_set instead of pointer_set.
2486
a7ee52fb
IZ
24872014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2488
2489 PR middle-end/61455
2490 * array-notation-common.c (extract_array_notation_exprs): Handling
2491 of DECL_EXPR added.
2492
944fa280
JJ
24932014-08-01 Jakub Jelinek <jakub@redhat.com>
2494
2495 * c-common.h (min_align_of_type): Removed prototype.
2496 * c-common.c (min_align_of_type): Removed.
2497 * c-ubsan.h (ubsan_maybe_instrument_reference,
2498 ubsan_maybe_instrument_member_call): New prototypes.
2499 * c-ubsan.c: Include stor-layout.h and builtins.h.
2500 (ubsan_maybe_instrument_reference_or_call,
2501 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2502 functions.
2503
b4dfdc11
MG
25042014-07-31 Marc Glisse <marc.glisse@inria.fr>
2505
2506 PR c++/60517
2507 * c.opt (-Wreturn-local-addr): Move to common.opt.
2508
a41844e5
JM
25092014-07-30 Jason Merrill <jason@redhat.com>
2510
2511 PR c++/61659
2512 PR c++/61687
2513 Revert:
2514 * c.opt (-fuse-all-virtuals): New.
2515
976d5a22
TT
25162014-07-30 Tom Tromey <tromey@redhat.com>
2517
2518 PR c/59855
2519 * c.opt (Wdesignated-init): New option.
2520 * c-common.c (c_common_attribute_table): Add "designated_init".
2521 (handle_designated_init): New function.
2522
cdc94aca
MP
25232014-07-24 Marek Polacek <polacek@redhat.com>
2524
2525 PR c/57653
2526 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2527
f41373b6
DS
25282014-07-16 Dodji Seketeli <dodji@redhat.com>
2529
2530 PR preprocessor/60723 - missing system-ness marks for macro tokens
2531 * c-ppoutput.c (struct print::prev_was_system_token): New data
2532 member.
2533 (init_pp_output): Initialize it.
2534 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2535 (do_line_change): Return a flag saying if a line marker was
2536 emitted or not.
2537 (scan_translation_unit): Detect if the system-ness of the token we
2538 are about to emit is different from the one of the previously
2539 emitted token. If so, emit a line marker. Avoid emitting useless
2540 adjacent line markers. Avoid emitting line markers for tokens
2541 originating from the expansion of built-in macros.
2542 (scan_translation_unit_directives_only): Adjust.
2543
4d661eaa
MP
25442014-07-15 Marek Polacek <polacek@redhat.com>
2545
2546 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2547 TYPE_MAX_VALUE is NULL.
2548
b108f48f
JJ
25492014-07-14 Jakub Jelinek <jakub@redhat.com>
2550
2551 PR middle-end/61294
2552 * c.opt (Wmemset-transposed-args): New warning.
2553
c0221884
JM
25542014-07-10 Jason Merrill <jason@redhat.com>
2555
2556 PR c++/61659
2557 PR c++/61687
2558 * c.opt (-fuse-all-virtuals): New.
2559
63dfbb95
RB
25602014-07-09 Richard Biener <rguenther@suse.de>
2561
2562 PR c-family/61741
2563 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2564 using unsigned arithmetic if overflow does not wrap instead of
2565 if overflow is undefined.
2566
773ec47f
MP
25672014-07-06 Marek Polacek <polacek@redhat.com>
2568
2569 PR c/6940
2570 * c.opt (Wsizeof-array-argument): New option.
2571
00a7ba58
JJ
25722014-07-03 Jakub Jelinek <jakub@redhat.com>
2573
b1726d6c 2574 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2575 comments->count <= 1, as comments->entries might be NULL.
2576
52ec0ea3
MP
25772014-07-01 Marek Polacek <polacek@redhat.com>
2578
2579 * c.opt (Wint-conversion): New option.
2580
d5c3d343
MP
25812014-07-01 Marek Polacek <polacek@redhat.com>
2582
2583 PR c/58286
2584 * c.opt (Wincompatible-pointer-types): New option.
2585
6e7ceb17
PC
25862014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2587
2588 PR c++/51400
2589 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2590 Do not discard TYPE_QUALS of type.
2591
da73100b
JM
25922014-06-26 Jason Merrill <jason@redhat.com>
2593
2594 * c-common.h (enum cxx_dialect): Add cxx1z.
2595 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2596 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2597
08eedf75
TJ
25982014-06-26 Teresa Johnson <tejohnson@google.com>
2599
2600 * c-common.h (get_dump_info): Declare.
2601 * c-gimplify.c (c_genericize): Use saved dump files.
2602 * c-opts.c (c_common_parse_file): Begin and end dumps
2603 once around parsing invocation.
2604 (get_dump_info): New function.
2605
7b56b2f8
MP
26062014-06-23 Marek Polacek <polacek@redhat.com>
2607 Andrew MacLeod <amacleod@redhat.com>
2608
2609 PR c/61553
2610 * c-common.c (get_atomic_generic_size): Don't segfault if the
2611 type doesn't have a size.
2612
0e37a2f3
MP
26132014-06-20 Marek Polacek <polacek@redhat.com>
2614
2615 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2616 (ubsan_walk_array_refs_r): New function.
2617 (c_genericize): Instrument array bounds.
2618 * c-ubsan.c: Include "internal-fn.h".
2619 (ubsan_instrument_division): Mark instrumented arrays as having
2620 side effects. Adjust ubsan_type_descriptor call.
2621 (ubsan_instrument_shift): Likewise.
2622 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2623 (ubsan_instrument_bounds): New function.
2624 (ubsan_array_ref_instrumented_p): New function.
2625 (ubsan_maybe_instrument_array_ref): New function.
2626 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2627 (ubsan_array_ref_instrumented_p): Declare.
2628 (ubsan_maybe_instrument_array_ref): Declare.
2629
26302014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
2631
2632 PR lto/61123
2633 * c.opt (fshort-enums): Add to LTO.
2634 * c.opt (fshort-wchar): Likewise.
2635
5c3d09f7
MP
26362014-06-16 Marek Polacek <polacek@redhat.com>
2637
2638 PR c/60439
2639 * c.opt (Wswitch-bool): Add Var.
2640
9cf32741
JJ
26412014-06-12 Jakub Jelinek <jakub@redhat.com>
2642
2643 PR middle-end/61486
2644 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2645 #pragma omp target teams or
2646 #pragma omp {,target }teams distribute simd.
2647
62984918
JM
26482014-06-12 Jason Merrill <jason@redhat.com>
2649
2650 * c.opt (Wabi=, fabi-compat-version): New.
2651 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2652 (c_common_post_options): Handle flag_abi_compat_version default.
2653 Disallow -fabi-compat-version=1.
2654 * c-common.h (abi_version_crosses): New.
2655
f961457f
JH
26562014-06-11 Jan Hubicka <hubicka@ucw.cz>
2657
adfac8df 2658 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
2659 section names that are no longer trees.
2660
92d28cbb
JJ
26612014-06-10 Jakub Jelinek <jakub@redhat.com>
2662
2663 PR fortran/60928
2664 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2665 (omp_pragmas): ... back here.
2666
742938c9
MP
26672014-06-05 Marek Polacek <polacek@redhat.com>
2668
2669 PR c/49706
2670 * c-common.c (warn_logical_not_parentheses): New function.
2671 * c-common.h (warn_logical_not_parentheses): Declare.
2672 * c.opt (Wlogical-not-parentheses): New option.
2673
9d548dfb
MP
26742014-06-04 Marek Polacek <polacek@redhat.com>
2675
2676 PR c/30020
2677 * c-common.c (check_case_bounds): Add location parameter.
2678 Use it.
2679 (c_add_case_label): Pass loc to check_case_bounds.
2680
fedfecef
MP
26812014-06-03 Marek Polacek <polacek@redhat.com>
2682
2683 PR c/60439
2684 * c.opt (Wswitch-bool): New option.
2685
f6a7cffc
TS
26862014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2687
040d18b6
TS
2688 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2689 Remove prototypes.
2690 (record_types_used_by_current_var_decl): Move prototype to where
2691 it belongs.
2692
f6a7cffc
TS
2693 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2694 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2695 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2696
632f2871
RS
26972014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2698
2699 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2700 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2701 void_zero_node.
2702 * c-pretty-print.c (pp_c_void_constant): New function.
2703 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2704 (c_pretty_printer::expression): Handle VOID_CST.
2705 * cilk.c (extract_free_variables): Likewise.
2706 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2707 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2708
766090c2
TS
27092014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2710
2711 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2712 * c-pragma.c (push_alignment): Adjust.
2713 (handle_pragma_push_options): Likewise.
2714
661a0813
MP
27152014-05-09 Marek Polacek <polacek@redhat.com>
2716
2717 PR c/50459
2718 * c-common.c (check_user_alignment): Return -1 if alignment is error
2719 node.
2720 (handle_aligned_attribute): Don't call default_conversion on
2721 FUNCTION_DECLs.
2722 (handle_vector_size_attribute): Likewise.
2723 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2724 (handle_sentinel_attribute): Call default_conversion and allow even
2725 integral types as an argument.
2726
2793eeab
MP
27272014-05-08 Marek Polacek <polacek@redhat.com>
2728
2729 PR c/61053
2730 * c-common.c (min_align_of_type): New function factored out from...
2731 (c_sizeof_or_alignof_type): ...here.
2732 * c-common.h (min_align_of_type): Declare.
2733
f827930a
MP
27342014-05-08 Marek Polacek <polacek@redhat.com>
2735
2736 PR c/61077
2737 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2738 parameter type of main.
2739
ca49b74e
DD
27402014-05-07 DJ Delorie <dj@redhat.com>
2741
2742 * c-cppbuiltin.c (print_bits_of_hex): New.
2743 (builtin_define_type_minmax): Print values using hex so as not to
2744 require a pre-computed list of string values.
2745
1d60af08
KZ
27462014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2747 Mike Stump <mikestump@comcast.net>
2748 Richard Sandiford <rdsandiford@googlemail.com>
2749
2750 * c-ada-spec.c: Include wide-int.h.
2751 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2752 (dump_generic_ada_node): Use wide-int interfaces.
2753 * c-common.c: Include wide-int-print.h.
2754 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2755 (pointer_int_sum): Use wide-int interfaces.
2756 (c_common_nodes_and_builtins): Use make_int_cst.
2757 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2758 (handle_alloc_size_attribute): Use wide-int interfaces.
2759 (get_nonnull_operand): Likewise.
2760 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2761 * c-lex.c: Include wide-int.h.
2762 (narrowest_unsigned_type): Take a widest_int rather than two
2763 HOST_WIDE_INTs.
2764 (narrowest_signed_type): Likewise.
2765 (interpret_integer): Update accordingly. Use wide-int interfaces.
2766 (lex_charconst): Use wide-int interfaces.
2767 * c-pretty-print.c: Include wide-int.h.
2768 (pp_c_integer_constant): Use wide-int interfaces.
2769 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2770 INT_CST_LT_UNSIGNED.
2771
b15458be
RB
27722014-05-06 Richard Biener <rguenther@suse.de>
2773
2774 * c-opts.c (c_common_post_options): For -freestanding,
2775 -fno-hosted and -fno-builtin disable pattern recognition
2776 if not enabled explicitely.
2777
6577374e
MP
27782014-05-02 Marek Polacek <polacek@redhat.com>
2779
2780 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2781
d00887e8
MP
27822014-05-01 Marek Polacek <polacek@redhat.com>
2783
2784 PR c/43245
2785 * c.opt (Wdiscarded-qualifiers): Add.
2786
f8ed5150
MP
27872014-04-30 Marek Polacek <polacek@redhat.com>
2788
2789 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2790 INT_MIN / -1 sanitization only for integer types.
2791
45484dcf
MP
27922014-04-25 Marek Polacek <polacek@redhat.com>
2793
2794 PR c/18079
2795 * c-common.c (handle_noinline_attribute): Warn if the attribute
2796 conflicts with always_inline attribute.
2797 (handle_always_inline_attribute): Warn if the attribute conflicts
2798 with noinline attribute.
2799
38e514c0
MP
28002014-04-25 Marek Polacek <polacek@redhat.com>
2801
2802 PR c/60156
2803 * c-common.c (check_main_parameter_types): Warn about variadic main.
2804
44875f92
MS
28052014-04-24 Mike Stump <mikestump@comcast.net>
2806
2807 * c.opt (Wshadow-ivar): Default to on.
2808
dcaaa5a0
DP
28092014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2810
2811 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2812
c07d7c02
MP
28132014-04-23 Marek Polacek <polacek@redhat.com>
2814
2815 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2816
1c33c9b7
JJ
28172014-04-22 Jakub Jelinek <jakub@redhat.com>
2818
2819 PR sanitizer/60275
2820 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2821 if flag_sanitize_undefined_trap_on_error.
2822 (ubsan_instrument_division, ubsan_instrument_shift,
2823 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2824 if !flag_sanitize_recover.
2825
793c625f
MG
28262014-04-22 Marc Glisse <marc.glisse@inria.fr>
2827
2828 PR libstdc++/43622
2829 * c-common.c (registered_builtin_types): Make non-static.
2830 * c-common.h (registered_builtin_types): Declare.
2831
b0f1bf36
RB
28322014-04-14 Richard Biener <rguenther@suse.de>
2833 Marc Glisse <marc.glisse@inria.fr>
2834
2835 PR c/60819
2836 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2837 apply may-alias the scalar pointer type when applicable.
2838
3b07fa4a
IZ
28392014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2840
2841 PR middle-end/60467
2842 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2843 as possible argument for Cilk_spawn.
2844
cbbd2b1c
TB
28452014-04-11 Tobias Burnus <burnus@net-b.de>
2846
2847 PR c/60194
2848 * c.opt (Wformat-signedness): Add
2849 * c-format.c(check_format_types): Use it.
2850
6415bd5d
JM
28512014-04-11 Jason Merrill <jason@redhat.com>
2852
2853 PR c++/57926
2854 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2855 default_conversion for an array argument.
2856
6525783a
MP
28572014-04-08 Marek Polacek <polacek@redhat.com>
2858
2859 PR sanitizer/60745
2860 * c-ubsan.c: Include asan.h.
2861 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2862
880a467b
NS
28632014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2864
2865 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2866
7b59ff2d
MP
28672014-04-02 Marek Polacek <polacek@redhat.com>
2868
2869 * c-common.h (c_expand_expr): Remove declaration.
2870
8edbfaa6
JJ
28712014-03-28 Jakub Jelinek <jakub@redhat.com>
2872
2873 PR c++/60689
2874 * c-common.c (add_atomic_size_parameter): When creating new
2875 params vector, push the size argument first.
2876
07d72e1d
JJ
28772014-03-26 Jakub Jelinek <jakub@redhat.com>
2878
2879 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2880 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2881 ubsan_create_data callers.
2882
b35e0fa0
JJ
28832014-03-22 Jakub Jelinek <jakub@redhat.com>
2884
2885 PR debug/60603
2886 * c-opts.c (c_finish_options): Restore cb_file_change call to
2887 <built-in>.
2888
39a1ebb3
JJ
28892014-03-13 Jakub Jelinek <jakub@redhat.com>
2890
2891 PR middle-end/36282
2892 * c-pragma.c (apply_pragma_weak): Only look at
2893 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2894 DECL_ASSEMBLER_NAME_SET_P (decl).
2895 (maybe_apply_pending_pragma_weaks): Exit early if
2896 vec_safe_is_empty (pending_weaks) rather than only when
2897 !pending_weaks.
2898 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2899 set assembler name back to NULL afterwards.
2900
a07f6ed2
JM
29012014-03-11 Jason Merrill <jason@redhat.com>
2902
2903 * c.opt: Add -std=gnu++14.
2904
75b107f5
IB
29052014-03-11 Ian Bolton <ian.bolton@arm.com>
2906
2907 * c-opts.c (c_common_post_options): Don't override
2908 -ffp-contract=fast if unsafe-math-optimizations is on.
2909
f42c637e
PM
29102014-03-08 Paulo Matos <paulo@matos-sorge.com>
2911
2912 * c.opt: Enable LTO FE for fshort-double.
2913
70e24808
JM
29142014-03-07 Jason Merrill <jason@redhat.com>
2915
2916 * c.opt: Add -std=c++14.
2917
3af9c5e9
MP
29182014-03-06 Marek Polacek <polacek@redhat.com>
2919
2920 PR c/60197
2921 * cilk.c (contains_cilk_spawn_stmt): New function.
2922 (contains_cilk_spawn_stmt_walker): Likewise.
2923 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2924 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2925
b3bdf019
JJ
29262014-03-03 Jakub Jelinek <jakub@redhat.com>
2927
2928 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2929 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2930 even when flag_preprocess_only.
2931
ca7e759d
JM
29322014-02-26 Jason Merrill <jason@redhat.com>
2933
2934 PR c++/59231
2935 PR c++/11586
2936 * c-common.c (shorten_compare): Don't check
2937 c_inhibit_evaluation_warnings.
2938
28e41874
JJ
29392014-02-19 Jakub Jelinek <jakub@redhat.com>
2940
cca615af
JJ
2941 PR c/37743
2942 * c-common.c (c_common_nodes_and_builtins): When initializing
2943 c_uint{16,32,64}_type_node, also set corresponding
2944 uint{16,32,64}_type_node to the same value.
2945
28e41874
JJ
2946 PR c++/60267
2947 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2948 for PRAGMA_IVDEP if flag_preprocess_only.
2949
c2bf53a1
JJ
29502014-02-12 Jakub Jelinek <jakub@redhat.com>
2951
2952 PR c/60101
2953 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2954 if false, add ADD itself, rather than vice versa.
2955 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2956 copy. For SAVE_EXPR, only call merge_tlist once.
2957
8fcbce72
JJ
29582014-02-08 Jakub Jelinek <jakub@redhat.com>
2959
2960 PR middle-end/60092
2961 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2962 and tree_to_uhwi.
2963 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2964 functions.
2965 (c_common_attribute_table): Add alloc_align and assume_aligned
2966 attributes.
2967
0a756a3f
MP
29682014-02-06 Marek Polacek <polacek@redhat.com>
2969
2970 PR c/60087
2971 * c-common.c (warn_for_sign_compare): Call warning_at with location
2972 instead of warning.
2973
7ec4847a
MP
29742014-02-05 Marek Polacek <polacek@redhat.com>
2975
2976 PR c/53123
2977 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2978 statement.
2979
66f20604
MP
29802014-02-04 Marek Polacek <polacek@redhat.com>
2981
2982 PR c/60036
2983 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2984 SAVE_EXPR.
2985
5d77fb19
MG
29862014-02-03 Marc Glisse <marc.glisse@inria.fr>
2987
2988 PR c++/53017
2989 PR c++/59211
2990 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2991 handle_vector_size_attribute, handle_nonnull_attribute): Call
2992 default_conversion on the attribute argument.
2993 (handle_nonnull_attribute): Increment the argument number.
2994
81e5eca8
MP
29952014-01-31 Marek Polacek <polacek@redhat.com>
2996
2997 PR c/59963
2998 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2999 build_function_call_vec.
3000 (resolve_overloaded_builtin): Likewise.
3001 * c-common.h (build_function_call_vec): Adjust declaration.
3002
68fca595
MP
30032014-01-30 Marek Polacek <polacek@redhat.com>
3004
3005 PR c/59940
3006 * c-common.h (unsafe_conversion_p): Adjust declaration.
3007 (warnings_for_convert_and_check): Likewise.
3008 (convert_and_check): Likewise.
3009 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3010 expansion_point_location_if_in_system_header on it.
3011 (warnings_for_convert_and_check): Add location parameter. Call
3012 expansion_point_location_if_in_system_header on it. Use it.
3013 (convert_and_check): Add location parameter. Use it.
3014 (conversion_warning): Likewise.
3015 (c_add_case_label): Adjust convert_and_check calls.
3016 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3017
b72271b9
BI
30182014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3019
3020 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3021 flag_cilkplus.
3022 * c-pragma.c (init_pragma): Likewise.
3023 * c.opt: Likewise.
3024
393e8e8b
MP
30252014-01-23 Marek Polacek <polacek@redhat.com>
3026
3027 PR c/59846
3028 * c-common.c (shorten_compare): Add location_t parameter.
3029 * c-common.h (shorten_binary_op): Adjust declaration.
3030
f04dda30
MP
30312014-01-23 Marek Polacek <polacek@redhat.com>
3032
3033 PR c/58346
3034 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3035 * c-common.h: Declare it.
3036
621955cb
EB
30372014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3038
3039 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3040 * c-ada-spec.c (dump_ads): Likewise.
3041 (cpp_check): Likewise.
3042 (dump_ada_specs): Likewise.
3043
30442014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
3045
3046 PR c++/49718
3047 * c-common.c (handle_no_instrument_function_attribute): Allow
3048 no_instrument_function attribute in class member
3049 definition/declaration.
3050
241f845a
JJ
30512014-01-15 Jakub Jelinek <jakub@redhat.com>
3052
3053 PR c/58943
3054 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3055 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3056 being COMPOUND_EXPR.
3057 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3058 operand a SAVE_EXPR and second MODIFY_EXPR.
3059
e83b8e2e
JJ
30602014-01-09 Jakub Jelinek <jakub@redhat.com>
3061
3062 PR target/58115
3063 * c-pch.c (c_common_write_pch): Call
3064 prepare_target_option_nodes_for_pch.
3065
23a5b65a
RS
30662014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3067
3068 Update copyright years
3069
f9030485
RS
30702014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3071
3072 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3073 the copyright notice.
3074
f2aa696b
EB
30752013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3076
3077 * c-ada-spec.c (print_constructor): New function.
3078 (print_destructor): Retrieve the origin of the destructor.
3079 (print_ada_declaration): Revamp handling of constructors/destructors.
3080
1f26ac87
JM
30812013-12-23 Stuart Hastings <stuart@apple.com>
3082 Bill Maddox <maddox@google.com>
3083 Jason Merrill <jason@redhat.com>
3084
3085 * c.opt: Add -fdeclone-ctor-dtor.
3086 * c-opts.c (c_common_post_options): Default to on iff -Os.
3087
41958c28
BI
30882013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3089
3090 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3091 attribute.
3092 * c-pragma.h (enum pragma_cilk_clause): Remove.
3093 (enum pragma_omp_clause): Added the following fields:
3094 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3095 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3096 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3097 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3098 PRAGMA_CILK_CLAUSE_UNIFORM.
3099
b1726d6c 3100
12893402
BI
31012013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3102
3103 * cilk.c (cilk_outline): Made this function non-static.
3104 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3105 (create_cilk_wrapper): Added a new parameter: a function pointer.
3106 (c_install_body_w_frame_cleanup): Remove
3107 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3108 * c-common.h (cilk_outline): New prototype.
3109 (gimplify_cilk_spawn): Removed two parameters.
3110 (cilk_install_body_with_frame_cleanup): New prototype.
3111 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3112 CILK_SPAWN_STMT case.
3113
085b42ed
BS
31142013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3115
2ce064c3
BS
3116 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3117
085b42ed
BS
3118 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3119 (int_array_type_node): Remove.
3120 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3121
9e36c9ed
MP
31222013-12-05 Marek Polacek <polacek@redhat.com>
3123
3124 PR c/52023
3125 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3126 [ADJUST_FIELD_ALIGN].
3127
296674db
JM
31282013-12-04 Joseph Myers <joseph@codesourcery.com>
3129
3130 PR c/52023
3131 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3132 and check field alignment if set.
3133 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3134 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3135
b1726d6c 31362013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
3137 Marek Polacek <polacek@redhat.com>
3138
3139 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3140 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3141
d7947e19
L
31422013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3143
3144 PR c/59309
3145 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3146 arguments.
3147
fad7652e
JJ
31482013-11-29 Jakub Jelinek <jakub@redhat.com>
3149
3150 PR c/59280
3151 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3152 goto invalid. If it is error_mark_node, don't issue further
3153 diagnostics.
3154
8b5e1202
SO
31552013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3156
3157 * c.opt (Wopenmp-simd): New.
3158
0a508bb6
JJ
31592013-11-22 Jakub Jelinek <jakub@redhat.com>
3160
3161 * c-ubsan.h (ubsan_instrument_return): New prototype.
3162 * c-ubsan.c (ubsan_instrument_return): New function.
3163
2fb9a547
AM
31642013-11-22 Andrew MacLeod <amacleod@redhat.com>
3165
3166 * c-common.c: Add required include files from gimple.h.
3167 * c-gimplify.c: Likewise
3168 * cilk.c: Likewise
3169
8400e75e
DM
31702013-11-22 David Malcolm <dmalcolm@redhat.com>
3171
3172 * c-common.c (unsafe_conversion_p): Remove use of
3173 EXPR_LOC_OR_HERE macro.
3174 (conversion_warning): Likewise.
3175 (warnings_for_convert_and_check): Likewise.
3176 (warn_for_collisions_1): Likewise.
3177 (shorten_compare): Likewise, and remove use of in_system_header
3178 macro, using the location from the former.
3179 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3180 (cb_def_pragma): Remove use of in_system_header macro.
3181 (lex_string): Likewise.
3182 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3183
eb1ce453
KZ
31842013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3185 Mike Stump <mikestump@comcast.net>
3186 Richard Sandiford <rdsandiford@googlemail.com>
3187
3188 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3189 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3190 tree_fits_shwi_p or tree_fits_uhwi_p.
3191 (dump_generic_ada_node): Likewise.
3192 * c-format.c (check_format_arg): Likewise.
3193 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3194
6b3b8c27
KZ
31952013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3196
3197 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3198
49b0aa18
JC
31992013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3200
3201 PR c/53001
3202 * c-common.c (unsafe_conversion_p): Make this function
3203 return an enumeration with more detail.
3204 (conversion_warning): Use the new return type of
3205 unsafe_conversion_p to separately warn either about conversions
3206 that lower floating point number precision or about the other
3207 kinds of conversions.
3208 * c-common.h (enum conversion_safety): New enumeration.
3209 (unsafe_conversion_p): switching return type to
3210 conversion_safety enumeration.
3211 * c.opt: Adding new warning -Wfloat-conversion and
3212 enabling it with -Wconversion.
3213
b826515a
BS
32142013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3215
3216 * c-opts.c: Include plugin.h.
3217 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3218
b9a55b13
MP
32192013-11-19 Marek Polacek <polacek@redhat.com>
3220
3221 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3222 call.
3223 (ubsan_instrument_shift): Likewise.
3224 (ubsan_instrument_vla): Likewise.
3225
7d362f6c
RS
32262013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3227
3228 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3229 cast to unsigned type.
3230
386b1f1f
RS
32312013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3232
3233 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3234 tree_low_cst.
3235 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3236 rather than tree_low_cst.
3237
ae7e9ddd
RS
32382013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3239
3240 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3241 tree_to_uhwi throughout.
3242
9439e9a1
RS
32432013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3244
3245 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3246 tree_low_cst (..., 0) with tree_to_shwi throughout.
3247
cc269bb6
RS
32482013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3249
3250 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3251 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3252
9541ffee
RS
32532013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3254
3255 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3256 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3257
c02065fc
AH
32582013-11-15 Aldy Hernandez <aldyh@redhat.com>
3259
3260 * c-cilkplus.c: New file.
3261 * c-common.c (readonly_error): Add location argument.
3262 * c-common.h (readonly_error): Same.
3263 (c_finish_cilk_clauses): Protoize.
3264 (c_check_cilk_loop): Same.
3265 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3266 Do not fail on error_mark_node.
3267 Abstract increment canonicalization to here...
3268 (c_omp_for_incr_canonicalize_ptr): New.
3269 c-pragma.c (init_pragma): Register "simd" pragma.
3270 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3271 (enum pragma_cilk_clause): New.
3272
9cc65f15
RS
32732013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3274
3275 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3276 wchar_type and host_integerp checks.
3277
18f429e2
AM
32782013-11-14 Andrew MacLeod <amacleod@redhat.com>
3279
3280 * c-common.c: Likewise.
3281 * c-gimplify.c: Likewise.
3282 * cilk.c: Likewise.
3283
d8a2d370
DN
32842013-11-14 Diego Novillo <dnovillo@google.com>
3285
3286 * c-common.c: Include fold-const.h.
3287 Include stor-layout.h.
3288 Include calls.h.
3289 Include stringpool.h.
3290 Include attribs.h.
3291 Include varasm.h.
3292 Include trans-mem.h.
3293 * c-cppbuiltin.c: Include stor-layout.h.
3294 Include stringpool.h.
3295 * c-format.c: Include stringpool.h.
3296 * c-lex.c: Include stringpool.h.
3297 Include stor-layout.h.
3298 * c-pragma.c: Include stringpool.h.
3299 Include attribs.h.
3300 Include varasm.h.
3301 Include gcc-symtab.h.
3302 * c-pretty-print.c: Include stor-layout.h.
3303 Include attribs.h.
3304 * cilk.c: Include stringpool.h.
3305 Include calls.h.
3306
38b7bc7f
JM
33072013-11-13 Joseph Myers <joseph@codesourcery.com>
3308
3309 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3310 * c-common.c (c_common_reswords): Add __auto_type.
3311 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3312
45b0be94
AM
33132013-11-12 Andrew MacLeod <amacleod@redhat.com>
3314
18f429e2
AM
3315 * c-common.c: Include gimplify.h.
3316 * c-gimplify.c: Likewise.
3317 * cilk.c: Likewise.
3318 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3319 * c-ubsan.c: Don't include gimple.h.
45b0be94 3320
582d9b50
JM
33212013-11-12 Joseph Myers <joseph@codesourcery.com>
3322
3323 * c-common.c (c_common_reswords): Add _Thread_local.
3324
6b28e197
JM
33252013-11-09 Joseph Myers <joseph@codesourcery.com>
3326
3327 * c-common.c (atomic_size_supported_p): New function.
3328 (resolve_overloaded_atomic_exchange)
3329 (resolve_overloaded_atomic_compare_exchange)
3330 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3331 Use it instead of comparing size with a local list of sizes.
3332
267bac10
JM
33332013-11-07 Andrew MacLeod <amacleod@redhat.com>
3334 Joseph Myers <joseph@codesourcery.com>
3335
3336 * c-common.h (enum rid): Add RID_ATOMIC.
3337 * c-common.c (c_common_reswords): Add _Atomic.
3338 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3339 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3340 * c-format.c (check_format_types): Check for extra _Atomic
3341 qualifiers in format argument.
3342 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3343 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3344
5157b91e
TB
33452013-11-06 Tobias Burnus <burnus@net-b.de>
3346
3347 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3348
6dbe0958
JM
33492013-11-06 Joseph Myers <joseph@codesourcery.com>
3350
3351 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3352 standards modes.
3353 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3354 to mean lack of IEEE 754 support.
3355
e8ff5196
TB
33562013-11-05 Tobias Burnus <burnus@net-b.de>
3357
3358 * c.opt (-Wdate-time): New option
3359 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3360
254a0760
JM
33612013-11-05 Joseph Myers <joseph@codesourcery.com>
3362
3363 * c-cppbuiltin.c (cpp_iec_559_value): Test
3364 flag_excess_precision_cmdline not flag_excess_precision.
3365
6d7f7e0a
TB
33662013-11-05 Tobias Burnus <burnus@net-b.de>
3367
3368 * c.opt (fopenmp-simd): New option.
3369 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3370 (omp_pragmas): ... this new struct.
3371 (c_pp_lookup_pragma): Also walk omp_pragmas.
3372 (init_pragma): Init pragmas for -fopenmp-simd.
3373
55a7f02f
MP
33742013-11-04 Marek Polacek <polacek@redhat.com>
3375
3376 PR c++/58979
3377 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3378
9193fb05
JM
33792013-11-04 Joseph Myers <joseph@codesourcery.com>
3380
3381 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3382 New functions.
3383 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3384
94159ecf
EB
33852013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3386
3387 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3388 (dump_ada_specs): Adjust prototype of second callback.
3389 * c-ada-spec.c (cpp_check): New global variable.
3390 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3391 (print_generic_ada_decl): Likewise.
3392 (has_static_fields): Change return type to bool and add guard.
3393 (has_nontrivial_methods): New predicate.
3394 (is_tagged_type): Change return type to bool.
3395 (separate_class_package): Call has_nontrivial_methods.
3396 (pp_ada_tree_identifier): Minor tweaks.
3397 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3398 (dump_ada_array_domains): Likewise.
3399 (dump_ada_array_type): Likewise.
3400 (dump_template_types): Remove cpp_check parameter and do not pass it to
3401 dump_generic_ada_node.
3402 (dump_ada_template): Likewise.
3403 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3404 recursively.
3405 (print_ada_methods): Change return type to integer. Remove cpp_check
3406 parameter and do not pass it down.
3407 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3408 dump_generic_ada_node.
3409 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3410 accessing methods.
3411 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3412 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3413 value of print_ada_methods.
3414 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3415 Set cpp_check to it before invoking dump_ada_nodes.
3416 (dump_ada_specs): Likewise.
3417
b906f4ca
MP
34182013-11-03 Marek Polacek <polacek@redhat.com>
3419
3420 * c-ubsan.c: Don't include hash-table.h.
3421 (ubsan_instrument_vla): New function.
3422 * c-ubsan.h: Declare it.
3423
5e20cdc9
DM
34242013-10-31 David Malcolm <dmalcolm@redhat.com>
3425
3426 Automated part of renaming of symtab_node_base to symtab_node.
3427
3428 Patch autogenerated by rename_symtab.py from
3429 https://github.com/davidmalcolm/gcc-refactoring-scripts
3430 revision 58bb219cc090b2f4516a9297d868c245495ee622
3431
3432 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3433 symtab_node_base to symtab_node.
3434
7057e645
ESR
34352013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3436
3437 Implement C++14 digit separators.
3438 * c-lex.c (interpret_float): Remove digit separators from scratch string
3439 before building real literal.
3440
193ea7bc
JJ
34412013-10-30 Jakub Jelinek <jakub@redhat.com>
3442
3443 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3444
939b37da
BI
34452013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3446
3447 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3448 fields.
3449 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3450 enabled.
3451 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3452 (insert_cilk_frame): New prototype.
3453 (cilk_init_builtins): Likewise.
3454 (gimplify_cilk_spawn): Likewise.
3455 (c_cilk_install_body_w_frame_cleanup): Likewise.
3456 (cilk_detect_spawn_and_unwrap): Likewise.
3457 (cilk_set_spawn_marker): Likewise.
3458 (build_cilk_sync): Likewise.
3459 (build_cilk_spawn): Likewise.
3460 * cilk.c: New file.
3461
67348ccc
DM
34622013-10-29 David Malcolm <dmalcolm@redhat.com>
3463
3464 Patch autogenerated by refactor_symtab.py from
3465 https://github.com/davidmalcolm/gcc-refactoring-scripts
3466 revision 58bb219cc090b2f4516a9297d868c245495ee622
3467
3468 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3469 to a true class hierarchy.
3470 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3471
d570872d
RS
34722013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3473
3474 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3475
98906124
JL
34762013-10-26 Jeff Law <law@redhat.com>
3477
adfac8df
JJ
3478 * c-common.c (c_define_builtins): Remove mudflap support.
3479 * c.opt: Ignore and warn for mudflap options.
98906124 3480
d73749df 34812013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3482
3483 PR other/33426
3484 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3485 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3486
3f04b1bb
JM
34872013-10-23 Jason Merrill <jason@redhat.com>
3488
3489 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3490
acf0174b
JJ
34912013-10-11 Jakub Jelinek <jakub@redhat.com>
3492
acd15a28
JJ
3493 * c-common.h (omp_clause_mask::operator !=): New method.
3494 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3495 instead of if (mask & something) tests everywhere.
3496
acf0174b
JJ
3497 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3498 201307 instead of 201107.
3499 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3500 (c_common_attribute_table): Add "omp declare target" and
3501 "omp declare simd" attributes.
3502 (handle_omp_declare_target_attribute,
3503 handle_omp_declare_simd_attribute): New functions.
3504 * c-omp.c: Include c-pragma.h.
3505 (c_finish_omp_taskgroup): New function.
3506 (c_finish_omp_atomic): Add swapped argument, if true,
3507 build the operation first with rhs, lhs arguments and use NOP_EXPR
3508 build_modify_expr.
3509 (c_finish_omp_for): Add code argument, pass it down to make_code.
3510 (c_omp_split_clauses): New function.
3511 (c_split_parallel_clauses): Removed.
3512 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3513 c_omp_declare_simd_clauses_to_decls): New functions.
3514 * c-common.h (omp_clause_mask): New type.
3515 (OMP_CLAUSE_MASK_1): Define.
3516 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3517 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3518 omp_clause_mask::operator |, omp_clause_mask::operator &,
3519 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3520 omp_clause_mask::operator ==): New methods.
3521 (enum c_omp_clause_split): New.
3522 (c_finish_omp_taskgroup): New prototype.
3523 (c_finish_omp_atomic): Add swapped argument.
3524 (c_finish_omp_for): Add code argument.
3525 (c_omp_split_clauses): New prototype.
3526 (c_split_parallel_clauses): Removed.
3527 (c_omp_declare_simd_clauses_to_numbers,
3528 c_omp_declare_simd_clauses_to_decls): New prototypes.
3529 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3530 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3531 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3532 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3533 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3534 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3535 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3536 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3537 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3538 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3539 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3540 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3541 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3542 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3543 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3544 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3545 PRAGMA_OMP_CLAUSE_UNIFORM.
3546
826cacfe
MG
35472013-10-09 Marc Glisse <marc.glisse@inria.fr>
3548
3549 PR tree-optimization/20318
3550 * c-common.c (handle_returns_nonnull_attribute): New function.
3551 (c_common_attribute_table): Add returns_nonnull.
3552
2284b034
MG
35532013-10-03 Marc Glisse <marc.glisse@inria.fr>
3554
3555 PR c++/19476
3556 * c.opt (fcheck-new): Move to common.opt.
3557
b56e9788
MP
35582013-09-25 Marek Polacek <polacek@redhat.com>
3559 Jakub Jelinek <jakub@redhat.com>
3560
3561 PR sanitizer/58413
3562 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3563 an expression if we can prove it is correct.
3564 (ubsan_instrument_division): Likewise. Remove unnecessary
3565 check.
3566
ce6923c5
MP
35672013-09-18 Marek Polacek <polacek@redhat.com>
3568
3569 PR sanitizer/58411
3570 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3571 Declare it.
3572 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3573
fb5610fb
IS
35742013-09-14 Iain Sandoe <iain@codesourcery.com>
3575
3576 PR target/48094
3577 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3578 fobjc-gc, freplace-objc-classes): Accept for LTO.
3579
88b0e79e
JC
35802013-09-13 Jacek Caban <jacek@codeweavers.com>
3581
3582 * c-target.def: New hook
3583
c9b0866a
PC
35842013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3585
3586 PR c++/43452
3587 * c.opt (Wdelete-incomplete): Add.
3588
0af94e6f
JR
35892013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3590
3591 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3592 (vector_types_compatible_elements_p): New function.
3593 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3594 declaration.
3595 (vector_types_compatible_elements_p): Declare.
3596
7c26172c
GDR
35972013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3598
3599 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3600 a virtual member function.
3601 (pp_simple_type_specifier): Remove.
3602 (pp_c_type_specifier): Likewise.
3603 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3604 Rename from pp_c_type_specifier. Adjust.
3605 (c_pretty_printer::c_pretty_printer): Do not assign to
3606 simple_type_specifier.
3607
20059c8b
GDR
36082013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3609
3610 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3611 member function.
3612 (c_pretty_printer::storage_class_specifier): Likewise.
3613 (c_pretty_printer::initializer): Likewise.
3614 (pp_declaration): Remove.
3615 (pp_declaration_specifiers): Likewise.
3616 (pp_abstract_declarator): Likewise.
3617 (pp_declarator): Likewise.
3618 (pp_type_id): Likewise.
3619 (pp_statement): Likewise.
3620 (pp_constant): Likewise.
3621 (pp_id_expression): Likewise.
3622 (pp_primary_expression): Likewise.
3623 (pp_unary_expression): Likewise.
3624 (pp_multiplicative_expression): Likewise.
3625 (pp_conditional_expression): Likewise.
3626 (pp_assignment_expression): Likewise.
3627 (pp_expression): Likewise.
3628 (pp_c_type_id): Likewise.
3629 (pp_c_storage_class_specifier): Likewise.
3630 * c-pretty-print.c (pp_c_type_cast): Tidy.
3631 (pp_c_pointer): Likewise.
3632 (pp_c_type_specifier): Likewise.
3633 (pp_c_parameter_type_list): Likewise.
3634 (pp_c_function_definition): Likewise.
3635 (pp_c_init_declarator): Likewise.
3636 (pp_c_initializer_list): Likewise.
3637 (pp_c_constructor_elts): Likewise.
3638 (c_pretty_printer::direct_abstract_declarator): Likewise.
3639 (c_pretty_printer::declaration_specifiers): Likewise.
3640 (c_pretty_printer::primary_expression): Likewise.
3641 (c_pretty_printer::postfix_expression): Likewise.
3642 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3643 (c_pretty_printer::storage_class_specifier): Rename from
3644 pp_c_storage_class_specifier.
3645 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3646 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3647 storage_class_specifier, initializer, offset_list, flags.
3648
de5a5fa1
MP
36492013-08-30 Marek Polacek <polacek@redhat.com>
3650
3651 * c-ubsan.c: New file.
3652 * c-ubsan.h: New file.
3653
8f0e4d72
GDR
36542013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3655
3656 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3657 member function.
3658 (c_pretty_printer::declaration_specifiers): Likewise.
3659 (c_pretty_printer::declarator): Likewise.
3660 (c_pretty_printer::abstract_declarator): Likewise.
3661 (c_pretty_printer::direct_abstract_declarator): Likewise.
3662 (c_pretty_printer::direct_declarator): Likewise.
3663 (c_pretty_printer::function_specifier): Likewise.
3664 (pp_declaration): Adjust.
3665 (pp_declaration_specifiers): Likewise.
3666 (pp_abstract_declarator): Likewise.
3667 (pp_direct_declarator): Likewise.
3668 (pp_function_specifier): Likewise.
3669 (pp_direct_abstract_declarator): Remove as unused.
3670 (pp_c_declaration): Remove.
3671 (pp_c_declaration_specifiers): Likewise.
3672 (pp_c_declarator): Likewise.
3673 (pp_c_direct_declarator): Likewise.
3674 (pp_c_function_specifier): Likewise.
3675 (pp_c_direct_abstract_declarator): Likewise.
3676 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3677 from pp_c_abstract_declarator. Adjust.
3678 (c_pretty_printer::direct_abstract_declarator): Rename from
3679 pp_c_direct_abstract_declarator. Adjust.
3680 (c_pretty_printer::function_specifier): Rename from
3681 pp_c_function_specifier. Adjust.
3682 (c_pretty_printer::declaration_specifiers): Rename from
3683 pp_c_declaration_specifiers. Adjust.
3684 (c_pretty_printer::direct_declarator): Rename from
3685 pp_c_direct_declarator. Adjust.
3686 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3687 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3688 (c_pretty_printer::c_pretty_printer): Do not assign to
3689 declaration, declaration_specifiers, declarator,
3690 direct_declarator, direct_abstract_declarator, function_specifier.
3691
00d34d3a
GDR
36922013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3693
3694 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3695 virtual member function.
3696 (c_pretty_printer::multiplicative_expression): Likewise.
3697 (c_pretty_printer::conditional_expression): Likewise.
3698 (c_pretty_printer::assignment_expression): Likewise.
3699 (c_pretty_printer::expression): Likewise.
3700 (pp_unary_expression): Adjust.
3701 (pp_multiplicative_expression): Likewise.
3702 (pp_assignment_expression): Likewise.
3703 (pp_conditional_expression): Likewise.
3704 (pp_expression): Likewise.
3705 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3706 from pp_c_unary_expression. Adjust.
3707 (c_pretty_printer::multiplicative_expression): Rename from
3708 pp_c_multiplicative_expression. Adjust.
3709 (c_pretty_printer::conditional_expression): Rename from
3710 pp_c_conditional_expression. Adjust.
3711 (c_pretty_printer::assignment_expression): Rename from
3712 pp_c_assignment_expression. Adjust.
3713 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3714 (c_pretty_printer::c_pretty_printer): Do not assign to
3715 unary_expression, multiplicative_expression,
3716 conditional_expression, expression.
3717
fb22178f
GDR
37182013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3719
3720 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3721 virtual member function.
3722 (pp_postfix_expression): Adjust.
3723 (pp_c_postfix_expression): Remove.
3724 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3725 from pp_c_postfix_expression. Adjust.
3726 (c_pretty_printer::c_pretty_printer): Do not assign to
3727 postfix_expression.
3728
7ecc2600
GDR
37292013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3730
3731 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3732 virtua member function.
3733 (pp_primary_expression): Adjust.
3734 (pp_c_primary_expression): Remove.
3735 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3736 from pp_c_primary_expression. Adjust.
3737 (pp_c_initializer_list): Use pp_primary_expression.
3738 (c_pretty_printer::c_pretty_printer): Do not assign to
3739 primary_expression.
3740
0691175f
GDR
37412013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3742
3743 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3744 * c-pretty-print.c (M_): Remove.
3745 (c_pretty_printer::translate_string): Define.
3746 (pp_c_type_specifier): Use it.
3747 (pp_c_primary_expression): Likewise.
3748 (pp_c_expression): Likewise.
3749
66dfe4c4
GDR
37502013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3751
3752 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3753 virtual function.
3754 (pp_c_id_expression): Remove.
3755 (pp_id_expression): Adjust.
3756 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3757 pp_c_id_expression. Adjust.
3758 (pp_c_postfix_expression): Use pp_id_expression.
3759 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3760
ca43e9d5
GDR
37612013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3762
3763 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3764 member function.
3765 (pp_constant): Adjust.
3766 (pp_c_constant): Remove.
3767 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3768 pp_c_constant. Adjust.
3769 (pp_c_constant)
3770 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3771 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3772
da6ca2b5
GDR
37732013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3774
3775 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3776 (c_pretty_printer::c_pretty_printer): Declare.
3777 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3778 c_pretty_printer_init. Adjust.
3779 (print_c_tree): Do not call c_pretty_printer_init.
3780 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3781
65a372f4
AC
37822013-08-09 Arnaud Charlet <charlet@adacore.com>
3783
3784 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3785
fd9b0f32
PC
37862013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3787
3788 PR c++/58080
3789 * c-common.c (pointer_int_sum): Add bool parameter.
3790 * c-common.h (pointer_int_sum): Adjust declaration.
3791
e0aec1e9
GDR
37922013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3793
3794 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3795 c_pretty_printer variable.
3796
b066401f
GDR
37972013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3798
3799 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3800 (pp_base): Remove.
3801 (pp_c_base): Likewise. Adjust users.
3802 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3803 (pp_c_whitespace): Do not call pp_base.
3804 (pp_c_left_paren): Likewise.
3805 (pp_c_right_paren): Likewise.
3806 (pp_c_left_brace): Likewise.
3807 (pp_c_right_brace): Likewise.
3808 (pp_c_left_bracket): Likewise.
3809 (pp_c_right_bracket): Likewise.
3810 (pp_c_dot): Likewise.
3811 (pp_c_ampersand): Likewise.
3812 (pp_c_star): Likewise.
3813 (pp_c_arrow): Likewise.
3814 (pp_c_semicolon): Likewise.
3815 (pp_c_complement): Likewise.
3816 (pp_c_exclamation): Likewise.
3817 (pp_c_direct_declarator): Likewise.
3818 (pp_c_ws_string): Likewise.
3819 (pp_c_identifier): Likewise.
3820 (pp_c_statement): Likewise.
3821 (print_c_tree): Likewise.
3822
65e5a578
ESR
38232013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3824
3825 PR c++/58072
3826 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3827 provide useful error strings.
3828
137a1a27
GDR
38292013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3830
3831 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3832 printer functions instead of pp_string or operators and punctuators.
3833 (dump_generic_ada_node): Likewise.
3834 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3835 (pp_c_relational_expression): Likewise.
3836 (pp_c_logical_or_expression): Likewise.
3837
07838b13
GDR
38382013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3839
3840 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3841 functions instead of pp_character.
3842 (pp_ada_tree_identifier): Likewise.
3843 (dump_ada_double_name): Likewise.
3844 (dump_ada_function_declaration): Likewise.
3845 (dump_ada_array_domains): Likewise.
3846 (dump_template_types): Likewise.
3847 (dump_generic_ada_node): Likewise.
3848 (print_ada_declaration): Likewise.
3849 (print_ada_struct_decl): Likewise.
3850 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3851
433cc7b0
TT
38522013-07-23 Tom Tromey <tromey@redhat.com>
3853
3854 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3855 * c-common.c (c_common_reswords): Add _Generic.
3856
688010ba
OB
38572013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3858
3859 * c-common.c: Fix typos.
3860 * c-common.h: Likewise.
3861
2a99e5e6
LL
38622013-07-13 Lubos Lunak <l.lunak@suse.cz>
3863
3864 PR c++/55203
3865 * c-common.c (c_common_attribute_table): Add warn_unused.
3866 (handle_warn_unused_attribute): New.
3867
c26302d5
JJ
38682013-07-10 Jakub Jelinek <jakub@redhat.com>
3869
3870 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3871 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3872
dfeadaa0
PC
38732013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3874
3875 PR c++/57869
3876 * c.opt: Add Wconditionally-supported.
3877
6a2fa4b2
GS
38782013-07-08 Graham Stott <graham.stott@btinternet.com>
3879
adfac8df 3880 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
3881 unused variables l_length and l_node.
3882
ecdbd01a 38832013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3884
3885 PR c/57821
3886 * c-common.c (complete_array_type): Delay folding first index
3887 like other indices. When folding, check for index overflow.
3888
bedc293e
MG
38892013-06-27 Marc Glisse <marc.glisse@inria.fr>
3890
3891 PR c++/57509
3892 * c-common.h (c_build_vec_perm_expr): New complain argument.
3893 * c-common.c (c_build_vec_perm_expr): Likewise.
3894 Use save_expr also in C++.
3895
604b2bfc
GDR
38962013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3897
3898 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3899 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3900 * c-opts.c (c_common_post_options): Likewise.
3901
dfeadaa0 39022013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
3903
3904 * array-notation-common.c (length_mismatch_in_expr): Changed the
3905 parameter type's from a dynamic array to a vec_tree. Also removed
3906 the size parameters.
3907 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3908 the change above.
3909
2ce86d2e
BI
39102013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3911
3912 * c-common.h (struct cilkplus_an_parts): New structure.
3913 (struct cilkplus_an_loop_parts): Likewise.
3914 (cilkplus_extract_an_triplets): New prototype.
3915 (fix_sec_implicit_args): Likewise.
3916 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3917 (fix_sec_implicit_args): Likewise.
604b2bfc 3918
07a6825b
BI
39192013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3920
3921 * array-notation-common.c (find_inv_trees): Removed an unwanted
3922 typecasting.
3923 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3924 enum rid to enum tree_code.
3925
08346abd
JH
39262013-06-11 Jan Hubicka <jh@suse.cz>
3927
3928 * c-common.c (handle_alias_ifunc_attribute): Do not set
3929 DECL_EXTERNAL for weakref variables.
3930 * c-pragma.c (handle_pragma_weak): Make sure aliases
3931 are not declared as external.
3932
d60f1706
BI
39332013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3934
3935 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3936 function from c/c-array-notation.c.
3937 (is_cilkplus_reduce_builtin): Likewise.
3938 (find_rank): Likewise.
3939 (extract_array_notation_exprs): Likewise.
3940 (replace_array_notations): Likewise.
3941 (find_inv_trees): Likewise.
3942 (replace_inv_trees): Likewise.
3943 (contains_array_notation_expr): Likewise.
3944 (find_correct_array_notation_type): Likewise.
3945 * c-common.h (struct inv_list): Moved this struct from the file
3946 c/c-array-notation.c and added a new field called additional tcodes.
3947 (length_mismatch_in_expr_p): New prototype.
3948 (is_cilkplus_reduce_builtin): Likewise.
3949 (find_rank): Likewise.
3950 (extract_array_notation_exprs): Likewise.
3951 (replace_array_notation): Likewise.
3952 (find_inv_trees): Likewise.
3953 (replace_inv_trees): Likewise.
3954 (find_correct_array_notation_type): Likewise.
dfeadaa0 3955
36536d79
BI
39562013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3957
3958 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3959 function array_notation_init_builtins is called.
3960 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3961 * c-common.def (ARRAY_NOTATION_REF): New tree.
3962 * c-common.h (build_array_notation_expr): New function declaration.
3963 (build_array_notation_ref): Likewise.
3964 (extract_sec_implicit_index_arg): New extern declaration.
3965 (is_sec_implicit_index_fn): Likewise.
3966 (ARRAY_NOTATION_CHECK): New define.
3967 (ARRAY_NOTATION_ARRAY): Likewise.
3968 (ARRAY_NOTATION_START): Likewise.
3969 (ARRAY_NOTATION_LENGTH): Likewise.
3970 (ARRAY_NOTATION_STRIDE): Likewise.
3971 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3972 ARRAY_NOTATION_REF.
3973 (pp_c_expression): Likewise.
3974 * c.opt (flag_enable_cilkplus): New flag.
3975 * array-notation-common.c: New file.
3976
f7716d57
JJ
39772013-05-14 Jakub Jelinek <jakub@redhat.com>
3978
3979 PR c++/57274
3980 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3981
a5e0cd1d
MG
39822013-05-10 Marc Glisse <marc.glisse@inria.fr>
3983
3984 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3985 vectors.
3986
f6bc1c4a
HS
39872013-05-07 Han Shen <shenhan@google.com>
3988
3989 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3990
3f12f6e9
SKS
39912013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3992
3993 * c-common.c (check_user_alignment): Emit error for negative values.
3994
61949153
PC
39952013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3996
3997 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3998
e93e18e9
PC
39992013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4000
4001 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4002 __GXX_EXPERIMENTAL_CXX1Y__.
4003
44d90fe1
PC
40042013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4005 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4006
4007 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4008 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4009 to simply use OPT_Wpointer_arith.
4010 (c_sizeof_or_alignof_type): Likewise.
4011
13f39b2e
PC
40122013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4013
4014 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4015
4b84d650
JJ
40162013-04-12 Jakub Jelinek <jakub@redhat.com>
4017
4018 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4019 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4020 specifiers.
4021
fb037b5d
SB
40222013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4023
4024 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4025
4e856798
PC
40262013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4027
4028 * c-common.c (pointer_int_sum): Remove dead code.
4029
4b1baac8
RS
40302013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4031
4032 PR middle-end/56524
4033 * c-common.c (handle_optimize_attribute): Don't call
4034 save_optabs_if_changed.
4035
0b50e654
JJ
40362013-03-05 Jakub Jelinek <jakub@redhat.com>
4037
4038 PR middle-end/56461
4039 * c-pch.c (pch_init): Free target_validity at the end.
4040
48c41403
JJ
40412013-03-04 Jakub Jelinek <jakub@redhat.com>
4042
4043 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4044
e664c61c
KS
40452013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4046 Jakub Jelinek <jakub@redhat.com>
4047
4048 PR sanitizer/56454
4049 * c-common.c (handle_no_sanitize_address_attribute): New function.
4050 (c_common_attribute_table): Add no_sanitize_address attribute.
4051 (handle_no_address_safety_analysis_attribute): Add
4052 no_sanitize_address attribute, not no_address_safety_analysis
4053 attribute.
4054
a475fd3d 40552013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
4056
4057 PR target/52555
4058 * c-common.c (handle_optimize_attribute): Call
4059 save_optabs_if_changed.
4060
f6007d99
JJ
40612013-02-18 Jakub Jelinek <jakub@redhat.com>
4062 Steven Bosscher <steven@gcc.gnu.org>
4063
4064 PR pch/54117
4065 * c-opts.c (c_common_post_options): If debug info is enabled
4066 and non-dwarf*, refuse to load PCH files and when writing PCH
4067 file warn.
4068
cf35e2b1
JJ
40692013-02-05 Jakub Jelinek <jakub@redhat.com>
4070
4071 PR middle-end/56167
4072 * c-common.c (handle_error_attribute): Fix condition.
4073
32887460
JJ
40742013-01-30 Jakub Jelinek <jakub@redhat.com>
4075
4076 PR c++/55742
4077 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4078
5af057d8
JM
40792013-01-18 Jason Merrill <jason@redhat.com>
4080
4081 PR target/54908
4082 * c.opt (-fextern-tls-init): New.
4083 * c-opts.c (c_common_post_options): Handle it.
4084
cc83c823
JJ
40852013-01-09 Jakub Jelinek <jakub@redhat.com>
4086
4087 PR c/48418
4088 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4089 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4090 and is either negative or bigger or equal to type precision
4091 of the first operand.
4092
a859517f
MP
40932012-12-03 Marek Polacek <polacek@redhat.com>
4094
4095 PR c/55570
4096 * c-common.c (check_user_alignment): Swap order of tests,
4097 check TREE_CODE first.
4098
2d7aa578
ESR
40992012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4100
4101 PR c++/52654
4102 * c-common.h (overflow_type): New enum.
4103 (build_userdef_literal): Add overflow_type argument.
4104 (tree_userdef_literal): Add overflow_type.
4105 (USERDEF_LITERAL_OVERFLOW): New access macro.
4106 * c-common.c (build_userdef_literal): Add overflow_type
4107 argument.
4108 * c-lex.c (c_lex_with_flags): Add overflow_type to
4109 build_userdef_literal calls.
4110 (interpret_integer, interpret_float): Add overflow_type argument.
4111
cc3c4f62
RB
41122012-11-28 Richard Biener <rguenther@suse.de>
4113
4114 PR c/35634
4115 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4116 here and use a type with proper overflow behavior for types that would
4117 need to be promoted for the arithmetic.
4118
77bc5132
JJ
41192012-11-23 Jakub Jelinek <jakub@redhat.com>
4120
4121 PR sanitizer/55435
4122 * c-common.c (handle_no_address_safety_analysis_attribute): New
4123 function.
4124 (c_common_attribute_table): Add no_address_safety_analysis.
4125
5dc99c46
SB
41262012-11-16 Simon Baldwin <simonb@google.com>
4127
4128 * c.opt: Add f[no-]canonical-system-headers.
4129 * c-opts.c (c_common_handle_option): Handle
4130 OPT_fcanonical_system_headers.
4131
a4a0016d
ESR
41322012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4133
4134 PR c++/54413
4135 * c-opts.c (c_common_handle_option): Set new flags.
4136 * c.opt: Describe new flags.
4137
7dbb85a7
JM
41382012-11-09 Jason Merrill <jason@redhat.com>
4139
4140 * c.opt (Wabi-tag): New.
4141
ad7bac31
AK
41422012-11-09 Andi Kleen <ak@linux.intel.com>
4143
4144 PR 55139
4145 * c-common.c (get_atomic_generic_size): Mask with
4146 MEMMODEL_MASK
4147
7332899a
MLI
41482012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4149
4150 PR c/53063
4151 * c.opt (Wformat): Make it Alias Wformat=1.
4152 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4153 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4154 LangEnabledBy.
4155 (Wformat=): RejectNegative. Use LangEnabledBy.
4156 (Wnonnull): Use LangEnabledBy.
4157 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4158 * c-format.c (set_Wformat): Delete.
4159 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4160 (maybe_read_dollar_number): Likewise.
4161 (avoid_dollar_number): Likewise.
4162 (finish_dollar_format_checking): Likewise.
4163 (check_format_info): Likewise.
4164 (check_format_info_main): Likewise.
4165 (check_format_types): Likewise.
4166 (format_type_warning): Likewise.
4167 * c-common.c (int): Likewise.
4168 (check_function_sentinel): Likewise.
4169 * c-common.h (warn_format,set_Wformat): Do not declare here.
4170
34a180a6
MLI
41712012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4172
4173 PR c/53063
4174 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4175 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4176 Use LangEnabledBy.
4177 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4178 common.opt.
4179 (Wvariadic-macros): Init(1).
4180 * c-opts.c (c_common_handle_option): Do not handle them
4181 explicitly.
4182 (c_common_post_options): Likewise.
4183 (sanitize_cpp_opts): warn_unused_macros is now
4184 cpp_warn_unused_macros.
4185 (push_command_line_include): Likewise.
4186 * c-common.c (warn_unknown_pragmas): Do not define.
4187 * c-common.h (warn_unknown_pragmas): Do not declare.
4188
3f46d6a5
MLI
41892012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4190
4191 PR c/51294
4192 * c-common.c (conversion_warning): Handle conditional expressions.
4193
880661a4
JW
41942012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4195
4196 PR c++/54930
4197 * c.opt (Wreturn_local_addr): Define new option.
4198
4514a96b
JM
41992012-10-25 Jason Merrill <jason@redhat.com>
4200
f14edc1a
JM
4201 * c.opt (Wvirtual-move-assign): New.
4202
4514a96b
JM
4203 * c.opt (Winherited-variadic-ctor): New.
4204
93100c6b
MG
42052012-10-25 Marc Glisse <marc.glisse@inria.fr>
4206
4207 PR c++/54427
4208 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4209
1efcb8c6
JM
42102012-10-23 Joseph Myers <joseph@codesourcery.com>
4211
4212 * c-common.h (pch_cpp_save_state): Declare.
4213 * c-target.def (c_preinclude): New hook.
4214 * c-opts.c (done_preinclude): New.
4215 (push_command_line_include): Handle default preincluded header.
4216 (cb_file_change): Call pch_cpp_save_state when calling
4217 push_command_line_include.
4218 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4219 (pch_cpp_save_state): New.
4220 (pch_init): Call pch_cpp_save_state conditionally, instead of
4221 calling cpp_save_state.
4222
4a0ae68e
MLI
42232012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4224
4225 PR c/53063
4226 PR c/40989
4227 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4228 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4229 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4230 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4231 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4232 * c-opts.c (c_common_handle_option): Remove explicit handling from
4233 here.
4234 (c_common_post_options): Likewise.
4235
67e4210b
EB
42362012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4237
4238 * c-ada-spec.c (LOCATION_COL): Delete.
4239 (compare_location): New function.
4240 (compare_node): Use it.
4241 (compare_comment): Likewise.
4242
65d4f2cd
MLI
42432012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4244
4245 PR c/53063
4246 PR c/40989
4247 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4248 * c-opts.c (c_common_handle_option): Do not set them here. Add
4249 comment.
4250 (c_common_post_options): Likewise.
4251
909881cb
EB
42522012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4253
4254 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4255 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4256 Remove POINTER_TYPE handling, add large unsigned handling and use
4257 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4258
3a785c97
JJ
42592012-10-12 Jakub Jelinek <jakub@redhat.com>
4260
4261 PR c/54381
4262 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4263 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4264 locs and array of 3 trees instead of just single loc and single
4265 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4266 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4267 For *cmp* builtins that take two sources strings report warnings
4268 about first and second source, not about destination and source.
4269
5e54f81d
MG
42702012-10-12 Marc Glisse <marc.glisse@inria.fr>
4271
4272 PR c++/53055
4273 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4274
f5b02f1e
EB
42752012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4276
4277 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4278 declaring something coming from another file.
4279
b46dbc6c
AC
42802012-10-10 Arnaud Charlet <charlet@adacore.com>
4281
f5b02f1e 4282 PR ada/54845
b46dbc6c
AC
4283 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4284
5d9de0d0
PC
42852012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4286
4287 PR c++/54194
4288 * c-common.c (warn_about_parentheses): Add location_t parameter;
4289 use EXPR_LOC_OR_LOC.
4290 * c-common.h: Update declaration.
4291
a212e43f
MG
42922012-10-09 Marc Glisse <marc.glisse@inria.fr>
4293
4294 PR c++/54427
4295 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4296 more operations. Make error messages optional.
4297 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4298 (scalar_to_vector): Declare.
4299
b1db7f91
JM
43002012-10-08 Jason Merrill <jason@redhat.com>
4301
4302 * c-common.c (c_common_reswords): Add thread_local.
4303
e28d52cf
DS
43042012-10-08 Dodji Seketeli <dodji@redhat.com>
4305
4306 PR c++/53528 C++11 attribute support
4307 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4308 new functions.
4309 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4310 static function.
4311 (handle_aligned_attribute): In choose strictest alignment
4312 among many. Use new check_cxx_fundamental_alignment_constraints.
4313 (handle_transparent_union_attribute): In c++11 attribute syntax,
4314 don't look through typedefs.
4315
3b78de56
AC
43162012-10-04 Arnaud Charlet <charlet@adacore.com>
4317
4318 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4319 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4320 out of dumpfile.h.
4321
6040bb5f
DC
43222012-09-25 Dehao Chen <dehao@google.com>
4323
4324 PR middle-end/54645
3b78de56 4325 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4326 map when read in the pch.
4327
0b07a57e
AC
43282012-09-18 Arnaud Charlet <charlet@adacore.com>
4329
4330 * c-ada-spec.c: Style fixes.
4331
da5182be
TQ
43322012-09-18 Thomas Quinot <quinot@adacore.com>
4333
4334 * c.opt (-fada-spec-parent): Define new command line switch.
4335 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4336 is specified, generate binding spec as a child of the specified unit.
4337
0ccb505d
PC
43382012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4339 Manuel López-Ibáñez <manu@gcc.gnu.org>
4340
4341 PR c++/53210
4342 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4343
c583af79
AC
43442012-08-23 Arnaud Charlet <charlet@adacore.com>
4345
4346 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4347 for pointers, and add missing Convention C pragma.
4348 (print_ada_struct_decl): Add missing aliased keyword.
4349 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4350
1a4049e7
JJ
43512012-08-17 Jakub Jelinek <jakub@redhat.com>
4352
4353 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4354 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4355 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4356 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4357 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4358
70b5e7dc
RG
43592012-08-10 Richard Guenther <rguenther@suse.de>
4360
4361 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4362
f8923f7e
SB
43632012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4364
4365 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4366 instead of separate pp_newline and pp_flush.
4367 (print_c_tree): Likewise.
4368
e45abe1f
RH
43692012-07-26 Richard Henderson <rth@redhat.com>
4370
4371 * c-common.c (handle_hot_attribute): Allow labels.
4372 (handle_cold_attribute): Likewise.
4373
332f1d24
JJ
43742012-07-20 Jakub Jelinek <jakub@redhat.com>
4375
4376 PR c++/28656
4377 * c-common.c (check_function_nonnull): Handle multiple nonnull
4378 attributes properly.
4379
7ee2468b
SB
43802012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4381
4382 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4383 * c-ada-spec.c: Likewise.
4384 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4385
ee7b28eb
SB
43862012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4387
4388 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4389 Remove code conditional on it.
4390
6bdf3519
SB
43912012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4392
4393 * c-gimplify.c: Do not include basic-block.h.
4394 * c-common.c: Do not include linfuncs.h.
4395
532aafad
SB
43962012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4397
4398 * c-common.h: Include tree.h.
4399
8d0d1915
JM
44002012-07-02 Jason Merrill <jason@redhat.com>
4401
4402 PR c++/53524
4403 * c-common.c (get_priority): Call default_conversion.
4404
fbc873ad
UB
44052012-07-01 Uros Bizjak <ubizjak@gmail.com>
4406
4407 * c-pch.c (c_common_write_pch): Remove unused variables.
4408
d4a10d0a
SB
44092012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4410
4411 * cppspec.c: Moved from gcc/ to here.
4412
6f3a2e23
KT
44132012-06-27 Kai Tietz <ktietz@redhat.com>
4414
4415 PR preprocessor/37215
4416 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4417
8ca92d04
SB
44182012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4419
4420 * c-common.h (c_common_print_pch_checksum): Remove.
4421 * c-pch.c: Do not include output.h.
4422 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4423 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4424 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4425 (struct c_pch_header): Remove.
4426 (get_ident): Update gpch version.
4427 (pch_init): Do not print executable_checksum to asm_out_file.
4428 Do not fail if there is no asm_out_file to read back from. Set
4429 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4430 (c_common_write_pch): Verify that nothing was written to asm_out_file
4431 since pch_init was called. Do not write a c_pch_header, and do not
4432 copy from asm_out_file to the PCH.
4433 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4434 the content of asm_out_file from the PCH.
4435 (c_common_print_pch_checksum): Remove.
4436 * c-opts.c (c_common_init): Print out executable_checksum directly.
4437
70f42967
SB
44382012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4439
4440 * c-target.def (objc_declare_unresolved_class_reference,
4441 objc_declare_class_definition): Add new hooks.
4442
a8781821
SB
44432012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4444
4445 * c-lex.c: Do not include output.h.
4446 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4447 Remove uses of ASM_OUTPUT_IDENT.
4448
9e1a8dd1
RR
44492012-06-15 Marc Glisse <marc.glisse@inria.fr>
4450
4451 PR c++/51033
4452 * c-common.h (c_build_vec_perm_expr): Move decl here.
4453 * c-common.c (c_build_vec_perm_expr): Move definition
4454 here.
4455
6f07a821
SB
44562012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4457
4458 * c.opt (fconserve-space): Turn into a no-op.
4459
9faeb493 44602012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4461
4462 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4463 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4464 both the start and end of the function.
4465
a4b7d13c
SB
44662012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4467
4468 * c-common.c: Do not include output.h.
4469 * c-pragma.c: Likewise.
4470
c265f413
SA
44712012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4472
4473 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4474 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4475 (lang_decl_name): Handle namespace decls.
4476
be7a421e
SB
44772012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4478
4479 * c-ada-spec.c: Do not include output.h.
4480 * c-semantics.c: Likewise.
4481
65de6659
JM
44822012-05-29 Joseph Myers <joseph@codesourcery.com>
4483
4484 * c-common.c: Fix typo.
4485
ca5f4331
MM
44862012-05-29 Michael Matz <matz@suse.de>
4487
4488 * c-common.h (c_expand_decl): Remove prototype.
4489
4f7f7aca
MLI
44902012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4491
4492 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4493 * c-opts.c (c_common_handle_option): Remove code handling
4494 warn_missing_braces.
4495
4a792f9b
PC
44962012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4497
4498 PR c++/25137
4499 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4500 -Wmissing_braces.
4501
650dc14a
DS
45022012-05-22 Dodji Seketeli <dodji@redhat.com>
4503
4504 PR c++/53322
4505 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4506
9b095bf1
MLI
45072012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4508
4509 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4510 * c-opts.c (c_common_handle_option): Do not handle explicitly
4511 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4512
0b2c4be5
DS
45132012-05-16 Dodji Seketeli <dodji@redhat.com>
4514
4515 PR preprocessor/7263
4516 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4517 to cpp_classify_number. For diagnostics, use the precise location
4518 instead of the global input_location.
4519
a1bde5af
PC
45202012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4521
d02924ef 4522 PR c++/11856
a1bde5af
PC
4523 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4524
d1ede5f4
BS
45252012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4526
a1bde5af 4527 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4528
f2bc201f
MLI
45292012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4530
4531 PR 53063
4532 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4533 Wreorder): Use LangEnabledBy.
4534 * c-opts.c (c_common_handle_option): Do not enable them
4535 explicitly. Call lang-specific generated functions.
4536 (c_common_post_options): Do not set them here.
4537
95744782
MLI
45382012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4539
4540 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4541 Wmissing-field-initializers,Wmissing-parameter-type,
4542 Wold-style-declaration,Woverride-init): Use EnabledBy.
4543 * c-opts.c (c_common_post_options): Do not set here explicitly.
4544
7d5a5747
MLI
45452012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4546
4547 PR 53063
4548 * c-opts.c (c_common_handle_option): Use handle_generated_option
4549 to enable sub-options.
4550
5a3c9cf2
PC
45512012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4552
4553 PR c++/53158
4554 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4555
3ac8781c
RG
45562012-05-10 Richard Guenther <rguenther@suse.de>
4557
4558 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4559 adjust commentary about TYPE_IS_SIZETYPE types.
4560
1e537948
MLI
45612012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4562
4563 PR c++/53261
4564 * c-common.c (warn_logical_operator): Check that argument of
4565 integer_zerop is not NULL.
4566
f2c4a785
MLI
45672012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4568
4569 PR c/43772
4570 * c-common.c (warn_logical_operator): Do not warn if either side
4571 is already true or false.
4572
50f305ca
MLI
45732012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4574
4575 PR c/51712
4576 * c-common.c (expr_original_type): New.
4577 (shorten_compare): Do not warn for enumeration types.
4578
0c3641b0
MLI
45792012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4580
4581 * c.opt (fpermissive): Add Var(flag_permissive).
4582
7edaa4d2
MG
45832012-04-30 Marc Glisse <marc.glisse@inria.fr>
4584
4585 PR c++/51033
4586 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4587 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4588
b9c8da34
DS
45892012-04-30 Dodji Seketeli <dodji@redhat.com>
4590
4591 Add -Wvarargs option
4592 * c.opt (Wvarargs): Define new option.
4593
e6c69da0
MLI
45942012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4595
4596 * c-common.c (check_function_arguments): Replace
4597 Wmissing-format-attribute with Wsuggest-attribute=format.
4598
90137d8f
MLI
45992012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4600
4601 * c.opt (Wsuggest-attribute=format): New. Alias of
4602 Wmissing-format-attribute.
4603 * c-format.c (decode_format_type): Replace
4604 Wmissing-format-attribute with Wsuggest-attribute=format.
4605 (check_function_format): Likewise.
4606
9faeb493 46072012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4608
4609 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4610 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4611 * c.opt: Add Wliteral-suffix.
4612
c1771a20
MLI
46132012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4614
4615 PR c/44774
4616 * c.opt (Wpedantic): New.
4617 (pedantic): Alias Wpedantic.
4618 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4619 (c_common_post_options): Likewise.
4620 (sanitize_cpp_opts): Likewise.
4621 * c-lex.c (interpret_float): Likewise.
4622 * c-format.c (check_format_types): Likewise.
4623 * c-common.c (pointer_int_sum): Likewise.
4624 (c_sizeof_or_alignof_type): Likewise.
4625 (c_add_case_label): Likewise.
4626 (c_do_switch_warnings): Likewise.
4627 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4628
04b391c1
JM
46292012-04-15 Jason Merrill <jason@redhat.com>
4630
4631 PR c++/52818
4632 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4633 (C_STD_NAME): Distinguish between C++98 and C++11.
4634
ac868f29
EB
46352012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4636
4637 PR target/52624
4638 * c-common.h (uint16_type_node): Rename into...
4639 (c_uint16_type_node): ...this.
4640 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4641 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4642
fd4116f4
MLI
46432012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4644
4645 * c-common.c (warn_if_unused_value): Move definition to here.
4646 * c-common.h (warn_if_unused_value): Move declaration to here.
4647
573ac65e
WB
46482012-03-23 William Bader <williambader@hotmail.com>
4649
4650 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4651
552b8185
JM
46522012-03-20 Jason Merrill <jason@redhat.com>
4653
4654 * c-common.h (enum cxx_dialect): Add cxx1y.
4655 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4656 test.
4657 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4658 * c-opts.c (c_common_post_options): Likewise.
4659 (set_std_cxx1y): New.
4660 (c_common_handle_option): Call it.
4661 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4662
04398fa8
PC
46632012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4664
4665 PR c++/14710
4666 * c.opt ([Wuseless-cast]): Add.
4667
d2a12ae7
RG
46682012-03-16 Richard Guenther <rguenther@suse.de>
4669
4670 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4671
a12bf402
MLI
46722012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4673
4674 PR c++/44783
4675 * c.opt (ftemplate-backtrace-limit) Add.
4676
5c30094f
RO
46772012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4678
4679 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4680 handling.
4681 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4682 (init_pragma): Don't register extern_prefix.
4683
21fa2faf
RG
46842012-03-12 Richard Guenther <rguenther@suse.de>
4685
4686 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4687 (builtin_type_for_size): Likewise.
4688
e3793c6f
JJ
46892012-02-13 Jakub Jelinek <jakub@redhat.com>
4690
4691 PR c++/52215
4692 * c-common.c (sync_resolve_params): Don't decide whether to convert
4693 or not based on TYPE_SIZE comparison, convert whenever arg_type
4694 is unsigned INTEGER_TYPE.
4695
93286335
PC
46962012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4697
4698 PR c/52118
4699 * c.opt ([Wunused-local-typedefs]): Fix description.
4700
7a421706
MS
47012012-01-24 Mike Stump <mikestump@comcast.net>
4702
4703 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4704 exactly.
4705
ba9b1f11
RG
47062012-01-18 Richard Guenther <rguenther@suse.de>
4707
4708 * c-opts.c (c_common_post_options): Reset LTO flags if
4709 we are about to generate a PCH.
4710
465406be
PC
47112012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4712
4713 PR c++/51777
4714 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4715 use pp_unsigned_wide_integer.
4716
aee15221
RG
47172012-01-10 Richard Guenther <rguenther@suse.de>
4718
4719 PR middle-end/51806
4720 * c-opts.c (c_common_handle_option): Move -Werror handling
4721 to language independent code.
4722
5720c0dc
RG
47232012-01-05 Richard Guenther <rguenther@suse.de>
4724
4725 PR middle-end/51764
4726 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4727 from common.opt.
4728
73ac190a
PC
47292011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4730
4731 PR c++/51316
4732 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4733 of array types with an unknown bound.
4734
48b0b196
JM
47352011-12-20 Joseph Myers <joseph@codesourcery.com>
4736
4737 * c-common.c (flag_isoc99): Update comment to refer to C11.
4738 (flag_isoc1x): Change to flag_isoc11.
4739 * c-common.h (flag_isoc99): Update comment to refer to C11.
4740 (flag_isoc1x): Change to flag_isoc11.
4741 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4742 C11.
4743 * c-opts.c (set_std_c1x): Change to set_std_c11.
4744 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4745 Call set_std_c11.
4746 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4747 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4748 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4749 standard.
4750 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4751 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4752 (std=gnu1x): Make alias of std=gnu11.
4753
d58d6eb5
JM
47542011-12-19 Jason Merrill <jason@redhat.com>
4755
4756 PR c++/51228
4757 * c-common.c (handle_transparent_union_attribute): Check the first
4758 field if the type is complete.
4759
b3908fcc
JW
47602011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4761
4762 PR libstdc++/51365
4763 * c-common.c (RID_IS_FINAL): Add.
4764 * c-common.h (RID_IS_FINAL): Add.
4765
fea3ca91
IS
47662011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4767
4768 * c.opt (fgnu-runtime): Provide full description.
4769 (fnext-runtime): Likewise.
4770 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4771
62bad7cd
AM
47722011-11-28 Andrew MacLeod <amacleod@redhat.com>
4773
4774 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4775 predefines in one place. Add LOCK_FREE predefines.
4776 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4777 new func.
4778
c466c4ff
AM
47792011-11-24 Andrew MacLeod <amacleod@redhat.com>
4780
4781 PR c/51256
9faeb493 4782 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 4783 conditions
9faeb493
UB
4784 (resolve_overloaded_atomic_exchange,
4785 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
4786 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4787 error_mark_node for error conditions.
9faeb493 4788
a5952633
RG
47892011-11-08 Richard Guenther <rguenther@suse.de>
4790
4791 PR middle-end/51010
4792 c-family/
4793
0a35513e
AH
47942011-11-07 Richard Henderson <rth@redhat.com>
4795 Aldy Hernandez <aldyh@redhat.com>
4796 Torvald Riegel <triegel@redhat.com>
4797
4798 Merged from transactional-memory.
4799
4800 * c-common.c (handle_tm_wrap_attribute,
4801 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4802 (struct c_common_reswords): Added __transaction* keywords.
4803 (struct c_common_attribute_table): Added transaction* and tm_regparm
4804 attributes.
4805 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4806 masks.
4807 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4808 find_tm_attribute): Declare.
4809
6d87092d
JM
48102011-11-07 Jason Merrill <jason@redhat.com>
4811
4812 PR c++/35688
4813 * c-common.c, c-common.h: Revert yesterday's changes.
4814
8e7860a1
JM
48152011-11-06 Jason Merrill <jason@redhat.com>
4816
4817 PR c++/35688
4818 * c-common.c (decl_has_visibility_attr): Split out from...
4819 (c_determine_visibility): ...here.
4820 * c-common.h: Declare it.
4821
d19fa6b5
JM
48222011-11-06 Joseph Myers <joseph@codesourcery.com>
4823
4824 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4825 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4826 type.
4827 (check_user_alignment): New. Split out of
4828 handle_aligned_attribute. Disallow integer constants with
4829 noninteger types. Conditionally allow zero.
4830 (handle_aligned_attribute): Use check_user_alignment.
4831 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4832
86951993
AM
48332011-11-06 Andrew MacLeod <amacleod@redhat.com>
4834 Richard Henderson <rth@redhat.com>
4835
4836 Merged from cxx-mem-model.
4837
4838 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 4839 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
4840 parameters that are the same type size.
4841 (get_atomic_generic_size): New. Find size of generic
4842 atomic function parameters and do typechecking.
4843 (add_atomic_size_parameter): New. Insert size into parameter list.
4844 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4845 either __atomic_exchange_n or external library call.
9faeb493 4846 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 4847 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 4848 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
4849 __atomic_load_n or an external library call.
4850 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4851 __atomic_store_n or an external library call.
4852 (resolve_overloaded_builtin): Handle new __atomic builtins.
4853
cf9e9959
EB
48542011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4855
4856 PR c++/50608
4857 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4858 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4859 <INDIRECT_REF>: Return the argument.
4860 <ARRAY_REF>: Remove special code for negative offset.
4861 Call fold_build_pointer_plus instead of size_binop.
4862 (fold_offsetof): Remove STOP_REF argument and adjust.
4863 * c-common.h (fold_offsetof_1): Declare.
4864 (fold_offsetof): Remove STOP_REF argument.
4865
25339f10
JM
48662011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4867
4868 PR c++/50810
4869 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4870 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4871 Wnarrowing for C++0x and C++98.
4872 * c.opt ([Wnarrowing]): Update.
4873
89401152
PC
48742011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4875
4876 PR c++/44277
4877 * c.opt: Add Wzero-as-null-pointer-constant.
4878
97e3ad20
JM
48792011-10-31 Jason Merrill <jason@redhat.com>
4880
15694fdd
JM
4881 * c.opt (-fdeduce-init-list): Off by default.
4882
97e3ad20
JM
4883 PR c++/50920
4884 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4885 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4886 and -Wc++11-compat.
4887 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4888
fb9120e3
RAV
48892011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4890
4891 PR c++/30066
4892 * c.opt (fvisibility-inlines-hidden): Description change.
4893
3ce4f9e4
ESR
48942011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4895
4896 Implement C++11 user-defined literals.
4897 * c-common.c (build_userdef_literal): New.
4898 * c-common.def: New tree code.
4899 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4900 * c-lex.c (interpret_float): Add suffix parm.
4901 (c_lex_with_flags): Build literal tokens.
4902
5f53c243
PC
49032011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4904
4905 PR c++/50841
4906 Revert:
4907 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4908
4909 PR c++/50810
4910 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4911 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4912 Wnarrowing for C++0x and C++98.
4913 * c.opt ([Wnarrowing]): Update.
4914
263734e1
PC
49152011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4916
4917 PR c++/50810
4918 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4919 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4920 Wnarrowing for C++0x and C++98.
4921 * c.opt ([Wnarrowing]): Update.
4922
d2e312d7
PC
49232011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4924
4925 PR c++/45385
4926 * c-common.c (conversion_warning): Remove code looking for
4927 artificial operands.
4928
d17687f6
DS
49292011-10-18 Dodji Seketeli <dodji@redhat.com>
4930
4931 PR bootstrap/50760
4932 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4933 !NO_IMPLICIT_EXTERN_C.
d17687f6 4934
fc8396e9
PC
49352011-10-17 Michael Spertus <mike_spertus@symantec.com>
4936
4937 * c-common.c (c_common_reswords): Add __bases,
4938 __direct_bases.
4939 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4940
49412011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4942
4943 PR c++/50757
4944 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4945
847e697a
TT
49462011-10-15 Tom Tromey <tromey@redhat.com>
4947 Dodji Seketeli <dodji@redhat.com>
4948
4949 * c.opt (fdebug-cpp): New option.
4950 * c-opts.c (c_common_handle_option): Handle the option.
4951 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4952 output stream in parameter. Factorized from ...
4953 (maybe_print_line): ... this. Dump location debug information when
4954 -fdebug-cpp is in effect.
4955 (print_line_1): New static function. Takes an output stream in
4956 parameter. Factorized from ...
4957 (print_line): ... here. Dump location information when -fdebug-cpp
4958 is in effect.
4959 (scan_translation_unit): Dump location information when
4960 -fdebug-cpp is in effect.
4961
92582b75
TT
49622011-10-15 Tom Tromey <tromey@redhat.com>
4963 Dodji Seketeli <dodji@redhat.com>
4964
4965 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4966 without argument.
4967 * c-opts.c (c_common_handle_option)<case
4968 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4969 cases. Handle -ftrack-macro-expansion with and without argument.
4970
46427374
TT
49712011-10-15 Tom Tromey <tromey@redhat.com>
4972 Dodji Seketeli <dodji@redhat.com>
4973
4974 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4975 (print_line, cb_define, do_line_change): Adjust to avoid touching
4976 the internals of struct line_map. Use the public API instead.
4977 * c-pch.c (c_common_read_pch): Likewise.
4978 * c-lex.c (fe_file_change): Likewise.
4979
fc8396e9
PC
49802011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4981
4982 PR c++/17212
4983 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4984
49852011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4986
4987 PR c++/33067
4988 * c-pretty-print.c (pp_c_floating_constant): Output
4989 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4990
e79983f4
MM
49912011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4992
4993 * c-common.c (def_builtin_1): Delete old interface with two
4994 parallel arrays to hold standard builtin declarations, and replace
4995 it with a function based interface that can support creating
4996 builtins on the fly in the future. Change all uses, and poison
4997 the old names. Make sure 0 is not a legitimate builtin index.
4998 * c-omp.c (c_finish_omp_barrier): Ditto.
4999 (c_finish_omp_taskwait): Ditto.
5000 (c_finish_omp_flush): Ditto.
5001
6637388f
TG
50022011-10-11 Tristan Gingold <gingold@adacore.com>
5003
5004 * c.opt: (fallow-parameterless-variadic-functions): New.
5005
3797cb21
DS
50062011-09-08 Dodji Seketeli <dodji@redhat.com>
5007
5008 PR c++/33255 - Support -Wunused-local-typedefs warning
5009 * c-common.h (struct c_language_function::local_typedefs): New
5010 field.
9faeb493
UB
5011 (record_locally_defined_typedef, maybe_record_typedef_use)
5012 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 5013 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
5014 (maybe_record_typedef_use)
5015 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
5016 * c.opt: Declare new -Wunused-local-typedefs flag.
5017
693ddb1b
EB
50182011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5019
5020 PR middle-end/50266
5021 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5022 computations.
5023
830c740f
RG
50242011-09-05 Richard Guenther <rguenther@suse.de>
5025
5026 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5027 of integer_minus_one_node for empty array upper bounds.
5028
892a371f
DS
50292011-08-28 Dodji Seketeli <dodji@redhat.com>
5030
5031 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5032 it's the first time it's being called on this main TU.
5033
0e3fdb48
RB
50342011-08-24 Richard Guenther <rguenther@suse.de>
5035
5036 PR c/49396
5037 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5038
50392011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
5040
5041 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5042 defined in cpp_init_builtins and c_cpp_builtins.
5043
d4a83c10
JM
50442011-08-19 Joseph Myers <joseph@codesourcery.com>
5045
5046 * c-common.c (c_common_reswords): Add __builtin_complex.
5047 * c-common.h (RID_BUILTIN_COMPLEX): New.
5048
bbceee64
JM
50492011-08-18 Joseph Myers <joseph@codesourcery.com>
5050
5051 * c-common.c (c_common_reswords): Add _Noreturn.
5052 (keyword_is_function_specifier): Handle RID_NORETURN.
5053 * c-common.h (RID_NORETURN): New.
5054
0e3a99ae
AS
50552011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5056
5057 * c-common.c (unsafe_conversion_p): New function. Check if it is
5058 unsafe to convert an expression to the type.
5059 (conversion_warning): Adjust, use unsafe_conversion_p.
5060 * c-common.h (unsafe_conversion_p): New function declaration.
5061
20906c66
JJ
50622011-08-02 Jakub Jelinek <jakub@redhat.com>
5063
5064 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5065 (c_finish_omp_taskyield): New prototype.
5066 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5067 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5068 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5069 or RHS1 have side-effects, evaluate those too in the right spot,
5070 if it is a decl and LHS is also a decl, error out if they
5071 aren't the same.
5072 (c_finish_omp_taskyield): New function.
5073 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5074 * c-pragma.c (omp_pragmas): Add taskyield.
5075 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5076 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5077 PRAGMA_OMP_CLAUSE_MERGEABLE.
5078
770e5a2e
DS
50792011-07-25 Dodji Seketeli <dodji@redhat.com>
5080
5081 * c-common.h (set_underlying_type): Remove parm name from
5082 declaration.
5083
1baae426
RG
50842011-07-25 Romain Geissler <romain.geissler@gmail.com>
5085
5086 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 5087
fcb21722
JM
50882011-07-22 Jason Merrill <jason@redhat.com>
5089
76f86d00
JM
5090 PR c++/49793
5091 * c.opt (Wnarrowing): New.
5092
3a636414
JM
5093 PR c++/30112
5094 * c-common.h: Declare c_linkage_bindings.
5095 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5096
fcb21722
JM
5097 PR c++/49813
5098 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5099 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5100 as flag_isoc99 for 'restrict'.
5101 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5102
02614448
ILT
51032011-07-21 Ian Lance Taylor <iant@google.com>
5104
5105 PR middle-end/49705
5106 * c-common.c (c_disable_warnings): New static function.
5107 (c_enable_warnings): New static function.
5108 (c_fully_fold_internal): Change local unused_p to bool. Call
5109 c_disable_warnings and c_enable_warnings rather than change
5110 c_inhibit_evaluation_warnings.
5111
34429675
JM
51122011-07-20 Jason Merrill <jason@redhat.com>
5113
5114 PR c++/6709 (DR 743)
5115 PR c++/42603 (DR 950)
5116 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5117 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5118 (CPP_DECLTYPE): New.
5119 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5120
5d49b6a7
RG
51212011-07-19 Richard Guenther <rguenther@suse.de>
5122
5123 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5124 * c-omp.c (c_finish_omp_for): Likewise.
5125
e84a58ff
EB
51262011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5127
5128 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5129 body on the next line.
5130
329af3c7
JM
51312011-07-08 Jason Merrill <jason@redhat.com>
5132
4063e61b
JM
5133 PR c++/45437
5134 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5135
329af3c7
JM
5136 PR c++/49673
5137 * c-common.c (c_apply_type_quals_to_decl): Don't check
5138 TYPE_NEEDS_CONSTRUCTING.
5139
1a072294
RG
51402011-07-06 Richard Guenther <rguenther@suse.de>
5141
5142 * c-common.c (c_common_nodes_and_builtins):
5143 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5144
fce5dddd
RG
51452011-07-05 Richard Guenther <rguenther@suse.de>
5146
5147 * c-common.c (c_common_nodes_and_builtins): Build all common
5148 tree nodes first.
5149
45d439ac
JJ
51502011-06-27 Jakub Jelinek <jakub@redhat.com>
5151
56300785
JJ
5152 * c-common.h (c_tree_chain_next): New static inline function.
5153
45d439ac
JJ
5154 * c-common.c (check_builtin_function_arguments): Handle
5155 BUILT_IN_ASSUME_ALIGNED.
5156
e0a8ecf2
AM
51572011-06-21 Andrew MacLeod <amacleod@redhat.com>
5158
5159 * c-common.c: Add sync_ or SYNC__ to builtin names.
5160 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5161
51622011-06-20 Pierre Vittet <piervit@pvittet.com>
5163
5164 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5165 handler.
5166 (gen_pragma_handler): New union.
5167 (internal_pragma_handler): New type.
5168 (c_register_pragma_with_data)
5169 (c_register_pragma_with_expansion_and_data): New functions.
5170
5171 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5172 (c_register_pragma, c_register_pragma_with_expansion)
5173 (c_invoke_pragma_handler): Changed to work with
5174 internal_pragma_handler.
5175 (c_register_pragma_with_data)
5176 (c_register_pragma_with_expansion_and_data): New functions.
5177
677f3fa8
JM
51782011-06-14 Joseph Myers <joseph@codesourcery.com>
5179
5180 * c-common.c: Include common/common-target.h.
5181 (handle_section_attribute): Use
5182 targetm_common.have_named_sections.
5183 * c-cppbuiltin.c: Include common/common-target.h.
5184 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5185
d7fc8c14
RG
51862011-06-10 Richard Guenther <rguenther@suse.de>
5187
5188 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5189 to print a IDENTIFIER_NODE.
5190
10e48e39
RO
51912011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5192 Joseph Myers <joseph@codesourcery.com>
5193
5194 * c.opt (fbuilding-libgcc): New option.
5195 * c-cppbuiltin.c (c_cpp_builtins): Define
5196 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5197
6976ae51
JM
51982011-06-07 Jason Merrill <jason@redhat.com>
5199
3ff60975
JM
5200 * c-common.c (max_tinst_depth): Lower default to 900.
5201
6976ae51
JM
5202 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5203
009db074
RG
52042011-06-07 Richard Guenther <rguenther@suse.de>
5205
5206 * c-common.c (c_common_nodes_and_builtins): Do not set
5207 size_type_node or call set_sizetype.
5208
b4592b92
DS
52092011-06-07 Dodji Seketeli <dodji@redhat.com>
5210
5211 PR debug/49130
5212 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 5213 type when using pointer comparison to compare types.
b4592b92 5214
014ab419
JW
52152011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5216
5217 * c.opt: Add -Wdelete-non-virtual-dtor.
5218 * c-opts.c (c_common_handle_option): Include it in -Wall.
5219
4f60111f
NF
52202011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5221
5222 PR bootstrap/49190
5223
5224 Revert:
5225 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5226
5227 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5228 not tree_common.
5229
4cc4f2f4
JJ
52302011-05-27 Jakub Jelinek <jakub@redhat.com>
5231
5232 PR c++/49165
5233 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5234 C++ don't call c_common_truthvalue_conversion on void type arms.
5235
38e01f9e
NF
52362011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5237
5238 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5239 (stmt_list_stack): Define.
5240 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5241 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5242
92e948a8
NF
52432011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5244
5245 * c-common.c (warning_candidate_p): Check for BLOCKs.
5246
a2fc3e63
NF
52472011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5248
5249 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5250 not tree_common.
5251
0957c029
JJ
52522011-05-25 Jakub Jelinek <jakub@redhat.com>
5253
5254 * c-common.c (def_fn_type): Remove extra va_end.
5255
828fb3ba
JM
52562011-05-23 Jason Merrill <jason@redhat.com>
5257
5258 PR c++/48106
5259 * c-common.c (c_common_get_narrower): New.
5260 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5261
dde05067
NF
52622011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5263
5264 * c-common.h (check_function_arguments): Tweak prototype of
5265 check_function_arguments.
5266 * c-common.c (check_function_arguments): Likewise. Adjust
5267 calls to check_function_nonnull, check_function_format, and
5268 check_function_sentinel.
5269 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5270 separate attributes and typelist arguments. Use
5271 FOREACH_FUNCTION_ARGS to iterate over argument types.
5272
3c0d13bf
PC
52732011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5274
5275 * c-common.c (c_common_reswords): Reorder.
5276 * c-common.h (rid): Likewise.
5277
8242dd04
NF
52782011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5279
5280 * c-common.c (def_fn_type): Don't call build_function_type, call
5281 build_function_type_array or build_varargs_function_type_array
5282 instead.
5283 (c_common_nodes_and_builtins): Likewise.
5284
3d528853
NF
52852011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5286
5287 * c-common.c (c_add_case_label): Omit the loc argument to
5288 build_case_label.
5289 * c-common.h (build_case_label): Remove.
5290 * c-semantics.c (build_case_label): Remove.
5291
a04a722b
JM
52922011-05-05 Joseph Myers <joseph@codesourcery.com>
5293
5294 * c-objc.h (objc_start_method_definition): Update prototype.
5295 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5296
e19a18d4
NF
52972011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5298
5299 * c-common.c (check_main_parameter_types): Reindent. Don't use
5300 TYPE_ARG_TYPES directly.
5301 (handle_nonnull_attribute): Likewise.
5302 (sync_resolve_params): Likewise.
5303 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5304 to check_format_string.
5305 (handle_format_attribute): Likewise.
5306 (check_format_string): Take a function type to examine instead of
5307 a type list. Use a function_arg_iterator to step through argument
5308 types.
5309
c62c040f
RG
53102011-05-04 Richard Guenther <rguenther@suse.de>
5311
5312 * c-common.c (fix_string_type): Use size_int for index type bounds.
5313 (start_fname_decls): Do not pass NULL to build_int_cst.
5314 (c_init_attributes): Likewise.
5315 * c-lex.c (c_lex_with_flags): Likewise.
5316
c12ff9d8
JM
53172011-04-27 Jason Merrill <jason@redhat.com>
5318
5319 * c-common.c (make_tree_vector_from_list): New.
5320 * c-common.h: Declare it.
5321
304dfbe3
RG
53222011-04-26 Richard Guenther <rguenther@suse.de>
5323
5324 PR preprocessor/48248
5325 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5326 for output size with -P.
5327
3c0d13bf
PC
53282011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5329
5330 * c-common.c (struct c_common_resword): Add __underlying_type.
5331 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5332
04695783
JM
53332011-04-20 Jim Meyering <meyering@redhat.com>
5334
5335 * c-format.c (init_dollar_format_checking): Remove useless
5336 if-before-free.
5337
0dc33c3c
NP
53382011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5339
5340 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5341 (objc_detect_field_duplicates): New.
0dc33c3c 5342 * stub-objc.c: Likewise.
3c0d13bf 5343
c59633d9
NP
53442011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5345
5346 * stub-objc.c (objc_declare_protocols): Renamed to
5347 objc_declare_protocol.
5348 * c-objc.h: Likewise.
3c0d13bf 5349
32dabdaf
NP
53502011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5351
5352 * stub-objc.c (objc_declare_class): Updated argument name.
5353
81f653d6
NF
53542011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5355
5356 * c-common.h (c_common_init_ts): Declare.
5357 * c-common.c (c_common_init_ts): Define.
5358
eb345401
NP
53592011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5360
5361 * c-objc.h (objc_build_message_expr): Updated prototype.
5362 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 5363
a358e188
MJ
53642011-04-12 Martin Jambor <mjambor@suse.cz>
5365
5366 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5367 of cgraph_node.
5368
e6313a78
RG
53692011-04-11 Richard Guenther <rguenther@suse.de>
5370
5371 * c-common.c (complete_array_type): Build a range type of
5372 proper type.
5373
dcf0c47e
NF
53742011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5375
5376 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5377 (handle_type_generic_attribute): Likewise.
5378
1ee44b26
JM
53792011-04-07 Jason Merrill <jason@redhat.com>
5380
5381 PR c++/48450
5382 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5383 conversion from C++0x scoped enum.
5384
acce4e77
JM
53852011-04-06 Joseph Myers <joseph@codesourcery.com>
5386
5387 * c-target-def.h: New file.
5388 * c-target.def: New file.
5389 * c-target.h: New file.
5390 * c-common.c (targetcm): Don't define here.
5391 * c-common.h (default_handle_c_option): Declare.
5392 * c-format.c: Include c-target.h instead of target.h.
5393 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5394 include tm.h.
5395 (default_handle_c_option): Move from targhooks.c.
5396
e2eefb55
JJ
53972011-03-29 Jakub Jelinek <jakub@redhat.com>
5398
5399 PR preprocessor/48248
5400 * c-ppoutput.c (print): Add src_file field.
5401 (init_pp_output): Initialize it.
5402 (maybe_print_line): Don't optimize by adding up to 8 newlines
5403 if map->to_file and print.src_file are different file.
5404 (print_line): Update print.src_file.
5405
ba78087b
KT
54062011-03-25 Kai Tietz <ktietz@redhat.com>
5407
5408 * c-ada-spec.c (compare_comment): Use filename_cmp
5409 instead of strcmp for filename.
5410
0edf1bb2
JL
54112011-03-25 Jeff Law <law@redhat.com>
5412
adfac8df 5413 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 5414
c7dc8804
JM
54152011-03-25 Jason Merrill <jason@redhat.com>
5416
5417 * c.opt: Add -std=c++03.
5418
d1d879b1
EB
54192011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5420
5421 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5422
62d784f7
KT
54232011-03-17 Kai Tietz
5424
5425 PR target/12171
5050afdf
KT
5426 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5427 Display allowed attributes for function pointer types.
5428 (pp_c_attributes_display): New function to display
5429 attributes having affects_type_identity flag set to true.
5430 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5431
62d784f7
KT
5432 * c-common.c (c_common_attribute_table):
5433 Add new element.
5434 (c_common_format_attribute_table): Likewise.
5435
82d37118
JM
54362011-03-18 Jason Merrill <jason@redhat.com>
5437
49a000c3
JM
5438 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5439 * c-common.h: Don't declare it here.
5440 * c-common.c: Or define it here.
5441 * c-opts.c (c_common_handle_option): Or set it here.
5442
82d37118
JM
5443 PR c++/35315
5444 * c-common.c (handle_transparent_union_attribute): Don't
5445 make a duplicate type in C++.
5446
17bc631c
JM
54472011-03-15 Jason Merrill <jason@redhat.com>
5448
5449 * c-common.c (max_constexpr_depth): New.
5450 * c-common.h: Declare it.
5451 * c-opts.c (c_common_handle_option): Set it.
5452 * c.opt (fconstexpr-depth): New option.
5453
1b9b91a6
JM
54542011-03-11 Jason Merrill <jason@redhat.com>
5455
f231b5ff
JM
5456 * c-common.c (attribute_takes_identifier_p): Add missing const.
5457
1b9b91a6
JM
5458 PR c++/46803
5459 * c-common.c (attribute_takes_identifier_p): Assume that an
5460 unknown attribute takes an identifier.
5461
a19e4d44
NF
54622011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5463
5464 PR c/47786
5465 * c-common.c (c_type_hash): Call list_length instead of iterating
5466 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5467
982d62f6
JJ
54682011-02-19 Jakub Jelinek <jakub@redhat.com>
5469
5470 PR c/47809
5471 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5472
0a256240
NP
54732011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5474
5475 * c.opt (fobjc-abi-version=) New.
5476 (fobjc-nilcheck): New.
5477
ba9e6dd5
NF
54782011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5479
5480 PR c++/46890
5481 * c-common.h (keyword_is_decl_specifier): Declare.
5482 * c-common.c (keyword_is_decl_specifier): Define.
5483 (keyword_is_function_specifier): New function.
5484
7273813a
JJ
54852011-01-26 Jakub Jelinek <jakub@redhat.com>
5486
5487 PR c/47473
5488 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5489 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5490 REAL_TYPE.
5491
908ef79b
AC
54922011-01-26 Arnaud Charlet <charlet@adacore.com>
5493
5494 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5495
237e9384
JJ
54962011-01-26 Jakub Jelinek <jakub@redhat.com>
5497
5498 PR pch/47430
5499 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5500 after init_c_lex if pch_file is set.
5501
47ea1edf
DK
55022011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5503
d4dba752 5504 PR c++/43601
47ea1edf
DK
5505 * c.opt (-fkeep-inline-dllexport): New switch.
5506
2aa9c6ae
RG
55072011-01-12 Richard Guenther <rguenther@suse.de>
5508
5509 PR middle-end/32511
5510 * c-common.c (handle_weak_attribute): Warn instead of error
5511 on declaring an inline function weak.
5512
7bd11157
TT
55132011-01-05 Tom Tromey <tromey@redhat.com>
5514
5515 * c-common.h (lvalue_error): Update.
5516 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5517 not error.
5518
0e66e494 55192010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5520
b4f588c4
NP
5521 PR objc/47075
5522 * c-objc.h (objc_finish_message_expr): Added argument to
5523 prototype.
5524
f4da8dce
NF
55252010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5526
5527 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5528 Use prototype_p.
5529
46270f14
NP
55302010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5531
5532 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5533 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5534
4816c593
NF
55352010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5536
5537 * c-common.h (readonly_error): Declare.
5538 * c-common.c (readonly_error): Define.
5539
7a6daeb0
NF
55402010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5541
5542 * c-common.h (invalid_indirection_error): Declare.
5543 * c-common.c (invalid_indirection_error): Define.
5544
892f6119
RG
55452010-12-03 Richard Guenther <rguenther@suse.de>
5546
5547 PR c/46745
5548 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5549 (pp_c_unary_expression): Likewise.
5550 (pp_c_expression): Likewise.
5551
6c39e757
NP
55522010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5553
5554 * c-common.h (objc_finish_function): New.
5555 (objc_non_volatilized_type): Removed.
5556 (objc_type_quals_match): Removed.
5557 * stub-objc.c (objc_finish_function): New.
5558 (objc_non_volatilized_type): Removed.
5559 (objc_type_quals_match): Removed.
9faeb493 5560
7c475d11
JM
55612010-11-30 Joseph Myers <joseph@codesourcery.com>
5562
5563 * c-common.h (parse_optimize_options): Declare.
5564 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5565 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5566
71f3e391
JM
55672010-11-29 Joseph Myers <joseph@codesourcery.com>
5568
5569 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5570 GET_ENVIRONMENT.
5571 * c-pch.c (O_BINARY): Don't define here.
5572 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5573
d5fabb58
JM
55742010-11-25 Joseph Myers <joseph@codesourcery.com>
5575
5576 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5577 targetm.except_unwind_info.
5578
299404a1
JM
55792010-11-23 Joseph Myers <joseph@codesourcery.com>
5580
5581 * c-opts.c (c_common_handle_option): Pass location to
5582 set_struct_debug_option.
5583
c98cd5bf
JM
55842010-11-23 Joseph Myers <joseph@codesourcery.com>
5585
5586 * c-common.c (visibility_options): Move from ../opts.c.
5587 * c-common.h (struct visibility_flags, visibility_options):
5588 Declare here.
5589 * c-opts.c (finish_options): Rename to c_finish_options.
5590 (c_common_init): Update call to finish_options.
5591
a9546771
NP
55922010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5593
5594 PR objc/34033
5595 * c-lex.c (lex_string): Check that each string in an Objective-C
5596 string concat sequence starts with either one or zero '@', and
5597 that there are no spurious '@' signs at the end.
5598
24a57808
JM
55992010-11-20 Joseph Myers <joseph@codesourcery.com>
5600
5601 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5602 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5603 HANDLE_PRAGMA_VISIBILITY.
5604 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5605 HANDLE_PRAGMA_VISIBILITY): Don't define.
5606 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5607
a9aa2c3a
NF
56082010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5609
5610 PR c++/16189
5611 PR c++/36888
5612 PR c++/45331
5613 * c-common.h (keyword_begins_type_specifier): Declare.
5614 (keyword_is_storage_class_specifier): Declare.
5615 (keyword_is_type_qualifier): Declare.
5616 * c-common.c (keyword_begins_type_specifier): New function.
5617 (keyword_is_storage_class_specifier): New function.
5618 (keyword_is_type_qualifier): Declare.
5619
5386338c
JM
56202010-11-19 Joseph Myers <joseph@codesourcery.com>
5621
5622 PR c/46547
5623 * c-common.c (in_late_binary_op): Define.
5624 (c_common_truthvalue_conversion): Check in_late_binary_op before
5625 calling c_save_expr.
5626 * c-common.h (in_late_binary_op): Declare.
5627
69ccdddb
JM
56282010-11-19 Joseph Myers <joseph@codesourcery.com>
5629
5630 * c-opts.c (c_common_handle_option): Update calls to
5631 set_struct_debug_option.
5632
6b192a09
NP
56332010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5634
5635 * c-common.h (objc_declare_protocols): Added additional argument.
5636 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 5637
fb52b50a
NF
56382010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5639
5640 PR c/33193
5641 * c-common.h (build_real_imag_expr): Declare.
5642 * c-semantics.c (build_real_imag_expr): Define.
5643
b37421c6
JM
56442010-11-17 Joseph Myers <joseph@codesourcery.com>
5645
5646 * c-opts.c (c_common_parse_file): Take no arguments.
5647 * c-common.h (c_common_parse_file): Update prototype.
5648
07078664
JJ
56492010-11-16 Jakub Jelinek <jakub@redhat.com>
5650
5651 PR c++/46401
5652 * c-common.c (warning_candidate_p): Don't track non-const calls
5653 or STRING_CSTs.
5654
c6a13190
ILT
56552010-11-15 Ian Lance Taylor <iant@google.com>
5656
5657 * c-lex.c (init_c_lex): Set macro debug callbacks if
5658 flag_dump_go_spec is set.
5659
925e8657
NP
56602010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5661
5662 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5663 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5664
bb0a9581
NF
56652010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5666
5667 PR preprocessor/45038
5668 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5669 dialects.
5670
c5fa0890
JM
56712010-11-12 Joseph Myers <joseph@codesourcery.com>
5672
5673 * c-common.h (c_family_lang_mask): Declare.
5674 * c-opts.c (c_family_lang_mask): Make extern.
5675 * c-pragma.c (handle_pragma_diagnostic): Use
5676 control_warning_option.
5677
a4d8c676
JM
56782010-11-12 Joseph Myers <joseph@codesourcery.com>
5679
5680 * c-common.c (parse_optimize_options): Update call to
5681 decode_options.
5682 * c-common.h (c_common_handle_option): Update prototype.
5683 * c-opts.c (c_common_handle_option): Take location_t parameter and
5684 pass it to other functions.
5685
f954bd2c
JM
56862010-11-11 Joseph Myers <joseph@codesourcery.com>
5687
5688 * c-opts.c (warning_as_error_callback): Remove.
5689 (c_common_initialize_diagnostics): Don't call
5690 register_warning_as_error_callback.
5691 (c_common_handle_option): Handle -Werror=normalized= here.
5692
d8a07487
JM
56932010-11-10 Joseph Myers <joseph@codesourcery.com>
5694
5695 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5696 in diagnostic.
5697 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5698 letter.
5699 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5700 Remove trailing '.' from diagnostics.
5701 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5702
d5478783
JM
57032010-11-10 Joseph Myers <joseph@codesourcery.com>
5704
5705 * c-common.c (parse_optimize_options): Pass global_dc to
5706 decode_options.
5707 * c-opts.c (c_common_handle_option): Pass &global_options to
5708 set_Wstrict_aliasing.
5709 * c.opt (v): Don't mark Common or document here.
5710
91ebb981
IS
57112010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5712
5713 PR target/44981
5714 * c-format.c (format_type): New type gcc_objc_string_format_type.
5715 (valid_stringptr_type_p): New.
5716 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 5717 (check_format_string): Pass expected type, use
91ebb981
IS
5718 valid_stringptr_type_p (), check that the format string types are
5719 consistent with the format specification.
5720 (decode_format_attr): Warn if NSString is used outside objective-c.
5721 (format_types_orig): Add NSString.
5722 (format_name): New.
5723 (format_flags): New.
5724 (check_format_arg): Handle format strings requiring an external parser.
5725 first_target_format_type: New variable.
5726 (handle_format_attribute): Set up first_target_format_type, pass the
5727 expected format arg string type to check_format_string().
5728 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5729 * stub-objc.c (objc_string_ref_type_p): New.
5730 (objc_check_format_arg): New.
5731
bede2adc
NP
57322010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5733
9faeb493 5734 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
5735 * c-common.h (objc_build_class_component_ref): New.
5736 * stub-objc.c (objc_build_class_component_ref): New.
5737
9a179d01
NP
57382010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5739
5740 * c.opt (Wproperty-assign-default): New option.
5741
22d8d616
NP
57422010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5743
5744 Implemented -fobjc-std=objc1 flag.
5745 * c.opt (fobjc-std=objc1): New option.
5746
2debdb4f
NP
57472010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5748
5749 Implemented format and noreturn attributes for Objective-C methods.
5750 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5751 attribute for Objective-C methods.
5752
ec52b111
JM
57532010-10-31 Jason Merrill <jason@redhat.com>
5754
5755 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5756 EXPR_LOC_OR_HERE.
5757
46a88c12
NP
57582010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5759
5760 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5761 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5762 (objc_add_property_declaration): Removed arguments for copies and
5763 ivar.
5764 (objc_build_getter_call): Renamed to
5765 objc_maybe_build_component_ref.
5766 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5767 (objc_is_property_ref): New.
5768 * c-common.c (c_common_reswords): Removed copies and ivar.
5769 * stub-objc.c (objc_add_property_declaration): Removed arguments
5770 for copies and ivar.
5771 (objc_build_getter_call): Renamed to
5772 objc_maybe_build_component_ref.
5773 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5774 (objc_is_property_ref): New.
9faeb493 5775
1e4bf85b
AC
57762010-10-29 Arnaud Charlet <charlet@adacore.com>
5777 Matthew Gingell <gingell@adacore.com>
5778
5779 * c-ada-spec.c (separate_class_package): New function.
5780 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5781 name of their enclosing package.
5782 (print_ada_declaration): Use separate_class_package.
5783
81f0bab2
JM
57842010-10-27 Jason Merrill <jason@redhat.com>
5785
2b08f2c5
JM
5786 * c-common.c (c_common_reswords): Add __is_literal_type.
5787 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5788
81f0bab2
JM
5789 * c-common.c (check_case_value): Remove special C++ code.
5790
200290f2
NP
57912010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5792
5793 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5794 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5795 and RID_LAST_PATTR.
5796 (objc_add_property_declaration): Added additional arguments.
5797 (objc_property_attribute_kind): Removed.
5798 (objc_set_property_attr): Removed.
5799 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5800 copy and nonatomic.
5801 * stub-objc.c (objc_add_property_declaration): Added additional
5802 arguments.
5803 (objc_set_property_attr): Removed.
9faeb493 5804
f614132b
NP
58052010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5806
5807 * c-common.h (objc_add_property_variable): Renamed to
5808 objc_add_property_declaration. Added location argument.
5809 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 5810
b8a18805
NP
58112010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5812
5813 * c-common.h (objc_maybe_printable_name): New.
5814 * stub-objc.c (objc_maybe_printable_name): New.
5815
30cd1c5d
AS
58162010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5817 Andrew Pinski <pinskia@gmail.com>
5818
5819 * c-common.h (c_common_mark_addressable_vec): Declare.
5820 * c-common.c (c_common_mark_addressable_vec): New function.
5821
249a82c4
NP
58222010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5823
5824 * c-common.h (objc_set_method_type): Removed.
5825 (objc_add_method_declaration): Added boolean argument.
5826 (objc_start_method_definition): Same change.
5827 (objc_build_method_signature): Same change.
5828 * stub-objc.c (objc_set_method_type): Removed.
5829 (objc_add_method_declaration): Added boolean argument.
5830 (objc_start_method_definition): Same change.
5831 (objc_build_method_signature): Same change.
5832
977e30bc
NP
58332010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5834
5835 * c-common.h (finish_file): Removed.
5836 (objc_write_global_declarations): New.
5837 * c-opts.c (c_common_parse_file): Do not call finish_file.
5838 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 5839
da57d1b9
NP
58402010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5841
5842 Implemented parsing @synthesize and @dynamic for
5843 Objective-C/Objective-C++.
5844 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5845 (objc_add_synthesize_declaration): New.
5846 (objc_add_dynamic_declaration): New.
5847 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5848 * stub-objc.c (objc_add_synthesize_declaration): New.
5849 (objc_add_dynamic_declaration): New.
9faeb493 5850
0069111f
MM
58512010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5852
5853 PR target/46041
5854 * c-cppbuiltin.c (mode_has_fma): Move function here from
5855 builtins.c. Don't use the fma optab, instead just use the
5856 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5857 using -save-temps.
5858
e426b47b
NP
58592010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5860
5861 Merge from 'apple/trunk' branch on FSF servers.
0069111f 5862
e426b47b
NP
5863 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5864
9faeb493 5865 Radar 4330422
e426b47b
NP
5866 * c-common.h (objc_non_volatilized_type): New declaration
5867 * stub-objc.c (objc_non_volatilized_type): New stub.
5868
90fbfdc3
NP
58692010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5870
e426b47b 5871 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
5872
5873 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5874
9faeb493 5875 Radar 4133425
90fbfdc3 5876 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 5877 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 5878
c37d8c30
IS
58792010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5880
5881 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5882 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5883 (objc_ivar_visibility_kind): New enum.
5884 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 5885 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
5886 visibility enum.
5887
1b1562a5
MM
58882010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5889
5890 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5891 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5892 has the appropriate fma builtins.
5893 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5894
668ea4b1
IS
58952010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5896
1b1562a5 5897 merge from FSF apple 'trunk' branch.
668ea4b1 5898 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 5899
668ea4b1
IS
5900 Radars 4436866, 4505126, 4506903, 4517826
5901 * c-common.c (c_common_resword): Define @property and its attributes.
5902 * c-common.h: Define property attribute enum entries.
5903 (OBJC_IS_PATTR_KEYWORD): New.
5904 (objc_property_attribute_kind): New enum.
5905 Declare objc_set_property_attr (), objc_add_property_variable (),
5906 objc_build_getter_call () and objc_build_setter_call ().
5907 * stub-objc.c (objc_set_property_attr): New stub.
5908 (objc_add_property_variable): Likewise.
5909 (objc_build_getter_call): Likewise.
5910 (objc_build_setter_call) Likewise.
1b1562a5 5911
a1178b30
IS
59122010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5913
1b1562a5 5914 merge from FSF apple 'trunk' branch.
a1178b30
IS
5915 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5916
5917 Radar 3803157 (method attributes)
5918 * c-common.c (handle_deprecated_attribute): Recognize
5919 objc methods as valid declarations.
5920 * c-common.h: Declare objc_method_decl ().
1b1562a5 5921 * stub-objc.c (objc_method_decl): New stub.
a1178b30 5922
a75bfaa6
JM
59232010-10-08 Joseph Myers <joseph@codesourcery.com>
5924
5925 * c-common.c (parse_optimize_options): Call
5926 decode_cmdline_options_to_array_default_mask before
5927 decode_options. Update arguments to decode_options.
5928 * c-common.h (c_common_init_options_struct): Declare.
5929 * c-opts.c (c_common_init_options_struct): New. Split out from
5930 c_common_init_options.
5931
f05b9d93
NP
59322010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5933
5934 Implemented fast enumeration for Objective-C.
5935 * c-common.h (objc_finish_foreach_loop): New.
5936 * stub-objc.c (objc_finish_foreach_loop): New.
5937
1ebe4b4f
JM
59382010-10-05 Joseph Myers <joseph@codesourcery.com>
5939
5940 * c-common.h (struct diagnostic_context): Don't declare here.
5941 (c_common_initialize_diagnostics): Declare using
5942 diagnostic_context typedef.
5943 * c-opts.c (c_common_handle_option): Pass global_dc to
5944 handle_generated_option.
5945
d4d24ba4
JM
59462010-10-04 Joseph Myers <joseph@codesourcery.com>
5947
5948 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5949 handle_generated_option.
5950
478a1c5b
ILT
59512010-10-03 Ian Lance Taylor <iant@google.com>
5952
5953 * c.opt (-fplan9-extensions): New option.
5954
82a1c2fe
FXC
59552010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5956
5957 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5958 Remove.
5959 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5960 of duplicating code.
5961
92902b1b
IS
59622010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5963
5964 * c-common.c: Add two new entries for @optional
5965 and @required keywords.
5966
5967 merge from FSF 'apple/trunk' branch.
5968 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5969
5970 Radar 4386773
5971 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5972 objective-c keywords.
5973 (objc_set_method_opt): New declaration.
5974 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5975
46625112
JM
59762010-09-30 Joseph Myers <joseph@codesourcery.com>
5977
5978 * c-common.c (handle_optimize_attribute): Pass &global_options to
5979 cl_optimization_save and cl_optimization_restore.
5980 * c-opts.c (c_common_handle_option): Pass &global_options to
5981 handle_generated_option.
5982 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5983 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5984 &global_options to cl_optimization_restore.
5985
49b91f05
NP
59862010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5987
5988 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5989 Objective-C/Objective-C++ keywords.
5990
13ed556f 59912010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5992
9faeb493
UB
5993 Merge from 'apple/trunk' branch on FSF servers.
5994
a6341d57
NP
5995 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5996
5997 Radar 4281748
5998 * c-common.h (objc_check_global_decl): New declaration.
5999 * stub-objc.c (objc_check_global_decl): New stub.
6000
f0036cca
JM
60012010-09-29 Joseph Myers <joseph@codesourcery.com>
6002
6003 * c.opt: Don't use VarExists.
6004
e3339d0f
JM
60052010-09-29 Joseph Myers <joseph@codesourcery.com>
6006
6007 * c-common.c (c_cpp_error): Update names of diagnostic_context
6008 members.
6009 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6010 cl_optimization members.
6011 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6012 sanitize_cpp_opts, finish_options): Update names of cpp_options
6013 members.
6014
1973201f
NP
60152010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6016
6017 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6018 (objc_is_reserved_word): Removed.
6019 * c-common.c: Updated comments.
6020 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6021 objc_is_reserved_word.
6022 * stub-objc.c (objc_is_reserved_word): Removed.
6023
f7e71da5
IS
60242010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6025
9faeb493 6026 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
6027 include attributes.
6028 (objc_start_method_definition): Likewise.
6029 (objc_build_keyword_decl): Likewise.
6030 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6031 (objc_start_method_definition): Likewise.
6032 (objc_build_keyword_decl): Likewise.
6033
c165dca7
IS
60342010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6035
6036 * c-common.h (objc_start_class_interface): Adjust prototype.
6037 (objc_start_category_interface): Likewise.
6038 (objc_start_protocol): Likewise.
6039 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6040 (objc_start_class_interface): Likewise.
6041 (objc_start_category_interface): Likewise.
6042
7458026b
ILT
60432010-09-27 Ian Lance Taylor <iant@google.com>
6044
6045 * c-common.c (c_common_attribute_table): Add no_split_stack.
6046 (handle_no_split_stack_attribute): New static function.
6047
b581b85b
NP
60482010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6049
9faeb493 6050 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
6051
6052 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
6053
9faeb493 6054 Radar 4229905
b581b85b
NP
6055 * c-common.h (objc_have_common_type): New declaration.
6056 * stub-objc.c (objc_have_common_type): New stub.
6057
6058 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6059
6060 Radar 4154928
6061 * c-common.h (objc_common_type): New prototype.
9faeb493 6062 * stub-objc.c (objc_common_type): New stub.
b581b85b 6063
46a4da10
JH
60642010-09-24 Jan Hubicka <jh@suse.cz>
6065
6066 * c-common.c (handle_leaf_attribute): New function.
6067 (struct attribute_spec c_common_att): Add leaf.
6068
e200444e
JM
60692010-09-22 Joseph Myers <joseph@codesourcery.com>
6070
6071 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6072 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6073 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6074 -include-barrier, -include-directory, -include-directory=,
6075 -include-directory-after, -include-directory-after=,
6076 -include-prefix, -include-prefix=, -include-with-prefix,
6077 -include-with-prefix=, -include-with-prefix-after,
6078 -include-with-prefix-after=, -include-with-prefix-before,
6079 -include-with-prefix-before=, -no-integrated-cpp,
6080 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6081 -output=, -pedantic, -pedantic-errors, -preprocess,
6082 -print-missing-file-dependencies, -trace-includes, -traditional,
6083 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6084 -user-dependencies, -verbose, -write-dependencies,
6085 -write-user-dependencies, no-integrated-cpp, traditional): New.
6086
29a80ea6
NP
60872010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6088
6089 PR objc/23710
ac1fc2fc
NP
6090 * c-common.h (objc_start_method_definition): Return bool instead
6091 of void.
6092 * stub-objc.c (objc_start_method_definition): Return bool instead
6093 of void.
6094
60952010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6096
6097 PR objc/25965
6098 * c-common.h (objc_get_interface_ivars): New declaration.
6099 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 6100
de621752
ILT
61012010-09-15 Ian Lance Taylor <iant@google.com>
6102
6103 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 6104 messages. Remove period at end of warning message.
de621752 6105
ba885ec5
NS
61062010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6107
6108 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6109 (handle_alias_attribute): ... here.
6110 (handle_ifunc_attribute): New.
6111
c5ee1358
MM
61122010-09-06 Mark Mitchell <mark@codesourcery.com>
6113
6114 * c-common.h (do_warn_double_promotion): Declare.
6115 * c-common.c (do_warn_double_promotion): Define.
6116
0a0b3574
MM
61172010-09-05 Mark Mitchell <mark@codesourcery.com>
6118
6119 * c.opt (Wdouble-promotion): New.
6120
d1779886
JM
61212010-09-02 Joseph Myers <joseph@codesourcery.com>
6122
6123 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6124 fvtable-thunks, fxref): Mark no longer supported in help text.
6125
2d2bd949
JM
61262010-09-02 Joseph Myers <joseph@codesourcery.com>
6127
6128 * c.opt (Wimport, fall-virtual, falt-external-templates,
6129 fdefault-inline, fenum-int-equiv, fexternal-templates,
6130 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6131 fname-mangling-version-, fnew-abi, fnonnull-objects,
6132 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6133 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6134 applicable.
6135 (fhandle-exceptions): Mark with Alias and Warn.
6136 * c-opts.c (c_common_handle_option): Don't handle options marked
6137 as ignored.
6138
5de8299c
JM
61392010-09-02 Joseph Myers <joseph@codesourcery.com>
6140
6141 * c.opt (Wcomments, Werror-implicit-function-declaration,
6142 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6143 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6144 aliases.
6145 * c-common.c (option_codes): Use OPT_Wcomment instead of
6146 OPT_Wcomments.
6147 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6148 Don't handle options marked as aliases.
6149
0ceb0201
RG
61502010-08-25 Richard Guenther <rguenther@suse.de>
6151
6152 * c-common.c (c_common_get_alias_set): Remove special
6153 handling for pointers.
6154
ac47786e
NF
61552010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6156
6157 * c-common.c: Use FOR_EACH_VEC_ELT.
6158 * c-gimplify.c: Likewise.
6159 * c-pragma.c: Likewise.
6160
c878765b
JM
61612010-08-16 Joseph Myers <joseph@codesourcery.com>
6162
6163 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6164 RejectDriver.
6165 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6166 RejectDriver.
6167 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6168 instead of OPT_MDX and OPT_MMDX.
6169
603349bf
JM
61702010-08-16 Joseph Myers <joseph@codesourcery.com>
6171
6172 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6173
644fa7ac
JM
61742010-08-12 Joseph Myers <joseph@codesourcery.com>
6175
6176 * c.opt (MD, MMD): Change to MDX and MMDX.
6177 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6178
481e1176
JM
61792010-08-11 Joseph Myers <joseph@codesourcery.com>
6180
6181 * c-opts.c (c_common_handle_option): Call handle_generated_option
6182 instead of handle_option.
6183
ac8dc9f7
NF
61842010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6185
6186 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6187 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6188
4f8c876d
NF
61892010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6190
6191 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6192 (pending_redefine_extname): Change type to a VEC.
6193 (add_to_renaming_pragma_list): Update for new type of
6194 pending_redefine_extname.
ac8dc9f7 6195 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 6196
3b0c690e
AC
61972010-08-04 Arnaud Charlet <charlet@adacore.com>
6198
6199 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6200 visited.
6201 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6202 decide whether a type has already been declared/seen.
6203 Do not go to the original type.
6204 (dump_nested_types): New parameter forward.
6205 Generate forward declaration if needed and mark type as visited.
6206 (print_ada_declaration): Call dump_nested_types if not already done.
6207 Mark types as visited.
6208
1890bccc
JM
62092010-08-03 Joseph Myers <joseph@codesourcery.com>
6210
6211 * c.opt (-print-pch-checksum): Remove option.
6212 * c-opts.c (c_common_handle_option): Don't handle
6213 OPT_print_pch_checksum.
6214
5f20c657
JM
62152010-07-27 Joseph Myers <joseph@codesourcery.com>
6216
6217 * c-common.h (c_common_handle_option): Update prototype and return
6218 value type.
6219 * c-opts.c (c_common_handle_option): Update prototype and return
6220 value type. Update calls to handle_option and
6221 enable_warning_as_error.
6222
f551f80c
JJ
62232010-07-27 Jakub Jelinek <jakub@redhat.com>
6224
6225 PR c/45079
6226 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6227
61ff2bdc
JM
62282010-07-27 Joseph Myers <joseph@codesourcery.com>
6229
6230 * c-common.h (c_common_missing_argument): Remove.
6231 * c-opts.c (c_common_missing_argument): Remove.
6232 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6233 idirafter, imacros, include, isysroot, isystem, iquote): Add
6234 MissingArgError.
6235 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6236
7a9bf9a4
JM
62372010-07-27 Joseph Myers <joseph@codesourcery.com>
6238
6239 * c-common.h (c_common_option_lang_mask,
6240 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6241 New.
6242 (c_common_init_options): Update prototype.
6243 * c-opts.c (c_common_option_lang_mask): New.
6244 (c_common_initialize_diagnostics): Split out of
6245 c_common_init_options.
6246 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6247 New.
6248 (c_common_init_options): Update prototype. Use decoded options in
6249 search for -lang-asm.
6250
910ad8de
NF
62512010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6252
6253 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6254 * c-format.c: Likewise.
6255
718f9c0f
MLI
62562010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6257
6258 * c-common.h: Include diagnostic-core.h. Error if already
6259 included.
6260 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6261
4d451982
MLI
62622010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6263
adfac8df 6264 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
6265 Do not include expr.h
6266 (vector_mode_valid_p): Move here.
6267
119fe915
SB
62682010-06-21 DJ Delorie <dj@redhat.com>
6269
6270 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6271 allow these pragmas anywhere.
6272
62732010-06-14 Jakub Jelinek <jakub@redhat.com>
6274
6275 PR bootstrap/44509
6276 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6277 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6278 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6279 ggc_strdup instead of xstrdup.
6280
62812010-06-10 Jakub Jelinek <jakub@redhat.com>
6282
6283 * c-cppbuiltin.c: Include cpp-id-data.h.
6284 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6285 (lazy_hex_fp_value): New function.
6286 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6287
6662d794
MLI
62882010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6289
6290 * c-gimplify.c: Do not include tree-flow.h
6291
38f8b050
JR
62922010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6293
6294 PR other/44034
6295 * c-common.c: Rename targetm member:
6296 targetm.enum_va_list -> targetm.enum_va_list_p
6297
9589f23e
AS
62982010-06-28 Anatoly Sokolov <aesok@post.ru>
6299
6300 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6301
3b06d379
SB
63022010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6303
6304 * c-cppbuiltin.c: Do not include except.h.
6305
d166d4c3
AK
63062010-06-24 Andi Kleen <ak@linux.intel.com>
6307
9faeb493
UB
6308 * c-common.c (warn_for_omitted_condop): New.
6309 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6310
70cb8be6
JM
63112010-06-21 Joseph Myers <joseph@codesourcery.com>
6312
6313 * c.opt (lang-objc): Remove.
6314 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6315
a4c97feb
JR
63162010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6317
6318 * c-opts.c: Include "tm_p.h".
6319
6e2f1956
JM
63202010-06-20 Joseph Myers <joseph@codesourcery.com>
6321
6322 * c-common.c (parse_optimize_options): Update call to
6323 decode_options.
6324
bc87224e
NF
63252010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6326
6327 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6328 new type of types_used_by_cur_var_decl.
6329
b49cf425
JR
63302010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6331
6332 PR bootstrap/44512
6333 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6334 for C++ standard compliance.
6335
59f9c2ed
JM
63362010-06-16 Jason Merrill <jason@redhat.com>
6337
6338 * c.opt: Add -Wnoexcept.
6339
33766b66
RG
63402010-06-16 Richard Guenther <rguenther@suse.de>
6341
6342 PR c/44555
6343 * c-common.c (c_common_truthvalue_conversion): Remove
6344 premature and wrong optimization concering ADDR_EXPRs.
6345
eff7e30c
AC
63462010-06-15 Arnaud Charlet <charlet@adacore.com>
6347
6348 * c-ada-spec.c (dump_sloc): Remove column info.
6349 (is_simple_enum): New function.
6350 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6351 enum types when relevant.
6352
6312e84d
MLI
63532010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6354
9faeb493 6355 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
6356 location.
6357
1cb42611
JM
63582010-06-10 Joseph Myers <joseph@codesourcery.com>
6359
6360 * c-opts.c (c_common_handle_option): Don't handle
6361 OPT_fshow_column.
6362
a9429e29
LB
63632010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6364
6365 * c-pragma.c (push_alignment): Use typed GC allocation.
6366 (handle_pragma_push_options): Likewise.
6367
6368 * c-common.c (parse_optimize_options): Likewise.
6369
6370 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6371 option.
6372
5498f011
JM
63732010-06-07 Joseph Myers <joseph@codesourcery.com>
6374
6375 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6376 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6377 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6378 flag_signed_bitfields, warn_strict_null_sentinel,
6379 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6380 flag_gen_declaration, flag_no_gnu_keywords,
6381 flag_implement_inlines, flag_implicit_templates,
6382 flag_implicit_inline_templates, flag_optional_diags,
6383 flag_elide_constructors, flag_default_inline, flag_rtti,
6384 flag_conserve_space, flag_access_control, flag_check_new,
6385 flag_new_for_scope, flag_weak, flag_working_directory,
6386 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6387 flag_enforce_eh_specs, flag_threadsafe_statics,
6388 flag_pretty_templates): Remove.
6389 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6390 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6391 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6392 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6393 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6394 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6395 flag_no_gnu_keywords, flag_implement_inlines,
6396 flag_implicit_templates, flag_implicit_inline_templates,
6397 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6398 flag_rtti, flag_conserve_space, flag_access_control,
6399 flag_check_new, flag_new_for_scope, flag_weak,
6400 flag_working_directory, flag_use_cxa_atexit,
6401 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6402 flag_threadsafe_statics, flag_pretty_templates,
6403 warn_strict_null_sentinel): Remove.
6404 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6405 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6406 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6407 fimplicit-inline-templates, fimplicit-templates,
6408 flax-vector-conversions, fms-extensions, fnil-receivers,
6409 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6410 frtti, fshort-double, fshort-enums, fshort-wchar,
6411 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6412 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6413 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6414 gen-decls, undef): Use Var.
6415 (fdefault-inline, foptional-diags): Document as doing nothing.
6416 * c-opts.c (c_common_handle_option): Remove cases for options now
6417 using Var. Mark ignored options as such.
6418
39dabefd
SB
64192010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6420
9faeb493 6421 * c-common.c: Moved to here from parent directory.
39dabefd
SB
6422 * c-common.def: Likewise.
6423 * c-common.h: Likewise.
6424 * c-cppbuiltin.c: Likewise.
6425 * c-dump.c: Likewise.
6426 * c-format.c: Likewise.
6427 * c-format.h : Likewise.
6428 * c-gimplify.c: Likewise.
6429 * c-lex.c: Likewise.
6430 * c-omp.c: Likewise.
6431 * c.opt: Likewise.
6432 * c-opts.c: Likewise.
6433 * c-pch.c: Likewise.
6434 * c-ppoutput.c: Likewise.
6435 * c-pragma.c: Likewise.
6436 * c-pragma.h: Likewise.
6437 * c-pretty-print.c: Likewise.
6438 * c-pretty-print.h: Likewise.
6439 * c-semantics.c: Likewise.
6440 * stub-objc.c: Likewise.
6441
6442 * c-common.c: Include gt-c-family-c-common.h.
6443 * c-pragma.c: Include gt-c-family-c-pragma.h.
6444\f
818ab71a 6445Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6446
6447Copying and distribution of this file, with or without modification,
6448are permitted in any medium without royalty provided the copyright
6449notice and this notice are preserved.