]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
PR c++/62314: add fixit hint for missing "template <> " in explicit specialization
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
697e0b28
RS
12016-05-02 Richard Sandiford <richard.sandiford@arm.com>
2
3 * c-common.c (shorten_compare): Use wi::to_wide.
4
e7ff0319
CP
52016-04-29 Cesar Philippidis <cesar@codesourcery.com>
6
7 PR middle-end/70626
8 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
9 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
10 reduction clauses in acc parallel loops.
11
2fff3db8
MP
122016-04-29 Marek Polacek <polacek@redhat.com>
13
14 PR c/70852
15 * c-common.c (warn_for_memset): Check domain before accessing it.
16
509063eb
DV
172016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
18
19 PR/69089
20 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
21 "aligned" attribute.
22
b632761d
JM
232016-04-28 Jason Merrill <jason@redhat.com>
24
25 * c-lex.c (c_common_has_attribute): Handle nodiscard.
26
174f6622
ES
272016-04-28 Eduard Sanou <dhole@openmailbox.org>
28 Matthias Klose <doko@debian.org>
29
30 * c-common.c (get_source_date_epoch): New function, gets the environment
31 variable SOURCE_DATE_EPOCH and parses it as long long with error
32 handling.
33 * c-common.h (get_source_date_epoch): Prototype.
34 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
35
6bc2bb18
RB
362015-04-27 Ryan Burn <contact@rnburn.com>
37
38 PR c++/69024
39 PR c++/68997
40 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
41 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
42 external linkage.
43 (cilk_detect_and_unwrap): Corresponding changes.
44 (extract_free_variables): Don't extract free variables from
45 AGGR_INIT_EXPR slot.
46 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
47 (cilk_recognize_spawn): Likewise.
48
c1e1f433
BS
492016-04-27 Bernd Schmidt <bschmidt@redhat.com>
50
51 * c.opt (Wmemset-elt-size): New option.
52 * c-common.c (warn_for_memset): New function.
53 * c-common.h (warn_for_memset): Declare.
54
d067e05f
JM
552016-04-25 Jason Merrill <jason@redhat.com>
56
57 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
58 No longer static.
59 * c-common.h: Declare it.
60 * c-lex.c (c_common_has_attribute): Add maybe_unused.
61
9aa36ae5
JM
622016-04-22 Jason Merrill <jason@redhat.com>
63
64 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
65
477d4906
IV
662016-04-20 Ilya Verbin <ilya.verbin@intel.com>
67
68 PR c++/69363
69 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
70 * c-common.h (c_finish_cilk_clauses): Remove declaration.
71
fe37c7af
MM
722016-04-18 Michael Matz <matz@suse.de>
73
74 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
75 and SET_DECL_ALIGN.
76
23f2660f
EB
772016-04-17 Eric Botcazou <ebotcazou@adacore.com>
78
79 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
80 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
81 to incomplete types.
82 (dump_nested_type): Remove redundant tests and tidy up.
83 (print_ada_declaration): Also set TREE_VISITED on the declaration of
84 a type which is the typedef of an original type.
85
1e77281b
MP
862016-04-15 Marek Polacek <polacek@redhat.com>
87
88 PR c/70651
89 * c-common.c (build_va_arg): Change two asserts into errors and return
90 error_mark_node.
91
b3a77f21
MP
922016-04-13 Marek Polacek <polacek@redhat.com>
93
94 PR c++/70639
95 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
96 for switch statements, too.
97
322b8466
JM
982016-03-28 Jason Merrill <jason@redhat.com>
99
100 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
101
fbdb6baf
MP
1022016-03-23 Marek Polacek <polacek@redhat.com>
103
104 PR c++/69884
105 * c.opt (Wignored-attributes): New option.
106
5c240f4d
DM
1072016-03-22 David Malcolm <dmalcolm@redhat.com>
108
109 PR c/69993
110 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
111 diagnostic text, reversing the order of the warning and note so
112 that they appear in source order.
113
14ba7b28
MP
1142016-03-17 Marek Polacek <polacek@redhat.com>
115
116 PR c/69407
117 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
118 operations.
119
08a1cadc
JM
1202016-03-14 Jason Merrill <jason@redhat.com>
121
2aaeea19
JM
122 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
123
08a1cadc
JM
124 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
125
c06d25bb
RB
1262016-03-09 Richard Biener <rguenther@suse.de>
127
128 PR c/70143
129 * c-common.c (strict_aliasing_warning): Add back
130 alias_sets_conflict_p check.
131
80aac5c8
JM
1322016-03-08 Jason Merrill <jason@redhat.com>
133
134 * c-opts.c (set_std_cxx1z): Don't enable concepts.
135
64b23c13
DM
1362016-03-04 David Malcolm <dmalcolm@redhat.com>
137
138 PR c/68187
139 * c-indentation.c (get_visual_column): Move code to determine next
140 tab stop to...
141 (next_tab_stop): ...this new function.
142 (line_contains_hash_if): Delete function.
143 (detect_preprocessor_logic): Delete function.
144 (get_first_nws_vis_column): New function.
145 (detect_intervening_unindent): New function.
146 (should_warn_for_misleading_indentation): Replace call to
147 detect_preprocessor_logic with a call to
148 detect_intervening_unindent.
149
729526f5
DM
1502016-03-04 David Malcolm <dmalcolm@redhat.com>
151
152 PR c/68187
153 * c-indentation.c (should_warn_for_misleading_indentation): When
154 suppressing warnings about cases where the guard and body are on
155 the same column, only use the first non-whitespace column in place
156 of the guard token column when dealing with "else" clauses.
157 When rejecting aligned BODY and NEXT, loosen the requirement
158 from equality with the first non-whitespace of guard to simply
159 that they not be indented relative to it.
160
e9a35493
RB
1612016-03-04 Richard Biener <rguenther@suse.de>
162
163 PR c++/70054
164 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
165 instead of alias_sets_conflict_p.
166
1be56bc5
MP
1672016-03-01 Marek Polacek <polacek@redhat.com>
168
169 PR c++/69795
170 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
171 any DECL.
172
35886f0b
MS
1732016-02-22 Martin Sebor <msebor@redhat.com>
174
175 PR middle-end/69780
176 * c-common.c (check_builtin_function_arguments): Validate and
177 reject invalid arguments to __builtin_alloca_with_align.
178
4246c8da
MW
1792016-02-20 Mark Wielaard <mjw@redhat.com>
180
181 PR c/28901
182 * c.opt (Wunused-const-variable): Turn into Alias for...
183 (Wunused-const-variable=): New option.
184
268be88c
BE
1852016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
186
187 PR c++/69865
188 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
189 here...
190 (c_common_init_options): ...to here.
191 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
192
871b3f47
JJ
1932016-02-19 Jakub Jelinek <jakub@redhat.com>
194
195 PR c++/69826
196 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
197 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
198 flag_preprocess_only.
199
bf14eba2
JJ
2002016-02-16 Jakub Jelinek <jakub@redhat.com>
201
202 PR c/69835
203 * c.opt (Wnonnull-compare): Enable for -Wall.
204
ba6b3795
JJ
2052016-02-15 Jakub Jelinek <jakub@redhat.com>
206
207 PR c++/69797
208 * c-common.c (sync_resolve_size): Diagnose too few arguments
209 even when params is non-NULL empty vector.
210
a011cd92
BS
2112016-02-08 Bernd Schmidt <bschmidt@redhat.com>
212
213 PR target/60410
214 * c.opt (fshort-double): Remove.
215
46cb9332
MS
2162016-02-05 Martin Sebor <msebor@redhat.com>
217
218 PR c++/69662
219 * c.opt (Warning options): Update -Wplacement-new to take
220 an optional argument.
221
e1b81f2b
JJ
2222016-02-01 Jakub Jelinek <jakub@redhat.com>
223
224 PR preprocessor/69543
225 PR c/69558
226 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
227 instead of loc to control_warning_option.
228
b6adbb9f
NS
2292016-02-01 Nathan Sidwell <nathan@codesourcery.com>
230
231 * c.opt (fopenacc-dim=): New option.
232
5d70666e
RB
2332016-01-27 Ryan Burn <contact@rnburn.com>
234
235 PR cilkplus/69267
236 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
237 gimplify_arg. Removed superfluous post_p argument.
238 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
239 superfluous post_p argument.
240 * c-gimplify.c (c_gimplify_expr): Likewise.
241
01e1dea3
DM
2422016-01-26 David Malcolm <dmalcolm@redhat.com>
243
244 PR other/69006
245 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
246 pp_newline_and_flush with pp_flush.
247
9f04a53e
MS
2482016-01-20 Martin Sebor <msebor@redhat.com>
249
250 PR c/69405
251 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
252 an incompatible argument when the argument isn't a valid tree node.
253
7f26f7df
JM
2542016-01-18 Jason Merrill <jason@redhat.com>
255
256 PR c++/68767
257 * c-common.c (check_function_arguments_recurse): Fold the whole
258 COND_EXPR, not just the condition.
259
f62bf092
TV
2602016-01-18 Tom de Vries <tom@codesourcery.com>
261
262 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
263 classify as loop clause.
264
e0a575ff
JJ
2652016-01-15 Jakub Jelinek <jakub@redhat.com>
266
267 PR bootstrap/68271
268 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
269 C++ FE no longer has limit on number of pragmas.
270
2712015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
272
273 PR c++/69048
274 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 275 to add missing cleanup point.
b6e3db06 276
c7df95d8
DM
2772016-01-14 David Malcolm <dmalcolm@redhat.com>
278
279 PR c++/68819
280 * c-indentation.c (get_visual_column): Add location_t param.
281 Handle the column number being zero by effectively disabling the
282 warning, with an "inform".
283 (should_warn_for_misleading_indentation): Add location_t argument
284 for all uses of get_visual_column.
285
21efdd80
PP
2862016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
287
288 PR c++/69029
289 * c-indentation.c (should_warn_for_misleading_indentation):
290 Don't warn about do-while statements.
291
7a127fa7
MS
2922016-01-07 Martin Sebor <msebor@redhat.com>
293
294 PR c/68966
295 * c-common.c (sync_resolve_size): Reject first argument when it's
296 a pointer to _Bool.
297
c589e975
DM
2982016-01-05 David Malcolm <dmalcolm@redhat.com>
299
300 PR c/69122
301 * c-indentation.c (get_visual_column): Remove default argument.
302 (should_warn_for_misleading_indentation): For the multiline case,
303 update call to get_visual_column for next_stmt_exploc so that it
304 captures the location of the first non-whitespace character in the
305 relevant line. Don't issue warnings if there is non-whitespace
306 before the next statement.
307
818ab71a
JJ
3082016-01-04 Jakub Jelinek <jakub@redhat.com>
309
310 Update copyright years.
311
745e411d
DM
3122015-12-21 David Malcolm <dmalcolm@redhat.com>
313
314 * c-common.c (binary_op_error): Convert first param from
315 location_t to rich_location * and use it when emitting an error.
316 * c-common.h (binary_op_error): Convert first param from
317 location_t to rich_location *.
318
de67c4c3
DM
3192015-12-16 David Malcolm <dmalcolm@redhat.com>
320
321 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
322 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
323
4a38b02b
IV
3242015-12-15 Ilya Verbin <ilya.verbin@intel.com>
325
326 * c-common.c (c_common_attribute_table): Handle "omp declare target
327 link" attribute.
328
54d62f51
JJ
3292015-12-14 Jakub Jelinek <jakub@redhat.com>
330
331 PR c/68833
332 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
333
8d4227c8
TB
3342014-12-12 Tobias Burnus <burnus@net-b.de>
335
336 PR fortran/68815
337 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
338 specifiers (%d, %i,%u and %c).
339
f6069ccc
DM
3402015-12-10 David Malcolm <dmalcolm@redhat.com>
341
342 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
343
63bbf46d
JJ
3442015-12-08 Jakub Jelinek <jakub@redhat.com>
345
346 PR c/48088
347 PR c/68657
348 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
349 * c-pragma.c (handle_pragma_diagnostic): Adjust
350 control_warning_option caller.
351
f79520bb
DM
3522015-12-07 David Malcolm <dmalcolm@redhat.com>
353
354 * c-common.c (c_cpp_error): Update for change to
355 rich_location::set_range.
356
b3d5bc62
JJ
3572015-12-04 Paolo Bonzini <bonzini@gnu.org>
358
359 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
360 shifting 1 out of the sign bit.
361
3622015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
363
364 * c-common.c (c_common_attribute_table[]): Update max arguments
365 count for "simd" attribute.
366 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
367
6eb4a537
JJ
3682015-12-03 Jakub Jelinek <jakub@redhat.com>
369
370 PR preprocessor/57580
371 * c-ppoutput.c (print): Change printed field to bool.
372 Move src_file last for smaller padding.
373 (init_pp_output): Set print.printed to false instead of 0.
374 (scan_translation_unit): Fix up formatting. Set print.printed
375 to true after printing something other than newline.
376 (scan_translation_unit_trad): Set print.printed to true instead of 1.
377 (maybe_print_line_1): Set print.printed to false instead of 0.
378 (print_line_1): Likewise.
379 (do_line_change): Set print.printed to true instead of 1.
380 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
381 dump_macro): Set print.printed to false after printing newline.
382
4250754e
JM
3832015-12-02 Jason Merrill <jason@redhat.com>
384
f479b43d
JM
385 * c-common.c (fold_for_warn): New.
386 (warn_logical_operator, warn_tautological_cmp)
387 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
388
4250754e
JM
389 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
390 (c_fully_fold_internal, decl_constant_value_for_optimization):
391 Move to c/c-fold.c.
392 * c-common.h: Don't declare decl_constant_value_for_optimization.
393
e9e32ee6
JM
3942015-12-02 Joseph Myers <joseph@codesourcery.com>
395
396 PR c/68162
397 * c-common.h (c_build_qualified_type): Add extra default
398 arguments.
399
37d5ad46
JB
4002015-12-01 Julian Brown <julian@codesourcery.com>
401 Cesar Philippidis <cesar@codesourcery.com>
402 James Norris <James_Norris@mentor.com>
403
404 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
405 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
406 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
407
f07862c7
EB
4082015-11-30 Eric Botcazou <ebotcazou@adacore.com>
409
410 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
411 (decl_sloc_common): Delete and move bulk of processing to...
412 (decl_sloc): ...here.
413 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
414 (dump_ada_double_name): Remove S parameter and compute the suffix.
415 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
416 element type and deal with an anonymous one.
417 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
418 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
419 and remove reference to QUAL_UNION_TYPE.
420 (dump_nested_types): Make 2 passes on the fields and move bulk to...
421 (dump_nested_type): ...here. New function extracted from above.
422 Generate a full declaration for anonymous element type of arrays.
423 (print_ada_declaration): Really skip anonymous declarations. Remove
424 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
425 Clean up processing of declarations of array types and objects.
426 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
427 Remove obsolete code and tidy up.
428
75c8aac3
JH
4292015-11-29 Jan Hubicka <hubicka@ucw.cz>
430
431 PR c/67581
432 * c-common.c (handle_transparent_union_attribute): Update
433 also type variants.
434
b58d3df2
ML
4352015-11-27 Martin Liska <mliska@suse.cz>
436
437 PR c++/68312
438 * array-notation-common.c (cilkplus_extract_an_triplets):
439 Release vector of vectors.
440 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
441
89a01fcf
EB
4422015-11-26 Eric Botcazou <ebotcazou@adacore.com>
443
444 PR c++/68527
445 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
446 (print_ada_struct_decl): Likewise.
447
cc5c5226
IZ
4482015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
449
450 PR c++/68001
451 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
452 * cilk.c (recognize_spawn): Determine location in a more precise
453 way.
454
269adb9d
JM
4552015-11-19 Jason Merrill <jason@redhat.com>
456
457 * c-common.c (shorten_compare): But look through macros from
458 system headers.
459
d0eccfcd
JM
4602015-11-18 Jason Merrill <jason@redhat.com>
461
462 * c-common.c (shorten_compare): Don't -Wtype-limits if the
463 non-constant operand comes from a macro.
464
3e44547c
JM
4652015-11-17 Jason Merrill <jason@redhat.com>
466
467 PR bootstrap/68346
468 * c-common.c (warn_tautological_cmp): Fold before checking for
469 constants.
470
0f62c7a0
MP
4712015-11-16 Marek Polacek <polacek@redhat.com>
472
473 PR c++/68362
474 * c-common.c (check_case_bounds): Fold low and high cases.
475
a868811e
MP
4762015-11-16 Marek Polacek <polacek@redhat.com>
477
478 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
479 * c-common.c (c_common_get_alias_set): Likewise.
480 (handle_visibility_attribute): Likewise.
481
fff77217
KY
4822015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
483
484 * c-common.c (handle_simd_attribute): New.
485 (struct attribute_spec): Add entry for "simd".
486 (handle_simd_attribute): New.
487
269e63b7
KT
4882015-11-13 Kai Tietz <ktietz70@googlemail.com>
489
490 * c-lex.c (interpret_float): Use fold_convert.
491
ebedc9a3
DM
4922015-11-13 David Malcolm <dmalcolm@redhat.com>
493
494 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
495 and store it on the result.
496 * c-opts.c (c_common_init_options): Set
497 global_dc->colorize_source_p.
498
6e232ba4
JN
4992015-11-12 James Norris <jnorris@codesourcery.com>
500 Joseph Myers <joseph@codesourcery.com>
501
502 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
503 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
504 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
505 PRAGMA_OACC_CLAUSE_LINK.
506
e78bede6
MP
5072015-11-11 Marek Polacek <polacek@redhat.com>
508
509 PR c/68107
510 PR c++/68266
511 * c-common.c (valid_array_size_p): New function.
512 * c-common.h (valid_array_size_p): Declare.
513
4ac93c7c
DH
5142015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
515
516 PR bootstrap/68271
517 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
518
69f293c9
AM
5192015-11-11 Andrew MacLeod <amacleod@redhat.com>
520
521 * array-notation-common.c: Remove unused header files.
522 * c-ada-spec.c: Likewise.
523 * c-cilkplus.c: Likewise.
524 * c-common.c: Likewise.
525 * c-cppbuiltin.c: Likewise.
526 * c-dump.c: Likewise.
527 * c-format.c: Likewise.
528 * c-gimplify.c: Likewise.
529 * c-indentation.c: Likewise.
530 * c-lex.c: Likewise.
531 * c-omp.c: Likewise.
532 * c-opts.c: Likewise.
533 * c-pch.c: Likewise.
534 * c-ppoutput.c: Likewise.
535 * c-pragma.c: Likewise.
536 * c-pretty-print.c: Likewise.
537 * c-semantics.c: Likewise.
538 * c-ubsan.c: Likewise.
539 * cilk.c: Likewise.
540 * stub-objc.c: Likewise.
541
3a40d81d
NS
5422015-11-09 Thomas Schwinge <thomas@codesourcery.com>
543 Cesar Philippidis <cesar@codesourcery.com>
544 James Norris <jnorris@codesourcery.com>
545 Julian Brown <julian@codesourcery.com>
546 Nathan Sidwell <nathan@codesourcery.com>
547
548 * c-pragma.c (oacc_pragmas): Add "routine".
549 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
550
ee45a32d
EB
5512015-11-08 Eric Botcazou <ebotcazou@adacore.com>
552
553 * c-common.c (c_common_attributes): Add scalar_storage_order.
554 (handle_scalar_storage_order_attribute): New function.
555 * c-pragma.c (global_sso): New variable.
556 (maybe_apply_pragma_scalar_storage_order): New function.
557 (handle_pragma_scalar_storage_order): Likewise.
558 (init_pragma): Register scalar_storage_order.
559 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
560 * c.opt (Wscalar-storage-order): New warning.
561 (fsso-struct=): New option.
562
eb11eb15
MS
5632015-11-08 Martin Sebor <msebor@redhat.com>
564
565 * c.opt (Wplacement-new): Add a period to the end of a sentence.
566
0aad0198
RS
5672015-11-07 Richard Sandiford <richard.sandiford@arm.com>
568
569 * c-common.c: Don't undef DEF_BUILTIN.
570
8a645150
DM
5712015-11-06 David Malcolm <dmalcolm@redhat.com>
572
573 * c-common.c (c_cpp_error): Convert parameter from location_t to
574 rich_location *. Eliminate the "column_override" parameter and
575 the call to diagnostic_override_column.
576 Update the "done_lexing" clause to set range 0
577 on the rich_location, rather than overwriting a location_t.
578 * c-common.h (c_cpp_error): Convert parameter from location_t to
579 rich_location *. Eliminate the "column_override" parameter.
580
7a5e4956
CP
5812015-11-05 Cesar Philippidis <cesar@codesourcery.com>
582 Thomas Schwinge <thomas@codesourcery.com>
583 James Norris <jnorris@codesourcery.com>
584
585 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
586 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
587 clauses with parallel and kernels and loops.
588 * c-pragma.h (enum pragma_omp_clause): Add entries for
589 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
590 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
591 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
592 INDEPENDENT,SEQ}.
593 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
594
e2f5cc96
MS
5952015-11-05 Martin Sebor <msebor@redhat.com>
596
597 PR c++/67942
598 * c.opt (-Wplacement-new): New option.
599
e01d41e5
JJ
6002015-11-05 Jakub Jelinek <jakub@redhat.com>
601
602 * c-common.h (c_finish_omp_atomic): Add TEST argument.
603 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
604 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
605 save_expr or create_tmp_var* if TEST is true.
606 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
607 Don't call add_stmt here.
608 (struct c_omp_check_loop_iv_data): New type.
609 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
610 c_omp_check_loop_iv_exprs): New functions.
611 (c_omp_split_clauses): Adjust for lastprivate being allowed on
612 distribute.
613 (c_omp_declare_simd_clauses_to_numbers): Change
614 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
615 (c_omp_declare_simd_clauses_to_decls): Similarly change those
616 from numbers to PARM_DECLs.
617
595278be
MM
6182015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
619
620 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
621 flag_checking.
622
c85158de
MS
6232015-11-03 Bernd Schmidt <bschmidt@redhat.com>
624
625 PR c++-common/67882
b3d5bc62
JJ
626 * c-common.h (fold_offsetof_1): Add argument.
627 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
628 offsetof expressions that reference elements past the end of
629 an array.
630
4bf9e5a8
TS
6312015-11-03 Thomas Schwinge <thomas@codesourcery.com>
632 Chung-Lin Tang <cltang@codesourcery.com>
633
634 * c-pragma.c (oacc_pragmas): Add "atomic".
635 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
636
3b1661a9
ES
6372015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
638
639 * c-common.c (handle_target_clones_attribute): New.
640 (c_common_attribute_table): Add handle_target_clones_attribute.
641 (handle_always_inline_attribute): Add check on target_clones attribute.
642 (handle_target_attribute): Ditto.
643
2adfab87
AM
6442015-10-29 Andrew MacLeod <amacleod@redhat.com>
645
646 * array-notation-common.c: Reorder #include's and remove duplicates.
647 * c-ada-spec.c: Likewise.
648 * c-cilkplus.c: Likewise.
649 * c-common.c: Likewise.
650 * c-cppbuiltin.c: Likewise.
651 * c-dump.c: Likewise.
652 * c-format.c: Likewise.
653 * c-gimplify.c: Likewise.
654 * c-indentation.c: Likewise.
655 * c-lex.c: Likewise.
656 * c-omp.c: Likewise.
657 * c-opts.c: Likewise.
658 * c-pch.c: Likewise.
659 * c-ppoutput.c: Likewise.
660 * c-pragma.c: Likewise.
661 * c-pretty-print.c: Likewise.
662 * c-semantics.c: Likewise.
663 * c-ubsan.c: Likewise.
664 * cilk.c: Likewise.
665 * stub-objc.c: Likewise.
666
d90ec4f2
JM
6672015-10-28 Jason Merrill <jason@redhat.com>
668
669 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
670
88bae6f4
TS
6712015-10-27 Thomas Schwinge <thomas@codesourcery.com>
672 James Norris <jnorris@codesourcery.com>
673 Cesar Philippidis <cesar@codesourcery.com>
674
675 PR c/64765
676 PR c/64880
677 * c-common.h (c_oacc_split_loop_clauses): Declare function.
678 * c-omp.c (c_oacc_split_loop_clauses): New function.
679
b1726d6c
MS
6802015-10-21 Martin Sebor <msebor@redhat.com>
681
682 PR driver/68043
683 * c.opt: End each sentence that describes an option with a period.
684
fa60eeb9
MP
6852015-10-20 Marek Polacek <polacek@redhat.com>
686
687 * array-notation-common.c (is_cilkplus_vector_p): Define.
688 * c-common.h (is_cilkplus_vector_p): Declare.
689
95979049
MP
6902015-10-20 Marek Polacek <polacek@redhat.com>
691
692 * c.opt (std=gnu++11): Do not describe as experimental.
693 (std=gnu++14): Likewise.
694
2a9fb712
JM
6952015-10-19 Jason Merrill <jason@redhat.com>
696
697 * c-cppbuiltin.c (c_cpp_builtins): Define
698 __cpp_nontype_template_args.
699
13b380a3
JM
7002015-10-19 Jason Merrill <jason@redhat.com>
701
702 * c-cppbuiltin.c (c_cpp_builtins): Define
703 __cpp_enumerator_attributes, __cpp_fold_expressions,
704 __cpp_unicode_characters.
705
d9a6bd32
JJ
7062015-10-13 Jakub Jelinek <jakub@redhat.com>
707 Aldy Hernandez <aldyh@redhat.com>
708
709 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
710 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
711 (c_define_builtins): Likewise.
712 * c-common.h (enum c_omp_clause_split): Add
713 C_OMP_CLAUSE_SPLIT_TASKLOOP.
714 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
715 (c_finish_omp_for): Add ORIG_DECLV argument.
716 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
717 201511 instead of 201307.
718 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
719 OMP_CRITICAL_CLAUSES to it.
720 (c_finish_omp_ordered): Add CLAUSES argument, set
721 OMP_ORDERED_CLAUSES to it.
722 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
723 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
724 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
725 constructs and new OpenMP 4.5 clauses. Clear
726 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
727 verification code.
728 * c-pragma.c (omp_pragmas_simd): Add taskloop.
729 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
730 (enum pragma_omp_clause): Add
731 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
732 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
733
624d31fe
RS
7342015-10-05 Richard Sandiford <richard.sandiford@arm.com>
735
736 * c-lex.c (interpret_float): Use real_equal instead of
737 REAL_VALUES_EQUAL.
738
b8fd7909
JM
7392015-10-04 Jason Merrill <jason@redhat.com>
740
741 Implement N4514, C++ Extensions for Transactional Memory.
742 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
743 (c_common_attribute_table): Add transaction_safe_dynamic.
744 transaction_safe now affects type identity.
745 (handle_tm_attribute): Handle transaction_safe_dynamic.
746 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
747 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
748 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
749 (D_TRANSMEM): New.
750 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
751 * c-pretty-print.c (pp_c_attributes_display): Don't print
752 transaction_safe in C++.
753
12651878
MP
7542015-10-02 Marek Polacek <polacek@redhat.com>
755
756 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
757
3e3b8d63
MP
7582015-10-02 Marek Polacek <polacek@redhat.com>
759
760 PR c/64249
761 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
762 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
763 * c.opt (Wduplicated-cond): New option.
764
0d1a8f75
JM
7652015-10-01 Joseph Myers <joseph@codesourcery.com>
766
767 * c.opt (std=c11): Do not describe as experimental.
768 (std=gnu11): Likewise.
769 (std=iso9899:2011): Likewise.
770
3e32ee19
NS
7712015-09-28 Nathan Sidwell <nathan@codesourcery.com>
772
773 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
774 (DEF_FUNCTION_TYPE_VAR_11): Delete.
775
974348ee
MP
7762015-09-25 Marek Polacek <polacek@redhat.com>
777
778 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
779 (ubsan_instrument_shift): Likewise.
780
15dbc1a6
MP
7812015-09-25 Marek Polacek <polacek@redhat.com>
782
783 PR sanitizer/64906
784 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
785
6b95d7cc
PP
7862015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
787
788 * c-indentation.c (should_warn_for_misleading_indentation):
789 Compare next_stmt_vis_column with guard_line_first_nws instead
790 of with guard_line_vis_column.
791
c1822f9c
MLI
7922015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
793
794 PR c/49654
795 PR c/49655
796 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
797 options and options not valid for the current language.
798
d5398058
PP
7992015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
800
801 * c-indentation.c (should_warn_for_misleading_indentation):
802 Float out and consolidate the calls to get_visual_column that
803 are passed guard_exploc as an argument. Compare
804 next_stmt_vis_column with guard_line_first_nws instead of with
805 body_line_first_nws.
806
6b333269
NS
8072015-09-22 Nathan Sidwell <nathan@codesourcery.com>
808
809 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
810 Wnamespaces): New C++ warnings.
811
a75f1574
JM
8122015-09-22 Jason Merrill <jason@redhat.com>
813
814 * c-common.h (abi_compat_version_crosses): New.
815 (warn_abi_version): Declare.
816 * c-common.c: Define it.
817 * c-opts.c (c_common_post_options): Handle it.
818 flag_abi_compat_version defaults to 8.
819
bdaaa8b7
VV
8202015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
821
822 Complete the implementation of N4230, Nested namespace definition.
823 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
824 __cpp_nested_namespace_definitions.
825
eaa797e8
MLI
8262015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
827
828 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
829
c4914de6
MLI
8302015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
831
832 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
833 when warning.
834 * c-pragma.h (pragma_lex): Add optional loc argument.
835
fcb87c50
MM
8362015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
837
838 * c-format.c (check_format_arg): Adjust to use common block size in all
839 object pools.
840
31bdd08a
DM
8412015-09-15 David Malcolm <dmalcolm@redhat.com>
842
843 * c-format.c (location_from_offset): Update for change in
844 signature of location_get_source_line.
845 * c-indentation.c (get_visual_column): Likewise.
846 (line_contains_hash_if): Likewise.
847
aa9f4b4c
MP
8482015-09-14 Marek Polacek <polacek@redhat.com>
849
850 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
851 setting various warnings.
852
aa256c4a
MP
8532015-09-14 Marek Polacek <polacek@redhat.com>
854
855 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
856 a negative value.
857
0f876f22
MW
8582015-09-11 Mark Wielaard <mjw@redhat.com>
859
860 PR c/28901
861 * c.opt (Wunused-variable): Option from common.opt.
862 (Wunused-const-variable): New option.
863
273aa49e
PC
8642015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
865
866 PR c++/53184
867 * c.opt ([Wsubobject-linkage]): Add.
868
1807ffc1
MS
8692015-09-03 Martin Sebor <msebor@redhat.com>
870
871 PR c/66516
872 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
873 functions.
874 * c-common.c (reject_gcc_builtin): Define.
875
38942840
BI
8762015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
877
878 PR middle-end/60586
879 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
880 prototype.
881 * c-gimplify.c (c_gimplify_expr): Added a call to the function
882 cilk_gimplify_call_params_in_spawned_fn.
883 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
884 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
885 unwrapping.
886
c316b5e4
MP
8872015-08-25 Marek Polacek <polacek@redhat.com>
888
889 PR middle-end/67330
890 * c-common.c (handle_weak_attribute): Don't check whether the
891 visibility can be changed here.
892
584a7c46
MLI
8932015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
894
895 * c-lex.c (c_lex_with_flags): Use explicit locations.
896
a79683d5
TS
8972015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
898
899 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
900 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
901
61717a45
FXC
9022015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
903
904 PR middle-end/36757
905 * c-common.c (check_builtin_function_arguments): Add check
906 for BUILT_IN_SIGNBIT argument.
907
329524f5
PC
9082015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
909
910 PR c++/67160
911 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
912 in c++1z mode.
913
4ee55665
MP
9142015-08-17 Marek Polacek <polacek@redhat.com>
915
916 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
917 with whitespaces before qualifier names.
918
b893e375
MP
9192015-08-12 Marek Polacek <polacek@redhat.com>
920
921 PR c++/55095
922 * c-common.c (maybe_warn_shift_overflow): Properly handle
923 left-shifting 1 into the sign bit.
924
c2d89095
MLI
9252015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
926
927 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
928
971e17ff
AS
9292015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
930 Braden Obrzut <admin@maniacsvault.net>
931 Jason Merrill <jason@redhat.com>
932
933 Add C++ Concepts TS support.
934 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
935 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
936 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
937 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
938 * c-opts.c (set_std_cxx1z): Set flag_concepts.
939 * c.opt (fconcepts): New.
940
b3d5bc62
JJ
9412015-08-02 Martin Sebor <msebor@redhat.com>
942
943 * c.opt (-Wframe-address): New warning option.
944
8ebca419
PP
9452015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
946
947 * c-indentation.c (should_warn_for_misleading_indentation):
948 Improve heuristics.
949
1a1e101f
PP
9502015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
951
952 * c-indentation.c (get_visual_column): Add parameter first_nws,
953 use it. Update comment documenting the function.
954 (is_first_nonwhitespace_on_line): Remove.
955 (should_warn_for_misleading_indentation): Replace usage of
956 of is_first_nonwhitespace_on_line with get_visual_column.
957
992118a1
PP
9582015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
959
960 * c-indentation.h (struct token_indent_info): Define.
961 (get_token_indent_info): Define.
962 (warn_for_misleading_information): Declare.
963 * c-common.h (warn_for_misleading_information): Remove.
964 * c-identation.c (warn_for_misleading_indentation):
965 Change declaration to take three token_indent_infos. Adjust
966 accordingly.
967 * c-identation.c (should_warn_for_misleading_indentation):
968 Likewise. Bail out early if the body is a compound statement.
969 (guard_tinfo_to_string): Define.
970
e8fa3817
JM
9712015-07-30 Jason Merrill <jason@redhat.com>
972
973 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
974 '*' for reference decay.
975
173864e8
MP
9762015-07-30 Marek Polacek <polacek@redhat.com>
977
978 * c-common.c (warn_tautological_cmp): Bail for float types.
979
f2afe6dd
MP
9802015-07-27 Marek Polacek <polacek@redhat.com>
981
982 PR bootstrap/67030
983 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
984
05b28fd6
MP
9852015-07-27 Marek Polacek <polacek@redhat.com>
986
987 PR c++/66555
988 PR c/54979
989 * c-common.c (find_array_ref_with_const_idx_r): New function.
990 (warn_tautological_cmp): New function.
991 * c-common.h (warn_tautological_cmp): Declare.
992 * c.opt (Wtautological-compare): New option.
993
5a5062b8
MP
9942015-07-23 Marek Polacek <polacek@redhat.com>
995
996 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
997 (ubsan_instrument_shift): Likewise.
998
dc891fe7
MP
9992015-07-23 Marek Polacek <polacek@redhat.com>
1000
1001 PR sanitizer/66908
1002 * c-ubsan.c: Include gimplify.h.
1003 (ubsan_instrument_division): Unshare OP0 and OP1.
1004 (ubsan_instrument_shift): Likewise.
1005
451b5e48
MP
10062015-07-20 Marek Polacek <polacek@redhat.com>
1007 Richard Sandiford <richard.sandiford@arm.com>
1008
1009 PR c++/55095
1010 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1011 Use EXPR_LOC_OR_LOC.
1012 (maybe_warn_shift_overflow): New function.
1013 * c-common.h (maybe_warn_shift_overflow): Declare.
1014 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1015 * c.opt (Wshift-overflow): New option.
1016
fb0b2914
ML
10172015-07-16 Martin Liska <mliska@suse.cz>
1018
1019 * c-format.c (static void check_format_info_main): Use
1020 object_allocator instead of pool_allocator.
1021 (check_format_arg): Likewise.
1022 (check_format_info_main): Likewise.
1023
903f5c23
AM
10242015-07-15 Andrew MacLeod <amacleod@redhat.com>
1025
1026 * c-opts.c: Remove multiline #include comment.
1027
026c3cfd
AH
10282015-07-12 Aldy Hernandez <aldyh@redhat.com>
1029
1030 * c-common.c: Fix double word typos.
1031
bb49ee66
EB
10322015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1033
1034 * c-ada-spec.h (cpp_operation): Revert latest change.
1035 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1036 constructors and destructors.
1037
1916bcb5
AM
10382015-07-09 Andrew MacLeod <amacleod@redhat.com>
1039
1040 * c-common.h: Adjust includes for flags.h changes.
1041 * stub-objc.c: Likewise.
026c3cfd 1042
a9dcd529
EB
10432015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1044
1045 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1046 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1047
b03b462f
JJ
10482015-07-08 Jakub Jelinek <jakub@redhat.com>
1049
1050 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1051 are to be removed, return NULL rather than original clauses list.
1052
c7131fb2
AM
10532015-07-07 Andrew MacLeod <amacleod@redhat.com>
1054
1055 * array-notation-common.c: Adjust includes.
1056 * c-ada-spec.c: Likewise.
1057 * c-cilkplus.c: Likewise.
1058 * c-common.h: Likewise.
1059 * c-cppbuiltin.c: Likewise.
1060 * c-dump.c: Likewise.
1061 * c-format.c: Likewise.
1062 * c-gimplify.c: Likewise.
1063 * c-indentation.c: Likewise.
1064 * c-lex.c: Likewise.
1065 * c-omp.c: Likewise.
1066 * c-opts.c: Likewise.
1067 * c-pch.c: Likewise.
1068 * c-ppoutput.c: Likewise.
1069 * c-pragma.c: Likewise.
1070 * c-pretty-print.c: Likewise.
1071 * c-semantics.c: Likewise.
1072 * c-ubsan.c: Likewise.
1073 * cilk.c: Likewise.
1074 * stub-objc.c: Likewise.
1075
2a7fb83f
EB
10762015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1077
1078 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1079 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1080
a03c9bf1
JM
10812015-07-01 Jason Merrill <jason@redhat.com>
1082
36a85135
JM
1083 * c-common.h (D_CXX11): Rename from D_CXX0X.
1084 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1085 * c-common.c: Adjust.
1086
e7fa68d5
JM
1087 * c-opts.c (c_common_post_options): Default to C++14.
1088
a03c9bf1
JM
1089 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1090
fe95b036
ESR
10912015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1092
1093 Implement N4197 - Adding u8 character literals
b3d5bc62 1094 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 1095 CPP_CHAR.
b3d5bc62 1096 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 1097 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 1098 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
1099 and CPP_UTF8CHAR tokens.
1100 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 1101
da2e71c9
MLI
11022015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1103
1104 PR fortran/66605
1105 * c-common.c (do_warn_unused_parameter): Move here.
1106 * c-common.h (do_warn_unused_parameter): Declare.
1107
b155cfd9
MP
11082015-06-29 Marek Polacek <polacek@redhat.com>
1109
1110 PR c/66322
1111 * c-common.c (check_case_bounds): Add bool * parameter. Set
1112 OUTSIDE_RANGE_P.
1113 (c_add_case_label): Add bool * parameter. Pass it down to
1114 check_case_bounds.
1115 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1116 warning here.
1117 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1118 declarations.
1119
31521951
MP
11202015-06-27 Marek Polacek <polacek@redhat.com>
1121
1122 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1123 or VECTOR_INTEGER_TYPE_P throughout.
1124 * c-gimplify.c: Likewise.
1125
22d03525
MP
11262015-06-26 Marek Polacek <polacek@redhat.com>
1127
1128 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1129 * c-common.c (c_fully_fold_internal): Likewise.
1130 (c_alignof_expr): Likewise.
1131 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1132 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 1133 * cilk.c (create_parm_list): Likewise.
22d03525 1134
af05e6e5
MP
11352015-06-26 Marek Polacek <polacek@redhat.com>
1136
1137 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1138
f0889939
AM
11392015-06-25 Andrew MacLeod <amacleod@redhat.com>
1140
1141 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1142 * c-gimplify.c: Likewise.
1143 * c-pragma.c: Likewise.
1144 * c-ubsan.c: Likewise.
1145 * cilk.c: Likewise.
1146
ca752f39
RS
11472015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1148
1149 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1150 ggc_hasher.
1151
16a16ec7
AM
11522015-06-25 Andrew MacLeod <amacleod@redhat.com>
1153
1154 * cilk.c: Move calls.h after tm.h in the include chain.
1155
0ae9bd27
MP
11562015-06-25 Marek Polacek <polacek@redhat.com>
1157
1158 * array-notation-common.c: Use VAR_P throughout.
1159 * c-ada-spec.c: Likewise.
1160 * c-common.c: Likewise.
1161 * c-format.c: Likewise.
1162 * c-gimplify.c: Likewise.
1163 * c-omp.c: Likewise.
1164 * c-pragma.c: Likewise.
1165 * c-pretty-print.c: Likewise.
1166 * cilk.c: Likewise.
1167
62f9079a
MP
11682015-06-25 Marek Polacek <polacek@redhat.com>
1169
1170 * cilk.c (extract_free_variables): Use is_global_var.
1171
0fa16060
RS
11722015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1173
1174 * c-common.c: Don't include target-def.h.
1175
a68ae2e1
MP
11762015-06-23 Marek Polacek <polacek@redhat.com>
1177
1178 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1179 when comparing INTEGER_CSTs.
1180
c6a2f2d9
PMR
11812015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1182
1183 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1184 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1185 (dump_ada_template): Skip partially specialized types.
1186
6b4db501
MM
11872015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1188
1189 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1190 swapping.
1191
abb226c9
AM
11922015-06-17 Andrew MacLeod <amacleod@redhat.com>
1193
1194 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1195 * c-ada-spec.c: Likewise.
1196 * c-cilkplus.c: Likewise.
1197 * c-common.c: Likewise.
1198 * c-common.h: Likewise.
1199 * c-cppbuiltin.c: Likewise.
1200 * c-dump.c: Likewise.
1201 * c-format.c: Likewise.
1202 * c-gimplify.c: Likewise.
1203 * c-indentation.c: Likewise.
1204 * c-lex.c: Likewise.
1205 * c-omp.c: Likewise.
1206 * c-opts.c: Likewise.
1207 * c-pch.c: Likewise.
1208 * c-ppoutput.c: Likewise.
1209 * c-pragma.c: Likewise.
1210 * c-pretty-print.c: Likewise.
1211 * c-semantics.c: Likewise.
1212 * c-ubsan.c: Likewise.
1213 * cilk.c: Likewise.
1214 * stub-objc.c: Likewise.
1215
076fecad
PP
12162015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1217
1218 PR c++/65168
1219 * c-common.c (c_common_truthvalue_conversion): Warn when
1220 converting an address of a reference to a truth value.
1221
13fdf2e2
AM
12222015-06-08 Andrew MacLeod <amacleod@redhat.com>
1223
1224 * array-notation-common.c : Adjust include files.
1225 * c-ada-spec.c : Likewise.
1226 * c-cilkplus.c : Likewise.
1227 * c-common.c : Likewise.
1228 * c-common.h : Likewise.
1229 * c-cppbuiltin.c : Likewise.
1230 * c-dump.c : Likewise.
1231 * c-format.c : Likewise.
1232 * c-gimplify.c : Likewise.
1233 * c-indentation.c : Likewise.
1234 * c-lex.c : Likewise.
1235 * c-omp.c : Likewise.
1236 * c-opts.c : Likewise.
1237 * c-pch.c : Likewise.
1238 * c-ppoutput.c : Likewise.
1239 * c-pragma.c : Likewise.
1240 * c-pretty-print.c : Likewise.
1241 * c-semantics.c : Likewise.
1242 * c-ubsan.c : Likewise.
1243 * cilk.c : Likewise.
1244 * stub-objc.c : Likewise.
1245
a1661b90
MP
12462015-06-08 Marek Polacek <polacek@redhat.com>
1247
1248 PR c/66415
1249 * c-format.c (location_from_offset): Return LOC if LINE is null.
1250
d7438551
AH
12512015-06-05 Aldy Hernandez <aldyh@redhat.com>
1252
1253 * c-common.h (c_parse_final_cleanups): New prototype.
1254 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1255
b3d5bc62
JJ
12562015-06-04 Sriraman Tallam <tmsriram@google.com>
1257
1258 * c-common.c (noplt): New attribute.
1259 (handle_noplt_attribute): New handler.
1260
ecb9f223
AM
12612015-06-04 Andrew MacLeod <amacleod@redhat.com>
1262
1263 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1264 * c-ada-spec.c: Likewise.
1265 * c-cilkplus.c: Likewise.
1266 * c-common.c: Likewise.
1267 * c-common.h: Likewise.
1268 * c-cppbuiltin.c: Likewise.
1269 * c-dump.c: Likewise.
1270 * c-format.c: Likewise.
1271 * c-gimplify.c: Likewise.
1272 * c-indentation.c: Likewise.
1273 * c-lex.c: Likewise.
1274 * c-omp.c: Likewise.
1275 * c-opts.c: Likewise.
1276 * c-pch.c: Likewise.
1277 * c-ppoutput.c: Likewise.
1278 * c-pragma.c: Likewise.
1279 * c-pretty-print.c: Likewise.
1280 * c-semantics.c: Likewise.
1281 * c-ubsan.c: Likewise.
1282 * cilk.c: Likewise.
1283 * stub-objc.c: Likewise.
1284
6ac48155
DM
12852015-06-02 David Malcolm <dmalcolm@redhat.com>
1286
1287 PR c/66220:
1288 * c-indentation.c (should_warn_for_misleading_indentation): Use
1289 expand_location rather than expand_location_to_spelling_point.
1290 Don't warn if the guarding statement is more indented than the
1291 next/body stmts.
1292
773ce42e
DM
12932015-06-02 David Malcolm <dmalcolm@redhat.com>
1294
1295 * c-indentation.c (warn_for_misleading_indentation): Bail out
1296 immediately if -Wmisleading-indentation isn't enabled.
1297
4fef8379
ML
12982015-06-01 Martin Liska <mliska@suse.cz>
1299
1300 * c-format.c (check_format_arg):Use new type-based pool allocator.
1301 (check_format_info_main) Likewise.
1302
1edfb384
EB
13032015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1304
1305 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1306 (has_nontrivial_methods): Likewise.
1307
9677ef52
MP
13082015-05-25 Marek Polacek <polacek@redhat.com>
1309
1310 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1311
fd5c817a
MP
13122015-05-22 Marek Polacek <polacek@redhat.com>
1313
1314 PR c/47043
1315 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1316
a2f45fe6 13172015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
1318
1319 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1320 STACK_GROWS_DOWNWARD.
1321
a2f45fe6 13222015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
1323
1324 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1325 STACK_GROWS_DOWNWARD rather than if it is defined.
1326
0fee2ac2 13272015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 1328
0fee2ac2
MLI
1329 PR c/52952
1330 * c-format.c (location_column_from_byte_offset): New.
1331 (location_from_offset): New.
1332 (struct format_wanted_type): Add offset_loc field.
1333 (check_format_info): Move handling of location for extra arguments
1334 closer to the point of warning.
1335 (check_format_info_main): Pass the result of location_from_offset
1336 to warning_at.
1337 (format_type_warning): Pass the result of location_from_offset
1338 to warning_at.
1339
cf4ef6f7
MP
13402015-05-20 Marek Polacek <polacek@redhat.com>
1341
1342 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1343
3a65ee74
MP
13442015-05-20 Marek Polacek <polacek@redhat.com>
1345
1346 * c-ada-spec.c (dump_sloc): Use DECL_P.
1347
21b634ae
MP
13482015-05-20 Marek Polacek <polacek@redhat.com>
1349
1350 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1351 * c-common.c: Likewise.
1352
0e50b624
DM
13532015-05-19 David Malcolm <dmalcolm@redhat.com>
1354
1355 * c-common.h (fe_file_change): Strengthen param from
1356 const line_map * to const line_map_ordinary *.
1357 (pp_file_change): Likewise.
1358 * c-lex.c (fe_file_change): Likewise.
1359 (cb_define): Use linemap_check_ordinary when invoking
1360 SOURCE_LINE.
1361 (cb_undef): Likewise.
1362 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1363 invoking cb_file_change.
1364 (c_finish_options): Likewise.
1365 (push_command_line_include): Likewise.
1366 (cb_file_change): Strengthen param "new_map" from
1367 const line_map * to const line_map_ordinary *.
1368 * c-ppoutput.c (cb_define): Likewise for local "map".
1369 (pp_file_change): Likewise for param "map" and local "from".
1370
fab27f52
MM
13712015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1372
1373 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1374
2fe1d762
TV
13752015-05-18 Tom de Vries <tom@codesourcery.com>
1376
1377 * c-common.c (build_va_arg_1): New function.
1378 (build_va_arg): Add address operator to va_list operand if necessary.
1379
7a37fa90
MM
13802015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1381
1382 PR c/48956
1383 * c-common.c (int_safely_convertible_to_real_p): Define.
1384 (unsafe_conversion_p): Check conversions involving complex types.
1385 (conversion_warning): Add new warning message for conversions which
1386 discard imaginary component.
1387 * c-common.h: (enum conversion_safety): Add new enumerator for such
1388 conversions.
1389
3aa3c9fc
MP
13902015-05-14 Marek Polacek <polacek@redhat.com>
1391
1392 PR c/66066
1393 PR c/66127
1394 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1395 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1396 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1397 use it. If FOR_INT_CONST, require that all evaluated operands be
1398 INTEGER_CSTs.
1399
c3388e62
DM
14002015-05-12 David Malcolm <dmalcolm@redhat.com>
1401
1402 * c-common.h (warn_for_misleading_indentation): New prototype.
1403 * c-indentation.c: New file.
1404 * c.opt (Wmisleading-indentation): New option.
1405
c7b38fd5
TV
14062015-05-12 Tom de Vries <tom@codesourcery.com>
1407
1408 PR tree-optimization/66010
1409 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1410
381bf11e
JM
14112015-05-09 Jason Merrill <jason@redhat.com>
1412
edff0c06
JM
1413 * c-opts.c (c_common_post_options): Also clear
1414 cpp_opts->cpp_warn_cxx11_compat.
1415
129211bc
JM
1416 * c-common.h (enum cxx_dialect): Add cxx_unset.
1417 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1418 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1419
381bf11e
JM
1420 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1421 (std=gnu++0x): Mark as Undocumented.
1422 (std=gnu++1y): Add deprecated message.
1423
fe191308
JM
14242015-05-08 Jason Merrill <jason@redhat.com>
1425
765189ff
JM
1426 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1427 * c-opts.c: Adjust.
1428
fe191308
JM
1429 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1430
755e528f
MP
14312015-05-08 Marek Polacek <polacek@redhat.com>
1432
1433 PR c/64918
1434 * c.opt (Woverride-init-side-effects): New option.
1435
0173bd2a
MP
14362015-05-07 Marek Polacek <polacek@redhat.com>
1437
1438 PR c/65179
1439 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1440 negative value.
1441 * c.opt (Wshift-negative-value): New option.
1442 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1443 when -Wextra and C99/C++11 mode.
1444
e0f0d3b9
MP
14452015-05-07 Marek Polacek <polacek@redhat.com>
1446 Martin Uecker <uecker@eecs.berkeley.edu>
1447
1448 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1449 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1450
8243e2a9
JM
14512015-05-05 Jason Merrill <jason@redhat.com>
1452
1453 * c.opt (Wterminate): New.
1454
577cd070
MP
14552015-04-30 Marek Polacek <polacek@redhat.com>
1456
1457 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1458 require that the non-constant be of a boolean type.
1459
0373796b
JT
14602015-04-29 Josh Triplett <josh@joshtriplett.org>
1461
e0f0d3b9
MP
1462 * c-common.c (handle_section_attribute): Refactor to reduce
1463 nesting and distinguish between error cases.
0373796b 1464
716c0ba6
MP
14652015-04-29 Marek Polacek <polacek@redhat.com>
1466
1467 PR c/64610
1468 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1469 with 0/1.
1470
8848828b
JJ
14712015-04-29 Jakub Jelinek <jakub@redhat.com>
1472
1473 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1474 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1475 HOST_BITS_PER_WIDE_INT.
1476
ecd0e562
TV
14772015-04-28 Tom de Vries <tom@codesourcery.com>
1478
1479 PR tree-optimization/65887
1480 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1481
2a877204 14822015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 1483 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
1484
1485 * c-ada-spec.c (in_function): Delete.
1486 (dump_generic_ada_node): Do not change in_function and remove the
1487 redundant code dealing with it.
1488 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1489 (print_ada_methods): Output the static member functions in a nested
1490 package after the regular methods as well as associated renamings.
1491
4853031e
MP
14922015-04-24 Marek Polacek <polacek@redhat.com>
1493
1494 PR c/65830
1495 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1496 and OPT_Wshift_count_overflow.
1497
8c2b7f79
MP
1498 PR c/63357
1499 * c-common.c (warn_logical_operator): Warn if the operands have the
1500 same expressions.
1501
b8787813
MP
15022015-04-24 Marek Polacek <polacek@redhat.com>
1503
1504 PR c/61534
1505 * c-common.c (warn_logical_operator): Bail if either operand comes
1506 from a macro expansion.
1507
8fba1830
BRF
15082015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1509
1510 PR target/55143
1511 * c-common.c (c_default_pointer_mode): Add definition.
1512 * c-common.h (c_default_pointer_mode): Add declaration.
1513
17958621
JJ
15142015-03-11 Jakub Jelinek <jakub@redhat.com>
1515
1516 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1517 on record_builtin_type argument.
1518
7ccb1a11
JJ
15192015-03-10 Jakub Jelinek <jakub@redhat.com>
1520
1521 PR c/65120
1522 * c-common.c (warn_logical_not_parentheses): Don't warn for
1523 !x == 0 or !x != 0.
1524
04fd785e
MP
15252015-03-07 Marek Polacek <polacek@redhat.com>
1526
1527 PR sanitizer/65280
1528 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1529 before trying to figure out whether we have a flexible array member.
1530
a4e26206
EB
15312015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1532 Jonathan Wakely <jwakely.gcc@gmail.com>
1533
1534 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1535
0d2489f4
EB
15362015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1537
1538 PR ada/65319
1539 * c-ada-spec.c (print_destructor): Remove obsolete code.
1540
83ed54d7
EB
15412015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1542
1543 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1544 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1545 DECL_TEMPLATE_RESULT emulations.
1546 (dump_ada_template)): Add guard for TYPE_METHODS.
1547
7631f0e2
MP
15482015-02-27 Marek Polacek <polacek@redhat.com>
1549
1550 PR c/65040
1551 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1552
d1783ae5
KT
15532015-02-27 Kai Tietz <ktietz@redhat.com>
1554
1555 PR c/35330
1556 * c-pragma.c (handle_pragma_weak): Do not try to create
1557 weak/alias of declarations not being function, or variable
1558 declarations.
1559
56a9f6bc
TS
15602015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1561
1562 PR libgomp/64625
1563 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1564 Remove macros.
1565 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1566
3d5cb23d
MP
15672015-02-16 Marek Polacek <polacek@redhat.com>
1568
1569 PR c/65066
1570 * c-format.c (check_format_types): Handle null param.
1571
fa008882
MP
15722015-02-13 Marek Polacek <polacek@redhat.com>
1573
1574 PR c/65040
1575 * c-format.c (check_format_types): Don't warn about different
1576 signedness if the original value is in the range of WANTED_TYPE.
1577
785f21af
JM
15782015-02-12 Jason Merrill <jason@redhat.com>
1579
1580 PR c++/64956
1581 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1582 to the current highest version.
1583 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1584
4886ec8e
JJ
15852015-02-04 Jakub Jelinek <jakub@redhat.com>
1586
1587 PR c/64824
1588 PR c/64868
1589 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1590 instead of RDIV_EXPR. Use build_binary_op instead of
1591 build2_loc.
1592
40fecdd6
JM
15932015-01-30 Joseph Myers <joseph@codesourcery.com>
1594
1595 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1596 to pass input_location as first argument.
1597
a0c88d06
TV
15982015-01-23 Tom de Vries <tom@codesourcery.com>
1599
1600 PR libgomp/64672
1601 * c.opt (fopenacc): Mark as LTO option.
1602
1506ae0e
TV
16032015-01-23 Tom de Vries <tom@codesourcery.com>
1604
1605 PR libgomp/64707
1606 * c.opt (fopenmp): Mark as LTO option.
1607
31be63ab
JJ
16082015-01-21 Jakub Jelinek <jakub@redhat.com>
1609
1610 PR c/63307
b1726d6c 1611 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
1612 (compare_decls): Fix up formatting.
1613
16142015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1615
1616 PR c/63307
1617 * cilk.c: Include vec.h.
1618 (struct cilk_decls): New structure.
1619 (wrapper_parm_cb): Split this function to...
1620 (fill_decls_vec): ...this...
1621 (create_parm_list): ...and this.
1622 (compare_decls): New function.
1623 (for_local_cb): Remove.
1624 (wrapper_local_cb): Ditto.
1625 (build_wrapper_type): For now first traverse and fill vector of
1626 declarations then sort it and then deal with sorted vector.
1627 (cilk_outline): Ditto.
1628 (declare_one_free_variable): Ditto.
1629
6875457f
JM
16302015-01-21 Jason Merrill <jason@redhat.com>
1631
1632 PR c++/64629
1633 * c-format.c (check_format_arg): Call decl_constant_value.
1634
185c9e56
ML
16352015-01-19 Martin Liska <mliska@suse.cz>
1636
1637 * c-common.c (handle_noicf_attribute): New function.
1638
41dbbb37
TS
16392015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1640 Bernd Schmidt <bernds@codesourcery.com>
1641 James Norris <jnorris@codesourcery.com>
1642 Cesar Philippidis <cesar@codesourcery.com>
1643 Ilmir Usmanov <i.usmanov@samsung.com>
1644 Jakub Jelinek <jakub@redhat.com>
1645
1646 * c.opt (fopenacc): New option.
1647 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1648 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1649 New macros.
1650 * c-common.h (c_finish_oacc_wait): New prototype.
1651 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1652 (c_finish_oacc_wait): New function.
1653 * c-pragma.c (oacc_pragmas): New variable.
1654 (c_pp_lookup_pragma, init_pragma): Handle it.
1655 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1656 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1657 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1658 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1659 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1660 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1661 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1662 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1663 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1664 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1665 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1666 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1667 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1668 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1669 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1670 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1671 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1672 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1673 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1674 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1675 PRAGMA_OACC_CLAUSE_WORKER.
1676
5434dc07
MD
16772015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1678
1679 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1680 for the new option fstack-protector_explicit.
1681 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1682 (handle_stack_protect_attribute): New function.
1683
de1b5c17
MU
16842015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1685
1686 * c.opt: New option -Warray-bounds=.
1687
adfac8df
JJ
16882015-01-09 Michael Collison <michael.collison@linaro.org>
1689
1690 * array-notation-common.c: Include hash-set.h, machmode.h,
1691 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1692 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1693 * c-ada-spec.c: Ditto.
1694 * c-cilkplus.c: Ditto.
1695 * c-common.c: Include input.h due to flattening of tree.h.
1696 Define macro GCC_C_COMMON_C.
1697 * c-common.h: Flatten tree.h header files into c-common.h.
1698 Remove include of tree-core.h.
1699 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1700 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1701 fold-const.h, wide-int.h, and inchash.h due to
1702 flattening of tree.h.
1703 * c-dump.c: Ditto.
1704 * c-format.c: Flatten tree.h header files into c-common.h.
1705 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1706 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1707 fold-const.h, wide-int.h, and inchash.h due to
1708 flattening of tree.h.
1709 * c-dump.c: Include hash-set.h, machmode.h,
1710 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1711 fold-const.h, wide-int.h, and inchash.h due to
1712 flattening of tree.h.
1713 * c-format.c: Include hash-set.h, machmode.h,
1714 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1715 fold-const.h, wide-int.h, inchash.h and real.h due to
1716 flattening of tree.h.
1717 * c-gimplify.c: Include hash-set.h, machmode.h,
1718 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1719 fold-const.h, wide-int.h, and inchash.h due to
1720 flattening of tree.h.
1721 * cilk.c: Ditto.
1722 * c-lex.c: Ditto.
1723 * c-omp.c: Ditto.
1724 * c-opts.c: Ditto.
1725 * c-pch.c: Ditto.
1726 * c-ppoutput.c: Ditto.
1727 * c-pragma.c: Ditto.
1728 * c-pretty-print.c: Ditto.
1729 * c-semantics.c: Ditto.
1730 * c-ubsan.c: Ditto.
1731 * stub-objc.c: Ditto.
1732
f5481fc4
JM
17332015-01-08 Jason Merrill <jason@redhat.com>
1734
1735 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1736 do_ubsan_in_current_function.
1737 (ubsan_maybe_instrument_reference_or_call): Likewise.
1738 * c-ubsan.h: Declare it.
1739
de35aa66
MS
17402015-01-08 Mike Stump <mikestump@comcast.net>
1741
1742 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1743
4a9a42ab
MP
17442015-01-07 Marek Polacek <polacek@redhat.com>
1745
1746 PR c/64440
1747 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1748 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1749
2f42e5de
TS
17502015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1751
1752 PR c++/31397
1753 * c.opt (Wsuggest-override): New option.
1754
5624e564
JJ
17552015-01-05 Jakub Jelinek <jakub@redhat.com>
1756
1757 Update copyright years.
1758
5bd012f8
MP
17592015-01-05 Marek Polacek <polacek@redhat.com>
1760
1761 PR c/64423
1762 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1763 parameter. Use it.
1764 * c-common.h (warn_array_subscript_with_type_char): Update
1765 declaration.
1766
a7fa8d18
ESR
17672014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1768
1769 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1770 Control macro with flag_sized_deallocation.
1771
768952be
MU
17722014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1773
1774 * c.opt (Wdiscarded-array-qualifiers): New option.
1775
1f8d3e84
JJ
17762014-12-19 Jakub Jelinek <jakub@redhat.com>
1777
1778 PR preprocessor/63831
1779 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1780 and __has_cpp_attribute here.
1781 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1782 c_common_has_attribute.
1783 * c-common.h (c_common_has_attribute): New prototype.
1784 * c-lex.c (init_c_lex): Set cb->has_attribute to
1785 c_common_has_attribute instead of cb_has_attribute.
1786 (get_token_no_padding): New function.
1787 (cb_has_attribute): Renamed to ...
1788 (c_common_has_attribute): ... this. No longer static. Use
1789 get_token_no_padding, require ()s, don't build TREE_LIST
1790 unnecessarily, fix up formatting, adjust diagnostics, call
1791 init_attributes.
1792
20b06add
JM
17932014-12-15 Jason Merrill <jason@redhat.com>
1794
1795 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1796 (-Wsized-deallocation): New.
1797 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1798 to on in C++14 and up.
1799
94a073b2
JM
18002014-12-11 Jason Merrill <jason@redhat.com>
1801
acaa5911
JM
1802 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1803
94a073b2
JM
1804 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1805 we aren't complaining about VLAs.
1806
7fb66c15
MP
18072014-12-06 Marek Polacek <polacek@redhat.com>
1808
1809 PR tree-optimization/64183
1810 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1811 shift-expression if it is integer_type_node. Use types_compatible_p.
1812
b731b390
JJ
18132014-11-29 Jakub Jelinek <jakub@redhat.com>
1814
1815 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1816 last argument from create_tmp_var_raw and create_tmp_var calls.
1817 * cilk.c (gimplify_cilk_spawn): Likewise.
1818 * c-omp.c (c_finish_omp_atomic): Likewise.
1819
6a4da643
MP
18202014-11-28 Marek Polacek <polacek@redhat.com>
1821
1822 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1823 instead of unsigned_type_node.
1824
541e35a6
MP
18252014-11-28 Marek Polacek <polacek@redhat.com>
1826
1827 PR c/63862
1828 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1829 to op1_utype.
1830 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1831 expression to unsigned_type_node.
1832
dcc97066
MW
18332014-11-20 Mark Wielaard <mjw@redhat.com>
1834
1835 PR debug/38757
1836 * c-opts.c (set_std_c89): Set lang_hooks.name.
1837 (set_std_c99): Likewise.
1838 (set_std_c11): Likewise.
1839 (set_std_cxx98): Likewise.
1840 (set_std_cxx11): Likewise.
1841 (set_std_cxx14): Likewise.
1842 (set_std_cxx1z): Likewise.
1843
aa7da51a
JJ
18442014-11-21 Jakub Jelinek <jakub@redhat.com>
1845
1846 PR target/63764
1847 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1848 return type to bool.
009a3480 1849 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
1850 (convert_vector_to_pointer_for_subscript): Change return type to
1851 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1852 and copy it into a TARGET_EXPR and use that instead of *vecp
1853 directly.
1854
538dd0b7
DM
18552014-11-19 David Malcolm <dmalcolm@redhat.com>
1856
1857 Merger of git branch "gimple-classes-v2-option-3".
1858 * ChangeLog.gimple-classes: New.
1859 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1860 from being just a vec<gimple> to a vec<gbind *>.
1861
c39a5e99
JJ
18622014-11-18 Jakub Jelinek <jakub@redhat.com>
1863
1864 PR sanitizer/63813
1865 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1866 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1867 get_pointer_alignment for non-pointers. Use ptype, or if it is
1868 reference type, corresponding pointer type, as type of kind
1869 argument.
1870 (ubsan_maybe_instrument_reference,
1871 ubsan_maybe_instrument_member_call): Adjust callers.
1872
8537a4a9
MP
18732014-11-15 Marek Polacek <polacek@redhat.com>
1874
1875 PR middle-end/63884
1876 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1877 for NULL fndecl.
1878 (extract_array_notation_exprs): Return for NULL node.
1879
2079956a
JM
18802014-11-12 Joseph Myers <joseph@codesourcery.com>
1881
1882 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1883 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1884
1304953e
JJ
18852014-11-12 Jakub Jelinek <jakub@redhat.com>
1886
1887 PR c/59708
1888 * c-common.c (check_builtin_function_arguments): Handle
1889 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1890
e5e44252
AK
18912014-11-10 Andi Kleen <ak@linux.intel.com>
1892
1893 PR c/60804
1894 * c-common.h (check_no_cilk): Declare.
1895 * cilk.c (get_error_location): New function.
1896 (check_no_cilk): Dito.
1897
e64b984d
AK
18982014-11-10 Andi Kleen <ak@linux.intel.com>
1899
1900 * cilk.c (recognize_spawn): Use expression location
1901 for error message.
1902
13c21655
PC
19032014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1904
1905 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1906
42fd12b1
ESR
19072014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1908
1909 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1910 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1911 (__cpp_range_based_for, __cpp_initializer_lists,
1912 __cpp_delegating_constructors, __cpp_nsdmi,
1913 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1914 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1915 __has_cpp_attribute.
1916 * c-lex.c (cb_has_attribute): New callback CPP function;
1917 (init_c_lex): Set has_attribute callback.
1918
6f450181
RB
19192014-11-04 Richard Biener <rguenther@suse.de>
1920
1921 * c-common.c (shorten_compare): Do not shorten mixed
1922 DFP and non-DFP compares.
1923
26f0e1d6
ESR
19242014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1925
1926 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1927 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1928 Commentary and rearrangement of tests.
1929 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1930 Commentary and rearrangement of tests.
1931 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1932 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1933
ef4bddc2
RS
19342014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1935
1936 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1937 enum from machine_mode.
1938
c582198b
AM
19392014-10-28 Andrew MacLeod <amacleod@redhat.com>
1940
adfac8df
JJ
1941 * c-common.c: Adjust include files.
1942 * c-gimplify.c: Ditto.
1943 * cilk.c: Ditto.
1944 * c-pragma.c: Ditto.
1945 * c-ubsan.c: Ditto.
c582198b 1946
60393bbc
AM
19472014-10-27 Andrew MacLeod <amacleod@redhat.com>
1948
1949 * c-gimplify.c: Adjust include files.
1950
d723bb7c
MLI
19512014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1952
1953 PR c++/53061
1954 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1955 c_common_initialize_diagnostics.
1956 * c-common.h: Likewise.
1957
90f3520e
MP
19582014-10-24 Marek Polacek <polacek@redhat.com>
1959
1960 PR c/56980
1961 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1962 print "struct"/"union"/"enum" for typedefed names.
1963
59d7607a
MP
19642014-10-23 Marek Polacek <polacek@redhat.com>
1965
1966 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1967 in unsigned type.
1968
d95a2703
JJ
19692014-10-22 Jakub Jelinek <jakub@redhat.com>
1970 Yury Gribov <y.gribov@samsung.com>
1971
1972 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1973 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1974 instead of flag_sanitize_recover as bool flag.
1975
8e6ef852
KY
19762014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1977
1978 * cilk.c: Revert previous change.
1979
948cf550
IZ
19802014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1981
1982 PR c/63307
1983 * cilk.c: Include vec.h.
1984 (struct cilk_decls): New structure.
1985 (wrapper_parm_cb): Split this function to...
1986 (fill_decls_vec): ...this...
1987 (create_parm_list): ...and this.
1988 (compare_decls): New function.
1989 (for_local_cb): Remove.
1990 (wrapper_local_cb): Ditto.
1991 (build_wrapper_type): For now first traverse and fill vector of
1992 declarations then sort it and then deal with sorted vector.
1993 (cilk_outline): Ditto.
1994 (declare_one_free_variable): Ditto.
1995
92574c7c
MP
19962014-10-17 Marek Polacek <polacek@redhat.com>
1997
1998 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1999 * c.opt (Wimplicit-int): Initialize to -1.
2000
83685514
AM
20012014-10-16 Andrew MacLeod <amacleod@redhat.com>
2002
2003 * c-pragma.c: Adjust include files.
2004 * c-semantics.c: Likewise.
2005
5b8300ea
DD
20062014-10-16 DJ Delorie <dj@redhat.com>
2007
2008 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2009 multiples of bytes.
2010
5f83e90b
JM
20112014-10-14 Jason Merrill <jason@redhat.com>
2012
2013 PR c++/63455
2014 * c-common.h (CPP_PREPARSED_EXPR): New.
2015 (N_CP_TTYPES): Adjust.
2016
d73326ca
MP
20172014-10-15 Marek Polacek <polacek@redhat.com>
2018
2019 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2020
78a7c317
DD
20212014-10-14 DJ Delorie <dj@redhat.com>
2022
2023 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2024 types, not just __int128.
2025 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2026 types, not just __int128.
2027 (cpp_atomic_builtins): Round pointer sizes up.
2028 (type_suffix): Use type precision, not specific types.
2029 * c-common.c (c_common_reswords): Remove __int128 special case.
2030 (c_common_type_for_size): Check for all __intN types, not just
2031 __int128.
2032 (c_common_type_for_mode): Likewise.
2033 (c_common_signed_or_unsigned_type): Likewise.
2034 (c_build_bitfield_integer_type): Likewise.
2035 (c_common_nodes_and_builtins): Likewise.
2036 (keyword_begins_type_specifier): Likewise.
2037 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2038 __intN variants.
2039
2a22f99c
TS
20402014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2041
2042 * c-common.c: Use hash_table instead of hashtab.
2043
2a8ef767
ESR
20442014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2045
adfac8df 2046 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
2047 C++11 section.
2048
3c9aabbd
MG
20492014-10-03 Marc Glisse <marc.glisse@inria.fr>
2050
2051 PR c++/54427
2052 PR c++/57198
2053 PR c++/58845
2054 * c-common.c (warn_logical_operator): Punt for vectors.
2055
a15f7cb8
ESR
20562014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2057
2058 Implement SD-6: SG10 Feature Test Recommendations
2059 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2060 macros and the __has_header macro.
2061
8d0cf15e
JM
20622014-09-30 Jason Merrill <jason@redhat.com>
2063
dd5d5481
JM
2064 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2065 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2066 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2067
b752325e
JM
2068 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2069 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2070
8d0cf15e
JM
2071 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2072 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2073
083e891e
MP
20742014-09-24 Marek Polacek <polacek@redhat.com>
2075
2076 PR c/61405
2077 PR c/53874
2078 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2079
7861b648
AK
20802014-09-23 Andi Kleen <ak@linux.intel.com>
2081
2082 * c-common.c (handle_no_reorder_attribute): New function.
2083 (c_common_attribute_table): Add no_reorder attribute.
2084
9a79452d
JM
20852014-09-22 Joseph Myers <joseph@codesourcery.com>
2086
2087 * c-cppbuiltin.c (c_cpp_builtins): Define
2088 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2089 modes.
2090
dd69f047
JM
20912014-09-18 Joseph Myers <joseph@codesourcery.com>
2092
2093 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2094 for supported floating-point modes.
2095
737a4826
MLI
20962014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2097
2098 * c.opt (Wpsabi): Use LangEnabledBy.
2099 * c-opts.c (c_common_handle_option): Do not handle here.
2100
8cc4b7a2
JM
21012014-09-12 Joseph Myers <joseph@codesourcery.com>
2102
2103 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2104 macros for floating-point modes.
2105
179b5a55
MG
21062014-09-11 Marc Glisse <marc.glisse@inria.fr>
2107
2108 PR target/58757
2109 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2110 __*_DENORM_MIN__ without denormals.
2111
570a11fe
JJ
21122014-09-10 Jakub Jelinek <jakub@redhat.com>
2113
2114 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2115 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2116 ubsan_create_data callers.
2117 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2118 index is constant or BIT_AND_EXPR with constant mask and is
2119 small enough for the bound.
2120 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2121 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2122
b559c810
MLI
21232014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2124
2125 * c.opt: Add CppReason to various flags.
2126 (Wdate-time): Re-sort.
2127 * c-common.c: Include c-common.h earlier.
2128 (struct reason_option_codes_t): Delete.
2129 (c_option_controlling_cpp_error): Prefix global type and struct
2130 with cpp_.
2131
1ef33fd4
MLI
21322014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2133
2134 * c.opt (Wnormalized): New.
2135 (Wnormalized=): Use Enum and Reject Negative.
2136 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2137
66bb34c0
JM
21382014-09-08 Joseph Myers <joseph@codesourcery.com>
2139
2140 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2141 digits of floating-point modes if -fbuilding-libgcc.
2142
53d68b9f
JM
21432014-09-05 Joseph Myers <joseph@codesourcery.com>
2144
2145 * c-cppbuiltin.c (c_cpp_builtins): Also define
2146 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2147 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2148 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2149 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2150 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2151 __LIBGCC_STACK_GROWS_DOWNWARD__,
2152 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2153 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2154 __LIBGCC_DWARF_FRAME_REGISTERS__,
2155 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2156 __LIBGCC_STACK_POINTER_REGNUM__ and
2157 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2158 (builtin_define_with_value): Handle backslash-escaping in string
2159 macro values.
2160
f65586dc
RB
21612014-09-05 Richard Biener <rguenther@suse.de>
2162
2163 PR middle-end/63148
2164 * c-format.c (check_format_arg): Properly handle
2165 effectively signed POINTER_PLUS_EXPR offset.
2166
2b71f4a4
MLI
21672014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2168
2169 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2170 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2171 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2172 and Init.
2173 * c-opts.c (c_common_handle_option): Do not handle here.
2174 (sanitize_cpp_opts): Likewise.
2175 * c-common.c (struct reason_option_codes_t): Handle
2176 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2177
d2e4feca
MP
21782014-09-03 Marek Polacek <polacek@redhat.com>
2179
2180 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2181
9a771876
JJ
21822014-09-02 Jakub Jelinek <jakub@redhat.com>
2183 Balaji V. Iyer <balaji.v.iyer@intel.com>
2184 Igor Zamyatin <igor.zamyatin@intel.com>
2185
2186 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2187 * c-common.c (c_common_reswords): Added _Cilk_for.
2188 * c-common.h (enum rid): Added RID_CILK_FOR.
2189 (cilk_for_number_of_iterations): Add declaration.
2190 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2191 CILK_FOR.
2192 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2193 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2194
81b5d104
MLI
21952014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2196
2197 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2198 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2199 Wundef): Use CPP, Var and Init.
2200 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2201
b753b37b
MLI
22022014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2203
2204 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2205 * c-opts.c (c_common_handle_option): Do not handle here.
2206
028aee17
JM
22072014-08-25 Jason Merrill <jason@redhat.com>
2208
2209 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2210 -std=c++14 and -std=gnu++14, rather than the reverse.
2211 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2212 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2213 * c-common.h (cxx_dialect): Remove cxx1y.
2214
e4276ba5
ESR
22152014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2216
2217 * c-common.h (enum cxx_dialect): Add cxx14.
2218 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2219 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2220 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2221
a545cacd
JM
22222014-08-22 Jason Merrill <jason@redhat.com>
2223
2224 * c.opt (std=gnu++17): Fix alias.
2225
59ea0364
MP
22262014-08-22 Marek Polacek <polacek@redhat.com>
2227
2228 PR c++/62199
2229 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2230 check for vector types. Drop LHS argument.
2231 * c-common.h (warn_logical_not_parentheses): Adjust.
2232
596e808c
MLI
22332014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2234
2235 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2236 (Wmultichar): Likewise.
2237 (Wdate-time): Use C-family languages instead of Common. Use CPP
2238 and Var.
2239 * c-opts.c (c_common_handle_option): Do not handle the above
2240 options here.
2241 (sanitize_cpp_opts): Likewise.
2242
18767f65
MLI
22432014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2244
2245 PR fortran/44054
2246 * c-opts.c: Include tree-diagnostics.h.
2247 (c_diagnostic_finalizer): New.
2248 (c_common_initialize_diagnostics): Use it.
2249
b4413594
MLI
22502014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2251
2252 PR preprocessor/51303
2253 * c-common.c (struct reason_option_codes_t option_codes):
2254 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2255
43f9a13c
MLI
22562014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2257
2258 PR c/60975
2259 PR c/53063
2260 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2261 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2262 (c_common_post_options): Call init_global_opts_from_cpp.
2263 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2264
04159acf
MP
22652014-08-19 Marek Polacek <polacek@redhat.com>
2266
2267 PR c++/62153
2268 * c-common.c (maybe_warn_bool_compare): New function.
2269 * c-common.h (maybe_warn_bool_compare): Declare.
2270 * c.opt (Wbool-compare): New option.
2271
35aff4fb
MP
22722014-08-19 Marek Polacek <polacek@redhat.com>
2273
2274 * c.opt (Wc99-c11-compat): New option.
2275
177cce46
MP
22762014-08-19 Marek Polacek <polacek@redhat.com>
2277
2278 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2279 to warn_c90_c99_compat.
2280 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2281 to -1.
2282
6ae9194f
MLI
22832014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2284 Steven Bosscher <steven@gcc.gnu.org>
2285
2286 PR c/52952
2287 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2288 format_check_results.
2289 (check_function_format): Use true and add comment for boolean
2290 argument.
2291 (finish_dollar_format_checking): Use explicit location when warning.
2292 (check_format_info): Likewise.
2293 (check_format_arg): Set extra_arg_loc and format_string_loc.
2294 (check_format_info_main): Use explicit location when warning.
2295 (check_format_types): Pass explicit location.
2296 (format_type_warning): Likewise.
2297
8e54f6d3
MLI
22982014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2299
2300 PR fortran/44054
2301 * c-format.c: Handle Fortran flags.
2302
cd4e76fc
IZ
23032014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2304
2305 PR other/61962
2306 * array-notation-common.c (find_rank): Added handling for other
2307 types of references.
2308
f3bede71
MP
23092014-08-10 Marek Polacek <polacek@redhat.com>
2310
2311 PR c/51849
2312 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2313 * c.opt (Wc90-c99-compat): Add option.
2314
9f25a338
TS
23152014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2316
2317 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2318
62e4eb35
MP
23192014-08-03 Marek Polacek <polacek@redhat.com>
2320
2321 * c-common.c (check_case_value): Add location_t parameter. Use it.
2322 (c_add_case_label): Pass loc to check_case_value.
2323
b787e7a2
TS
23242014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2325
2326 * cilk.c: Use hash_map instead of pointer_map.
2327
6e2830c3
TS
23282014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2329
2330 * c-gimplify.c: Use hash_set instead of pointer_set.
2331
a7ee52fb
IZ
23322014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2333
2334 PR middle-end/61455
2335 * array-notation-common.c (extract_array_notation_exprs): Handling
2336 of DECL_EXPR added.
2337
944fa280
JJ
23382014-08-01 Jakub Jelinek <jakub@redhat.com>
2339
2340 * c-common.h (min_align_of_type): Removed prototype.
2341 * c-common.c (min_align_of_type): Removed.
2342 * c-ubsan.h (ubsan_maybe_instrument_reference,
2343 ubsan_maybe_instrument_member_call): New prototypes.
2344 * c-ubsan.c: Include stor-layout.h and builtins.h.
2345 (ubsan_maybe_instrument_reference_or_call,
2346 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2347 functions.
2348
b4dfdc11
MG
23492014-07-31 Marc Glisse <marc.glisse@inria.fr>
2350
2351 PR c++/60517
2352 * c.opt (-Wreturn-local-addr): Move to common.opt.
2353
a41844e5
JM
23542014-07-30 Jason Merrill <jason@redhat.com>
2355
2356 PR c++/61659
2357 PR c++/61687
2358 Revert:
2359 * c.opt (-fuse-all-virtuals): New.
2360
976d5a22
TT
23612014-07-30 Tom Tromey <tromey@redhat.com>
2362
2363 PR c/59855
2364 * c.opt (Wdesignated-init): New option.
2365 * c-common.c (c_common_attribute_table): Add "designated_init".
2366 (handle_designated_init): New function.
2367
cdc94aca
MP
23682014-07-24 Marek Polacek <polacek@redhat.com>
2369
2370 PR c/57653
2371 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2372
f41373b6
DS
23732014-07-16 Dodji Seketeli <dodji@redhat.com>
2374
2375 PR preprocessor/60723 - missing system-ness marks for macro tokens
2376 * c-ppoutput.c (struct print::prev_was_system_token): New data
2377 member.
2378 (init_pp_output): Initialize it.
2379 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2380 (do_line_change): Return a flag saying if a line marker was
2381 emitted or not.
2382 (scan_translation_unit): Detect if the system-ness of the token we
2383 are about to emit is different from the one of the previously
2384 emitted token. If so, emit a line marker. Avoid emitting useless
2385 adjacent line markers. Avoid emitting line markers for tokens
2386 originating from the expansion of built-in macros.
2387 (scan_translation_unit_directives_only): Adjust.
2388
4d661eaa
MP
23892014-07-15 Marek Polacek <polacek@redhat.com>
2390
2391 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2392 TYPE_MAX_VALUE is NULL.
2393
b108f48f
JJ
23942014-07-14 Jakub Jelinek <jakub@redhat.com>
2395
2396 PR middle-end/61294
2397 * c.opt (Wmemset-transposed-args): New warning.
2398
c0221884
JM
23992014-07-10 Jason Merrill <jason@redhat.com>
2400
2401 PR c++/61659
2402 PR c++/61687
2403 * c.opt (-fuse-all-virtuals): New.
2404
63dfbb95
RB
24052014-07-09 Richard Biener <rguenther@suse.de>
2406
2407 PR c-family/61741
2408 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2409 using unsigned arithmetic if overflow does not wrap instead of
2410 if overflow is undefined.
2411
773ec47f
MP
24122014-07-06 Marek Polacek <polacek@redhat.com>
2413
2414 PR c/6940
2415 * c.opt (Wsizeof-array-argument): New option.
2416
00a7ba58
JJ
24172014-07-03 Jakub Jelinek <jakub@redhat.com>
2418
b1726d6c 2419 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
2420 comments->count <= 1, as comments->entries might be NULL.
2421
52ec0ea3
MP
24222014-07-01 Marek Polacek <polacek@redhat.com>
2423
2424 * c.opt (Wint-conversion): New option.
2425
d5c3d343
MP
24262014-07-01 Marek Polacek <polacek@redhat.com>
2427
2428 PR c/58286
2429 * c.opt (Wincompatible-pointer-types): New option.
2430
6e7ceb17
PC
24312014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2432
2433 PR c++/51400
2434 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2435 Do not discard TYPE_QUALS of type.
2436
da73100b
JM
24372014-06-26 Jason Merrill <jason@redhat.com>
2438
2439 * c-common.h (enum cxx_dialect): Add cxx1z.
2440 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2441 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2442
08eedf75
TJ
24432014-06-26 Teresa Johnson <tejohnson@google.com>
2444
2445 * c-common.h (get_dump_info): Declare.
2446 * c-gimplify.c (c_genericize): Use saved dump files.
2447 * c-opts.c (c_common_parse_file): Begin and end dumps
2448 once around parsing invocation.
2449 (get_dump_info): New function.
2450
7b56b2f8
MP
24512014-06-23 Marek Polacek <polacek@redhat.com>
2452 Andrew MacLeod <amacleod@redhat.com>
2453
2454 PR c/61553
2455 * c-common.c (get_atomic_generic_size): Don't segfault if the
2456 type doesn't have a size.
2457
0e37a2f3
MP
24582014-06-20 Marek Polacek <polacek@redhat.com>
2459
2460 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2461 (ubsan_walk_array_refs_r): New function.
2462 (c_genericize): Instrument array bounds.
2463 * c-ubsan.c: Include "internal-fn.h".
2464 (ubsan_instrument_division): Mark instrumented arrays as having
2465 side effects. Adjust ubsan_type_descriptor call.
2466 (ubsan_instrument_shift): Likewise.
2467 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2468 (ubsan_instrument_bounds): New function.
2469 (ubsan_array_ref_instrumented_p): New function.
2470 (ubsan_maybe_instrument_array_ref): New function.
2471 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2472 (ubsan_array_ref_instrumented_p): Declare.
2473 (ubsan_maybe_instrument_array_ref): Declare.
2474
24752014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
2476
2477 PR lto/61123
2478 * c.opt (fshort-enums): Add to LTO.
2479 * c.opt (fshort-wchar): Likewise.
2480
5c3d09f7
MP
24812014-06-16 Marek Polacek <polacek@redhat.com>
2482
2483 PR c/60439
2484 * c.opt (Wswitch-bool): Add Var.
2485
9cf32741
JJ
24862014-06-12 Jakub Jelinek <jakub@redhat.com>
2487
2488 PR middle-end/61486
2489 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2490 #pragma omp target teams or
2491 #pragma omp {,target }teams distribute simd.
2492
62984918
JM
24932014-06-12 Jason Merrill <jason@redhat.com>
2494
2495 * c.opt (Wabi=, fabi-compat-version): New.
2496 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2497 (c_common_post_options): Handle flag_abi_compat_version default.
2498 Disallow -fabi-compat-version=1.
2499 * c-common.h (abi_version_crosses): New.
2500
f961457f
JH
25012014-06-11 Jan Hubicka <hubicka@ucw.cz>
2502
adfac8df 2503 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
2504 section names that are no longer trees.
2505
92d28cbb
JJ
25062014-06-10 Jakub Jelinek <jakub@redhat.com>
2507
2508 PR fortran/60928
2509 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2510 (omp_pragmas): ... back here.
2511
742938c9
MP
25122014-06-05 Marek Polacek <polacek@redhat.com>
2513
2514 PR c/49706
2515 * c-common.c (warn_logical_not_parentheses): New function.
2516 * c-common.h (warn_logical_not_parentheses): Declare.
2517 * c.opt (Wlogical-not-parentheses): New option.
2518
9d548dfb
MP
25192014-06-04 Marek Polacek <polacek@redhat.com>
2520
2521 PR c/30020
2522 * c-common.c (check_case_bounds): Add location parameter.
2523 Use it.
2524 (c_add_case_label): Pass loc to check_case_bounds.
2525
fedfecef
MP
25262014-06-03 Marek Polacek <polacek@redhat.com>
2527
2528 PR c/60439
2529 * c.opt (Wswitch-bool): New option.
2530
f6a7cffc
TS
25312014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2532
040d18b6
TS
2533 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2534 Remove prototypes.
2535 (record_types_used_by_current_var_decl): Move prototype to where
2536 it belongs.
2537
f6a7cffc
TS
2538 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2539 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2540 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2541
632f2871
RS
25422014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2543
2544 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2545 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2546 void_zero_node.
2547 * c-pretty-print.c (pp_c_void_constant): New function.
2548 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2549 (c_pretty_printer::expression): Handle VOID_CST.
2550 * cilk.c (extract_free_variables): Likewise.
2551 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2552 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2553
766090c2
TS
25542014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2555
2556 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2557 * c-pragma.c (push_alignment): Adjust.
2558 (handle_pragma_push_options): Likewise.
2559
661a0813
MP
25602014-05-09 Marek Polacek <polacek@redhat.com>
2561
2562 PR c/50459
2563 * c-common.c (check_user_alignment): Return -1 if alignment is error
2564 node.
2565 (handle_aligned_attribute): Don't call default_conversion on
2566 FUNCTION_DECLs.
2567 (handle_vector_size_attribute): Likewise.
2568 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2569 (handle_sentinel_attribute): Call default_conversion and allow even
2570 integral types as an argument.
2571
2793eeab
MP
25722014-05-08 Marek Polacek <polacek@redhat.com>
2573
2574 PR c/61053
2575 * c-common.c (min_align_of_type): New function factored out from...
2576 (c_sizeof_or_alignof_type): ...here.
2577 * c-common.h (min_align_of_type): Declare.
2578
f827930a
MP
25792014-05-08 Marek Polacek <polacek@redhat.com>
2580
2581 PR c/61077
2582 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2583 parameter type of main.
2584
ca49b74e
DD
25852014-05-07 DJ Delorie <dj@redhat.com>
2586
2587 * c-cppbuiltin.c (print_bits_of_hex): New.
2588 (builtin_define_type_minmax): Print values using hex so as not to
2589 require a pre-computed list of string values.
2590
1d60af08
KZ
25912014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2592 Mike Stump <mikestump@comcast.net>
2593 Richard Sandiford <rdsandiford@googlemail.com>
2594
2595 * c-ada-spec.c: Include wide-int.h.
2596 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2597 (dump_generic_ada_node): Use wide-int interfaces.
2598 * c-common.c: Include wide-int-print.h.
2599 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2600 (pointer_int_sum): Use wide-int interfaces.
2601 (c_common_nodes_and_builtins): Use make_int_cst.
2602 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2603 (handle_alloc_size_attribute): Use wide-int interfaces.
2604 (get_nonnull_operand): Likewise.
2605 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2606 * c-lex.c: Include wide-int.h.
2607 (narrowest_unsigned_type): Take a widest_int rather than two
2608 HOST_WIDE_INTs.
2609 (narrowest_signed_type): Likewise.
2610 (interpret_integer): Update accordingly. Use wide-int interfaces.
2611 (lex_charconst): Use wide-int interfaces.
2612 * c-pretty-print.c: Include wide-int.h.
2613 (pp_c_integer_constant): Use wide-int interfaces.
2614 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2615 INT_CST_LT_UNSIGNED.
2616
b15458be
RB
26172014-05-06 Richard Biener <rguenther@suse.de>
2618
2619 * c-opts.c (c_common_post_options): For -freestanding,
2620 -fno-hosted and -fno-builtin disable pattern recognition
2621 if not enabled explicitely.
2622
6577374e
MP
26232014-05-02 Marek Polacek <polacek@redhat.com>
2624
2625 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2626
d00887e8
MP
26272014-05-01 Marek Polacek <polacek@redhat.com>
2628
2629 PR c/43245
2630 * c.opt (Wdiscarded-qualifiers): Add.
2631
f8ed5150
MP
26322014-04-30 Marek Polacek <polacek@redhat.com>
2633
2634 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2635 INT_MIN / -1 sanitization only for integer types.
2636
45484dcf
MP
26372014-04-25 Marek Polacek <polacek@redhat.com>
2638
2639 PR c/18079
2640 * c-common.c (handle_noinline_attribute): Warn if the attribute
2641 conflicts with always_inline attribute.
2642 (handle_always_inline_attribute): Warn if the attribute conflicts
2643 with noinline attribute.
2644
38e514c0
MP
26452014-04-25 Marek Polacek <polacek@redhat.com>
2646
2647 PR c/60156
2648 * c-common.c (check_main_parameter_types): Warn about variadic main.
2649
44875f92
MS
26502014-04-24 Mike Stump <mikestump@comcast.net>
2651
2652 * c.opt (Wshadow-ivar): Default to on.
2653
dcaaa5a0
DP
26542014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2655
2656 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2657
c07d7c02
MP
26582014-04-23 Marek Polacek <polacek@redhat.com>
2659
2660 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2661
1c33c9b7
JJ
26622014-04-22 Jakub Jelinek <jakub@redhat.com>
2663
2664 PR sanitizer/60275
2665 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2666 if flag_sanitize_undefined_trap_on_error.
2667 (ubsan_instrument_division, ubsan_instrument_shift,
2668 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2669 if !flag_sanitize_recover.
2670
793c625f
MG
26712014-04-22 Marc Glisse <marc.glisse@inria.fr>
2672
2673 PR libstdc++/43622
2674 * c-common.c (registered_builtin_types): Make non-static.
2675 * c-common.h (registered_builtin_types): Declare.
2676
b0f1bf36
RB
26772014-04-14 Richard Biener <rguenther@suse.de>
2678 Marc Glisse <marc.glisse@inria.fr>
2679
2680 PR c/60819
2681 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2682 apply may-alias the scalar pointer type when applicable.
2683
3b07fa4a
IZ
26842014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2685
2686 PR middle-end/60467
2687 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2688 as possible argument for Cilk_spawn.
2689
cbbd2b1c
TB
26902014-04-11 Tobias Burnus <burnus@net-b.de>
2691
2692 PR c/60194
2693 * c.opt (Wformat-signedness): Add
2694 * c-format.c(check_format_types): Use it.
2695
6415bd5d
JM
26962014-04-11 Jason Merrill <jason@redhat.com>
2697
2698 PR c++/57926
2699 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2700 default_conversion for an array argument.
2701
6525783a
MP
27022014-04-08 Marek Polacek <polacek@redhat.com>
2703
2704 PR sanitizer/60745
2705 * c-ubsan.c: Include asan.h.
2706 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2707
880a467b
NS
27082014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2709
2710 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2711
7b59ff2d
MP
27122014-04-02 Marek Polacek <polacek@redhat.com>
2713
2714 * c-common.h (c_expand_expr): Remove declaration.
2715
8edbfaa6
JJ
27162014-03-28 Jakub Jelinek <jakub@redhat.com>
2717
2718 PR c++/60689
2719 * c-common.c (add_atomic_size_parameter): When creating new
2720 params vector, push the size argument first.
2721
07d72e1d
JJ
27222014-03-26 Jakub Jelinek <jakub@redhat.com>
2723
2724 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2725 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2726 ubsan_create_data callers.
2727
b35e0fa0
JJ
27282014-03-22 Jakub Jelinek <jakub@redhat.com>
2729
2730 PR debug/60603
2731 * c-opts.c (c_finish_options): Restore cb_file_change call to
2732 <built-in>.
2733
39a1ebb3
JJ
27342014-03-13 Jakub Jelinek <jakub@redhat.com>
2735
2736 PR middle-end/36282
2737 * c-pragma.c (apply_pragma_weak): Only look at
2738 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2739 DECL_ASSEMBLER_NAME_SET_P (decl).
2740 (maybe_apply_pending_pragma_weaks): Exit early if
2741 vec_safe_is_empty (pending_weaks) rather than only when
2742 !pending_weaks.
2743 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2744 set assembler name back to NULL afterwards.
2745
a07f6ed2
JM
27462014-03-11 Jason Merrill <jason@redhat.com>
2747
2748 * c.opt: Add -std=gnu++14.
2749
75b107f5
IB
27502014-03-11 Ian Bolton <ian.bolton@arm.com>
2751
2752 * c-opts.c (c_common_post_options): Don't override
2753 -ffp-contract=fast if unsafe-math-optimizations is on.
2754
f42c637e
PM
27552014-03-08 Paulo Matos <paulo@matos-sorge.com>
2756
2757 * c.opt: Enable LTO FE for fshort-double.
2758
70e24808
JM
27592014-03-07 Jason Merrill <jason@redhat.com>
2760
2761 * c.opt: Add -std=c++14.
2762
3af9c5e9
MP
27632014-03-06 Marek Polacek <polacek@redhat.com>
2764
2765 PR c/60197
2766 * cilk.c (contains_cilk_spawn_stmt): New function.
2767 (contains_cilk_spawn_stmt_walker): Likewise.
2768 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2769 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2770
b3bdf019
JJ
27712014-03-03 Jakub Jelinek <jakub@redhat.com>
2772
2773 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2774 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2775 even when flag_preprocess_only.
2776
ca7e759d
JM
27772014-02-26 Jason Merrill <jason@redhat.com>
2778
2779 PR c++/59231
2780 PR c++/11586
2781 * c-common.c (shorten_compare): Don't check
2782 c_inhibit_evaluation_warnings.
2783
28e41874
JJ
27842014-02-19 Jakub Jelinek <jakub@redhat.com>
2785
cca615af
JJ
2786 PR c/37743
2787 * c-common.c (c_common_nodes_and_builtins): When initializing
2788 c_uint{16,32,64}_type_node, also set corresponding
2789 uint{16,32,64}_type_node to the same value.
2790
28e41874
JJ
2791 PR c++/60267
2792 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2793 for PRAGMA_IVDEP if flag_preprocess_only.
2794
c2bf53a1
JJ
27952014-02-12 Jakub Jelinek <jakub@redhat.com>
2796
2797 PR c/60101
2798 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2799 if false, add ADD itself, rather than vice versa.
2800 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2801 copy. For SAVE_EXPR, only call merge_tlist once.
2802
8fcbce72
JJ
28032014-02-08 Jakub Jelinek <jakub@redhat.com>
2804
2805 PR middle-end/60092
2806 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2807 and tree_to_uhwi.
2808 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2809 functions.
2810 (c_common_attribute_table): Add alloc_align and assume_aligned
2811 attributes.
2812
0a756a3f
MP
28132014-02-06 Marek Polacek <polacek@redhat.com>
2814
2815 PR c/60087
2816 * c-common.c (warn_for_sign_compare): Call warning_at with location
2817 instead of warning.
2818
7ec4847a
MP
28192014-02-05 Marek Polacek <polacek@redhat.com>
2820
2821 PR c/53123
2822 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2823 statement.
2824
66f20604
MP
28252014-02-04 Marek Polacek <polacek@redhat.com>
2826
2827 PR c/60036
2828 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2829 SAVE_EXPR.
2830
5d77fb19
MG
28312014-02-03 Marc Glisse <marc.glisse@inria.fr>
2832
2833 PR c++/53017
2834 PR c++/59211
2835 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2836 handle_vector_size_attribute, handle_nonnull_attribute): Call
2837 default_conversion on the attribute argument.
2838 (handle_nonnull_attribute): Increment the argument number.
2839
81e5eca8
MP
28402014-01-31 Marek Polacek <polacek@redhat.com>
2841
2842 PR c/59963
2843 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2844 build_function_call_vec.
2845 (resolve_overloaded_builtin): Likewise.
2846 * c-common.h (build_function_call_vec): Adjust declaration.
2847
68fca595
MP
28482014-01-30 Marek Polacek <polacek@redhat.com>
2849
2850 PR c/59940
2851 * c-common.h (unsafe_conversion_p): Adjust declaration.
2852 (warnings_for_convert_and_check): Likewise.
2853 (convert_and_check): Likewise.
2854 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2855 expansion_point_location_if_in_system_header on it.
2856 (warnings_for_convert_and_check): Add location parameter. Call
2857 expansion_point_location_if_in_system_header on it. Use it.
2858 (convert_and_check): Add location parameter. Use it.
2859 (conversion_warning): Likewise.
2860 (c_add_case_label): Adjust convert_and_check calls.
2861 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2862
b72271b9
BI
28632014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2864
2865 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2866 flag_cilkplus.
2867 * c-pragma.c (init_pragma): Likewise.
2868 * c.opt: Likewise.
2869
393e8e8b
MP
28702014-01-23 Marek Polacek <polacek@redhat.com>
2871
2872 PR c/59846
2873 * c-common.c (shorten_compare): Add location_t parameter.
2874 * c-common.h (shorten_binary_op): Adjust declaration.
2875
f04dda30
MP
28762014-01-23 Marek Polacek <polacek@redhat.com>
2877
2878 PR c/58346
2879 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2880 * c-common.h: Declare it.
2881
621955cb
EB
28822014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2883
2884 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2885 * c-ada-spec.c (dump_ads): Likewise.
2886 (cpp_check): Likewise.
2887 (dump_ada_specs): Likewise.
2888
28892014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
2890
2891 PR c++/49718
2892 * c-common.c (handle_no_instrument_function_attribute): Allow
2893 no_instrument_function attribute in class member
2894 definition/declaration.
2895
241f845a
JJ
28962014-01-15 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR c/58943
2899 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2900 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2901 being COMPOUND_EXPR.
2902 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2903 operand a SAVE_EXPR and second MODIFY_EXPR.
2904
e83b8e2e
JJ
29052014-01-09 Jakub Jelinek <jakub@redhat.com>
2906
2907 PR target/58115
2908 * c-pch.c (c_common_write_pch): Call
2909 prepare_target_option_nodes_for_pch.
2910
23a5b65a
RS
29112014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2912
2913 Update copyright years
2914
f9030485
RS
29152014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2916
2917 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2918 the copyright notice.
2919
f2aa696b
EB
29202013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2921
2922 * c-ada-spec.c (print_constructor): New function.
2923 (print_destructor): Retrieve the origin of the destructor.
2924 (print_ada_declaration): Revamp handling of constructors/destructors.
2925
1f26ac87
JM
29262013-12-23 Stuart Hastings <stuart@apple.com>
2927 Bill Maddox <maddox@google.com>
2928 Jason Merrill <jason@redhat.com>
2929
2930 * c.opt: Add -fdeclone-ctor-dtor.
2931 * c-opts.c (c_common_post_options): Default to on iff -Os.
2932
41958c28
BI
29332013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2934
2935 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2936 attribute.
2937 * c-pragma.h (enum pragma_cilk_clause): Remove.
2938 (enum pragma_omp_clause): Added the following fields:
2939 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2940 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2941 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2942 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2943 PRAGMA_CILK_CLAUSE_UNIFORM.
2944
b1726d6c 2945
12893402
BI
29462013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2947
2948 * cilk.c (cilk_outline): Made this function non-static.
2949 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2950 (create_cilk_wrapper): Added a new parameter: a function pointer.
2951 (c_install_body_w_frame_cleanup): Remove
2952 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2953 * c-common.h (cilk_outline): New prototype.
2954 (gimplify_cilk_spawn): Removed two parameters.
2955 (cilk_install_body_with_frame_cleanup): New prototype.
2956 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2957 CILK_SPAWN_STMT case.
2958
085b42ed
BS
29592013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2960
2ce064c3
BS
2961 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2962
085b42ed
BS
2963 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2964 (int_array_type_node): Remove.
2965 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2966
9e36c9ed
MP
29672013-12-05 Marek Polacek <polacek@redhat.com>
2968
2969 PR c/52023
2970 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2971 [ADJUST_FIELD_ALIGN].
2972
296674db
JM
29732013-12-04 Joseph Myers <joseph@codesourcery.com>
2974
2975 PR c/52023
2976 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2977 and check field alignment if set.
2978 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2979 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2980
b1726d6c 29812013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
2982 Marek Polacek <polacek@redhat.com>
2983
2984 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2985 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2986
d7947e19
L
29872013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2988
2989 PR c/59309
2990 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2991 arguments.
2992
fad7652e
JJ
29932013-11-29 Jakub Jelinek <jakub@redhat.com>
2994
2995 PR c/59280
2996 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2997 goto invalid. If it is error_mark_node, don't issue further
2998 diagnostics.
2999
8b5e1202
SO
30002013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3001
3002 * c.opt (Wopenmp-simd): New.
3003
0a508bb6
JJ
30042013-11-22 Jakub Jelinek <jakub@redhat.com>
3005
3006 * c-ubsan.h (ubsan_instrument_return): New prototype.
3007 * c-ubsan.c (ubsan_instrument_return): New function.
3008
2fb9a547
AM
30092013-11-22 Andrew MacLeod <amacleod@redhat.com>
3010
3011 * c-common.c: Add required include files from gimple.h.
3012 * c-gimplify.c: Likewise
3013 * cilk.c: Likewise
3014
8400e75e
DM
30152013-11-22 David Malcolm <dmalcolm@redhat.com>
3016
3017 * c-common.c (unsafe_conversion_p): Remove use of
3018 EXPR_LOC_OR_HERE macro.
3019 (conversion_warning): Likewise.
3020 (warnings_for_convert_and_check): Likewise.
3021 (warn_for_collisions_1): Likewise.
3022 (shorten_compare): Likewise, and remove use of in_system_header
3023 macro, using the location from the former.
3024 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3025 (cb_def_pragma): Remove use of in_system_header macro.
3026 (lex_string): Likewise.
3027 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3028
eb1ce453
KZ
30292013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3030 Mike Stump <mikestump@comcast.net>
3031 Richard Sandiford <rdsandiford@googlemail.com>
3032
3033 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3034 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3035 tree_fits_shwi_p or tree_fits_uhwi_p.
3036 (dump_generic_ada_node): Likewise.
3037 * c-format.c (check_format_arg): Likewise.
3038 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3039
6b3b8c27
KZ
30402013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3041
3042 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3043
49b0aa18
JC
30442013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3045
3046 PR c/53001
3047 * c-common.c (unsafe_conversion_p): Make this function
3048 return an enumeration with more detail.
3049 (conversion_warning): Use the new return type of
3050 unsafe_conversion_p to separately warn either about conversions
3051 that lower floating point number precision or about the other
3052 kinds of conversions.
3053 * c-common.h (enum conversion_safety): New enumeration.
3054 (unsafe_conversion_p): switching return type to
3055 conversion_safety enumeration.
3056 * c.opt: Adding new warning -Wfloat-conversion and
3057 enabling it with -Wconversion.
3058
b826515a
BS
30592013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3060
3061 * c-opts.c: Include plugin.h.
3062 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3063
b9a55b13
MP
30642013-11-19 Marek Polacek <polacek@redhat.com>
3065
3066 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3067 call.
3068 (ubsan_instrument_shift): Likewise.
3069 (ubsan_instrument_vla): Likewise.
3070
7d362f6c
RS
30712013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3072
3073 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3074 cast to unsigned type.
3075
386b1f1f
RS
30762013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3077
3078 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3079 tree_low_cst.
3080 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3081 rather than tree_low_cst.
3082
ae7e9ddd
RS
30832013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3084
3085 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3086 tree_to_uhwi throughout.
3087
9439e9a1
RS
30882013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3089
3090 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3091 tree_low_cst (..., 0) with tree_to_shwi throughout.
3092
cc269bb6
RS
30932013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3094
3095 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3096 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3097
9541ffee
RS
30982013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3099
3100 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3101 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3102
c02065fc
AH
31032013-11-15 Aldy Hernandez <aldyh@redhat.com>
3104
3105 * c-cilkplus.c: New file.
3106 * c-common.c (readonly_error): Add location argument.
3107 * c-common.h (readonly_error): Same.
3108 (c_finish_cilk_clauses): Protoize.
3109 (c_check_cilk_loop): Same.
3110 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3111 Do not fail on error_mark_node.
3112 Abstract increment canonicalization to here...
3113 (c_omp_for_incr_canonicalize_ptr): New.
3114 c-pragma.c (init_pragma): Register "simd" pragma.
3115 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3116 (enum pragma_cilk_clause): New.
3117
9cc65f15
RS
31182013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3119
3120 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3121 wchar_type and host_integerp checks.
3122
18f429e2
AM
31232013-11-14 Andrew MacLeod <amacleod@redhat.com>
3124
3125 * c-common.c: Likewise.
3126 * c-gimplify.c: Likewise.
3127 * cilk.c: Likewise.
3128
d8a2d370
DN
31292013-11-14 Diego Novillo <dnovillo@google.com>
3130
3131 * c-common.c: Include fold-const.h.
3132 Include stor-layout.h.
3133 Include calls.h.
3134 Include stringpool.h.
3135 Include attribs.h.
3136 Include varasm.h.
3137 Include trans-mem.h.
3138 * c-cppbuiltin.c: Include stor-layout.h.
3139 Include stringpool.h.
3140 * c-format.c: Include stringpool.h.
3141 * c-lex.c: Include stringpool.h.
3142 Include stor-layout.h.
3143 * c-pragma.c: Include stringpool.h.
3144 Include attribs.h.
3145 Include varasm.h.
3146 Include gcc-symtab.h.
3147 * c-pretty-print.c: Include stor-layout.h.
3148 Include attribs.h.
3149 * cilk.c: Include stringpool.h.
3150 Include calls.h.
3151
38b7bc7f
JM
31522013-11-13 Joseph Myers <joseph@codesourcery.com>
3153
3154 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3155 * c-common.c (c_common_reswords): Add __auto_type.
3156 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3157
45b0be94
AM
31582013-11-12 Andrew MacLeod <amacleod@redhat.com>
3159
18f429e2
AM
3160 * c-common.c: Include gimplify.h.
3161 * c-gimplify.c: Likewise.
3162 * cilk.c: Likewise.
3163 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3164 * c-ubsan.c: Don't include gimple.h.
45b0be94 3165
582d9b50
JM
31662013-11-12 Joseph Myers <joseph@codesourcery.com>
3167
3168 * c-common.c (c_common_reswords): Add _Thread_local.
3169
6b28e197
JM
31702013-11-09 Joseph Myers <joseph@codesourcery.com>
3171
3172 * c-common.c (atomic_size_supported_p): New function.
3173 (resolve_overloaded_atomic_exchange)
3174 (resolve_overloaded_atomic_compare_exchange)
3175 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3176 Use it instead of comparing size with a local list of sizes.
3177
267bac10
JM
31782013-11-07 Andrew MacLeod <amacleod@redhat.com>
3179 Joseph Myers <joseph@codesourcery.com>
3180
3181 * c-common.h (enum rid): Add RID_ATOMIC.
3182 * c-common.c (c_common_reswords): Add _Atomic.
3183 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3184 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3185 * c-format.c (check_format_types): Check for extra _Atomic
3186 qualifiers in format argument.
3187 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3188 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3189
5157b91e
TB
31902013-11-06 Tobias Burnus <burnus@net-b.de>
3191
3192 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3193
6dbe0958
JM
31942013-11-06 Joseph Myers <joseph@codesourcery.com>
3195
3196 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3197 standards modes.
3198 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3199 to mean lack of IEEE 754 support.
3200
e8ff5196
TB
32012013-11-05 Tobias Burnus <burnus@net-b.de>
3202
3203 * c.opt (-Wdate-time): New option
3204 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3205
254a0760
JM
32062013-11-05 Joseph Myers <joseph@codesourcery.com>
3207
3208 * c-cppbuiltin.c (cpp_iec_559_value): Test
3209 flag_excess_precision_cmdline not flag_excess_precision.
3210
6d7f7e0a
TB
32112013-11-05 Tobias Burnus <burnus@net-b.de>
3212
3213 * c.opt (fopenmp-simd): New option.
3214 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3215 (omp_pragmas): ... this new struct.
3216 (c_pp_lookup_pragma): Also walk omp_pragmas.
3217 (init_pragma): Init pragmas for -fopenmp-simd.
3218
55a7f02f
MP
32192013-11-04 Marek Polacek <polacek@redhat.com>
3220
3221 PR c++/58979
3222 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3223
9193fb05
JM
32242013-11-04 Joseph Myers <joseph@codesourcery.com>
3225
3226 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3227 New functions.
3228 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3229
94159ecf
EB
32302013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3231
3232 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3233 (dump_ada_specs): Adjust prototype of second callback.
3234 * c-ada-spec.c (cpp_check): New global variable.
3235 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3236 (print_generic_ada_decl): Likewise.
3237 (has_static_fields): Change return type to bool and add guard.
3238 (has_nontrivial_methods): New predicate.
3239 (is_tagged_type): Change return type to bool.
3240 (separate_class_package): Call has_nontrivial_methods.
3241 (pp_ada_tree_identifier): Minor tweaks.
3242 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3243 (dump_ada_array_domains): Likewise.
3244 (dump_ada_array_type): Likewise.
3245 (dump_template_types): Remove cpp_check parameter and do not pass it to
3246 dump_generic_ada_node.
3247 (dump_ada_template): Likewise.
3248 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3249 recursively.
3250 (print_ada_methods): Change return type to integer. Remove cpp_check
3251 parameter and do not pass it down.
3252 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3253 dump_generic_ada_node.
3254 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3255 accessing methods.
3256 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3257 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3258 value of print_ada_methods.
3259 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3260 Set cpp_check to it before invoking dump_ada_nodes.
3261 (dump_ada_specs): Likewise.
3262
b906f4ca
MP
32632013-11-03 Marek Polacek <polacek@redhat.com>
3264
3265 * c-ubsan.c: Don't include hash-table.h.
3266 (ubsan_instrument_vla): New function.
3267 * c-ubsan.h: Declare it.
3268
5e20cdc9
DM
32692013-10-31 David Malcolm <dmalcolm@redhat.com>
3270
3271 Automated part of renaming of symtab_node_base to symtab_node.
3272
3273 Patch autogenerated by rename_symtab.py from
3274 https://github.com/davidmalcolm/gcc-refactoring-scripts
3275 revision 58bb219cc090b2f4516a9297d868c245495ee622
3276
3277 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3278 symtab_node_base to symtab_node.
3279
7057e645
ESR
32802013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3281
3282 Implement C++14 digit separators.
3283 * c-lex.c (interpret_float): Remove digit separators from scratch string
3284 before building real literal.
3285
193ea7bc
JJ
32862013-10-30 Jakub Jelinek <jakub@redhat.com>
3287
3288 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3289
939b37da
BI
32902013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3291
3292 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3293 fields.
3294 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3295 enabled.
3296 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3297 (insert_cilk_frame): New prototype.
3298 (cilk_init_builtins): Likewise.
3299 (gimplify_cilk_spawn): Likewise.
3300 (c_cilk_install_body_w_frame_cleanup): Likewise.
3301 (cilk_detect_spawn_and_unwrap): Likewise.
3302 (cilk_set_spawn_marker): Likewise.
3303 (build_cilk_sync): Likewise.
3304 (build_cilk_spawn): Likewise.
3305 * cilk.c: New file.
3306
67348ccc
DM
33072013-10-29 David Malcolm <dmalcolm@redhat.com>
3308
3309 Patch autogenerated by refactor_symtab.py from
3310 https://github.com/davidmalcolm/gcc-refactoring-scripts
3311 revision 58bb219cc090b2f4516a9297d868c245495ee622
3312
3313 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3314 to a true class hierarchy.
3315 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3316
d570872d
RS
33172013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3318
3319 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3320
98906124
JL
33212013-10-26 Jeff Law <law@redhat.com>
3322
adfac8df
JJ
3323 * c-common.c (c_define_builtins): Remove mudflap support.
3324 * c.opt: Ignore and warn for mudflap options.
98906124 3325
d73749df 33262013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
3327
3328 PR other/33426
3329 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3330 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3331
3f04b1bb
JM
33322013-10-23 Jason Merrill <jason@redhat.com>
3333
3334 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3335
acf0174b
JJ
33362013-10-11 Jakub Jelinek <jakub@redhat.com>
3337
acd15a28
JJ
3338 * c-common.h (omp_clause_mask::operator !=): New method.
3339 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3340 instead of if (mask & something) tests everywhere.
3341
acf0174b
JJ
3342 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3343 201307 instead of 201107.
3344 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3345 (c_common_attribute_table): Add "omp declare target" and
3346 "omp declare simd" attributes.
3347 (handle_omp_declare_target_attribute,
3348 handle_omp_declare_simd_attribute): New functions.
3349 * c-omp.c: Include c-pragma.h.
3350 (c_finish_omp_taskgroup): New function.
3351 (c_finish_omp_atomic): Add swapped argument, if true,
3352 build the operation first with rhs, lhs arguments and use NOP_EXPR
3353 build_modify_expr.
3354 (c_finish_omp_for): Add code argument, pass it down to make_code.
3355 (c_omp_split_clauses): New function.
3356 (c_split_parallel_clauses): Removed.
3357 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3358 c_omp_declare_simd_clauses_to_decls): New functions.
3359 * c-common.h (omp_clause_mask): New type.
3360 (OMP_CLAUSE_MASK_1): Define.
3361 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3362 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3363 omp_clause_mask::operator |, omp_clause_mask::operator &,
3364 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3365 omp_clause_mask::operator ==): New methods.
3366 (enum c_omp_clause_split): New.
3367 (c_finish_omp_taskgroup): New prototype.
3368 (c_finish_omp_atomic): Add swapped argument.
3369 (c_finish_omp_for): Add code argument.
3370 (c_omp_split_clauses): New prototype.
3371 (c_split_parallel_clauses): Removed.
3372 (c_omp_declare_simd_clauses_to_numbers,
3373 c_omp_declare_simd_clauses_to_decls): New prototypes.
3374 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3375 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3376 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3377 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3378 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3379 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3380 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3381 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3382 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3383 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3384 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3385 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3386 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3387 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3388 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3389 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3390 PRAGMA_OMP_CLAUSE_UNIFORM.
3391
826cacfe
MG
33922013-10-09 Marc Glisse <marc.glisse@inria.fr>
3393
3394 PR tree-optimization/20318
3395 * c-common.c (handle_returns_nonnull_attribute): New function.
3396 (c_common_attribute_table): Add returns_nonnull.
3397
2284b034
MG
33982013-10-03 Marc Glisse <marc.glisse@inria.fr>
3399
3400 PR c++/19476
3401 * c.opt (fcheck-new): Move to common.opt.
3402
b56e9788
MP
34032013-09-25 Marek Polacek <polacek@redhat.com>
3404 Jakub Jelinek <jakub@redhat.com>
3405
3406 PR sanitizer/58413
3407 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3408 an expression if we can prove it is correct.
3409 (ubsan_instrument_division): Likewise. Remove unnecessary
3410 check.
3411
ce6923c5
MP
34122013-09-18 Marek Polacek <polacek@redhat.com>
3413
3414 PR sanitizer/58411
3415 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3416 Declare it.
3417 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3418
fb5610fb
IS
34192013-09-14 Iain Sandoe <iain@codesourcery.com>
3420
3421 PR target/48094
3422 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3423 fobjc-gc, freplace-objc-classes): Accept for LTO.
3424
88b0e79e
JC
34252013-09-13 Jacek Caban <jacek@codeweavers.com>
3426
3427 * c-target.def: New hook
3428
c9b0866a
PC
34292013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3430
3431 PR c++/43452
3432 * c.opt (Wdelete-incomplete): Add.
3433
0af94e6f
JR
34342013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3435
3436 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3437 (vector_types_compatible_elements_p): New function.
3438 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3439 declaration.
3440 (vector_types_compatible_elements_p): Declare.
3441
7c26172c
GDR
34422013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3443
3444 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3445 a virtual member function.
3446 (pp_simple_type_specifier): Remove.
3447 (pp_c_type_specifier): Likewise.
3448 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3449 Rename from pp_c_type_specifier. Adjust.
3450 (c_pretty_printer::c_pretty_printer): Do not assign to
3451 simple_type_specifier.
3452
20059c8b
GDR
34532013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3454
3455 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3456 member function.
3457 (c_pretty_printer::storage_class_specifier): Likewise.
3458 (c_pretty_printer::initializer): Likewise.
3459 (pp_declaration): Remove.
3460 (pp_declaration_specifiers): Likewise.
3461 (pp_abstract_declarator): Likewise.
3462 (pp_declarator): Likewise.
3463 (pp_type_id): Likewise.
3464 (pp_statement): Likewise.
3465 (pp_constant): Likewise.
3466 (pp_id_expression): Likewise.
3467 (pp_primary_expression): Likewise.
3468 (pp_unary_expression): Likewise.
3469 (pp_multiplicative_expression): Likewise.
3470 (pp_conditional_expression): Likewise.
3471 (pp_assignment_expression): Likewise.
3472 (pp_expression): Likewise.
3473 (pp_c_type_id): Likewise.
3474 (pp_c_storage_class_specifier): Likewise.
3475 * c-pretty-print.c (pp_c_type_cast): Tidy.
3476 (pp_c_pointer): Likewise.
3477 (pp_c_type_specifier): Likewise.
3478 (pp_c_parameter_type_list): Likewise.
3479 (pp_c_function_definition): Likewise.
3480 (pp_c_init_declarator): Likewise.
3481 (pp_c_initializer_list): Likewise.
3482 (pp_c_constructor_elts): Likewise.
3483 (c_pretty_printer::direct_abstract_declarator): Likewise.
3484 (c_pretty_printer::declaration_specifiers): Likewise.
3485 (c_pretty_printer::primary_expression): Likewise.
3486 (c_pretty_printer::postfix_expression): Likewise.
3487 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3488 (c_pretty_printer::storage_class_specifier): Rename from
3489 pp_c_storage_class_specifier.
3490 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3491 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3492 storage_class_specifier, initializer, offset_list, flags.
3493
de5a5fa1
MP
34942013-08-30 Marek Polacek <polacek@redhat.com>
3495
3496 * c-ubsan.c: New file.
3497 * c-ubsan.h: New file.
3498
8f0e4d72
GDR
34992013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3500
3501 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3502 member function.
3503 (c_pretty_printer::declaration_specifiers): Likewise.
3504 (c_pretty_printer::declarator): Likewise.
3505 (c_pretty_printer::abstract_declarator): Likewise.
3506 (c_pretty_printer::direct_abstract_declarator): Likewise.
3507 (c_pretty_printer::direct_declarator): Likewise.
3508 (c_pretty_printer::function_specifier): Likewise.
3509 (pp_declaration): Adjust.
3510 (pp_declaration_specifiers): Likewise.
3511 (pp_abstract_declarator): Likewise.
3512 (pp_direct_declarator): Likewise.
3513 (pp_function_specifier): Likewise.
3514 (pp_direct_abstract_declarator): Remove as unused.
3515 (pp_c_declaration): Remove.
3516 (pp_c_declaration_specifiers): Likewise.
3517 (pp_c_declarator): Likewise.
3518 (pp_c_direct_declarator): Likewise.
3519 (pp_c_function_specifier): Likewise.
3520 (pp_c_direct_abstract_declarator): Likewise.
3521 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3522 from pp_c_abstract_declarator. Adjust.
3523 (c_pretty_printer::direct_abstract_declarator): Rename from
3524 pp_c_direct_abstract_declarator. Adjust.
3525 (c_pretty_printer::function_specifier): Rename from
3526 pp_c_function_specifier. Adjust.
3527 (c_pretty_printer::declaration_specifiers): Rename from
3528 pp_c_declaration_specifiers. Adjust.
3529 (c_pretty_printer::direct_declarator): Rename from
3530 pp_c_direct_declarator. Adjust.
3531 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3532 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3533 (c_pretty_printer::c_pretty_printer): Do not assign to
3534 declaration, declaration_specifiers, declarator,
3535 direct_declarator, direct_abstract_declarator, function_specifier.
3536
00d34d3a
GDR
35372013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3538
3539 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3540 virtual member function.
3541 (c_pretty_printer::multiplicative_expression): Likewise.
3542 (c_pretty_printer::conditional_expression): Likewise.
3543 (c_pretty_printer::assignment_expression): Likewise.
3544 (c_pretty_printer::expression): Likewise.
3545 (pp_unary_expression): Adjust.
3546 (pp_multiplicative_expression): Likewise.
3547 (pp_assignment_expression): Likewise.
3548 (pp_conditional_expression): Likewise.
3549 (pp_expression): Likewise.
3550 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3551 from pp_c_unary_expression. Adjust.
3552 (c_pretty_printer::multiplicative_expression): Rename from
3553 pp_c_multiplicative_expression. Adjust.
3554 (c_pretty_printer::conditional_expression): Rename from
3555 pp_c_conditional_expression. Adjust.
3556 (c_pretty_printer::assignment_expression): Rename from
3557 pp_c_assignment_expression. Adjust.
3558 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3559 (c_pretty_printer::c_pretty_printer): Do not assign to
3560 unary_expression, multiplicative_expression,
3561 conditional_expression, expression.
3562
fb22178f
GDR
35632013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3564
3565 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3566 virtual member function.
3567 (pp_postfix_expression): Adjust.
3568 (pp_c_postfix_expression): Remove.
3569 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3570 from pp_c_postfix_expression. Adjust.
3571 (c_pretty_printer::c_pretty_printer): Do not assign to
3572 postfix_expression.
3573
7ecc2600
GDR
35742013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3575
3576 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3577 virtua member function.
3578 (pp_primary_expression): Adjust.
3579 (pp_c_primary_expression): Remove.
3580 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3581 from pp_c_primary_expression. Adjust.
3582 (pp_c_initializer_list): Use pp_primary_expression.
3583 (c_pretty_printer::c_pretty_printer): Do not assign to
3584 primary_expression.
3585
0691175f
GDR
35862013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3587
3588 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3589 * c-pretty-print.c (M_): Remove.
3590 (c_pretty_printer::translate_string): Define.
3591 (pp_c_type_specifier): Use it.
3592 (pp_c_primary_expression): Likewise.
3593 (pp_c_expression): Likewise.
3594
66dfe4c4
GDR
35952013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3596
3597 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3598 virtual function.
3599 (pp_c_id_expression): Remove.
3600 (pp_id_expression): Adjust.
3601 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3602 pp_c_id_expression. Adjust.
3603 (pp_c_postfix_expression): Use pp_id_expression.
3604 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3605
ca43e9d5
GDR
36062013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3607
3608 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3609 member function.
3610 (pp_constant): Adjust.
3611 (pp_c_constant): Remove.
3612 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3613 pp_c_constant. Adjust.
3614 (pp_c_constant)
3615 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3616 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3617
da6ca2b5
GDR
36182013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3619
3620 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3621 (c_pretty_printer::c_pretty_printer): Declare.
3622 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3623 c_pretty_printer_init. Adjust.
3624 (print_c_tree): Do not call c_pretty_printer_init.
3625 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3626
65a372f4
AC
36272013-08-09 Arnaud Charlet <charlet@adacore.com>
3628
3629 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3630
fd9b0f32
PC
36312013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3632
3633 PR c++/58080
3634 * c-common.c (pointer_int_sum): Add bool parameter.
3635 * c-common.h (pointer_int_sum): Adjust declaration.
3636
e0aec1e9
GDR
36372013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3638
3639 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3640 c_pretty_printer variable.
3641
b066401f
GDR
36422013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3643
3644 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3645 (pp_base): Remove.
3646 (pp_c_base): Likewise. Adjust users.
3647 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3648 (pp_c_whitespace): Do not call pp_base.
3649 (pp_c_left_paren): Likewise.
3650 (pp_c_right_paren): Likewise.
3651 (pp_c_left_brace): Likewise.
3652 (pp_c_right_brace): Likewise.
3653 (pp_c_left_bracket): Likewise.
3654 (pp_c_right_bracket): Likewise.
3655 (pp_c_dot): Likewise.
3656 (pp_c_ampersand): Likewise.
3657 (pp_c_star): Likewise.
3658 (pp_c_arrow): Likewise.
3659 (pp_c_semicolon): Likewise.
3660 (pp_c_complement): Likewise.
3661 (pp_c_exclamation): Likewise.
3662 (pp_c_direct_declarator): Likewise.
3663 (pp_c_ws_string): Likewise.
3664 (pp_c_identifier): Likewise.
3665 (pp_c_statement): Likewise.
3666 (print_c_tree): Likewise.
3667
65e5a578
ESR
36682013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3669
3670 PR c++/58072
3671 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3672 provide useful error strings.
3673
137a1a27
GDR
36742013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3675
3676 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3677 printer functions instead of pp_string or operators and punctuators.
3678 (dump_generic_ada_node): Likewise.
3679 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3680 (pp_c_relational_expression): Likewise.
3681 (pp_c_logical_or_expression): Likewise.
3682
07838b13
GDR
36832013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3684
3685 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3686 functions instead of pp_character.
3687 (pp_ada_tree_identifier): Likewise.
3688 (dump_ada_double_name): Likewise.
3689 (dump_ada_function_declaration): Likewise.
3690 (dump_ada_array_domains): Likewise.
3691 (dump_template_types): Likewise.
3692 (dump_generic_ada_node): Likewise.
3693 (print_ada_declaration): Likewise.
3694 (print_ada_struct_decl): Likewise.
3695 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3696
433cc7b0
TT
36972013-07-23 Tom Tromey <tromey@redhat.com>
3698
3699 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3700 * c-common.c (c_common_reswords): Add _Generic.
3701
688010ba
OB
37022013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
3703
3704 * c-common.c: Fix typos.
3705 * c-common.h: Likewise.
3706
2a99e5e6
LL
37072013-07-13 Lubos Lunak <l.lunak@suse.cz>
3708
3709 PR c++/55203
3710 * c-common.c (c_common_attribute_table): Add warn_unused.
3711 (handle_warn_unused_attribute): New.
3712
c26302d5
JJ
37132013-07-10 Jakub Jelinek <jakub@redhat.com>
3714
3715 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3716 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3717
dfeadaa0
PC
37182013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3719
3720 PR c++/57869
3721 * c.opt: Add Wconditionally-supported.
3722
6a2fa4b2
GS
37232013-07-08 Graham Stott <graham.stott@btinternet.com>
3724
adfac8df 3725 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
3726 unused variables l_length and l_node.
3727
ecdbd01a 37282013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
3729
3730 PR c/57821
3731 * c-common.c (complete_array_type): Delay folding first index
3732 like other indices. When folding, check for index overflow.
3733
bedc293e
MG
37342013-06-27 Marc Glisse <marc.glisse@inria.fr>
3735
3736 PR c++/57509
3737 * c-common.h (c_build_vec_perm_expr): New complain argument.
3738 * c-common.c (c_build_vec_perm_expr): Likewise.
3739 Use save_expr also in C++.
3740
604b2bfc
GDR
37412013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3742
3743 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3744 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3745 * c-opts.c (c_common_post_options): Likewise.
3746
dfeadaa0 37472013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
3748
3749 * array-notation-common.c (length_mismatch_in_expr): Changed the
3750 parameter type's from a dynamic array to a vec_tree. Also removed
3751 the size parameters.
3752 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3753 the change above.
3754
2ce86d2e
BI
37552013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3756
3757 * c-common.h (struct cilkplus_an_parts): New structure.
3758 (struct cilkplus_an_loop_parts): Likewise.
3759 (cilkplus_extract_an_triplets): New prototype.
3760 (fix_sec_implicit_args): Likewise.
3761 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3762 (fix_sec_implicit_args): Likewise.
604b2bfc 3763
07a6825b
BI
37642013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3765
3766 * array-notation-common.c (find_inv_trees): Removed an unwanted
3767 typecasting.
3768 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3769 enum rid to enum tree_code.
3770
08346abd
JH
37712013-06-11 Jan Hubicka <jh@suse.cz>
3772
3773 * c-common.c (handle_alias_ifunc_attribute): Do not set
3774 DECL_EXTERNAL for weakref variables.
3775 * c-pragma.c (handle_pragma_weak): Make sure aliases
3776 are not declared as external.
3777
d60f1706
BI
37782013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3779
3780 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3781 function from c/c-array-notation.c.
3782 (is_cilkplus_reduce_builtin): Likewise.
3783 (find_rank): Likewise.
3784 (extract_array_notation_exprs): Likewise.
3785 (replace_array_notations): Likewise.
3786 (find_inv_trees): Likewise.
3787 (replace_inv_trees): Likewise.
3788 (contains_array_notation_expr): Likewise.
3789 (find_correct_array_notation_type): Likewise.
3790 * c-common.h (struct inv_list): Moved this struct from the file
3791 c/c-array-notation.c and added a new field called additional tcodes.
3792 (length_mismatch_in_expr_p): New prototype.
3793 (is_cilkplus_reduce_builtin): Likewise.
3794 (find_rank): Likewise.
3795 (extract_array_notation_exprs): Likewise.
3796 (replace_array_notation): Likewise.
3797 (find_inv_trees): Likewise.
3798 (replace_inv_trees): Likewise.
3799 (find_correct_array_notation_type): Likewise.
dfeadaa0 3800
36536d79
BI
38012013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3802
3803 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3804 function array_notation_init_builtins is called.
3805 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3806 * c-common.def (ARRAY_NOTATION_REF): New tree.
3807 * c-common.h (build_array_notation_expr): New function declaration.
3808 (build_array_notation_ref): Likewise.
3809 (extract_sec_implicit_index_arg): New extern declaration.
3810 (is_sec_implicit_index_fn): Likewise.
3811 (ARRAY_NOTATION_CHECK): New define.
3812 (ARRAY_NOTATION_ARRAY): Likewise.
3813 (ARRAY_NOTATION_START): Likewise.
3814 (ARRAY_NOTATION_LENGTH): Likewise.
3815 (ARRAY_NOTATION_STRIDE): Likewise.
3816 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3817 ARRAY_NOTATION_REF.
3818 (pp_c_expression): Likewise.
3819 * c.opt (flag_enable_cilkplus): New flag.
3820 * array-notation-common.c: New file.
3821
f7716d57
JJ
38222013-05-14 Jakub Jelinek <jakub@redhat.com>
3823
3824 PR c++/57274
3825 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3826
a5e0cd1d
MG
38272013-05-10 Marc Glisse <marc.glisse@inria.fr>
3828
3829 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3830 vectors.
3831
f6bc1c4a
HS
38322013-05-07 Han Shen <shenhan@google.com>
3833
3834 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3835
3f12f6e9
SKS
38362013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3837
3838 * c-common.c (check_user_alignment): Emit error for negative values.
3839
61949153
PC
38402013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3841
3842 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3843
e93e18e9
PC
38442013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3845
3846 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3847 __GXX_EXPERIMENTAL_CXX1Y__.
3848
44d90fe1
PC
38492013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3850 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3851
3852 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3853 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3854 to simply use OPT_Wpointer_arith.
3855 (c_sizeof_or_alignof_type): Likewise.
3856
13f39b2e
PC
38572013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3858
3859 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3860
4b84d650
JJ
38612013-04-12 Jakub Jelinek <jakub@redhat.com>
3862
3863 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3864 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3865 specifiers.
3866
fb037b5d
SB
38672013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3868
3869 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3870
4e856798
PC
38712013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3872
3873 * c-common.c (pointer_int_sum): Remove dead code.
3874
4b1baac8
RS
38752013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3876
3877 PR middle-end/56524
3878 * c-common.c (handle_optimize_attribute): Don't call
3879 save_optabs_if_changed.
3880
0b50e654
JJ
38812013-03-05 Jakub Jelinek <jakub@redhat.com>
3882
3883 PR middle-end/56461
3884 * c-pch.c (pch_init): Free target_validity at the end.
3885
48c41403
JJ
38862013-03-04 Jakub Jelinek <jakub@redhat.com>
3887
3888 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3889
e664c61c
KS
38902013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3891 Jakub Jelinek <jakub@redhat.com>
3892
3893 PR sanitizer/56454
3894 * c-common.c (handle_no_sanitize_address_attribute): New function.
3895 (c_common_attribute_table): Add no_sanitize_address attribute.
3896 (handle_no_address_safety_analysis_attribute): Add
3897 no_sanitize_address attribute, not no_address_safety_analysis
3898 attribute.
3899
a475fd3d 39002013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
3901
3902 PR target/52555
3903 * c-common.c (handle_optimize_attribute): Call
3904 save_optabs_if_changed.
3905
f6007d99
JJ
39062013-02-18 Jakub Jelinek <jakub@redhat.com>
3907 Steven Bosscher <steven@gcc.gnu.org>
3908
3909 PR pch/54117
3910 * c-opts.c (c_common_post_options): If debug info is enabled
3911 and non-dwarf*, refuse to load PCH files and when writing PCH
3912 file warn.
3913
cf35e2b1
JJ
39142013-02-05 Jakub Jelinek <jakub@redhat.com>
3915
3916 PR middle-end/56167
3917 * c-common.c (handle_error_attribute): Fix condition.
3918
32887460
JJ
39192013-01-30 Jakub Jelinek <jakub@redhat.com>
3920
3921 PR c++/55742
3922 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3923
5af057d8
JM
39242013-01-18 Jason Merrill <jason@redhat.com>
3925
3926 PR target/54908
3927 * c.opt (-fextern-tls-init): New.
3928 * c-opts.c (c_common_post_options): Handle it.
3929
cc83c823
JJ
39302013-01-09 Jakub Jelinek <jakub@redhat.com>
3931
3932 PR c/48418
3933 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3934 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3935 and is either negative or bigger or equal to type precision
3936 of the first operand.
3937
a859517f
MP
39382012-12-03 Marek Polacek <polacek@redhat.com>
3939
3940 PR c/55570
3941 * c-common.c (check_user_alignment): Swap order of tests,
3942 check TREE_CODE first.
3943
2d7aa578
ESR
39442012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3945
3946 PR c++/52654
3947 * c-common.h (overflow_type): New enum.
3948 (build_userdef_literal): Add overflow_type argument.
3949 (tree_userdef_literal): Add overflow_type.
3950 (USERDEF_LITERAL_OVERFLOW): New access macro.
3951 * c-common.c (build_userdef_literal): Add overflow_type
3952 argument.
3953 * c-lex.c (c_lex_with_flags): Add overflow_type to
3954 build_userdef_literal calls.
3955 (interpret_integer, interpret_float): Add overflow_type argument.
3956
cc3c4f62
RB
39572012-11-28 Richard Biener <rguenther@suse.de>
3958
3959 PR c/35634
3960 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3961 here and use a type with proper overflow behavior for types that would
3962 need to be promoted for the arithmetic.
3963
77bc5132
JJ
39642012-11-23 Jakub Jelinek <jakub@redhat.com>
3965
3966 PR sanitizer/55435
3967 * c-common.c (handle_no_address_safety_analysis_attribute): New
3968 function.
3969 (c_common_attribute_table): Add no_address_safety_analysis.
3970
5dc99c46
SB
39712012-11-16 Simon Baldwin <simonb@google.com>
3972
3973 * c.opt: Add f[no-]canonical-system-headers.
3974 * c-opts.c (c_common_handle_option): Handle
3975 OPT_fcanonical_system_headers.
3976
a4a0016d
ESR
39772012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3978
3979 PR c++/54413
3980 * c-opts.c (c_common_handle_option): Set new flags.
3981 * c.opt: Describe new flags.
3982
7dbb85a7
JM
39832012-11-09 Jason Merrill <jason@redhat.com>
3984
3985 * c.opt (Wabi-tag): New.
3986
ad7bac31
AK
39872012-11-09 Andi Kleen <ak@linux.intel.com>
3988
3989 PR 55139
3990 * c-common.c (get_atomic_generic_size): Mask with
3991 MEMMODEL_MASK
3992
7332899a
MLI
39932012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3994
3995 PR c/53063
3996 * c.opt (Wformat): Make it Alias Wformat=1.
3997 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3998 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3999 LangEnabledBy.
4000 (Wformat=): RejectNegative. Use LangEnabledBy.
4001 (Wnonnull): Use LangEnabledBy.
4002 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4003 * c-format.c (set_Wformat): Delete.
4004 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4005 (maybe_read_dollar_number): Likewise.
4006 (avoid_dollar_number): Likewise.
4007 (finish_dollar_format_checking): Likewise.
4008 (check_format_info): Likewise.
4009 (check_format_info_main): Likewise.
4010 (check_format_types): Likewise.
4011 (format_type_warning): Likewise.
4012 * c-common.c (int): Likewise.
4013 (check_function_sentinel): Likewise.
4014 * c-common.h (warn_format,set_Wformat): Do not declare here.
4015
34a180a6
MLI
40162012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4017
4018 PR c/53063
4019 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4020 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4021 Use LangEnabledBy.
4022 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4023 common.opt.
4024 (Wvariadic-macros): Init(1).
4025 * c-opts.c (c_common_handle_option): Do not handle them
4026 explicitly.
4027 (c_common_post_options): Likewise.
4028 (sanitize_cpp_opts): warn_unused_macros is now
4029 cpp_warn_unused_macros.
4030 (push_command_line_include): Likewise.
4031 * c-common.c (warn_unknown_pragmas): Do not define.
4032 * c-common.h (warn_unknown_pragmas): Do not declare.
4033
3f46d6a5
MLI
40342012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4035
4036 PR c/51294
4037 * c-common.c (conversion_warning): Handle conditional expressions.
4038
880661a4
JW
40392012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4040
4041 PR c++/54930
4042 * c.opt (Wreturn_local_addr): Define new option.
4043
4514a96b
JM
40442012-10-25 Jason Merrill <jason@redhat.com>
4045
f14edc1a
JM
4046 * c.opt (Wvirtual-move-assign): New.
4047
4514a96b
JM
4048 * c.opt (Winherited-variadic-ctor): New.
4049
93100c6b
MG
40502012-10-25 Marc Glisse <marc.glisse@inria.fr>
4051
4052 PR c++/54427
4053 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4054
1efcb8c6
JM
40552012-10-23 Joseph Myers <joseph@codesourcery.com>
4056
4057 * c-common.h (pch_cpp_save_state): Declare.
4058 * c-target.def (c_preinclude): New hook.
4059 * c-opts.c (done_preinclude): New.
4060 (push_command_line_include): Handle default preincluded header.
4061 (cb_file_change): Call pch_cpp_save_state when calling
4062 push_command_line_include.
4063 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4064 (pch_cpp_save_state): New.
4065 (pch_init): Call pch_cpp_save_state conditionally, instead of
4066 calling cpp_save_state.
4067
4a0ae68e
MLI
40682012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4069
4070 PR c/53063
4071 PR c/40989
4072 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4073 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4074 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4075 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4076 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4077 * c-opts.c (c_common_handle_option): Remove explicit handling from
4078 here.
4079 (c_common_post_options): Likewise.
4080
67e4210b
EB
40812012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4082
4083 * c-ada-spec.c (LOCATION_COL): Delete.
4084 (compare_location): New function.
4085 (compare_node): Use it.
4086 (compare_comment): Likewise.
4087
65d4f2cd
MLI
40882012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4089
4090 PR c/53063
4091 PR c/40989
4092 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4093 * c-opts.c (c_common_handle_option): Do not set them here. Add
4094 comment.
4095 (c_common_post_options): Likewise.
4096
909881cb
EB
40972012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4098
4099 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4100 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4101 Remove POINTER_TYPE handling, add large unsigned handling and use
4102 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4103
3a785c97
JJ
41042012-10-12 Jakub Jelinek <jakub@redhat.com>
4105
4106 PR c/54381
4107 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4108 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4109 locs and array of 3 trees instead of just single loc and single
4110 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4111 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4112 For *cmp* builtins that take two sources strings report warnings
4113 about first and second source, not about destination and source.
4114
5e54f81d
MG
41152012-10-12 Marc Glisse <marc.glisse@inria.fr>
4116
4117 PR c++/53055
4118 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4119
f5b02f1e
EB
41202012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4121
4122 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4123 declaring something coming from another file.
4124
b46dbc6c
AC
41252012-10-10 Arnaud Charlet <charlet@adacore.com>
4126
f5b02f1e 4127 PR ada/54845
b46dbc6c
AC
4128 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4129
5d9de0d0
PC
41302012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4131
4132 PR c++/54194
4133 * c-common.c (warn_about_parentheses): Add location_t parameter;
4134 use EXPR_LOC_OR_LOC.
4135 * c-common.h: Update declaration.
4136
a212e43f
MG
41372012-10-09 Marc Glisse <marc.glisse@inria.fr>
4138
4139 PR c++/54427
4140 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4141 more operations. Make error messages optional.
4142 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4143 (scalar_to_vector): Declare.
4144
b1db7f91
JM
41452012-10-08 Jason Merrill <jason@redhat.com>
4146
4147 * c-common.c (c_common_reswords): Add thread_local.
4148
e28d52cf
DS
41492012-10-08 Dodji Seketeli <dodji@redhat.com>
4150
4151 PR c++/53528 C++11 attribute support
4152 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4153 new functions.
4154 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4155 static function.
4156 (handle_aligned_attribute): In choose strictest alignment
4157 among many. Use new check_cxx_fundamental_alignment_constraints.
4158 (handle_transparent_union_attribute): In c++11 attribute syntax,
4159 don't look through typedefs.
4160
3b78de56
AC
41612012-10-04 Arnaud Charlet <charlet@adacore.com>
4162
4163 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4164 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4165 out of dumpfile.h.
4166
6040bb5f
DC
41672012-09-25 Dehao Chen <dehao@google.com>
4168
4169 PR middle-end/54645
3b78de56 4170 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
4171 map when read in the pch.
4172
0b07a57e
AC
41732012-09-18 Arnaud Charlet <charlet@adacore.com>
4174
4175 * c-ada-spec.c: Style fixes.
4176
da5182be
TQ
41772012-09-18 Thomas Quinot <quinot@adacore.com>
4178
4179 * c.opt (-fada-spec-parent): Define new command line switch.
4180 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4181 is specified, generate binding spec as a child of the specified unit.
4182
0ccb505d
PC
41832012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4184 Manuel López-Ibáñez <manu@gcc.gnu.org>
4185
4186 PR c++/53210
4187 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4188
c583af79
AC
41892012-08-23 Arnaud Charlet <charlet@adacore.com>
4190
4191 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4192 for pointers, and add missing Convention C pragma.
4193 (print_ada_struct_decl): Add missing aliased keyword.
4194 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4195
1a4049e7
JJ
41962012-08-17 Jakub Jelinek <jakub@redhat.com>
4197
4198 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4199 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4200 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4201 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4202 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4203
70b5e7dc
RG
42042012-08-10 Richard Guenther <rguenther@suse.de>
4205
4206 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4207
f8923f7e
SB
42082012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4209
4210 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4211 instead of separate pp_newline and pp_flush.
4212 (print_c_tree): Likewise.
4213
e45abe1f
RH
42142012-07-26 Richard Henderson <rth@redhat.com>
4215
4216 * c-common.c (handle_hot_attribute): Allow labels.
4217 (handle_cold_attribute): Likewise.
4218
332f1d24
JJ
42192012-07-20 Jakub Jelinek <jakub@redhat.com>
4220
4221 PR c++/28656
4222 * c-common.c (check_function_nonnull): Handle multiple nonnull
4223 attributes properly.
4224
7ee2468b
SB
42252012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4226
4227 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4228 * c-ada-spec.c: Likewise.
4229 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4230
ee7b28eb
SB
42312012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4232
4233 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4234 Remove code conditional on it.
4235
6bdf3519
SB
42362012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4237
4238 * c-gimplify.c: Do not include basic-block.h.
4239 * c-common.c: Do not include linfuncs.h.
4240
532aafad
SB
42412012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4242
4243 * c-common.h: Include tree.h.
4244
8d0d1915
JM
42452012-07-02 Jason Merrill <jason@redhat.com>
4246
4247 PR c++/53524
4248 * c-common.c (get_priority): Call default_conversion.
4249
fbc873ad
UB
42502012-07-01 Uros Bizjak <ubizjak@gmail.com>
4251
4252 * c-pch.c (c_common_write_pch): Remove unused variables.
4253
d4a10d0a
SB
42542012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4255
4256 * cppspec.c: Moved from gcc/ to here.
4257
6f3a2e23
KT
42582012-06-27 Kai Tietz <ktietz@redhat.com>
4259
4260 PR preprocessor/37215
4261 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4262
8ca92d04
SB
42632012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4264
4265 * c-common.h (c_common_print_pch_checksum): Remove.
4266 * c-pch.c: Do not include output.h.
4267 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4268 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4269 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4270 (struct c_pch_header): Remove.
4271 (get_ident): Update gpch version.
4272 (pch_init): Do not print executable_checksum to asm_out_file.
4273 Do not fail if there is no asm_out_file to read back from. Set
4274 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4275 (c_common_write_pch): Verify that nothing was written to asm_out_file
4276 since pch_init was called. Do not write a c_pch_header, and do not
4277 copy from asm_out_file to the PCH.
4278 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4279 the content of asm_out_file from the PCH.
4280 (c_common_print_pch_checksum): Remove.
4281 * c-opts.c (c_common_init): Print out executable_checksum directly.
4282
70f42967
SB
42832012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4284
4285 * c-target.def (objc_declare_unresolved_class_reference,
4286 objc_declare_class_definition): Add new hooks.
4287
a8781821
SB
42882012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4289
4290 * c-lex.c: Do not include output.h.
4291 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4292 Remove uses of ASM_OUTPUT_IDENT.
4293
9e1a8dd1
RR
42942012-06-15 Marc Glisse <marc.glisse@inria.fr>
4295
4296 PR c++/51033
4297 * c-common.h (c_build_vec_perm_expr): Move decl here.
4298 * c-common.c (c_build_vec_perm_expr): Move definition
4299 here.
4300
6f07a821
SB
43012012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4302
4303 * c.opt (fconserve-space): Turn into a no-op.
4304
9faeb493 43052012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
4306
4307 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4308 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4309 both the start and end of the function.
4310
a4b7d13c
SB
43112012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4312
4313 * c-common.c: Do not include output.h.
4314 * c-pragma.c: Likewise.
4315
c265f413
SA
43162012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4317
4318 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4319 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4320 (lang_decl_name): Handle namespace decls.
4321
be7a421e
SB
43222012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4323
4324 * c-ada-spec.c: Do not include output.h.
4325 * c-semantics.c: Likewise.
4326
65de6659
JM
43272012-05-29 Joseph Myers <joseph@codesourcery.com>
4328
4329 * c-common.c: Fix typo.
4330
ca5f4331
MM
43312012-05-29 Michael Matz <matz@suse.de>
4332
4333 * c-common.h (c_expand_decl): Remove prototype.
4334
4f7f7aca
MLI
43352012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4336
4337 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4338 * c-opts.c (c_common_handle_option): Remove code handling
4339 warn_missing_braces.
4340
4a792f9b
PC
43412012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4342
4343 PR c++/25137
4344 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4345 -Wmissing_braces.
4346
650dc14a
DS
43472012-05-22 Dodji Seketeli <dodji@redhat.com>
4348
4349 PR c++/53322
4350 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4351
9b095bf1
MLI
43522012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4353
4354 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4355 * c-opts.c (c_common_handle_option): Do not handle explicitly
4356 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4357
0b2c4be5
DS
43582012-05-16 Dodji Seketeli <dodji@redhat.com>
4359
4360 PR preprocessor/7263
4361 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4362 to cpp_classify_number. For diagnostics, use the precise location
4363 instead of the global input_location.
4364
a1bde5af
PC
43652012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4366
d02924ef 4367 PR c++/11856
a1bde5af
PC
4368 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4369
d1ede5f4
BS
43702012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4371
a1bde5af 4372 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 4373
f2bc201f
MLI
43742012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4375
4376 PR 53063
4377 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4378 Wreorder): Use LangEnabledBy.
4379 * c-opts.c (c_common_handle_option): Do not enable them
4380 explicitly. Call lang-specific generated functions.
4381 (c_common_post_options): Do not set them here.
4382
95744782
MLI
43832012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4384
4385 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4386 Wmissing-field-initializers,Wmissing-parameter-type,
4387 Wold-style-declaration,Woverride-init): Use EnabledBy.
4388 * c-opts.c (c_common_post_options): Do not set here explicitly.
4389
7d5a5747
MLI
43902012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4391
4392 PR 53063
4393 * c-opts.c (c_common_handle_option): Use handle_generated_option
4394 to enable sub-options.
4395
5a3c9cf2
PC
43962012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4397
4398 PR c++/53158
4399 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4400
3ac8781c
RG
44012012-05-10 Richard Guenther <rguenther@suse.de>
4402
4403 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4404 adjust commentary about TYPE_IS_SIZETYPE types.
4405
1e537948
MLI
44062012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4407
4408 PR c++/53261
4409 * c-common.c (warn_logical_operator): Check that argument of
4410 integer_zerop is not NULL.
4411
f2c4a785
MLI
44122012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4413
4414 PR c/43772
4415 * c-common.c (warn_logical_operator): Do not warn if either side
4416 is already true or false.
4417
50f305ca
MLI
44182012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4419
4420 PR c/51712
4421 * c-common.c (expr_original_type): New.
4422 (shorten_compare): Do not warn for enumeration types.
4423
0c3641b0
MLI
44242012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4425
4426 * c.opt (fpermissive): Add Var(flag_permissive).
4427
7edaa4d2
MG
44282012-04-30 Marc Glisse <marc.glisse@inria.fr>
4429
4430 PR c++/51033
4431 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4432 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4433
b9c8da34
DS
44342012-04-30 Dodji Seketeli <dodji@redhat.com>
4435
4436 Add -Wvarargs option
4437 * c.opt (Wvarargs): Define new option.
4438
e6c69da0
MLI
44392012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4440
4441 * c-common.c (check_function_arguments): Replace
4442 Wmissing-format-attribute with Wsuggest-attribute=format.
4443
90137d8f
MLI
44442012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4445
4446 * c.opt (Wsuggest-attribute=format): New. Alias of
4447 Wmissing-format-attribute.
4448 * c-format.c (decode_format_type): Replace
4449 Wmissing-format-attribute with Wsuggest-attribute=format.
4450 (check_function_format): Likewise.
4451
9faeb493 44522012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
4453
4454 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4455 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4456 * c.opt: Add Wliteral-suffix.
4457
c1771a20
MLI
44582012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4459
4460 PR c/44774
4461 * c.opt (Wpedantic): New.
4462 (pedantic): Alias Wpedantic.
4463 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4464 (c_common_post_options): Likewise.
4465 (sanitize_cpp_opts): Likewise.
4466 * c-lex.c (interpret_float): Likewise.
4467 * c-format.c (check_format_types): Likewise.
4468 * c-common.c (pointer_int_sum): Likewise.
4469 (c_sizeof_or_alignof_type): Likewise.
4470 (c_add_case_label): Likewise.
4471 (c_do_switch_warnings): Likewise.
4472 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4473
04b391c1
JM
44742012-04-15 Jason Merrill <jason@redhat.com>
4475
4476 PR c++/52818
4477 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4478 (C_STD_NAME): Distinguish between C++98 and C++11.
4479
ac868f29
EB
44802012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4481
4482 PR target/52624
4483 * c-common.h (uint16_type_node): Rename into...
4484 (c_uint16_type_node): ...this.
4485 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4486 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4487
fd4116f4
MLI
44882012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4489
4490 * c-common.c (warn_if_unused_value): Move definition to here.
4491 * c-common.h (warn_if_unused_value): Move declaration to here.
4492
573ac65e
WB
44932012-03-23 William Bader <williambader@hotmail.com>
4494
4495 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4496
552b8185
JM
44972012-03-20 Jason Merrill <jason@redhat.com>
4498
4499 * c-common.h (enum cxx_dialect): Add cxx1y.
4500 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4501 test.
4502 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4503 * c-opts.c (c_common_post_options): Likewise.
4504 (set_std_cxx1y): New.
4505 (c_common_handle_option): Call it.
4506 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4507
04398fa8
PC
45082012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4509
4510 PR c++/14710
4511 * c.opt ([Wuseless-cast]): Add.
4512
d2a12ae7
RG
45132012-03-16 Richard Guenther <rguenther@suse.de>
4514
4515 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4516
a12bf402
MLI
45172012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4518
4519 PR c++/44783
4520 * c.opt (ftemplate-backtrace-limit) Add.
4521
5c30094f
RO
45222012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4523
4524 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4525 handling.
4526 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4527 (init_pragma): Don't register extern_prefix.
4528
21fa2faf
RG
45292012-03-12 Richard Guenther <rguenther@suse.de>
4530
4531 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4532 (builtin_type_for_size): Likewise.
4533
e3793c6f
JJ
45342012-02-13 Jakub Jelinek <jakub@redhat.com>
4535
4536 PR c++/52215
4537 * c-common.c (sync_resolve_params): Don't decide whether to convert
4538 or not based on TYPE_SIZE comparison, convert whenever arg_type
4539 is unsigned INTEGER_TYPE.
4540
93286335
PC
45412012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4542
4543 PR c/52118
4544 * c.opt ([Wunused-local-typedefs]): Fix description.
4545
7a421706
MS
45462012-01-24 Mike Stump <mikestump@comcast.net>
4547
4548 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4549 exactly.
4550
ba9b1f11
RG
45512012-01-18 Richard Guenther <rguenther@suse.de>
4552
4553 * c-opts.c (c_common_post_options): Reset LTO flags if
4554 we are about to generate a PCH.
4555
465406be
PC
45562012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4557
4558 PR c++/51777
4559 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4560 use pp_unsigned_wide_integer.
4561
aee15221
RG
45622012-01-10 Richard Guenther <rguenther@suse.de>
4563
4564 PR middle-end/51806
4565 * c-opts.c (c_common_handle_option): Move -Werror handling
4566 to language independent code.
4567
5720c0dc
RG
45682012-01-05 Richard Guenther <rguenther@suse.de>
4569
4570 PR middle-end/51764
4571 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4572 from common.opt.
4573
73ac190a
PC
45742011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4575
4576 PR c++/51316
4577 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4578 of array types with an unknown bound.
4579
48b0b196
JM
45802011-12-20 Joseph Myers <joseph@codesourcery.com>
4581
4582 * c-common.c (flag_isoc99): Update comment to refer to C11.
4583 (flag_isoc1x): Change to flag_isoc11.
4584 * c-common.h (flag_isoc99): Update comment to refer to C11.
4585 (flag_isoc1x): Change to flag_isoc11.
4586 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4587 C11.
4588 * c-opts.c (set_std_c1x): Change to set_std_c11.
4589 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4590 Call set_std_c11.
4591 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4592 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4593 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4594 standard.
4595 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4596 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4597 (std=gnu1x): Make alias of std=gnu11.
4598
d58d6eb5
JM
45992011-12-19 Jason Merrill <jason@redhat.com>
4600
4601 PR c++/51228
4602 * c-common.c (handle_transparent_union_attribute): Check the first
4603 field if the type is complete.
4604
b3908fcc
JW
46052011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4606
4607 PR libstdc++/51365
4608 * c-common.c (RID_IS_FINAL): Add.
4609 * c-common.h (RID_IS_FINAL): Add.
4610
fea3ca91
IS
46112011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4612
4613 * c.opt (fgnu-runtime): Provide full description.
4614 (fnext-runtime): Likewise.
4615 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4616
62bad7cd
AM
46172011-11-28 Andrew MacLeod <amacleod@redhat.com>
4618
4619 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4620 predefines in one place. Add LOCK_FREE predefines.
4621 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4622 new func.
4623
c466c4ff
AM
46242011-11-24 Andrew MacLeod <amacleod@redhat.com>
4625
4626 PR c/51256
9faeb493 4627 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 4628 conditions
9faeb493
UB
4629 (resolve_overloaded_atomic_exchange,
4630 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
4631 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4632 error_mark_node for error conditions.
9faeb493 4633
a5952633
RG
46342011-11-08 Richard Guenther <rguenther@suse.de>
4635
4636 PR middle-end/51010
4637 c-family/
4638
0a35513e
AH
46392011-11-07 Richard Henderson <rth@redhat.com>
4640 Aldy Hernandez <aldyh@redhat.com>
4641 Torvald Riegel <triegel@redhat.com>
4642
4643 Merged from transactional-memory.
4644
4645 * c-common.c (handle_tm_wrap_attribute,
4646 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4647 (struct c_common_reswords): Added __transaction* keywords.
4648 (struct c_common_attribute_table): Added transaction* and tm_regparm
4649 attributes.
4650 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4651 masks.
4652 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4653 find_tm_attribute): Declare.
4654
6d87092d
JM
46552011-11-07 Jason Merrill <jason@redhat.com>
4656
4657 PR c++/35688
4658 * c-common.c, c-common.h: Revert yesterday's changes.
4659
8e7860a1
JM
46602011-11-06 Jason Merrill <jason@redhat.com>
4661
4662 PR c++/35688
4663 * c-common.c (decl_has_visibility_attr): Split out from...
4664 (c_determine_visibility): ...here.
4665 * c-common.h: Declare it.
4666
d19fa6b5
JM
46672011-11-06 Joseph Myers <joseph@codesourcery.com>
4668
4669 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4670 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4671 type.
4672 (check_user_alignment): New. Split out of
4673 handle_aligned_attribute. Disallow integer constants with
4674 noninteger types. Conditionally allow zero.
4675 (handle_aligned_attribute): Use check_user_alignment.
4676 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4677
86951993
AM
46782011-11-06 Andrew MacLeod <amacleod@redhat.com>
4679 Richard Henderson <rth@redhat.com>
4680
4681 Merged from cxx-mem-model.
4682
4683 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 4684 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
4685 parameters that are the same type size.
4686 (get_atomic_generic_size): New. Find size of generic
4687 atomic function parameters and do typechecking.
4688 (add_atomic_size_parameter): New. Insert size into parameter list.
4689 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4690 either __atomic_exchange_n or external library call.
9faeb493 4691 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 4692 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 4693 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
4694 __atomic_load_n or an external library call.
4695 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4696 __atomic_store_n or an external library call.
4697 (resolve_overloaded_builtin): Handle new __atomic builtins.
4698
cf9e9959
EB
46992011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4700
4701 PR c++/50608
4702 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4703 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4704 <INDIRECT_REF>: Return the argument.
4705 <ARRAY_REF>: Remove special code for negative offset.
4706 Call fold_build_pointer_plus instead of size_binop.
4707 (fold_offsetof): Remove STOP_REF argument and adjust.
4708 * c-common.h (fold_offsetof_1): Declare.
4709 (fold_offsetof): Remove STOP_REF argument.
4710
25339f10
JM
47112011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4712
4713 PR c++/50810
4714 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4715 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4716 Wnarrowing for C++0x and C++98.
4717 * c.opt ([Wnarrowing]): Update.
4718
89401152
PC
47192011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4720
4721 PR c++/44277
4722 * c.opt: Add Wzero-as-null-pointer-constant.
4723
97e3ad20
JM
47242011-10-31 Jason Merrill <jason@redhat.com>
4725
15694fdd
JM
4726 * c.opt (-fdeduce-init-list): Off by default.
4727
97e3ad20
JM
4728 PR c++/50920
4729 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4730 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4731 and -Wc++11-compat.
4732 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4733
fb9120e3
RAV
47342011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4735
4736 PR c++/30066
4737 * c.opt (fvisibility-inlines-hidden): Description change.
4738
3ce4f9e4
ESR
47392011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4740
4741 Implement C++11 user-defined literals.
4742 * c-common.c (build_userdef_literal): New.
4743 * c-common.def: New tree code.
4744 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4745 * c-lex.c (interpret_float): Add suffix parm.
4746 (c_lex_with_flags): Build literal tokens.
4747
5f53c243
PC
47482011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4749
4750 PR c++/50841
4751 Revert:
4752 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4753
4754 PR c++/50810
4755 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4756 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4757 Wnarrowing for C++0x and C++98.
4758 * c.opt ([Wnarrowing]): Update.
4759
263734e1
PC
47602011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4761
4762 PR c++/50810
4763 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4764 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4765 Wnarrowing for C++0x and C++98.
4766 * c.opt ([Wnarrowing]): Update.
4767
d2e312d7
PC
47682011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4769
4770 PR c++/45385
4771 * c-common.c (conversion_warning): Remove code looking for
4772 artificial operands.
4773
d17687f6
DS
47742011-10-18 Dodji Seketeli <dodji@redhat.com>
4775
4776 PR bootstrap/50760
4777 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 4778 !NO_IMPLICIT_EXTERN_C.
d17687f6 4779
fc8396e9
PC
47802011-10-17 Michael Spertus <mike_spertus@symantec.com>
4781
4782 * c-common.c (c_common_reswords): Add __bases,
4783 __direct_bases.
4784 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4785
47862011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4787
4788 PR c++/50757
4789 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4790
847e697a
TT
47912011-10-15 Tom Tromey <tromey@redhat.com>
4792 Dodji Seketeli <dodji@redhat.com>
4793
4794 * c.opt (fdebug-cpp): New option.
4795 * c-opts.c (c_common_handle_option): Handle the option.
4796 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4797 output stream in parameter. Factorized from ...
4798 (maybe_print_line): ... this. Dump location debug information when
4799 -fdebug-cpp is in effect.
4800 (print_line_1): New static function. Takes an output stream in
4801 parameter. Factorized from ...
4802 (print_line): ... here. Dump location information when -fdebug-cpp
4803 is in effect.
4804 (scan_translation_unit): Dump location information when
4805 -fdebug-cpp is in effect.
4806
92582b75
TT
48072011-10-15 Tom Tromey <tromey@redhat.com>
4808 Dodji Seketeli <dodji@redhat.com>
4809
4810 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4811 without argument.
4812 * c-opts.c (c_common_handle_option)<case
4813 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4814 cases. Handle -ftrack-macro-expansion with and without argument.
4815
46427374
TT
48162011-10-15 Tom Tromey <tromey@redhat.com>
4817 Dodji Seketeli <dodji@redhat.com>
4818
4819 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4820 (print_line, cb_define, do_line_change): Adjust to avoid touching
4821 the internals of struct line_map. Use the public API instead.
4822 * c-pch.c (c_common_read_pch): Likewise.
4823 * c-lex.c (fe_file_change): Likewise.
4824
fc8396e9
PC
48252011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4826
4827 PR c++/17212
4828 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4829
48302011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4831
4832 PR c++/33067
4833 * c-pretty-print.c (pp_c_floating_constant): Output
4834 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4835
e79983f4
MM
48362011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4837
4838 * c-common.c (def_builtin_1): Delete old interface with two
4839 parallel arrays to hold standard builtin declarations, and replace
4840 it with a function based interface that can support creating
4841 builtins on the fly in the future. Change all uses, and poison
4842 the old names. Make sure 0 is not a legitimate builtin index.
4843 * c-omp.c (c_finish_omp_barrier): Ditto.
4844 (c_finish_omp_taskwait): Ditto.
4845 (c_finish_omp_flush): Ditto.
4846
6637388f
TG
48472011-10-11 Tristan Gingold <gingold@adacore.com>
4848
4849 * c.opt: (fallow-parameterless-variadic-functions): New.
4850
3797cb21
DS
48512011-09-08 Dodji Seketeli <dodji@redhat.com>
4852
4853 PR c++/33255 - Support -Wunused-local-typedefs warning
4854 * c-common.h (struct c_language_function::local_typedefs): New
4855 field.
9faeb493
UB
4856 (record_locally_defined_typedef, maybe_record_typedef_use)
4857 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 4858 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
4859 (maybe_record_typedef_use)
4860 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
4861 * c.opt: Declare new -Wunused-local-typedefs flag.
4862
693ddb1b
EB
48632011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4864
4865 PR middle-end/50266
4866 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4867 computations.
4868
830c740f
RG
48692011-09-05 Richard Guenther <rguenther@suse.de>
4870
4871 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4872 of integer_minus_one_node for empty array upper bounds.
4873
892a371f
DS
48742011-08-28 Dodji Seketeli <dodji@redhat.com>
4875
4876 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4877 it's the first time it's being called on this main TU.
4878
0e3fdb48
RB
48792011-08-24 Richard Guenther <rguenther@suse.de>
4880
4881 PR c/49396
4882 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4883
48842011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
4885
4886 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4887 defined in cpp_init_builtins and c_cpp_builtins.
4888
d4a83c10
JM
48892011-08-19 Joseph Myers <joseph@codesourcery.com>
4890
4891 * c-common.c (c_common_reswords): Add __builtin_complex.
4892 * c-common.h (RID_BUILTIN_COMPLEX): New.
4893
bbceee64
JM
48942011-08-18 Joseph Myers <joseph@codesourcery.com>
4895
4896 * c-common.c (c_common_reswords): Add _Noreturn.
4897 (keyword_is_function_specifier): Handle RID_NORETURN.
4898 * c-common.h (RID_NORETURN): New.
4899
0e3a99ae
AS
49002011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4901
4902 * c-common.c (unsafe_conversion_p): New function. Check if it is
4903 unsafe to convert an expression to the type.
4904 (conversion_warning): Adjust, use unsafe_conversion_p.
4905 * c-common.h (unsafe_conversion_p): New function declaration.
4906
20906c66
JJ
49072011-08-02 Jakub Jelinek <jakub@redhat.com>
4908
4909 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4910 (c_finish_omp_taskyield): New prototype.
4911 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4912 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4913 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4914 or RHS1 have side-effects, evaluate those too in the right spot,
4915 if it is a decl and LHS is also a decl, error out if they
4916 aren't the same.
4917 (c_finish_omp_taskyield): New function.
4918 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4919 * c-pragma.c (omp_pragmas): Add taskyield.
4920 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4921 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4922 PRAGMA_OMP_CLAUSE_MERGEABLE.
4923
770e5a2e
DS
49242011-07-25 Dodji Seketeli <dodji@redhat.com>
4925
4926 * c-common.h (set_underlying_type): Remove parm name from
4927 declaration.
4928
1baae426
RG
49292011-07-25 Romain Geissler <romain.geissler@gmail.com>
4930
4931 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 4932
fcb21722
JM
49332011-07-22 Jason Merrill <jason@redhat.com>
4934
76f86d00
JM
4935 PR c++/49793
4936 * c.opt (Wnarrowing): New.
4937
3a636414
JM
4938 PR c++/30112
4939 * c-common.h: Declare c_linkage_bindings.
4940 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4941
fcb21722
JM
4942 PR c++/49813
4943 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4944 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4945 as flag_isoc99 for 'restrict'.
4946 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4947
02614448
ILT
49482011-07-21 Ian Lance Taylor <iant@google.com>
4949
4950 PR middle-end/49705
4951 * c-common.c (c_disable_warnings): New static function.
4952 (c_enable_warnings): New static function.
4953 (c_fully_fold_internal): Change local unused_p to bool. Call
4954 c_disable_warnings and c_enable_warnings rather than change
4955 c_inhibit_evaluation_warnings.
4956
34429675
JM
49572011-07-20 Jason Merrill <jason@redhat.com>
4958
4959 PR c++/6709 (DR 743)
4960 PR c++/42603 (DR 950)
4961 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4962 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4963 (CPP_DECLTYPE): New.
4964 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4965
5d49b6a7
RG
49662011-07-19 Richard Guenther <rguenther@suse.de>
4967
4968 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4969 * c-omp.c (c_finish_omp_for): Likewise.
4970
e84a58ff
EB
49712011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4972
4973 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4974 body on the next line.
4975
329af3c7
JM
49762011-07-08 Jason Merrill <jason@redhat.com>
4977
4063e61b
JM
4978 PR c++/45437
4979 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4980
329af3c7
JM
4981 PR c++/49673
4982 * c-common.c (c_apply_type_quals_to_decl): Don't check
4983 TYPE_NEEDS_CONSTRUCTING.
4984
1a072294
RG
49852011-07-06 Richard Guenther <rguenther@suse.de>
4986
4987 * c-common.c (c_common_nodes_and_builtins):
4988 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4989
fce5dddd
RG
49902011-07-05 Richard Guenther <rguenther@suse.de>
4991
4992 * c-common.c (c_common_nodes_and_builtins): Build all common
4993 tree nodes first.
4994
45d439ac
JJ
49952011-06-27 Jakub Jelinek <jakub@redhat.com>
4996
56300785
JJ
4997 * c-common.h (c_tree_chain_next): New static inline function.
4998
45d439ac
JJ
4999 * c-common.c (check_builtin_function_arguments): Handle
5000 BUILT_IN_ASSUME_ALIGNED.
5001
e0a8ecf2
AM
50022011-06-21 Andrew MacLeod <amacleod@redhat.com>
5003
5004 * c-common.c: Add sync_ or SYNC__ to builtin names.
5005 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
5006
50072011-06-20 Pierre Vittet <piervit@pvittet.com>
5008
5009 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5010 handler.
5011 (gen_pragma_handler): New union.
5012 (internal_pragma_handler): New type.
5013 (c_register_pragma_with_data)
5014 (c_register_pragma_with_expansion_and_data): New functions.
5015
5016 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5017 (c_register_pragma, c_register_pragma_with_expansion)
5018 (c_invoke_pragma_handler): Changed to work with
5019 internal_pragma_handler.
5020 (c_register_pragma_with_data)
5021 (c_register_pragma_with_expansion_and_data): New functions.
5022
677f3fa8
JM
50232011-06-14 Joseph Myers <joseph@codesourcery.com>
5024
5025 * c-common.c: Include common/common-target.h.
5026 (handle_section_attribute): Use
5027 targetm_common.have_named_sections.
5028 * c-cppbuiltin.c: Include common/common-target.h.
5029 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5030
d7fc8c14
RG
50312011-06-10 Richard Guenther <rguenther@suse.de>
5032
5033 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5034 to print a IDENTIFIER_NODE.
5035
10e48e39
RO
50362011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5037 Joseph Myers <joseph@codesourcery.com>
5038
5039 * c.opt (fbuilding-libgcc): New option.
5040 * c-cppbuiltin.c (c_cpp_builtins): Define
5041 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5042
6976ae51
JM
50432011-06-07 Jason Merrill <jason@redhat.com>
5044
3ff60975
JM
5045 * c-common.c (max_tinst_depth): Lower default to 900.
5046
6976ae51
JM
5047 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5048
009db074
RG
50492011-06-07 Richard Guenther <rguenther@suse.de>
5050
5051 * c-common.c (c_common_nodes_and_builtins): Do not set
5052 size_type_node or call set_sizetype.
5053
b4592b92
DS
50542011-06-07 Dodji Seketeli <dodji@redhat.com>
5055
5056 PR debug/49130
5057 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 5058 type when using pointer comparison to compare types.
b4592b92 5059
014ab419
JW
50602011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5061
5062 * c.opt: Add -Wdelete-non-virtual-dtor.
5063 * c-opts.c (c_common_handle_option): Include it in -Wall.
5064
4f60111f
NF
50652011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5066
5067 PR bootstrap/49190
5068
5069 Revert:
5070 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5071
5072 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5073 not tree_common.
5074
4cc4f2f4
JJ
50752011-05-27 Jakub Jelinek <jakub@redhat.com>
5076
5077 PR c++/49165
5078 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5079 C++ don't call c_common_truthvalue_conversion on void type arms.
5080
38e01f9e
NF
50812011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5082
5083 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5084 (stmt_list_stack): Define.
5085 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5086 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5087
92e948a8
NF
50882011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5089
5090 * c-common.c (warning_candidate_p): Check for BLOCKs.
5091
a2fc3e63
NF
50922011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5093
5094 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5095 not tree_common.
5096
0957c029
JJ
50972011-05-25 Jakub Jelinek <jakub@redhat.com>
5098
5099 * c-common.c (def_fn_type): Remove extra va_end.
5100
828fb3ba
JM
51012011-05-23 Jason Merrill <jason@redhat.com>
5102
5103 PR c++/48106
5104 * c-common.c (c_common_get_narrower): New.
5105 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5106
dde05067
NF
51072011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5108
5109 * c-common.h (check_function_arguments): Tweak prototype of
5110 check_function_arguments.
5111 * c-common.c (check_function_arguments): Likewise. Adjust
5112 calls to check_function_nonnull, check_function_format, and
5113 check_function_sentinel.
5114 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5115 separate attributes and typelist arguments. Use
5116 FOREACH_FUNCTION_ARGS to iterate over argument types.
5117
3c0d13bf
PC
51182011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5119
5120 * c-common.c (c_common_reswords): Reorder.
5121 * c-common.h (rid): Likewise.
5122
8242dd04
NF
51232011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5124
5125 * c-common.c (def_fn_type): Don't call build_function_type, call
5126 build_function_type_array or build_varargs_function_type_array
5127 instead.
5128 (c_common_nodes_and_builtins): Likewise.
5129
3d528853
NF
51302011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5131
5132 * c-common.c (c_add_case_label): Omit the loc argument to
5133 build_case_label.
5134 * c-common.h (build_case_label): Remove.
5135 * c-semantics.c (build_case_label): Remove.
5136
a04a722b
JM
51372011-05-05 Joseph Myers <joseph@codesourcery.com>
5138
5139 * c-objc.h (objc_start_method_definition): Update prototype.
5140 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5141
e19a18d4
NF
51422011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5143
5144 * c-common.c (check_main_parameter_types): Reindent. Don't use
5145 TYPE_ARG_TYPES directly.
5146 (handle_nonnull_attribute): Likewise.
5147 (sync_resolve_params): Likewise.
5148 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5149 to check_format_string.
5150 (handle_format_attribute): Likewise.
5151 (check_format_string): Take a function type to examine instead of
5152 a type list. Use a function_arg_iterator to step through argument
5153 types.
5154
c62c040f
RG
51552011-05-04 Richard Guenther <rguenther@suse.de>
5156
5157 * c-common.c (fix_string_type): Use size_int for index type bounds.
5158 (start_fname_decls): Do not pass NULL to build_int_cst.
5159 (c_init_attributes): Likewise.
5160 * c-lex.c (c_lex_with_flags): Likewise.
5161
c12ff9d8
JM
51622011-04-27 Jason Merrill <jason@redhat.com>
5163
5164 * c-common.c (make_tree_vector_from_list): New.
5165 * c-common.h: Declare it.
5166
304dfbe3
RG
51672011-04-26 Richard Guenther <rguenther@suse.de>
5168
5169 PR preprocessor/48248
5170 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5171 for output size with -P.
5172
3c0d13bf
PC
51732011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5174
5175 * c-common.c (struct c_common_resword): Add __underlying_type.
5176 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5177
04695783
JM
51782011-04-20 Jim Meyering <meyering@redhat.com>
5179
5180 * c-format.c (init_dollar_format_checking): Remove useless
5181 if-before-free.
5182
0dc33c3c
NP
51832011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5184
5185 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 5186 (objc_detect_field_duplicates): New.
0dc33c3c 5187 * stub-objc.c: Likewise.
3c0d13bf 5188
c59633d9
NP
51892011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5190
5191 * stub-objc.c (objc_declare_protocols): Renamed to
5192 objc_declare_protocol.
5193 * c-objc.h: Likewise.
3c0d13bf 5194
32dabdaf
NP
51952011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5196
5197 * stub-objc.c (objc_declare_class): Updated argument name.
5198
81f653d6
NF
51992011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5200
5201 * c-common.h (c_common_init_ts): Declare.
5202 * c-common.c (c_common_init_ts): Define.
5203
eb345401
NP
52042011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5205
5206 * c-objc.h (objc_build_message_expr): Updated prototype.
5207 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 5208
a358e188
MJ
52092011-04-12 Martin Jambor <mjambor@suse.cz>
5210
5211 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5212 of cgraph_node.
5213
e6313a78
RG
52142011-04-11 Richard Guenther <rguenther@suse.de>
5215
5216 * c-common.c (complete_array_type): Build a range type of
5217 proper type.
5218
dcf0c47e
NF
52192011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5220
5221 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5222 (handle_type_generic_attribute): Likewise.
5223
1ee44b26
JM
52242011-04-07 Jason Merrill <jason@redhat.com>
5225
5226 PR c++/48450
5227 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5228 conversion from C++0x scoped enum.
5229
acce4e77
JM
52302011-04-06 Joseph Myers <joseph@codesourcery.com>
5231
5232 * c-target-def.h: New file.
5233 * c-target.def: New file.
5234 * c-target.h: New file.
5235 * c-common.c (targetcm): Don't define here.
5236 * c-common.h (default_handle_c_option): Declare.
5237 * c-format.c: Include c-target.h instead of target.h.
5238 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5239 include tm.h.
5240 (default_handle_c_option): Move from targhooks.c.
5241
e2eefb55
JJ
52422011-03-29 Jakub Jelinek <jakub@redhat.com>
5243
5244 PR preprocessor/48248
5245 * c-ppoutput.c (print): Add src_file field.
5246 (init_pp_output): Initialize it.
5247 (maybe_print_line): Don't optimize by adding up to 8 newlines
5248 if map->to_file and print.src_file are different file.
5249 (print_line): Update print.src_file.
5250
ba78087b
KT
52512011-03-25 Kai Tietz <ktietz@redhat.com>
5252
5253 * c-ada-spec.c (compare_comment): Use filename_cmp
5254 instead of strcmp for filename.
5255
0edf1bb2
JL
52562011-03-25 Jeff Law <law@redhat.com>
5257
adfac8df 5258 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 5259
c7dc8804
JM
52602011-03-25 Jason Merrill <jason@redhat.com>
5261
5262 * c.opt: Add -std=c++03.
5263
d1d879b1
EB
52642011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5265
5266 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5267
62d784f7
KT
52682011-03-17 Kai Tietz
5269
5270 PR target/12171
5050afdf
KT
5271 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5272 Display allowed attributes for function pointer types.
5273 (pp_c_attributes_display): New function to display
5274 attributes having affects_type_identity flag set to true.
5275 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5276
62d784f7
KT
5277 * c-common.c (c_common_attribute_table):
5278 Add new element.
5279 (c_common_format_attribute_table): Likewise.
5280
82d37118
JM
52812011-03-18 Jason Merrill <jason@redhat.com>
5282
49a000c3
JM
5283 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5284 * c-common.h: Don't declare it here.
5285 * c-common.c: Or define it here.
5286 * c-opts.c (c_common_handle_option): Or set it here.
5287
82d37118
JM
5288 PR c++/35315
5289 * c-common.c (handle_transparent_union_attribute): Don't
5290 make a duplicate type in C++.
5291
17bc631c
JM
52922011-03-15 Jason Merrill <jason@redhat.com>
5293
5294 * c-common.c (max_constexpr_depth): New.
5295 * c-common.h: Declare it.
5296 * c-opts.c (c_common_handle_option): Set it.
5297 * c.opt (fconstexpr-depth): New option.
5298
1b9b91a6
JM
52992011-03-11 Jason Merrill <jason@redhat.com>
5300
f231b5ff
JM
5301 * c-common.c (attribute_takes_identifier_p): Add missing const.
5302
1b9b91a6
JM
5303 PR c++/46803
5304 * c-common.c (attribute_takes_identifier_p): Assume that an
5305 unknown attribute takes an identifier.
5306
a19e4d44
NF
53072011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5308
5309 PR c/47786
5310 * c-common.c (c_type_hash): Call list_length instead of iterating
5311 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5312
982d62f6
JJ
53132011-02-19 Jakub Jelinek <jakub@redhat.com>
5314
5315 PR c/47809
5316 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5317
0a256240
NP
53182011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5319
5320 * c.opt (fobjc-abi-version=) New.
5321 (fobjc-nilcheck): New.
5322
ba9e6dd5
NF
53232011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5324
5325 PR c++/46890
5326 * c-common.h (keyword_is_decl_specifier): Declare.
5327 * c-common.c (keyword_is_decl_specifier): Define.
5328 (keyword_is_function_specifier): New function.
5329
7273813a
JJ
53302011-01-26 Jakub Jelinek <jakub@redhat.com>
5331
5332 PR c/47473
5333 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5334 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5335 REAL_TYPE.
5336
908ef79b
AC
53372011-01-26 Arnaud Charlet <charlet@adacore.com>
5338
5339 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5340
237e9384
JJ
53412011-01-26 Jakub Jelinek <jakub@redhat.com>
5342
5343 PR pch/47430
5344 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5345 after init_c_lex if pch_file is set.
5346
47ea1edf
DK
53472011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5348
d4dba752 5349 PR c++/43601
47ea1edf
DK
5350 * c.opt (-fkeep-inline-dllexport): New switch.
5351
2aa9c6ae
RG
53522011-01-12 Richard Guenther <rguenther@suse.de>
5353
5354 PR middle-end/32511
5355 * c-common.c (handle_weak_attribute): Warn instead of error
5356 on declaring an inline function weak.
5357
7bd11157
TT
53582011-01-05 Tom Tromey <tromey@redhat.com>
5359
5360 * c-common.h (lvalue_error): Update.
5361 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5362 not error.
5363
0e66e494 53642010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 5365
b4f588c4
NP
5366 PR objc/47075
5367 * c-objc.h (objc_finish_message_expr): Added argument to
5368 prototype.
5369
f4da8dce
NF
53702010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5371
5372 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5373 Use prototype_p.
5374
46270f14
NP
53752010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5376
5377 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 5378 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 5379
4816c593
NF
53802010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5381
5382 * c-common.h (readonly_error): Declare.
5383 * c-common.c (readonly_error): Define.
5384
7a6daeb0
NF
53852010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5386
5387 * c-common.h (invalid_indirection_error): Declare.
5388 * c-common.c (invalid_indirection_error): Define.
5389
892f6119
RG
53902010-12-03 Richard Guenther <rguenther@suse.de>
5391
5392 PR c/46745
5393 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5394 (pp_c_unary_expression): Likewise.
5395 (pp_c_expression): Likewise.
5396
6c39e757
NP
53972010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5398
5399 * c-common.h (objc_finish_function): New.
5400 (objc_non_volatilized_type): Removed.
5401 (objc_type_quals_match): Removed.
5402 * stub-objc.c (objc_finish_function): New.
5403 (objc_non_volatilized_type): Removed.
5404 (objc_type_quals_match): Removed.
9faeb493 5405
7c475d11
JM
54062010-11-30 Joseph Myers <joseph@codesourcery.com>
5407
5408 * c-common.h (parse_optimize_options): Declare.
5409 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5410 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5411
71f3e391
JM
54122010-11-29 Joseph Myers <joseph@codesourcery.com>
5413
5414 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5415 GET_ENVIRONMENT.
5416 * c-pch.c (O_BINARY): Don't define here.
5417 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5418
d5fabb58
JM
54192010-11-25 Joseph Myers <joseph@codesourcery.com>
5420
5421 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5422 targetm.except_unwind_info.
5423
299404a1
JM
54242010-11-23 Joseph Myers <joseph@codesourcery.com>
5425
5426 * c-opts.c (c_common_handle_option): Pass location to
5427 set_struct_debug_option.
5428
c98cd5bf
JM
54292010-11-23 Joseph Myers <joseph@codesourcery.com>
5430
5431 * c-common.c (visibility_options): Move from ../opts.c.
5432 * c-common.h (struct visibility_flags, visibility_options):
5433 Declare here.
5434 * c-opts.c (finish_options): Rename to c_finish_options.
5435 (c_common_init): Update call to finish_options.
5436
a9546771
NP
54372010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5438
5439 PR objc/34033
5440 * c-lex.c (lex_string): Check that each string in an Objective-C
5441 string concat sequence starts with either one or zero '@', and
5442 that there are no spurious '@' signs at the end.
5443
24a57808
JM
54442010-11-20 Joseph Myers <joseph@codesourcery.com>
5445
5446 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5447 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5448 HANDLE_PRAGMA_VISIBILITY.
5449 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5450 HANDLE_PRAGMA_VISIBILITY): Don't define.
5451 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5452
a9aa2c3a
NF
54532010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5454
5455 PR c++/16189
5456 PR c++/36888
5457 PR c++/45331
5458 * c-common.h (keyword_begins_type_specifier): Declare.
5459 (keyword_is_storage_class_specifier): Declare.
5460 (keyword_is_type_qualifier): Declare.
5461 * c-common.c (keyword_begins_type_specifier): New function.
5462 (keyword_is_storage_class_specifier): New function.
5463 (keyword_is_type_qualifier): Declare.
5464
5386338c
JM
54652010-11-19 Joseph Myers <joseph@codesourcery.com>
5466
5467 PR c/46547
5468 * c-common.c (in_late_binary_op): Define.
5469 (c_common_truthvalue_conversion): Check in_late_binary_op before
5470 calling c_save_expr.
5471 * c-common.h (in_late_binary_op): Declare.
5472
69ccdddb
JM
54732010-11-19 Joseph Myers <joseph@codesourcery.com>
5474
5475 * c-opts.c (c_common_handle_option): Update calls to
5476 set_struct_debug_option.
5477
6b192a09
NP
54782010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5479
5480 * c-common.h (objc_declare_protocols): Added additional argument.
5481 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 5482
fb52b50a
NF
54832010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5484
5485 PR c/33193
5486 * c-common.h (build_real_imag_expr): Declare.
5487 * c-semantics.c (build_real_imag_expr): Define.
5488
b37421c6
JM
54892010-11-17 Joseph Myers <joseph@codesourcery.com>
5490
5491 * c-opts.c (c_common_parse_file): Take no arguments.
5492 * c-common.h (c_common_parse_file): Update prototype.
5493
07078664
JJ
54942010-11-16 Jakub Jelinek <jakub@redhat.com>
5495
5496 PR c++/46401
5497 * c-common.c (warning_candidate_p): Don't track non-const calls
5498 or STRING_CSTs.
5499
c6a13190
ILT
55002010-11-15 Ian Lance Taylor <iant@google.com>
5501
5502 * c-lex.c (init_c_lex): Set macro debug callbacks if
5503 flag_dump_go_spec is set.
5504
925e8657
NP
55052010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5506
5507 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5508 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5509
bb0a9581
NF
55102010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5511
5512 PR preprocessor/45038
5513 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5514 dialects.
5515
c5fa0890
JM
55162010-11-12 Joseph Myers <joseph@codesourcery.com>
5517
5518 * c-common.h (c_family_lang_mask): Declare.
5519 * c-opts.c (c_family_lang_mask): Make extern.
5520 * c-pragma.c (handle_pragma_diagnostic): Use
5521 control_warning_option.
5522
a4d8c676
JM
55232010-11-12 Joseph Myers <joseph@codesourcery.com>
5524
5525 * c-common.c (parse_optimize_options): Update call to
5526 decode_options.
5527 * c-common.h (c_common_handle_option): Update prototype.
5528 * c-opts.c (c_common_handle_option): Take location_t parameter and
5529 pass it to other functions.
5530
f954bd2c
JM
55312010-11-11 Joseph Myers <joseph@codesourcery.com>
5532
5533 * c-opts.c (warning_as_error_callback): Remove.
5534 (c_common_initialize_diagnostics): Don't call
5535 register_warning_as_error_callback.
5536 (c_common_handle_option): Handle -Werror=normalized= here.
5537
d8a07487
JM
55382010-11-10 Joseph Myers <joseph@codesourcery.com>
5539
5540 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5541 in diagnostic.
5542 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5543 letter.
5544 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5545 Remove trailing '.' from diagnostics.
5546 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5547
d5478783
JM
55482010-11-10 Joseph Myers <joseph@codesourcery.com>
5549
5550 * c-common.c (parse_optimize_options): Pass global_dc to
5551 decode_options.
5552 * c-opts.c (c_common_handle_option): Pass &global_options to
5553 set_Wstrict_aliasing.
5554 * c.opt (v): Don't mark Common or document here.
5555
91ebb981
IS
55562010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5557
5558 PR target/44981
5559 * c-format.c (format_type): New type gcc_objc_string_format_type.
5560 (valid_stringptr_type_p): New.
5561 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 5562 (check_format_string): Pass expected type, use
91ebb981
IS
5563 valid_stringptr_type_p (), check that the format string types are
5564 consistent with the format specification.
5565 (decode_format_attr): Warn if NSString is used outside objective-c.
5566 (format_types_orig): Add NSString.
5567 (format_name): New.
5568 (format_flags): New.
5569 (check_format_arg): Handle format strings requiring an external parser.
5570 first_target_format_type: New variable.
5571 (handle_format_attribute): Set up first_target_format_type, pass the
5572 expected format arg string type to check_format_string().
5573 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5574 * stub-objc.c (objc_string_ref_type_p): New.
5575 (objc_check_format_arg): New.
5576
bede2adc
NP
55772010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5578
9faeb493 5579 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
5580 * c-common.h (objc_build_class_component_ref): New.
5581 * stub-objc.c (objc_build_class_component_ref): New.
5582
9a179d01
NP
55832010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5584
5585 * c.opt (Wproperty-assign-default): New option.
5586
22d8d616
NP
55872010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5588
5589 Implemented -fobjc-std=objc1 flag.
5590 * c.opt (fobjc-std=objc1): New option.
5591
2debdb4f
NP
55922010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5593
5594 Implemented format and noreturn attributes for Objective-C methods.
5595 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5596 attribute for Objective-C methods.
5597
ec52b111
JM
55982010-10-31 Jason Merrill <jason@redhat.com>
5599
5600 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5601 EXPR_LOC_OR_HERE.
5602
46a88c12
NP
56032010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5604
5605 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5606 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5607 (objc_add_property_declaration): Removed arguments for copies and
5608 ivar.
5609 (objc_build_getter_call): Renamed to
5610 objc_maybe_build_component_ref.
5611 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5612 (objc_is_property_ref): New.
5613 * c-common.c (c_common_reswords): Removed copies and ivar.
5614 * stub-objc.c (objc_add_property_declaration): Removed arguments
5615 for copies and ivar.
5616 (objc_build_getter_call): Renamed to
5617 objc_maybe_build_component_ref.
5618 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5619 (objc_is_property_ref): New.
9faeb493 5620
1e4bf85b
AC
56212010-10-29 Arnaud Charlet <charlet@adacore.com>
5622 Matthew Gingell <gingell@adacore.com>
5623
5624 * c-ada-spec.c (separate_class_package): New function.
5625 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5626 name of their enclosing package.
5627 (print_ada_declaration): Use separate_class_package.
5628
81f0bab2
JM
56292010-10-27 Jason Merrill <jason@redhat.com>
5630
2b08f2c5
JM
5631 * c-common.c (c_common_reswords): Add __is_literal_type.
5632 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5633
81f0bab2
JM
5634 * c-common.c (check_case_value): Remove special C++ code.
5635
200290f2
NP
56362010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5637
5638 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5639 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5640 and RID_LAST_PATTR.
5641 (objc_add_property_declaration): Added additional arguments.
5642 (objc_property_attribute_kind): Removed.
5643 (objc_set_property_attr): Removed.
5644 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5645 copy and nonatomic.
5646 * stub-objc.c (objc_add_property_declaration): Added additional
5647 arguments.
5648 (objc_set_property_attr): Removed.
9faeb493 5649
f614132b
NP
56502010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5651
5652 * c-common.h (objc_add_property_variable): Renamed to
5653 objc_add_property_declaration. Added location argument.
5654 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 5655
b8a18805
NP
56562010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5657
5658 * c-common.h (objc_maybe_printable_name): New.
5659 * stub-objc.c (objc_maybe_printable_name): New.
5660
30cd1c5d
AS
56612010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5662 Andrew Pinski <pinskia@gmail.com>
5663
5664 * c-common.h (c_common_mark_addressable_vec): Declare.
5665 * c-common.c (c_common_mark_addressable_vec): New function.
5666
249a82c4
NP
56672010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5668
5669 * c-common.h (objc_set_method_type): Removed.
5670 (objc_add_method_declaration): Added boolean argument.
5671 (objc_start_method_definition): Same change.
5672 (objc_build_method_signature): Same change.
5673 * stub-objc.c (objc_set_method_type): Removed.
5674 (objc_add_method_declaration): Added boolean argument.
5675 (objc_start_method_definition): Same change.
5676 (objc_build_method_signature): Same change.
5677
977e30bc
NP
56782010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5679
5680 * c-common.h (finish_file): Removed.
5681 (objc_write_global_declarations): New.
5682 * c-opts.c (c_common_parse_file): Do not call finish_file.
5683 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 5684
da57d1b9
NP
56852010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5686
5687 Implemented parsing @synthesize and @dynamic for
5688 Objective-C/Objective-C++.
5689 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5690 (objc_add_synthesize_declaration): New.
5691 (objc_add_dynamic_declaration): New.
5692 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5693 * stub-objc.c (objc_add_synthesize_declaration): New.
5694 (objc_add_dynamic_declaration): New.
9faeb493 5695
0069111f
MM
56962010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5697
5698 PR target/46041
5699 * c-cppbuiltin.c (mode_has_fma): Move function here from
5700 builtins.c. Don't use the fma optab, instead just use the
5701 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5702 using -save-temps.
5703
e426b47b
NP
57042010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5705
5706 Merge from 'apple/trunk' branch on FSF servers.
0069111f 5707
e426b47b
NP
5708 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5709
9faeb493 5710 Radar 4330422
e426b47b
NP
5711 * c-common.h (objc_non_volatilized_type): New declaration
5712 * stub-objc.c (objc_non_volatilized_type): New stub.
5713
90fbfdc3
NP
57142010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5715
e426b47b 5716 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
5717
5718 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5719
9faeb493 5720 Radar 4133425
90fbfdc3 5721 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 5722 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 5723
c37d8c30
IS
57242010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5725
5726 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5727 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5728 (objc_ivar_visibility_kind): New enum.
5729 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 5730 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
5731 visibility enum.
5732
1b1562a5
MM
57332010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5734
5735 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5736 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5737 has the appropriate fma builtins.
5738 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5739
668ea4b1
IS
57402010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5741
1b1562a5 5742 merge from FSF apple 'trunk' branch.
668ea4b1 5743 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 5744
668ea4b1
IS
5745 Radars 4436866, 4505126, 4506903, 4517826
5746 * c-common.c (c_common_resword): Define @property and its attributes.
5747 * c-common.h: Define property attribute enum entries.
5748 (OBJC_IS_PATTR_KEYWORD): New.
5749 (objc_property_attribute_kind): New enum.
5750 Declare objc_set_property_attr (), objc_add_property_variable (),
5751 objc_build_getter_call () and objc_build_setter_call ().
5752 * stub-objc.c (objc_set_property_attr): New stub.
5753 (objc_add_property_variable): Likewise.
5754 (objc_build_getter_call): Likewise.
5755 (objc_build_setter_call) Likewise.
1b1562a5 5756
a1178b30
IS
57572010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5758
1b1562a5 5759 merge from FSF apple 'trunk' branch.
a1178b30
IS
5760 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5761
5762 Radar 3803157 (method attributes)
5763 * c-common.c (handle_deprecated_attribute): Recognize
5764 objc methods as valid declarations.
5765 * c-common.h: Declare objc_method_decl ().
1b1562a5 5766 * stub-objc.c (objc_method_decl): New stub.
a1178b30 5767
a75bfaa6
JM
57682010-10-08 Joseph Myers <joseph@codesourcery.com>
5769
5770 * c-common.c (parse_optimize_options): Call
5771 decode_cmdline_options_to_array_default_mask before
5772 decode_options. Update arguments to decode_options.
5773 * c-common.h (c_common_init_options_struct): Declare.
5774 * c-opts.c (c_common_init_options_struct): New. Split out from
5775 c_common_init_options.
5776
f05b9d93
NP
57772010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5778
5779 Implemented fast enumeration for Objective-C.
5780 * c-common.h (objc_finish_foreach_loop): New.
5781 * stub-objc.c (objc_finish_foreach_loop): New.
5782
1ebe4b4f
JM
57832010-10-05 Joseph Myers <joseph@codesourcery.com>
5784
5785 * c-common.h (struct diagnostic_context): Don't declare here.
5786 (c_common_initialize_diagnostics): Declare using
5787 diagnostic_context typedef.
5788 * c-opts.c (c_common_handle_option): Pass global_dc to
5789 handle_generated_option.
5790
d4d24ba4
JM
57912010-10-04 Joseph Myers <joseph@codesourcery.com>
5792
5793 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5794 handle_generated_option.
5795
478a1c5b
ILT
57962010-10-03 Ian Lance Taylor <iant@google.com>
5797
5798 * c.opt (-fplan9-extensions): New option.
5799
82a1c2fe
FXC
58002010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5801
5802 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5803 Remove.
5804 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5805 of duplicating code.
5806
92902b1b
IS
58072010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5808
5809 * c-common.c: Add two new entries for @optional
5810 and @required keywords.
5811
5812 merge from FSF 'apple/trunk' branch.
5813 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5814
5815 Radar 4386773
5816 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5817 objective-c keywords.
5818 (objc_set_method_opt): New declaration.
5819 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 5820
46625112
JM
58212010-09-30 Joseph Myers <joseph@codesourcery.com>
5822
5823 * c-common.c (handle_optimize_attribute): Pass &global_options to
5824 cl_optimization_save and cl_optimization_restore.
5825 * c-opts.c (c_common_handle_option): Pass &global_options to
5826 handle_generated_option.
5827 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5828 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5829 &global_options to cl_optimization_restore.
5830
49b91f05
NP
58312010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5832
5833 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5834 Objective-C/Objective-C++ keywords.
5835
13ed556f 58362010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 5837
9faeb493
UB
5838 Merge from 'apple/trunk' branch on FSF servers.
5839
a6341d57
NP
5840 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5841
5842 Radar 4281748
5843 * c-common.h (objc_check_global_decl): New declaration.
5844 * stub-objc.c (objc_check_global_decl): New stub.
5845
f0036cca
JM
58462010-09-29 Joseph Myers <joseph@codesourcery.com>
5847
5848 * c.opt: Don't use VarExists.
5849
e3339d0f
JM
58502010-09-29 Joseph Myers <joseph@codesourcery.com>
5851
5852 * c-common.c (c_cpp_error): Update names of diagnostic_context
5853 members.
5854 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5855 cl_optimization members.
5856 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5857 sanitize_cpp_opts, finish_options): Update names of cpp_options
5858 members.
5859
1973201f
NP
58602010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5861
5862 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5863 (objc_is_reserved_word): Removed.
5864 * c-common.c: Updated comments.
5865 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5866 objc_is_reserved_word.
5867 * stub-objc.c (objc_is_reserved_word): Removed.
5868
f7e71da5
IS
58692010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5870
9faeb493 5871 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
5872 include attributes.
5873 (objc_start_method_definition): Likewise.
5874 (objc_build_keyword_decl): Likewise.
5875 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5876 (objc_start_method_definition): Likewise.
5877 (objc_build_keyword_decl): Likewise.
5878
c165dca7
IS
58792010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5880
5881 * c-common.h (objc_start_class_interface): Adjust prototype.
5882 (objc_start_category_interface): Likewise.
5883 (objc_start_protocol): Likewise.
5884 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5885 (objc_start_class_interface): Likewise.
5886 (objc_start_category_interface): Likewise.
5887
7458026b
ILT
58882010-09-27 Ian Lance Taylor <iant@google.com>
5889
5890 * c-common.c (c_common_attribute_table): Add no_split_stack.
5891 (handle_no_split_stack_attribute): New static function.
5892
b581b85b
NP
58932010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5894
9faeb493 5895 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
5896
5897 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5898
9faeb493 5899 Radar 4229905
b581b85b
NP
5900 * c-common.h (objc_have_common_type): New declaration.
5901 * stub-objc.c (objc_have_common_type): New stub.
5902
5903 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5904
5905 Radar 4154928
5906 * c-common.h (objc_common_type): New prototype.
9faeb493 5907 * stub-objc.c (objc_common_type): New stub.
b581b85b 5908
46a4da10
JH
59092010-09-24 Jan Hubicka <jh@suse.cz>
5910
5911 * c-common.c (handle_leaf_attribute): New function.
5912 (struct attribute_spec c_common_att): Add leaf.
5913
e200444e
JM
59142010-09-22 Joseph Myers <joseph@codesourcery.com>
5915
5916 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5917 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5918 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5919 -include-barrier, -include-directory, -include-directory=,
5920 -include-directory-after, -include-directory-after=,
5921 -include-prefix, -include-prefix=, -include-with-prefix,
5922 -include-with-prefix=, -include-with-prefix-after,
5923 -include-with-prefix-after=, -include-with-prefix-before,
5924 -include-with-prefix-before=, -no-integrated-cpp,
5925 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5926 -output=, -pedantic, -pedantic-errors, -preprocess,
5927 -print-missing-file-dependencies, -trace-includes, -traditional,
5928 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5929 -user-dependencies, -verbose, -write-dependencies,
5930 -write-user-dependencies, no-integrated-cpp, traditional): New.
5931
29a80ea6
NP
59322010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5933
5934 PR objc/23710
ac1fc2fc
NP
5935 * c-common.h (objc_start_method_definition): Return bool instead
5936 of void.
5937 * stub-objc.c (objc_start_method_definition): Return bool instead
5938 of void.
5939
59402010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5941
5942 PR objc/25965
5943 * c-common.h (objc_get_interface_ivars): New declaration.
5944 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 5945
de621752
ILT
59462010-09-15 Ian Lance Taylor <iant@google.com>
5947
5948 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 5949 messages. Remove period at end of warning message.
de621752 5950
ba885ec5
NS
59512010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5952
5953 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5954 (handle_alias_attribute): ... here.
5955 (handle_ifunc_attribute): New.
5956
c5ee1358
MM
59572010-09-06 Mark Mitchell <mark@codesourcery.com>
5958
5959 * c-common.h (do_warn_double_promotion): Declare.
5960 * c-common.c (do_warn_double_promotion): Define.
5961
0a0b3574
MM
59622010-09-05 Mark Mitchell <mark@codesourcery.com>
5963
5964 * c.opt (Wdouble-promotion): New.
5965
d1779886
JM
59662010-09-02 Joseph Myers <joseph@codesourcery.com>
5967
5968 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5969 fvtable-thunks, fxref): Mark no longer supported in help text.
5970
2d2bd949
JM
59712010-09-02 Joseph Myers <joseph@codesourcery.com>
5972
5973 * c.opt (Wimport, fall-virtual, falt-external-templates,
5974 fdefault-inline, fenum-int-equiv, fexternal-templates,
5975 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5976 fname-mangling-version-, fnew-abi, fnonnull-objects,
5977 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5978 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5979 applicable.
5980 (fhandle-exceptions): Mark with Alias and Warn.
5981 * c-opts.c (c_common_handle_option): Don't handle options marked
5982 as ignored.
5983
5de8299c
JM
59842010-09-02 Joseph Myers <joseph@codesourcery.com>
5985
5986 * c.opt (Wcomments, Werror-implicit-function-declaration,
5987 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5988 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5989 aliases.
5990 * c-common.c (option_codes): Use OPT_Wcomment instead of
5991 OPT_Wcomments.
5992 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5993 Don't handle options marked as aliases.
5994
0ceb0201
RG
59952010-08-25 Richard Guenther <rguenther@suse.de>
5996
5997 * c-common.c (c_common_get_alias_set): Remove special
5998 handling for pointers.
5999
ac47786e
NF
60002010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6001
6002 * c-common.c: Use FOR_EACH_VEC_ELT.
6003 * c-gimplify.c: Likewise.
6004 * c-pragma.c: Likewise.
6005
c878765b
JM
60062010-08-16 Joseph Myers <joseph@codesourcery.com>
6007
6008 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6009 RejectDriver.
6010 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6011 RejectDriver.
6012 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6013 instead of OPT_MDX and OPT_MMDX.
6014
603349bf
JM
60152010-08-16 Joseph Myers <joseph@codesourcery.com>
6016
6017 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6018
644fa7ac
JM
60192010-08-12 Joseph Myers <joseph@codesourcery.com>
6020
6021 * c.opt (MD, MMD): Change to MDX and MMDX.
6022 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6023
481e1176
JM
60242010-08-11 Joseph Myers <joseph@codesourcery.com>
6025
6026 * c-opts.c (c_common_handle_option): Call handle_generated_option
6027 instead of handle_option.
6028
ac8dc9f7
NF
60292010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6030
6031 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6032 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6033
4f8c876d
NF
60342010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6035
6036 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6037 (pending_redefine_extname): Change type to a VEC.
6038 (add_to_renaming_pragma_list): Update for new type of
6039 pending_redefine_extname.
ac8dc9f7 6040 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 6041
3b0c690e
AC
60422010-08-04 Arnaud Charlet <charlet@adacore.com>
6043
6044 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6045 visited.
6046 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6047 decide whether a type has already been declared/seen.
6048 Do not go to the original type.
6049 (dump_nested_types): New parameter forward.
6050 Generate forward declaration if needed and mark type as visited.
6051 (print_ada_declaration): Call dump_nested_types if not already done.
6052 Mark types as visited.
6053
1890bccc
JM
60542010-08-03 Joseph Myers <joseph@codesourcery.com>
6055
6056 * c.opt (-print-pch-checksum): Remove option.
6057 * c-opts.c (c_common_handle_option): Don't handle
6058 OPT_print_pch_checksum.
6059
5f20c657
JM
60602010-07-27 Joseph Myers <joseph@codesourcery.com>
6061
6062 * c-common.h (c_common_handle_option): Update prototype and return
6063 value type.
6064 * c-opts.c (c_common_handle_option): Update prototype and return
6065 value type. Update calls to handle_option and
6066 enable_warning_as_error.
6067
f551f80c
JJ
60682010-07-27 Jakub Jelinek <jakub@redhat.com>
6069
6070 PR c/45079
6071 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6072
61ff2bdc
JM
60732010-07-27 Joseph Myers <joseph@codesourcery.com>
6074
6075 * c-common.h (c_common_missing_argument): Remove.
6076 * c-opts.c (c_common_missing_argument): Remove.
6077 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6078 idirafter, imacros, include, isysroot, isystem, iquote): Add
6079 MissingArgError.
6080 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6081
7a9bf9a4
JM
60822010-07-27 Joseph Myers <joseph@codesourcery.com>
6083
6084 * c-common.h (c_common_option_lang_mask,
6085 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6086 New.
6087 (c_common_init_options): Update prototype.
6088 * c-opts.c (c_common_option_lang_mask): New.
6089 (c_common_initialize_diagnostics): Split out of
6090 c_common_init_options.
6091 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6092 New.
6093 (c_common_init_options): Update prototype. Use decoded options in
6094 search for -lang-asm.
6095
910ad8de
NF
60962010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6097
6098 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6099 * c-format.c: Likewise.
6100
718f9c0f
MLI
61012010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6102
6103 * c-common.h: Include diagnostic-core.h. Error if already
6104 included.
6105 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6106
4d451982
MLI
61072010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6108
adfac8df 6109 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
6110 Do not include expr.h
6111 (vector_mode_valid_p): Move here.
6112
119fe915
SB
61132010-06-21 DJ Delorie <dj@redhat.com>
6114
6115 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6116 allow these pragmas anywhere.
6117
61182010-06-14 Jakub Jelinek <jakub@redhat.com>
6119
6120 PR bootstrap/44509
6121 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6122 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6123 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6124 ggc_strdup instead of xstrdup.
6125
61262010-06-10 Jakub Jelinek <jakub@redhat.com>
6127
6128 * c-cppbuiltin.c: Include cpp-id-data.h.
6129 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6130 (lazy_hex_fp_value): New function.
6131 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6132
6662d794
MLI
61332010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6134
6135 * c-gimplify.c: Do not include tree-flow.h
6136
38f8b050
JR
61372010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6138
6139 PR other/44034
6140 * c-common.c: Rename targetm member:
6141 targetm.enum_va_list -> targetm.enum_va_list_p
6142
9589f23e
AS
61432010-06-28 Anatoly Sokolov <aesok@post.ru>
6144
6145 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6146
3b06d379
SB
61472010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6148
6149 * c-cppbuiltin.c: Do not include except.h.
6150
d166d4c3
AK
61512010-06-24 Andi Kleen <ak@linux.intel.com>
6152
9faeb493
UB
6153 * c-common.c (warn_for_omitted_condop): New.
6154 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 6155
70cb8be6
JM
61562010-06-21 Joseph Myers <joseph@codesourcery.com>
6157
6158 * c.opt (lang-objc): Remove.
6159 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6160
a4c97feb
JR
61612010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6162
6163 * c-opts.c: Include "tm_p.h".
6164
6e2f1956
JM
61652010-06-20 Joseph Myers <joseph@codesourcery.com>
6166
6167 * c-common.c (parse_optimize_options): Update call to
6168 decode_options.
6169
bc87224e
NF
61702010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6171
6172 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6173 new type of types_used_by_cur_var_decl.
6174
b49cf425
JR
61752010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6176
6177 PR bootstrap/44512
6178 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6179 for C++ standard compliance.
6180
59f9c2ed
JM
61812010-06-16 Jason Merrill <jason@redhat.com>
6182
6183 * c.opt: Add -Wnoexcept.
6184
33766b66
RG
61852010-06-16 Richard Guenther <rguenther@suse.de>
6186
6187 PR c/44555
6188 * c-common.c (c_common_truthvalue_conversion): Remove
6189 premature and wrong optimization concering ADDR_EXPRs.
6190
eff7e30c
AC
61912010-06-15 Arnaud Charlet <charlet@adacore.com>
6192
6193 * c-ada-spec.c (dump_sloc): Remove column info.
6194 (is_simple_enum): New function.
6195 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6196 enum types when relevant.
6197
6312e84d
MLI
61982010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6199
9faeb493 6200 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
6201 location.
6202
1cb42611
JM
62032010-06-10 Joseph Myers <joseph@codesourcery.com>
6204
6205 * c-opts.c (c_common_handle_option): Don't handle
6206 OPT_fshow_column.
6207
a9429e29
LB
62082010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6209
6210 * c-pragma.c (push_alignment): Use typed GC allocation.
6211 (handle_pragma_push_options): Likewise.
6212
6213 * c-common.c (parse_optimize_options): Likewise.
6214
6215 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6216 option.
6217
5498f011
JM
62182010-06-07 Joseph Myers <joseph@codesourcery.com>
6219
6220 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6221 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6222 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6223 flag_signed_bitfields, warn_strict_null_sentinel,
6224 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6225 flag_gen_declaration, flag_no_gnu_keywords,
6226 flag_implement_inlines, flag_implicit_templates,
6227 flag_implicit_inline_templates, flag_optional_diags,
6228 flag_elide_constructors, flag_default_inline, flag_rtti,
6229 flag_conserve_space, flag_access_control, flag_check_new,
6230 flag_new_for_scope, flag_weak, flag_working_directory,
6231 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6232 flag_enforce_eh_specs, flag_threadsafe_statics,
6233 flag_pretty_templates): Remove.
6234 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6235 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6236 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6237 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6238 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6239 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6240 flag_no_gnu_keywords, flag_implement_inlines,
6241 flag_implicit_templates, flag_implicit_inline_templates,
6242 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6243 flag_rtti, flag_conserve_space, flag_access_control,
6244 flag_check_new, flag_new_for_scope, flag_weak,
6245 flag_working_directory, flag_use_cxa_atexit,
6246 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6247 flag_threadsafe_statics, flag_pretty_templates,
6248 warn_strict_null_sentinel): Remove.
6249 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6250 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6251 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6252 fimplicit-inline-templates, fimplicit-templates,
6253 flax-vector-conversions, fms-extensions, fnil-receivers,
6254 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6255 frtti, fshort-double, fshort-enums, fshort-wchar,
6256 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6257 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6258 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6259 gen-decls, undef): Use Var.
6260 (fdefault-inline, foptional-diags): Document as doing nothing.
6261 * c-opts.c (c_common_handle_option): Remove cases for options now
6262 using Var. Mark ignored options as such.
6263
39dabefd
SB
62642010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6265
9faeb493 6266 * c-common.c: Moved to here from parent directory.
39dabefd
SB
6267 * c-common.def: Likewise.
6268 * c-common.h: Likewise.
6269 * c-cppbuiltin.c: Likewise.
6270 * c-dump.c: Likewise.
6271 * c-format.c: Likewise.
6272 * c-format.h : Likewise.
6273 * c-gimplify.c: Likewise.
6274 * c-lex.c: Likewise.
6275 * c-omp.c: Likewise.
6276 * c.opt: Likewise.
6277 * c-opts.c: Likewise.
6278 * c-pch.c: Likewise.
6279 * c-ppoutput.c: Likewise.
6280 * c-pragma.c: Likewise.
6281 * c-pragma.h: Likewise.
6282 * c-pretty-print.c: Likewise.
6283 * c-pretty-print.h: Likewise.
6284 * c-semantics.c: Likewise.
6285 * stub-objc.c: Likewise.
6286
6287 * c-common.c: Include gt-c-family-c-common.h.
6288 * c-pragma.c: Include gt-c-family-c-pragma.h.
6289\f
818ab71a 6290Copyright (C) 2010-2016 Free Software Foundation, Inc.
39dabefd
SB
6291
6292Copying and distribution of this file, with or without modification,
6293are permitted in any medium without royalty provided the copyright
6294notice and this notice are preserved.
This page took 2.187517 seconds and 5 git commands to generate.