]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
[ARC] Avoid specific constants to end in limm field.
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
87677ac7
ML
12018-09-25 Martin Liska <mliska@suse.cz>
2
3 * c-common.c (c_common_truthvalue_conversion):
4 Remove Pascal from documentation.
5
518196cb
EB
62018-09-21 Eric Botcazou <ebotcazou@adacore.com>
7
8 * c-ada-spec.c: Include diagnostic.h.
9 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
10
a599af84
MP
112018-09-19 Marek Polacek <polacek@redhat.com>
12
13 * c.opt (Wclass-conversion): New.
14
9c4a4b3c
DM
152018-09-17 David Malcolm <dmalcolm@redhat.com>
16
17 * c-format.c (range_label_for_format_type_mismatch::get_text):
18 Update for new param.
19
c896ecfe
DM
202018-09-17 David Malcolm <dmalcolm@redhat.com>
21
22 * c-format.c (format_warning_at_char): Update for introduction of
23 format_string_diagnostic_t.
24 (format_type_warning): Likewise.
25
80c6d1f4
MJ
262018-09-17 Martin Jambor <mjambor@suse.cz>
27
28 PR c/63886
29 * c.opt (Wabsolute-value): New.
30
6d900107
BE
312018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
32
33 * c-common.c (complete_flexible_array_elts): New helper function.
34 * c-common.h (complete_flexible_array_elts): Declare.
35
b5764229
BE
362018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
37
38 * c-common.c (braced_list_to_string): Remove eval parameter.
39 Add some more checks. Always create zero-terminated STRING_CST.
40 * c-common.h (braced_list_to_string): Adjust prototype.
41
85204e23
DM
422018-08-27 David Malcolm <dmalcolm@redhat.com>
43
44 PR 87091
45 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
46 to a tri-state.
47 (maybe_suggest_missing_token_insertion): Likewise.
48 (maybe_add_include_fixit): Add param "override_location". If set,
49 and source-printing is enabled, then override the rich_location's
50 primary location with that of the insertion point for the fix-it
51 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
52 * c-common.h (extern void maybe_add_include_fixit): Add bool
53 param.
54 * c-format.c (selftest::test_type_mismatch_range_labels): Update
55 for conversion of show_caret_p to a tri-state.
56 * c-warn.c (warn_for_restrict): Likewise.
57 * known-headers.cc
58 (suggest_missing_header::~suggest_missing_header): Update call to
59 maybe_add_include_fixit to suggest overriding the location, as it
60 is for a note.
61
3d78e008
ML
622018-08-27 Martin Liska <mliska@suse.cz>
63
64 * c-common.c (check_function_restrict): Use new function
92a285c1
ML
65 fndecl_built_in_p and remove check for FUNCTION_DECL if
66 possible.
3d78e008
ML
67 (check_builtin_function_arguments): Likewise.
68 (reject_gcc_builtin): Likewise.
69 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
70
b5be6d0c
MP
712018-08-26 Marek Polacek <polacek@redhat.com>
72
73 PR c++/87029, Implement -Wredundant-move.
74 * c.opt (Wredundant-move): New option.
75
79ca9c35
MP
762018-08-21 Marek Polacek <polacek@redhat.com>
77
78 PR c++/86981, Implement -Wpessimizing-move.
79 * c.opt (Wpessimizing-move): New option.
80
097f82ec
DM
812018-08-20 David Malcolm <dmalcolm@redhat.com>
82
83 PR other/84889
84 * c-attribs.c (common_handle_aligned_attribute): Add
85 auto_diagnostic_group instance.
86 * c-indentation.c (warn_for_misleading_indentation): Likewise.
87 * c-opts.c (c_common_post_options): Likewise.
88 * c-warn.c (warn_logical_not_parentheses): Likewise.
89 (warn_duplicated_cond_add_or_warn): Likewise.
90 (warn_for_multistatement_macros): Likewise.
91
3fb558b1
NS
922018-08-20 Nathan Sidwell <nathan@acm.org>
93
94 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
95 access.
96
800c0e98
NS
972018-08-17 Nathan Sidwell <nathan@acm.org>
98
99 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
100 field.
101 (laxy_hex_fp_value_count): Make unsigned.
102 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
103 manipulate the macro.
104 (builtin_defin_with_hex_fp_value): Adjust callback name, use
105 cpp_define_lazily.
106
6f795a92
DM
1072018-08-17 David Malcolm <dmalcolm@redhat.com>
108
109 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
110 (gcc_dump_printf_length_specs): New.
111 (gcc_dump_printf_flag_pairs): New.
112 (gcc_dump_printf_flag_specs): New.
113 (gcc_dump_printf_char_table): New.
114 (format_types_orig): Add entry for "gcc_dump_printf".
115 (init_dynamic_diag_info): Set up length_char_specs and
116 conversion_specs for gcc_dump_printf_format_type.
117 (handle_format_attribute): Handle gcc_dump_printf_format_type.
118
c5d725c0
NS
1192018-08-17 Nathan Sidwell <nathan@acm.org>
120
10f04917
NS
121 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
122
c5d725c0
NS
123 * c-ada-spec.c: Don't #include "cpp-id-data.h"
124 * c-cppbuiltin.c: Likewise.
125
c0c12356
ML
1262018-08-17 Martin Liska <mliska@suse.cz>
127
128 * c.opt: Remove Warn, Init and Report for options with
92a285c1
ML
129 Ignore/Deprecated flag. Warning is done automatically for
130 Deprecated flags.
c0c12356 131
10fcc142
DM
1322018-08-16 David Malcolm <dmalcolm@redhat.com>
133
134 PR c++/70693
135 * c-common.c (selftest::c_family_tests): Call
136 selftest::c_indentation_c_tests.
137 * c-common.h (selftest::c_indentation_c_tests): New decl.
138 * c-indentation.c: Include "selftest.h".
139 (next_tab_stop): Add "tab_width" param, rather than accessing
140 cpp_opts.
141 (get_visual_column): Likewise. Clarify comment. Bulletproof
142 against reading past the end of the line.
143 (get_first_nws_vis_column): Add "tab_width" param.
144 (detect_intervening_unindent): Likewise.
145 (should_warn_for_misleading_indentation): Read tab width from
146 cpp_opts and pass around.
147 (selftest::test_next_tab_stop): New test.
148 (selftest::assert_get_visual_column_succeeds): New function.
149 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
150 (selftest::assert_get_visual_column_fails): New function.
151 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
152 (selftest::test_get_visual_column): New test.
153 (selftest::c_indentation_c_tests): New function.
154
3f6677f4
NS
1552018-08-16 Nathan Sidwell <nathan@acm.org>
156
157 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
158 (store_ada_macro): Likewise.
159 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
160 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
161
96e6ae57
DM
1622018-08-15 David Malcolm <dmalcolm@redhat.com>
163
164 * c-format.c: Include "selftest-diagnostic.h" and
165 "gcc-rich-location.h".
166 (format_warning_at_char): Pass NULL for new label params of
167 format_warning_va.
168 (class indirection_suffix): New class.
169 (class range_label_for_format_type_mismatch): New class.
170 (format_type_warning): Move logic for generating "*" suffix to
171 class indirection_suffix. Create "fmt_label" and "param_label"
172 to show their types, and pass them to the
173 format_warning_at_substring calls.
174 (selftest::test_type_mismatch_range_labels): New test.
175 (selftest::c_format_c_tests): Call it.
176
23aa9f7c
MS
1772018-08-13 Martin Sebor <msebor@redhat.com>
178
179 PR tree-optimization/71625
180 * c-common.c (braced_list_to_string): New function.
181 * c-common.h (braced_list_to_string): Declare it.
182
f10a9135
NS
1832018-08-08 Nathan Sidwell <nathan@acm.org>
184
185 * c-common.c (try_to_locate_new_include_inertion_point): Use
186 linemap_included_from_linemap.
187 * c-lex.c (fe_file_change): Use linemap_included_from.
188 * c-ppoutput.c (pp_file_change): Likewise.
189
8a45b051
MS
1902018-08-01 Martin Sebor <msebor@redhat.com>
191
192 PR tree-optimization/86650
193 * c-family/c-format.c (gcc_tdiag_char_table): Update comment for "%G".
194 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
195 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
196 * c-format.h (T89_G): Update to be "gimple *" rather than
197 "gcall *".
198 (local_gcall_ptr_node): Rename...
199 (local_gimple_ptr_node): ...to this.
200
e540ccc0
DM
2012018-07-31 David Malcolm <dmalcolm@redhat.com>
202
203 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
204 table entries for gcc_diag_char_table, and the 'Z' entry from
205 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
206 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
207 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
208 adding missing "Z" for this table. Remove erroneous "G" and "K"
209 entries.
210 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
211 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
212 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
213
425fc685
RE
2142018-07-31 Richard Earnshaw <rearnsha@arm.com>
215
216 * c-common.c (speculation_safe_resolve_call): New function.
217 (speculation_safe_resolve_params): New function.
218 (speculation_safe_resolve_return): New function.
219 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
220 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
221 __HAVE_SPECULATION_SAFE_VALUE.
222
181463c2
DM
2232018-07-20 David Malcolm <dmalcolm@redhat.com>
224
225 * c-common.c (c_cpp_error): Remove redundant "line_table"
226 parameter from call to rich_location::set_range.
227 (maybe_suggest_missing_token_insertion): Likewise.
228
0d7f9065
MS
2292018-07-20 Martin Sebor <msebor@redhat.com>
230
231 PR middle-end/82063
232 * gcc/c-family/c.opt (-Warray-bounds): Remove redundant -Wall.
233
00abf86c
MS
2342018-07-20 Martin Sebor <msebor@redhat.com>
235
236 PR middle-end/82063
237 * c-common.h (c_common_handle_option): Change function argument
238 to HOST_WIDE_INT.
239 * c-opts.c (c_common_init_options): Same.
240 (c_common_handle_option): Same. Remove special handling of
241 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
242 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
243 options to take a HOST_WIDE_INT argument and accept a byte-size
244 suffix. Initialize.
245 (-Wvla-larger-than): Same.
246 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
247 (-Wno-vla-larger-than): Same.
248
9b452033
JJ
2492018-07-12 Jakub Jelinek <jakub@redhat.com>
250
251 * c-attribs.c (c_common_attribute_table): Add
252 "omp declare target implicit" attribute.
253
cd0762f3
RB
2542018-07-12 Richard Biener <rguenther@suse.de>
255
256 PR c/86453
257 * c-attribs.c (handle_packed_attribute): Do not build a variant
258 type with TYPE_PACKED, instead ignore the attribute if we may
259 not apply to the original type.
260
0b27c3ed
JJ
2612018-07-10 Jakub Jelinek <jakub@redhat.com>
262
263 PR c++/86443
264 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
265 to contain TREE_LIST for both the original class iterator and the
266 "last" helper var.
267
e730a0ef
EB
2682018-07-07 Eric Botcazou <ebotcazou@adacore.com>
269
270 * c-ada-spec.c (to_ada_name): Remove index parameter.
271 (pp_ada_tree_identifier): Likewise.
272 (dump_ada_macros): Adjust call to to_ada_name.
273 (struct overloaded_name_hash): Delete.
274 (struct overloaded_name_hasher): Likewise.
275 (overloaded_names): Likewise.
276 (compute_overloading_index): Likewise.
277 (dump_ada_decl_name): Do not call compute_overloading_index and
278 adjust calls to pp_ada_tree_identifier.
279 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
280 (dump_ada_import): Add spc parameter and switch to aspect syntax.
281 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
282 (dump_ada_enum_type): Remove type and display_convention parameters.
283 Adjust calls to pp_ada_tree_identifier.
284 (dump_ada_node): Likewise and for dump_ada_structure.
285 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
286 and tidy up.
287 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
288 syntax.
289 (print_constructor): Adjust call to pp_ada_tree_identifier.
290 (print_destructor): Likewise.
291 (dump_ada_declaration): Switch to aspect syntax.
292 (dump_ada_structure): Likewise and tidy up. Replace display_convention
293 parameter with nested parameter.
294 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
295 (dump_ada_specs): Do not delete overloaded_names table.
296
8de583fc
PB
2972018-07-06 Peter Bergner <bergner@linux.ibm.com>
298
299 PR target/86324
e730a0ef 300 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
301 target hook.
302
09cff37b
NS
3032018-07-05 Nathan Sidwell <nathan@acm.org>
304
305 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
306 NO_IMPLICIT_EXTERN_C.
307
98086b2b
ML
3082018-06-28 Martin Liska <mliska@suse.cz>
309
310 * cppspec.c: Include opt-suggestions.h.
311
829c6349
CLT
3122018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
313 Thomas Schwinge <thomas@codesourcery.com>
314 Cesar Philippidis <cesar@codesourcery.com>
315
316 * c-pragma.h (enum pragma_omp_clause): Add
317 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
318 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
319
f41b7612
JJ
3202018-06-20 Jakub Jelinek <jakub@redhat.com>
321
322 PR c++/86210
323 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
324 comment.
325
4252ccd7
MS
3262018-06-18 Martin Sebor <msebor@redhat.com>
327
328 PR middle-end/85602
329 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
330 nonstring.
331
e197e64e
KV
3322018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
333
334 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
335
34a7a230
JM
3362018-06-13 Jason Merrill <jason@redhat.com>
337
5cef3733
JM
338 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
339 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
340 handling.
341
34a7a230
JM
342 PR c++/86094 - wrong code with defaulted move ctor.
343 * c-opts.c (c_common_post_options): Bump the current ABI version to
344 13. Set warn_abi_version and flag_abi_compat_version to the current
345 version rather than 0. Fix defaulting flag_abi_compat_version from
346 warn_abi_version.
347
bb0f14ae
MS
3482018-06-12 Martin Sebor <msebor@redhat.com>
349
350 PR c/85931
351 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
352 sizeof source and destination yields the same value.
353
3713f2e2
ML
3542018-06-12 Martin Liska <mliska@suse.cz>
355
356 * c.opt: Make MPX-related options as Deprecated.
357
4af78ef8
DM
3582018-06-08 David Malcolm <dmalcolm@redhat.com>
359
360 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
361 rather than 0.
362
31db0fe0
ML
3632018-06-08 Martin Liska <mliska@suse.cz>
364
365 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
366 for MPX (macros, related functions, fields in cgraph_node, ...).
367 (handle_bnd_legacy): Likewise.
368 (handle_bnd_instrument): Likewise.
369 * c.opt: Likewise.
370
fe16acf2
JJ
3712018-06-06 Jakub Jelinek <jakub@redhat.com>
372
373 PR c++/86068
374 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
375 __cpp_transactional_memory to 201500 instead of 210500.
376
4dbdb49b
JM
3772018-06-06 Jason Merrill <jason@redhat.com>
378
379 PR c++/85710 - ICE with -Wmemset-elt-size.
380 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
381
f8ad043f
JM
3822018-06-01 Jason Merrill <jason@redhat.com>
383
384 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
385 201703.
386
abc24d93
EB
3872018-06-01 Eric Botcazou <ebotcazou@adacore.com>
388
389 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
390 declaration for a typedef independently of whether the declaration of
391 the subtype is generated.
392
d258f4aa
MS
3932018-05-31 Martin Sebor <msebor@redhat.com>
394
395 PR c/82063
396 * c.opt (-Wno-alloc-size-larger-than): New option.
397
b67b9225
DP
3982018-04-22 David Pagan <dave.pagan@oracle.com>
399
400 PR c/55976
401 * c-opts.c (c_common_post_options): Set default for warn_return_type
402 for C++/C++ with ObjC extensions only. For C, makes it possible to
403 differentiate between default (no option), -Wreturn-type, and
404 -Wno-return-type.
405
04eb9c55
JM
4062018-05-29 Jason Merrill <jason@redhat.com>
407
408 * c.opt (Winit-list-lifetime): New flag.
409
b0c31bc6
BE
4102018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
411
412 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
413 splay_tree_delete_pointers.
414
44284983
JJ
4152018-05-26 Jakub Jelinek <jakub@redhat.com>
416
417 PR bootstrap/85921
418 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
419 noinline variable to workaround broken kernel headers.
420
b46b715d
JM
4212018-05-18 Jason Merrill <jason@redhat.com>
422
423 * c.opt (Wdeprecated-copy): New flag.
424
40659769
ML
4252018-05-17 Martin Liska <mliska@suse.cz>
426
427 * c-warn.c (overflow_warning): Do not use
428 space in between 'G_' and '('.
429
403962ea
JM
4302018-05-09 Jason Merrill <jason@redhat.com>
431
432 * c-common.c (valid_array_size_p): Add complain parameter.
433 * c-common.h: ...which defaults to true.
434
1c9ee609
JJ
4352018-05-11 Jakub Jelinek <jakub@redhat.com>
436
437 PR c/85696
438 * c-omp.c (c_omp_predetermined_sharing): Return
439 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
440
19916065
ML
4412018-05-11 Martin Liska <mliska@suse.cz>
442
92a285c1 443 PR sanitizer/85556
19916065
ML
444 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
445 TREE_LIST values.
446
79e7b1fe
JJ
4472018-05-10 Jakub Jelinek <jakub@redhat.com>
448
449 PR c++/85662
450 * c-common.h (fold_offsetof_1): Removed.
451 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
452 CTX argument defaulted to ERROR_MARK.
453 * c-common.c (fold_offsetof_1): Renamed to ...
454 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
455 argument, convert the pointer constant to TYPE and use size_binop
456 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
457 a pointer type. Adjust recursive calls.
458
86c12f76
EB
4592018-05-10 Eric Botcazou <ebotcazou@adacore.com>
460
461 PR c++/85400
462 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
463
ee336e84
NS
4642018-05-07 Nathan Sidwell <nathan@acm.org>
465
466 * c.opt (ffor-scope): Remove functionality, issue warning.
467
6c072e21
NS
4682018-05-03 Nathan Sidwell <nathan@acm.org>
469
470 * c.opt (ffriend-injection): Remove functionality, issue warning.
471
2cc7d3a7
DM
4722018-05-01 David Malcolm <dmalcolm@redhat.com>
473
474 PR c/84258
475 * c-format.c (struct format_check_results): Add field
476 "number_non_char".
477 (check_format_info): Initialize it, and warn if encountered.
478 (check_format_arg): Distinguish between wide char and
479 everything else when detecting arrays of non-char.
480
7761dfbe
DM
4812018-04-30 David Malcolm <dmalcolm@redhat.com>
482
483 * c-format.c (get_corrected_substring): Update for
484 location_get_source_line returning a char_span. Use a char_span
485 when handling the prefix of the correction.
486 * c-indentation.c (get_visual_column): Update for
487 location_get_source_line returning a char_span.
488 (get_first_nws_vis_column): Likewise.
489
62e98ef1
DM
4902018-03-29 David Malcolm <dmalcolm@redhat.com>
491
492 PR c++/84269
493 * known-headers.cc (get_stdlib_header_for_name): Add various names
494 from <assert.h>, <string.h>, and <memory.h>; add more names from
495 <stdio.h>.
496
a7dea617
JJ
4972018-03-27 Jakub Jelinek <jakub@redhat.com>
498
499 PR c++/85061
500 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
501 get_base_address of the second operand is a VAR_P, rather than the
502 operand itself, and use gcc_checking_assert instead of gcc_assert.
503
889a3a30
MP
5042018-03-23 Marek Polacek <polacek@redhat.com>
505
506 PR c++/85045
507 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
508 <case RDIV_EXPR>: Tweak condition.
509
452154b9
EB
5102018-03-20 Eric Botcazou <ebotcazou@adacore.com>
511
512 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
513
63ecb626
JJ
5142018-03-16 Jakub Jelinek <jakub@redhat.com>
515
ce811fc4
JJ
516 PR c/84909
517 * c-warn.c (conversion_warning): Replace "to to" with "to" in
518 diagnostics.
519
63ecb626
JJ
520 PR c/84910
521 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
522 diagnostics.
523
a1295eec
RB
5242018-03-16 Richard Biener <rguenther@suse.de>
525
526 PR c/84873
527 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
528 unshare the possibly folded expression.
529
919674fb
RB
5302018-03-15 Richard Biener <rguenther@suse.de>
531
532 PR c/84873
533 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
534
f99309b2
MS
5352018-03-13 Martin Sebor <msebor@redhat.com>
536
537 PR tree-optimization/84725
538 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
539 with all three narrow character types, including their qualified forms.
540
e9b9fa4c
MS
5412018-03-12 Martin Sebor <msebor@redhat.com>
542
543 PR tree-optimization/83456
544 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
545 Restore checking of bounded built-in functions.
546 (check_function_arguments): Also return the result
547 of warn_for_restrict.
548 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
549 * gcc/c-family/c-warn.c (warn_for_restrict): Return bool.
550
0805d020
MP
5512018-03-02 Marek Polacek <polacek@redhat.com>
552
553 PR c++/84171
554 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
555 is erroneous.
556
ed2a2f08
TS
5572018-03-02 Thomas Schwinge <thomas@codesourcery.com>
558
559 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
560 function".
561
90abdde0
MP
5622018-03-01 Marek Polacek <polacek@redhat.com>
563
564 PR c++/84639
565 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
566 alignment in computation.
567
c6db43fa
EB
5682018-02-28 Eric Botcazou <ebotcazou@adacore.com>
569
570 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
571 <REAL_TYPE>: Deal specifically with _Float128/__float128.
572
9e25c7ed
EB
5732018-02-28 Eric Botcazou <ebotcazou@adacore.com>
574
575 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
576 (is_char_array): Take a type instead of a declaration.
577 (dump_ada_array_type): Likewise.
578 (is_simple_enum): Minor tweak.
579 (dump_ada_enum_type): New function extracted from...
580 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
581 <INTEGER_TYPE>: Remove unreachable code.
582 <RECORD_TYPE>: Likewise. Minor tweaks.
583 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
584 <ENUMERAL_TYPE>: New case.
585 <RECORD_TYPE>: Factor out common code.
586 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
587 Minor tweaks. Deal with enumeral types.
588 (dump_ada_structure): Minor tweaks.
589
09de3550
EB
5902018-02-28 Eric Botcazou <ebotcazou@adacore.com>
591
592 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
593 address for incomplete structures.
594 (dump_forward_type): Do not bail out for incomplete structures.
595 (dump_ada_declaration): Do not special-case incomplete structures
596 for subtypes. Dump them as null records for types.
597
095d8d4b
EB
5982018-02-28 Eric Botcazou <ebotcazou@adacore.com>
599
600 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
601 (is_char_array): Fix formatting.
602 (dump_template_types): Likewise.
603 (dump_generic_ada_node): Rename into...
604 (dump_ada_node): ...this.
605 <POINTER_TYPE>: Remove superfluous space. Use generic address for
606 incomplete structures and not for empty structures. Do not use it
607 when forward declarations are needed.
608 (dump_forward_type): New function.
609 (dump_nested_types): Remove FORWARD parameter. Do not consider
610 TREE_VISITED and do not generate a forward declaration. Only dump
611 original nested types for nested declaration.
612 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
613 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
614 <RECORD_TYPE>: Do not consider TREE_VISITED.
615 (dump_ada_declaration): Use booleans and fix formatting throughout.
616 <TYPE_DECL>: Skip incomplete structures and not empty structures.
617 Call dump_forward_type instead of dump_nested_types for a typedef.
618 Remove superfluous check and adjust call to dump_nested_types.
619 <POINTER_TYPE>: Call dump_forward_type and fall through.
620 (dump_ada_struct_decl): Rename into...
621 (dump_ada_structure): ...this. Do not special-case empty structures.
622
d4cfd486
MS
6232018-02-27 Martin Sebor <msebor@redhat.com>
624
625 PR c++/83871
626 * c.opt (-Wmissing-attributes): New option.
627
b22dbd03
ML
6282018-02-21 Martin Liska <mliska@suse.cz>
629
630 * c.opt (Wcatch-value=): Add IntegerRange.
631
883dfe2a
JM
6322018-02-15 Jason Merrill <jason@redhat.com>
633
634 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
635
0444aa9c
NS
6362018-02-09 Nathan Sidwell <nathan@acm.org>
637
638 PR c/84293
639 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
640 arg.
641 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
642 arg. Adjust.
643
cea71f0a
MS
6442018-02-09 Martin Sebor <msebor@redhat.com>
645
646 PR lto/84212
647 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
648 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
649 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
650 (-Wstrict-overflow, -Wsuggest-attribute): Same.
651 (-Wuninitialized): Same.
652
8c8b7be5
EB
6532018-02-09 Eric Botcazou <ebotcazou@adacore.com>
654
655 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
656 keyword for components.
657
7c30b12a
PC
6582018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
659
660 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
661
eece7fe5
JK
6622018-02-02 Julia Koval <julia.koval@intel.com>
663
664 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
665
7d07a93a
MP
6662018-01-29 Marek Polacek <polacek@redhat.com>
667
668 PR c/83966
669 * c-format.c (check_function_format): Check current_function_decl.
670
53723269
JJ
6712018-01-27 Jakub Jelinek <jakub@redhat.com>
672
673 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
674 argument.
675 (LAZY_HEX_FP_VALUES_CNT): Define.
676 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
677 values rather than just 12.
678 (builtin_define_with_hex_fp_value): Likewise.
679
7365279f
BK
6802018-01-18 Boris Kolpackov <boris@codesynthesis.com>
681
92a285c1
ML
682 PR other/70268
683 * c.opt (-fmacro-prefix-map): New option.
684 * c-opts.c (c_common_handle_option): Handle it.
685 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
686 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 687
bb9869d5
DM
6882018-01-17 David Malcolm <dmalcolm@redhat.com>
689
690 PR c++/83814
691 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
692
68dc87c3
EB
6932018-01-10 Eric Botcazou <ebotcazou@adacore.com>
694
695 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
696 Skip 'f' and 'F' characters if it is true.
697 (store_ada_macro): Minor tweak.
698 (dump_ada_macros) <CPP_COMMENT>: Likewise.
699 <CPP_WSTRING>: Likewise.
700 <CPP_STRING>: Output '&' in the buffer if not the first string.
701 <CPP_NUMBER>: Adjust calls to dump_number.
702
9a004410
DM
7032018-01-10 David Malcolm <dmalcolm@redhat.com>
704
705 PR c++/43486
706 * c-common.c: Include "selftest.h".
707 (get_atomic_generic_size): Perform the test for integral type
708 before the range test for any integer constant, fixing indentation
709 of braces. Call fold_for_warn before testing for an INTEGER_CST.
710 (reject_gcc_builtin): Strip any location wrapper from EXPR.
711 (selftest::test_fold_for_warn): New function.
712 (selftest::c_common_c_tests): New function.
713 (selftest::c_family_tests): Call it, and
714 selftest::c_pretty_print_c_tests.
715 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
716 * c-format.c (check_format_arg): Convert VAR_P check to a
717 fold_for_warn.
718 * c-pretty-print.c: Include "selftest.h".
719 (pp_c_cast_expression): Don't print casts for location wrappers.
720 (selftest::assert_c_pretty_printer_output): New function.
721 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
722 (selftest::test_location_wrappers): New function.
723 (selftest::c_pretty_print_c_tests): New function.
724 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
725
5c0caeb3
RS
7262018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
727 Alan Hayward <alan.hayward@arm.com>
728 David Sherwood <david.sherwood@arm.com>
729
730 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
731
73a699ae
RS
7322018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
733 Alan Hayward <alan.hayward@arm.com>
734 David Sherwood <david.sherwood@arm.com>
735
736 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
737 as polynomial.
738
928686b1
RS
7392018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
740 Alan Hayward <alan.hayward@arm.com>
741 David Sherwood <david.sherwood@arm.com>
742
743 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
744 (convert_vector_to_array_for_subscript): Handle polynomial
745 TYPE_VECTOR_SUBPARTS.
746 (c_common_type_for_mode): Check valid_vector_subparts_p.
747 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
748 VECTOR_CST_NELTS.
749
85ec4feb
JJ
7502018-01-03 Jakub Jelinek <jakub@redhat.com>
751
752 Update copyright years.
753
170a8bd6 7542017-12-22 Mike Stump <mikestump@comcast.net>
92a285c1 755 Eric Botcazou <ebotcazou@adacore.com>
170a8bd6
EB
756
757 * c-pragma.c (init_pragma): Register pragma GCC unroll.
758 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
759
18408e96
AO
7602017-12-22 Alexandre Oliva <aoliva@redhat.com>
761
762 PR debug/83527
763 PR debug/83419
764 * c-semantics.c (only_debug_stmts_after_p): New.
765 (pop_stmt_list): Clear side effects in debug-only stmt list.
766 Check for single nondebug stmt followed by debug stmts only.
767
c12d20d4
AO
7682017-12-21 Alexandre Oliva <aoliva@redhat.com>
769
770 PR debug/83419
771 * c-semantics.c (pop_stmt_list): Propagate side effects from
772 single nondebug stmt to container list.
773
01512446
JJ
7742017-12-19 Jakub Jelinek <jakub@redhat.com>
775
776 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
777 conditions with typical order conditions.
778
82cfbd01
MP
7792017-12-18 Marek Polacek <polacek@redhat.com>
780
781 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
782 not in effect.
783
99da11ec
MS
7842017-12-17 Martin Sebor <msebor@redhat.com>
785
786 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
787 an error for attribute warn_if_not_aligned.
788
cc8bea0a
MS
7892017-12-16 Martin Sebor <msebor@redhat.com>
790
791 PR tree-optimization/78918
792 * c-common.c (check_function_restrict): Avoid checking built-ins.
793 * c.opt (-Wrestrict): Include in -Wall.
794
4849deb1
JJ
7952017-12-15 Jakub Jelinek <jakub@redhat.com>
796
797 * c-attribs.c (c_common_attribute_table,
798 c_common_format_attribute_table): Swap affects_type_identity
799 and handler fields, adjust comments.
800
c65e18d3
BE
8012017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
802
803 * c.opt (Wcast-function-type): New warning option.
804 * c-lex.c (get_fileinfo): Avoid warning.
805 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
806
2004617a
QZ
8072017-12-14 Qing Zhao <qing.zhao@oracle.com>
808
7365279f 809 PR middle_end/79538
2004617a
QZ
810 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
811 Adjust the size of buf1 and buf2, add a new buf to avoid
812 format-overflow warning.
813
96a95ac1
AO
8142017-12-12 Alexandre Oliva <aoliva@redhat.com>
815
816 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
817 subsequent statement list.
818
5d9ae53d
MS
8192017-12-07 Martin Sebor <msebor@redhat.com>
820
821 PR c/81544
822 PR c/81566
823 * c-attribs.c (attr_aligned_exclusions): New array.
824 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
825 (attr_common_exclusions, attr_const_pure_exclusions): Same.
826 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
827 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
828 (attr_warn_unused_result_exclusions): Same.
829 (handle_hot_attribute, handle_cold_attribute): Simplify.
830 (handle_const_attribute): Warn on function returning void.
831 (handle_pure_attribute): Same.
832 (handle_aligned_attribute): Diagnose conflicting attribute
833 specifications.
834 * c-warn.c (diagnose_mismatched_attributes): Simplify.
835
c79144f8
DM
8362017-12-06 David Malcolm <dmalcolm@redhat.com>
837
838 PR c/83236
839 * c-common.c (selftest::c_family_tests): Call
840 selftest::c_spellcheck_cc_tests.
841 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
842 * c-spellcheck.cc: Include "selftest.h".
843 (name_reserved_for_implementation_p): New function.
844 (should_suggest_as_macro_p): New function.
845 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
846 should_suggest_as_macro_p and call it.
847 (selftest::test_name_reserved_for_implementation_p): New function.
848 (selftest::c_spellcheck_cc_tests): New function.
849 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
850
613bc14f
DM
8512017-12-06 David Malcolm <dmalcolm@redhat.com>
852
853 * c-spellcheck.cc: New file, taken from macro-handling code in
854 spellcheck-tree.c.
855 * c-spellcheck.h: New file, taken from macro-handling code in
856 spellcheck-tree.h.
857
e76c7157
JJ
8582017-12-01 Jakub Jelinek <jakub@redhat.com>
859
860 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
861 attribute.
862 (handle_simd_attribute): Don't check for "cilk simd function"
863 attribute. Reindent, formatting changes.
864
b0da4034
JK
8652017-11-30 Julia Koval <julia.koval@intel.com>
866
867 * c-common.h (inv_list): Remove.
868
058f0b9e
JJ
8692017-11-28 Jakub Jelinek <jakub@redhat.com>
870
871 PR sanitizer/81275
872 * c-common.c (c_switch_covers_all_cases_p_1,
873 c_switch_covers_all_cases_p): New functions.
874 * c-common.h (c_switch_covers_all_cases_p): Declare.
875
5e9d6aa4 8762017-11-28 Julia Koval <julia.koval@intel.com>
92a285c1 877 Sebastian Peryt <sebastian.peryt@intel.com>
5e9d6aa4
JK
878
879 * array-notation-common.c: Delete.
880 * c-cilkplus.c: Ditto.
881 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
882 * c-common.def (ARRAY_NOTATION_REF): Remove.
883 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
884 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
885 c_validate_cilk_plus_loop, cilkplus_an_parts,
886 cilk_ignorable_spawn_rhs_op,
887 cilk_recognize_spawn): Remove.
888 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
889 * c-omp.c: Remove CILK_SIMD check.
890 * c-pragma.c: Ditto.
891 * c-pragma.h: Remove CILK related pragmas.
892 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
893 ARRAY_NOTATION_REF condition.
894 (c_pretty_printer::expression): Ditto.
895 * c.opt (fcilkplus): Remove.
896 * cilk.c: Delete.
897
1af4ebf5
MG
8982017-11-21 Marc Glisse <marc.glisse@inria.fr>
899
900 * c-pretty-print.c (pp_c_additive_expression,
901 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
902
d44ed508
JJ
9032017-11-21 Jakub Jelinek <jakub@redhat.com>
904
7d2f0f9b
JJ
905 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
906
d44ed508
JJ
907 PR c++/83059
908 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
909 instead of tree_to_uhwi, formatting fix.
910
26edace6
DM
9112017-11-20 David Malcolm <dmalcolm@redhat.com>
912
913 PR c/81404
914 * known-headers.cc: New file, based on material from c/c-decl.c.
915 (suggest_missing_header): Copied as-is.
916 (get_stdlib_header_for_name): New, based on get_c_name_hint but
917 heavily edited to add C++ support. Add some knowledge about
918 <limits.h>, <stdint.h>, and <wchar.h>.
919 * known-headers.h: Likewise.
920
6c7a259b
DM
9212017-11-20 David Malcolm <dmalcolm@redhat.com>
922
923 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
924 (lookup_name_fuzzy): Likewise. Convert return type from
925 const char * to name_hint. Add location_t param.
926 * name-hint.h: New header.
927
f9c59f7e
JJ
9282017-11-19 Jakub Jelinek <jakub@redhat.com>
929
930 PR c/66618
931 PR c/69960
932 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
933
1e39313a
JM
9342017-11-16 Joseph Myers <joseph@codesourcery.com>
935
936 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
937 expected publication date of C17.
938 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
939
3ca0dc60
JM
9402017-11-15 Joseph Myers <joseph@codesourcery.com>
941
942 PR c/81156
943 * c-common.c (c_common_reswords): Add __builtin_tgmath.
944 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
945
025d57f0
MS
9462017-11-10 Martin Sebor <msebor@redhat.com>
947
948 PR c/81117
949 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
950 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
951 * c.opt (-Wstringop-truncation): New option.
952
1b6fa695
ML
9532017-11-06 Martin Liska <mliska@suse.cz>
954
955 PR middle-end/82404
956 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
957 FE.
958 * c.opt: Set default value of warn_return_type.
959
64a5912c
DM
9602017-10-31 David Malcolm <dmalcolm@redhat.com>
961
962 * c-common.c (binary_op_error): Update for renaming of
963 error_at_rich_loc.
964 (c_parse_error): Likewise.
965 * c-warn.c (warn_logical_not_parentheses): Likewise for
966 renaming of inform_at_rich_loc.
967 (warn_for_restrict): Likewise for renaming of
968 warning_at_rich_loc_n.
969
c76dc9c3
JM
9702017-10-30 Joseph Myers <joseph@codesourcery.com>
971
972 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
973 * c-opts.c (set_std_c17): New function.
974 (c_common_init_options): Use gnu17 as default C version.
975 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
976
ee5fd23a
MM
9772017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
978
979 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
980 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
981 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
982 __FP_FAST_FMA<N>X.
983
d1047465
MP
9842017-10-23 Marek Polacek <polacek@redhat.com>
985
986 PR c/82681
987 * c-warn.c (warnings_for_convert_and_check): Fix typos.
988
9e878cf1
EB
9892017-10-19 Eric Botcazou <ebotcazou@adacore.com>
990
991 * c-common.c (check_builtin_function_arguments): Also check arguments
992 of __builtin_alloca_with_align_and_max.
993
89b6abbb
DM
9942017-10-17 David Malcolm <dmalcolm@redhat.com>
995
996 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
997 rather than NULL to format_warning_va.
998 (check_format_types): Likewise when calling format_type_warning.
999 Remove code to extract source_ranges and source_range * in favor
1000 of just a location_t.
1001 (format_type_warning): Convert source_range * param to a
1002 location_t.
1003
39382c09
JJ
10042017-10-13 Jakub Jelinek <jakub@redhat.com>
1005
1006 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
1007 [LR]SHIFT_EXPR.
1008
62e1c678
DM
10092017-10-12 David Malcolm <dmalcolm@redhat.com>
1010
1011 * c-common.c (enum missing_token_insertion_kind): New enum.
1012 (get_missing_token_insertion_kind): New function.
1013 (maybe_suggest_missing_token_insertion): New function.
1014 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
1015
b90c9338
NS
10162017-10-11 Nathan Sidwell <nathan@acm.org>
1017
1018 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
1019 (c_common_handle_option): Update incpath_kind names.
1020
3a266bcd
ML
10212017-10-11 Martin Liska <mliska@suse.cz>
1022
1023 PR sanitizer/82490
1024 * c-attribs.c (handle_no_sanitize_attribute): Report directly
1025 Wattributes warning.
1026
8e6cdc90
RS
10272017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1028
1029 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
1030 operating on trees as wide_ints.
1031 * c-common.c (pointer_int_sum): Likewise.
1032 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1033 * c-warn.c (match_case_to_enum_1): Likewise.
1034 (c_do_switch_warnings): Likewise.
1035 (maybe_warn_shift_overflow): Likewise.
1036
802b38c9
JJ
10372017-10-10 Jakub Jelinek <jakub@redhat.com>
1038
1039 PR c/82437
1040 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
1041 instead of wide_int::from.
1042
4e34b338
JJ
10432017-10-06 Jakub Jelinek <jakub@redhat.com>
1044
1045 PR c/82437
1046 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
1047 using to_widest use wide_int with the larger of the two precisions.
1048
4bc4b2b4
BE
10492017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1050
1051 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
1052 functions.
1053
a1488398
RS
10542017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
1055
1056 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
1057 when combining the original unconverted comparison operands.
1058
01c9fb68
JJ
10592017-09-29 Jakub Jelinek <jakub@redhat.com>
1060
1061 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
1062 attribute.
1063
6e3e8419
EB
10642017-09-29 Eric Botcazou <ebotcazou@adacore.com>
1065
1066 * c-ada-spec.c (to_ada_name): Add index parameter.
1067 (pp_ada_tree_identifier): Likewise.
1068 (dump_ada_macros): Adjust call to to_ada_name.
1069 (struct overloaded_name_hash): New type.
1070 (struct overloaded_name_hasher): Likewise.
1071 (overloaded_names): New hash table.
1072 (compute_overloading_index): New function.
1073 (dump_ada_decl_name): Call it and pass the result to
1074 pp_ada_tree_identifier.
1075 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
1076 (dump_ada_function_declaration): Likewise.
1077 (dump_generic_ada_node): Likewise.
1078 (print_constructor): Likewise.
1079 (print_destructor): Likewise.
1080 (dump_ada_specs): Delete overloaded_names table.
1081
79310774
EB
10822017-09-29 Eric Botcazou <ebotcazou@adacore.com>
1083
1084 * c-ada-spec.c (max_ada_macros): Move around.
1085 (store_ada_macro_index): Likewise.
1086 (source_file): Rename into...
1087 (macro_source_file): ...this.
1088 (count_ada_macro): Move around.
1089 (store_ada_macro): Likewise.
1090 (compare_macro): Likewise.
1091 (print_ada_macros): Merge in...
1092 (dump_ada_macros): ...this.
1093 (source_file_base): Rename into...
1094 (current_source_file): ...this.
1095 (print_comment): Move around.
1096 (dump_ada_nodes): Call dump_ada_declaration directly.
1097 (struct with): Change type of limited field to bool.
1098 (append_withs): Change type of limited_access parameter to bool.
1099 (pp_ada_tree_identifie): Likewise.
1100 (dump_ada_decl_nam): Likewise.
1101 (dump_generic_ada_node): Likewise. Do not print the return type.
1102 (to_ada_name): Change type of space_found parameter to bool.
1103 (dump_ada_function_declaration): Return void and change type of
1104 parameters to bool. Also print the return type for a function.
1105 (print_ada_methods): Rename into...
1106 (dump_ada_methods): ...this.
1107 (print_ada_declaration): Rename into ...
1108 (dump_ada_declaration): ...this. Do not print the return type.
1109 (print_ada_struct_decl): Rename into...
1110 (dump_ada_struct_decl): ...this.
1111
7d386d45
JJ
11122017-09-29 Jakub Jelinek <jakub@redhat.com>
1113
1114 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
1115 rather than DECL_INITIAL.
1116 (common_handle_aligned_attribute): Likewise.
1117
9ed32e27
AO
11182017-09-20 Alexandre Oliva <aoliva@redhat.com>
1119
1120 * c.opt (gen-decls): Add RejectNegative.
1121
026a79f7
AS
11222017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
1123 Jakub Jelinek <jakub@redhat.com>
1124
1125 Add support for -std=c++2a.
1126 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
1127 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
1128 * c-opts.c (set_std_cxx2a): New.
1129 (c_common_handle_option): Set options when -std=c++2a is enabled.
1130 (c_common_post_options): Adjust comments.
1131 (set_std_cxx14, set_std_cxx17): Likewise.
1132
4a8ca690
EB
11332017-09-15 Eric Botcazou <ebotcazou@adacore.com>
1134
1135 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
1136 message for non-uniform endianness and issue a warning in C++.
1137
7b936140
JJ
11382017-09-15 Jakub Jelinek <jakub@redhat.com>
1139
1140 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
1141 (Wc++17-compat): Change from undocumented alias to option.
1142 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
1143 change C++1z to C++17 in description.
1144 (std=c++1z, std=gnu++1z): Change from option to undocumented
1145 deprecated alias.
1146 (std=c++17, std=gnu++17): Change from undocumented alias to option.
1147 Adjust description.
1148 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
1149 * c-opts.c (set_std_cxx1z): Rename to ...
1150 (set_std_cxx17): ... this.
1151 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
1152 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 1153 caller.
7b936140
JJ
1154 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
1155 comments.
1156
12263f13
L
11572017-09-12 H.J. Lu <hongjiu.lu@intel.com>
1158
1159 * c-attribs.c (common_handle_aligned_attribute): Don't warn
1160 function alignment if warn_if_not_aligned_p is true.
1161
6836632e
NS
11622017-09-12 Nathan Sidwell <nathan@acm.org>
1163
1164 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
1165 resort_sorted_fields): Move to c/c-decl.c.
1166 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
1167 (struct sorted_fields_type): Move to c/c-lang.h.
1168
019bf9ad
JW
11692017-09-09 Jonathan Wakely <jwakely@redhat.com>
1170
1171 PR c++/81852
1172 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
1173
bc7fe952
MP
11742017-09-04 Marek Polacek <polacek@redhat.com>
1175
1176 PR c/81783
1177 * c-warn.c (warn_tautological_bitwise_comparison): New function.
1178 (warn_tautological_cmp): Call it.
1179
de7c2c6a
BK
11802017-09-01 Boris Kolpackov <boris@codesynthesis.com>
1181
1182 * c-opts.c (c_common_finish): Write dependency information even if
1183 there are errors.
1184
d2e05fcb
JJ
11852017-09-01 Jakub Jelinek <jakub@redhat.com>
1186
1187 PR c/81887
1188 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
1189 (omp_pragmas_simd): ... here.
1190 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
1191 create new clauses list containing just simd clause.
1192
18e2a8b8
RS
11932017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1194 Alan Hayward <alan.hayward@arm.com>
1195 David Sherwood <david.sherwood@arm.com>
1196
1197 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
1198 into scalar_mode_supported_p call.
1199 (handle_mode_attribute): Update call to scalar_mode_supported_p.
1200
16d22000
RS
12012017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1202 Alan Hayward <alan.hayward@arm.com>
1203 David Sherwood <david.sherwood@arm.com>
1204
1205 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
1206 for the mode iterator.
1207
b397965c
RS
12082017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1209 Alan Hayward <alan.hayward@arm.com>
1210 David Sherwood <david.sherwood@arm.com>
1211
1212 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
1213 * c-common.c (c_build_vec_perm_expr): Likewise.
1214
357b7604
RS
12152017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1216 Alan Hayward <alan.hayward@arm.com>
1217 David Sherwood <david.sherwood@arm.com>
1218
1219 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
1220
e05c94ba
RS
12212017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1222 Alan Hayward <alan.hayward@arm.com>
1223 David Sherwood <david.sherwood@arm.com>
1224
1225 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
1226 before calling targetm.addr_space.valid_pointer_mode.
1227
5c20c4af
RS
12282017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1229 Alan Hayward <alan.hayward@arm.com>
1230 David Sherwood <david.sherwood@arm.com>
1231
1232 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
1233
c94843d2 12342017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
92a285c1
ML
1235 Alan Hayward <alan.hayward@arm.com>
1236 David Sherwood <david.sherwood@arm.com>
c94843d2
RS
1237
1238 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
1239 iterators.
1240 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1241
4e10a5a7
RS
12422017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1243 Alan Hayward <alan.hayward@arm.com>
1244 David Sherwood <david.sherwood@arm.com>
1245
1246 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
1247 case statements.
1248
130fcab0
ML
12492017-08-29 Martin Liska <mliska@suse.cz>
1250
1251 PR other/39851
1252 * c-common.c (parse_optimize_options): Add argument to function
1253 call.
1254 * c-pragma.c (handle_pragma_diagnostic): Likewise.
1255
14e18d71
DM
12562017-08-24 David Malcolm <dmalcolm@redhat.com>
1257
1258 * c-lex.c (interpret_float): Use token location
1259 when building an EXCESS_PRECISION_EXPR.
1260
2f687306
DM
12612017-08-21 David Malcolm <dmalcolm@redhat.com>
1262
1263 * c-common.c (check_function_arguments): Add "arglogs" param; pass
1264 it to check_function_format.
1265 * c-common.h (check_function_arguments): Add vec<location_t> *
1266 param.
1267 (check_function_format): Likewise.
1268 * c-format.c (struct format_check_context): Add field "arglocs".
1269 (check_function_format): Add param "arglocs"; pass it to
1270 check_format_info.
1271 (check_format_info): Add param "arglocs"; use it to initialize
1272 new field of format_ctx.
1273 (check_format_arg): Pass format_ctx->arglocs to new param of
1274 check_format_info_main.
1275 (class argument_parser): New field "arglocs".
1276 (argument_parser::argument_parser): Add "arglocs_" param and use
1277 it to initialize new field.
1278 (argument_parser::check_argument_type): Pass new arglocs field to
1279 check_format_types.
1280 (check_format_info_main): Add param "arglocs", and use it when
1281 constructing arg_parser.
1282 (check_format_types): Add param "arglocs"; use it if non-NULL when
1283 !EXPR_HAS_LOCATION (cur_param) to get at location information.
1284
00aa1fa2
L
12852017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1286
1287 PR c/53037
1288 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
1289 (c_common_attribute_table): Add warn_if_not_aligned.
1290 (handle_aligned_attribute): Renamed to ...
1291 (common_handle_aligned_attribute): Remove argument, name, and add
1292 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
1293 (handle_aligned_attribute): New.
1294 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
1295
27be025d
MS
12962017-08-14 Martin Sebor <msebor@redhat.com>
1297
1298 PR c/81117
1299 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
1300 (handle_nonstring_attribute): New function.
1301
da67acb9
MS
13022017-08-14 Martin Sebor <msebor@redhat.com>
1303
1304 PR c/81117
1305 * c-format.h (T89_G): New macro.
1306 * c-format.c (local_gcall_ptr_node): New variable.
1307 (init_dynamic_diag_info): Initialize it.
1308
a8b522b4
ML
13092017-08-11 Martin Liska <mliska@suse.cz>
1310
1311 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
1312 TARGET_SUPPORTS_ALIASES.
1313
32129a17
DM
13142017-08-10 David Malcolm <dmalcolm@redhat.com>
1315
1316 * c-common.c (c_parse_error): Add rich_location * param, using it
1317 rather implicitly using input_location.
1318 * c-common.h (c_parse_error): Add rich_location * param.
1319
30af3a2b
MP
13202017-08-09 Marek Polacek <polacek@redhat.com>
1321
1322 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
1323 (c_common_truthvalue_conversion): Likewise.
1324 * c-omp.c (c_finish_omp_atomic): Likewise.
1325 * c-common.h (build_binary_op): Update declaration.
1326
314e6352
ML
13272017-08-08 Martin Liska <mliska@suse.cz>
1328
1329 * c-ada-spec.c: Include header files.
1330 * c-ubsan.c: Likewise.
1331 * c-warn.c: Likewise.
1332
56b5041c
JJ
13332017-08-07 Jakub Jelinek <jakub@redhat.com>
1334
1335 PR c/69389
1336 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
1337
db440138
EB
13382017-08-07 Eric Botcazou <ebotcazou@adacore.com>
1339
1340 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
1341 (print_ada_methods): Likewise.
1342 (print_ada_declaration): Likewise.
1343
577eec56
ML
13442017-08-07 Martin Liska <mliska@suse.cz>
1345
1346 * array-notation-common.c: Add new includes.
1347 * c-format.c( handle_format_attribute): Canonicalize a format
1348 function name.
1349 * c-lex.c (c_common_has_attribute): Canonicalize name of an
1350 attribute.
1351 * c-pretty-print.c: Add new include.
1352
b854df3c
EB
13532017-08-05 Eric Botcazou <ebotcazou@adacore.com>
1354
1355 * c-ada-spec.c (has_static_fields): Look only into variables.
1356 (print_constructor): Add TYPE parameter and use it for the name.
1357 (print_destructor): Likewise.
1358 (print_ada_declaration): Adjust to new constructor/destructor names.
1359 Adjust calls to print_constructor and print_destructor.
1360 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
1361 Look only into variables in the final loop.
1362
9f2cb25e
EB
13632017-08-01 Eric Botcazou <ebotcazou@adacore.com>
1364
1365 * c-ada-spec.c (has_static_fields): Look only into fields.
1366 (dump_generic_ada_node): Small tweak.
1367 (dump_nested_types): Look only into fields.
1368 (print_ada_declaration): Look only into methods. Small tweak.
1369 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
1370
f4bcd9eb
EB
13712017-08-01 Eric Botcazou <ebotcazou@adacore.com>
1372
1373 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
1374 (dump_ada_function_declaration): Likewise.
1375 (dump_generic_ada_node): Likewise.
1376 (print_ada_declaration): Add support for const-qualified variables.
1377
f34ebeb2
ML
13782017-07-31 Martin Liska <mliska@suse.cz>
1379
1380 PR sanitize/81530
1381 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
1382 Guard condition with flag_sanitize_p also with current_function_decl
1383 non-null equality.
1384 (ubsan_maybe_instrument_reference_or_call): Likewise.
1385
218e5d04
UB
13862017-07-30 Uros Bizjak <ubizjak@gmail.com>
1387
1388 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
1389
942047f2
EB
13902017-07-29 Eric Botcazou <ebotcazou@adacore.com>
1391
1392 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
1393 for enumeral types.
1394 (print_ada_declaration): Add missing guard for record types.
1395
a40ff0ae
JJ
13962017-07-27 Jakub Jelinek <jakub@redhat.com>
1397
1398 PR c/45784
1399 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
1400 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
1401 new COMPOUND_EXPRs around the rhs of the comparison.
1402
06bd22f6
MP
14032017-07-27 Marek Polacek <polacek@redhat.com>
1404
1405 PR c/81417
1406 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
1407 the types.
1408
036ea399
JJ
14092017-07-27 Jakub Jelinek <jakub@redhat.com>
1410
1411 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
1412 (handle_noipa_attribute): New function.
1413
417ca011
TD
14142017-07-07 Torsten Duwe <duwe@suse.de>
1415
1416 * c-attribs.c (c_common_attribute_table): Add entry for
1417 "patchable_function_entry".
1418
5aaa8fb4
NS
14192017-07-20 Nathan Sidwell <nathan@acm.org>
1420
1421 Remove TYPE_METHODS.
1422 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
1423 dump_ada_template, print_ada_methods,
1424 print_ada_declaration): Member fns are on TYPE_FIELDS.
1425
ff22eb12
NS
14262017-07-18 Nathan Sidwell <nathan@acm.org>
1427
1428 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
1429
eea77d1f
DM
14302017-07-14 David Malcolm <dmalcolm@redhat.com>
1431
1432 * c-common.c (try_to_locate_new_include_insertion_point): New
1433 function.
1434 (per_file_includes_t): New typedef.
1435 (added_includes_t): New typedef.
1436 (added_includes): New variable.
1437 (maybe_add_include_fixit): New function.
1438 * c-common.h (maybe_add_include_fixit): New decl.
1439
281ac396
MS
14402017-07-10 Martin Sebor <msebor@redhat.com>
1441
1442 PR other/81345
1443 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
1444
b6f43128
DM
14452017-07-06 David Malcolm <dmalcolm@redhat.com>
1446
1447 * c-common.c (selftest::c_family_tests): New.
1448 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
1449 (selftest::c_family_tests): New decl.
1450
efbf55b0
MP
14512017-07-04 Marek Polacek <polacek@redhat.com>
1452
1453 PR c/81231
1454 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
1455 types.
1456
6c86bd88
MP
14572017-07-04 Marek Polacek <polacek@redhat.com>
1458
1459 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
1460
17a7218b
ML
14612017-06-28 Martin Liska <mliska@suse.cz>
1462
1463 PR ipa/81128
1464 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
1465 to a function declaration.
1466
63010089
ML
14672017-06-28 Martin Liska <mliska@suse.cz>
1468
1469 PR driver/79659
1470 * c.opt: Add IntegerRange to various options.
1471
3e2becc4
MP
14722017-06-26 Marek Polacek <polacek@redhat.com>
1473
1474 PR c/80116
1475 * c-common.h (warn_for_multistatement_macros): Declare.
1476 * c-warn.c: Include "c-family/c-indentation.h".
1477 (warn_for_multistatement_macros): New function.
1478 * c.opt (Wmultistatement-macros): New option.
1479 * c-indentation.c (guard_tinfo_to_string): No longer static.
1480 Change the parameter type to "enum rid". Handle RID_SWITCH.
1481 * c-indentation.h (guard_tinfo_to_string): Declare.
1482
2db9b7cd
MG
14832017-06-23 Marc Glisse <marc.glisse@inria.fr>
1484
1485 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
1486
c3684b7b
MS
14872017-06-15 Martin Sebor <msebor@redhat.com>
1488
1489 PR c++/80560
1490 * c.opt (-Wclass-memaccess): New option.
1491
e72c4afd
BK
14922017-06-14 Boris Kolpackov <boris@codesynthesis.com>
1493
1494 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
1495
8a516588
MP
14962017-06-13 Marek Polacek <polacek@redhat.com>
1497
1498 PR objc/80949
1499 * c-warn.c (do_warn_duplicated_branches): Return if any of the
1500 branches is null.
1501
45b2222a
ML
15022017-06-13 Martin Liska <mliska@suse.cz>
1503
1504 PR sanitize/78204
1505 * c-attribs.c (add_no_sanitize_value): New function.
1506 (handle_no_sanitize_attribute): Likewise.
1507 (handle_no_sanitize_address_attribute): Use the function.
1508 (handle_no_sanitize_thread_attribute): New function.
1509 (handle_no_address_safety_analysis_attribute): Use
1510 add_no_sanitize_value.
1511 (handle_no_sanitize_undefined_attribute): Likewise.
1512 * c-common.h: Declare new functions.
1513 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
1514 (ubsan_instrument_shift): Likewise.
1515 (ubsan_instrument_bounds): Likewise.
1516 (ubsan_maybe_instrument_array_ref): Likewise.
1517 (ubsan_maybe_instrument_reference_or_call): Likewise.
1518
a01f151f
JM
15192017-06-11 Jason Merrill <jason@redhat.com>
1520
1521 * c-ada-spec.c, c-pragma.c: Use id_equal.
1522
3de4ac6d
MP
15232017-06-04 Marek Polacek <polacek@redhat.com>
1524
1525 PR c/80919
1526 * c-format.c (matching_type_p): Return false if any of the types
1527 requires structural equality.
1528
2474f48f
MS
15292017-06-02 Martin Sebor <msebor@redhat.com>
1530
1531 PR c/80892
1532 * c-warn.c (conversion_warning): Use -Wconversion for integer
1533 conversion and -Wfloat-conversion for floating one.
1534
40ffd95f
BE
15352017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1536
1537 * c.opt (Wsizeof-pointer-div): New warning option.
1538
3fa4634c
VR
15392017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
1540
1541 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
1542 (Wcatch-value=1): Enable by -Wall.
1543
f012c8ef
DM
15442017-05-30 David Malcolm <dmalcolm@redhat.com>
1545
1546 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
1547 format_chars.
1548 * c.opt (fdiagnostics-show-template-tree): New option.
1549 (felide-type): New option.
1550
63dbcd13
VR
15512017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
1552
1553 * c.opt (Wcatch-value=): New C++ warning flag.
1554
be136b5c
NS
15552017-05-24 Nathan Sidwell <nathan@acm.org>
1556
1557 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
1558 const casts to avoid warning.
1559
3cd211af
MS
15602017-05-24 Martin Sebor <msebor@redhat.com>
1561
1562 PR c/80731
1563 * c-common.h (unsafe_conversion_p): Add a function argument.
1564 * c-common.c (unsafe_conversion_p): Same.
1565 Add type names and values to diagnostics.
1566 (scalar_to_vector): Adjust.
1567 * c-warn.c (constant_expression_error): Add a function argument.
1568 Add type names and values to diagnostics.
1569 (conversion_warning): Add a function argument.
1570 Add type names and values to diagnostics.
1571 (warnings_for_convert_and_check): Same.
1572
1ff7be5a
JM
15732017-05-19 Jason Merrill <jason@redhat.com>
1574
1575 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
1576 enumerators.
1577
ff502317
BE
15782017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1579
1580 * c-format.c (locus): Move out of function scope,
1581 add GTY attribute.
1582
2a8a8d7b
NS
15832017-05-19 Nathan Sidwell <nathan@acm.org>
1584
1585 * c-opts.c (class_dump_file, class_dump_flags): Delete.
1586 (c_common_parse_file): Remove class dump handling.
1587 (get_dump_info): Likewise.
1588
39aac208
RB
15892017-05-19 Richard Biener <rguenther@suse.de>
1590
1591 PR c++/80593
1592 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
1593 to alias-set zero memory.
1594
6ecd2339
BE
15952017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1596
1597 * c-format.c (local_tree_type_node): Add GTY attribute.
1598
6574d78e
MP
15992017-05-18 Marek Polacek <polacek@redhat.com>
1600
1601 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
1602 (c_common_fixed_point_type_for_size): Likewise.
1603 (c_common_type_for_mode): Likewise.
1604 (shorten_compare): Likewise.
1605 (c_promoting_integer_type_p): Use false/true instead of 0/1.
1606 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
1607
e3455240
MP
16082017-05-18 Marek Polacek <polacek@redhat.com>
1609
1610 * c-common.c (self_promoting_args_p): Change the return type to bool.
1611 Use false/true instead of 0/1.
1612 * c-common.h (self_promoting_args_p): Update.
1613
3fa8871b
MP
16142017-05-17 Marek Polacek <polacek@redhat.com>
1615
1616 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
1617 * c-warn.c: Likewise.
1618
b42cc3ca
VV
16192017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1620
1621 Implement new C++ intrinsics __is_assignable and __is_constructible.
1622 * c-common.c (__is_assignable, __is_constructible): New.
1623 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
1624
1a817418
ML
16252017-05-17 Martin Liska <mliska@suse.cz>
1626
1627 * c-common.h: Introduce dump_flags_t type and
1628 use it instead of int type.
1629 * c-gimplify.c (c_genericize): Likewise.
1630 * c-opts.c: Likewise.
1631
b2fa0a8b
MP
16322017-05-17 Marek Polacek <polacek@redhat.com>
1633
1634 * c-common.c (c_save_expr): Remove.
1635 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1636 * c-common.h (c_save_expr): Remove declaration.
1637
31c2d57d
VR
16382017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
1639
1640 PR c/35441
1641 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1642 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1643 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1644 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1645 RDIV_EXPR.
1646 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1647
684f84de
MP
16482017-05-09 Marek Polacek <polacek@redhat.com>
1649
1650 PR c/80525
1651 * c-warn.c (unwrap_c_maybe_const): New.
1652 (warn_logical_operator): Call it.
1653
641da50a
NS
16542017-05-09 Nathan Sidwell <nathan@acm.org>
1655
1656 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1657 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1658
631238ac
MS
16592017-05-08 Martin Sebor <msebor@redhat.com>
1660
1661 PR translation/80280
1662 * c-format.h (struct format_flag_spec): Add new member.
1663 (T89_T): New macro.
1664 * c-format.c (local_tree_type_node): New global.
1665 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1666 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1667 (strfmon_flag_specs): Likewise.
1668 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1669 with distinct quoting properties.
1670 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1671 (flag_chars_t::validate): Add argument and handle bad quoting.
1672 (check_format_info_main): Handle quoting problems.
1673 (init_dynamic_diag_info): Simplify.
1674
49f0c04c
JM
16752017-05-08 Jason Merrill <jason@redhat.com>
1676
1677 * c-opts.c (c_common_post_options): Update defaults for
1678 flag_abi_version and flag_abi_compat_version.
1679
56d35585
DM
16802017-05-05 David Malcolm <dmalcolm@redhat.com>
1681
1682 * c-common.c (c_cpp_error): Replace report_diagnostic
1683 with diagnostic_report_diagnostic.
1684
0f2c4a8f
MS
16852017-05-04 Martin Sebor <msebor@redhat.com>
1686
1687 PR translation/80280
1688 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1689 (handle_weakref_attribute): Same.
1690
6fe63fb4
NS
16912017-05-03 Nathan Sidwell <nathan@acm.org>
1692
1693 Canonicalize canonical type hashing
1694 * c-common.c (complete_array_type): Use type_hash_canon.
1695
815d9cc6
XR
16962017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1697
92a285c1 1698 PR c++/80038
815d9cc6
XR
1699 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1700 prototype.
1701 (cilk_install_body_pedigree_operations): Likewise.
1702 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1703 detatched.
1704 (cilk_gimplify_call_params_in_spawned_fn): Remove.
1705 (cilk_install_body_pedigree_operations): Likewise.
1706 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1707 unwrapping.
1708
f8a36447
JJ
17092017-04-27 Jakub Jelinek <jakub@redhat.com>
1710
1711 PR c++/80534
1712 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1713 flag on non-aggregate element types.
1714
7c145456
BE
17152017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1716
1717 * c-common.c (c_type_hasher, type_hash_table): Remove.
1718 (c_common_get_alias_set): Remove unreachable code.
1719 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1720
c3cbcd45
VR
17212017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
1722
1723 * c.opt (Wextra-semi): New C++ warning flag.
1724
8a59d466
JJ
17252017-04-20 Jakub Jelinek <jakub@redhat.com>
1726
1727 PR middle-end/80423
1728 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1729
8487c9a5
JJ
17302017-04-18 Jakub Jelinek <jakub@redhat.com>
1731
1732 PR middle-end/79788
1733 PR middle-end/80375
1734 * c-common.c (c_common_type_for_mode): Don't handle
1735 widest_*_literal_type_node here.
1736 c_common_signed_or_unsigned_type): Likewise.
1737 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1738 to *intTI_type_node or *intDI_type_node depending on whether
1739 TImode is supported by the target or not.
1740
3ee0fb02
ML
17412017-04-10 Martin Liska <mliska@suse.cz>
1742
1743 PR sanitizer/80350
1744 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1745 doing an UBSAN check.
1746
5764ee3c
JW
17472017-04-03 Jonathan Wakely <jwakely@redhat.com>
1748
1749 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1750
6f3af356
JJ
17512017-03-31 Jakub Jelinek <jakub@redhat.com>
1752
1753 PR c++/79572
1754 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1755 tree *.
1756 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
1757 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1758 REFERENCE_TYPE.
1759
f6a7a9d5
DM
17602017-03-31 David Malcolm <dmalcolm@redhat.com>
1761
1762 PR documentation/78732
1763 * c.opt (Wendif-labels): Fix description to refer to
1764 #else rather than #elif.
1765
af88f557
JJ
17662017-03-31 Jakub Jelinek <jakub@redhat.com>
1767
1768 PR libstdc++/80251
1769 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1770 * c-common.c (c_common_reswords): Add __is_aggregate trait.
1771
a9e4a1a5
JJ
17722017-03-27 Jakub Jelinek <jakub@redhat.com>
1773
1774 PR middle-end/80162
1775 * c-common.c (c_common_mark_addressable_vec): Don't set
1776 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1777
3f01b620
MS
17782017-03-21 Martin Sebor <msebor@redhat.com>
1779
1780 PR c++/79548
1781 * c-common.c (set_underlying_type): Mark type used only when
1782 original del is declared unused.
1783
2f6f187a
DM
17842017-03-10 David Malcolm <dmalcolm@redhat.com>
1785
1786 PR translation/79848
1787 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1788 "%qs".
1789
a02fa805
DM
17902017-03-10 David Malcolm <dmalcolm@redhat.com>
1791
1792 PR c/79921
1793 * c-indentation.c (warn_for_misleading_indentation): Remove parens
1794 from inform's message, so that xgettext can locate it.
1795
822a132c
MP
17962017-03-09 Marek Polacek <polacek@redhat.com>
1797
1798 PR c++/79962
1799 PR c++/79984
1800 * c-attribs.c (handle_nonnull_attribute): Save the result of default
1801 conversion to the attribute list.
1802
bba81f1c
ML
18032017-03-09 Martin Liska <mliska@suse.cz>
1804
1805 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1806
108154ff
JM
18072017-03-03 Jason Merrill <jason@redhat.com>
1808
1809 * c.opt (Wnoexcept-type): New.
1810
eb0e7c34
RB
18112017-03-02 Richard Biener <rguenther@suse.de>
1812
1813 PR c/79756
1814 * c-common.c (c_common_mark_addressable_vec): Look through
1815 C_MAYBE_CONST_EXPR.
1816
9453ba0a
ML
18172017-02-28 Martin Liska <mliska@suse.cz>
1818
1819 * c.opt: Replace space with tabular for options of <number>
1820 type.
1821
6a825afe
ML
18222017-02-28 Martin Liska <mliska@suse.cz>
1823
1824 * c.opt: Fix --help=option -Q for options which are of
1825 an enum type.
1826
4227c9ad
JJ
18272017-02-24 Jakub Jelinek <jakub@redhat.com>
1828
1829 PR c++/79588
1830 * c-common.c (check_function_restrict): New function.
1831 (check_function_arguments): Add FNDECL argument. Call
1832 check_function_restrict if -Wrestrict.
1833 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
1834 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
1835 * c-common.h (check_function_arguments): Add FNDECL argument.
1836 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
1837
59909673
EB
18382017-02-24 Eric Botcazou <ebotcazou@adacore.com>
1839
1840 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
1841 treatment of parameters with pointer-to-tagged type and tidy up.
1842 (print_ada_methods): Remove the special treatment of C++ static member
1843 functions.
1844
54dcd526
ML
18452017-02-22 Martin Liska <mliska@suse.cz>
1846
1847 * c.opt: Replace inequality signs with square brackets
1848 for -Wnornalized.
1849
00bc9de3
JJ
18502017-02-21 Jakub Jelinek <jakub@redhat.com>
1851
1852 PR c++/79641
1853 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
1854 preserve quals.
1855
97fcf744
JM
18562017-02-17 Joseph Myers <joseph@codesourcery.com>
1857
1858 * c-cppbuiltin.c (builtin_define_float_constants): Define
1859 __DECIMAL_DIG__ to the value for long double.
1860
c7545f1c
MP
18612017-02-15 Marek Polacek <polacek@redhat.com>
1862
1863 PR c/79515
1864 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
1865 conversion has occured.
1866
c2e84327
DM
18672017-01-24 David Malcolm <dmalcolm@redhat.com>
1868
1869 * c-common.c (c_common_reswords): Add "__RTL".
1870 * c-common.h (enum rid): Add RID_RTL.
1871
2ebd93e1
MP
18722017-01-20 Marek Polacek <polacek@redhat.com>
1873
1874 PR c/64279
1875 * c-common.h (do_warn_duplicated_branches_r): Declare.
1876 * c-gimplify.c (c_genericize): Walk the function tree calling
1877 do_warn_duplicated_branches_r.
1878 * c-warn.c (expr_from_macro_expansion_r): New.
1879 (do_warn_duplicated_branches): New.
1880 (do_warn_duplicated_branches_r): New.
1881 * c.opt (Wduplicated-branches): New option.
1882
0d80ab91
DM
18832017-01-17 David Malcolm <dmalcolm@redhat.com>
1884
1885 PR c++/71497
1886 * c-indentation.c (warn_for_misleading_indentation): Use the past
1887 subjunctive in the note.
1888
7f991c36
AH
18892017-01-17 Aldy Hernandez <aldyh@redhat.com>
1890
1891 PR c/79116
1892 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
1893 start type to integer_type.
1894
1c70261c
JJ
18952017-01-16 Jakub Jelinek <jakub@redhat.com>
1896
1897 PR driver/49726
1898 * c.opt (gen-decls): Add Driver flag.
1899
1ddca3f3
PC
19002017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1901
1902 Revert:
1903 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1904
1905 PR c++/71737
1906 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1907
7d2f3f1d
PC
19082017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
1909
1910 PR c++/71737
1911 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
1912
bce6f760
MS
19132017-01-12 Martin Sebor <msebor@redhat.com>
1914
1915 (-Wformat-overflow): ...to this.
1916
bf5fbf46
MS
19172017-01-11 Martin Sebor <msebor@redhat.com>
1918
1919 PR c/78768
1920 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
1921 Also enable for LTO.
1922
e363df3f
JM
19232017-01-10 Jason Merrill <jason@redhat.com>
1924
1925 Implement P0195R2, C++17 variadic using.
1926 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
1927
bd2c6270
JJ
19282017-01-09 Jakub Jelinek <jakub@redhat.com>
1929
1930 PR translation/79019
1931 PR translation/79020
1932 * c.opt (Wnormalized=): Fix typo in description.
1933
efcc8d38
MS
19342017-01-08 Martin Sebor <msebor@redhat.com>
1935
1936 PR middle-end/77708
1937 * c.opt (-Wformat-truncation): New option.
1938
435f3f7a
AO
19392017-01-06 Alexandre Oliva <aoliva@redhat.com>
1940
1941 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
1942 value to unsigned short to fit in 4 hex digits without
1943 warnings.
1944
4e89adf9
EB
19452017-01-05 Eric Botcazou <ebotcazou@adacore.com>
1946
1947 * c.opt (fsso-struct): Add 'native' value.
1948
cd445b54
ML
19492017-01-05 Martin Liska <mliska@suse.cz>
1950
1951 PR pch/78970
1952 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
1953 header.
1954
a9342885
MP
19552017-01-04 Marek Polacek <polacek@redhat.com>
1956
1957 PR c++/64767
1958 * c.opt (Wpointer-compare): New option.
1959
fc73e60c
JJ
19602017-01-04 Jakub Jelinek <jakub@redhat.com>
1961
1962 PR driver/78957
1963 * c.opt (fsso-struct=): Add RejectNegative.
1964
cbe34bb5
JJ
19652017-01-01 Jakub Jelinek <jakub@redhat.com>
1966
1967 Update copyright years.
1968
d4a6c0ea
ML
19692016-12-29 Martin Liska <mliska@suse.cz>
1970
1971 PR c/78933
1972 * c.opt (strong-eval-order): Add RejectNegative keyword.
1973
67a5ad7c
JM
19742016-12-22 Jason Merrill <jason@redhat.com>
1975
1976 Implement P0522R0, matching of template template arguments.
1977 * c-cppbuiltin.c (c_cpp_builtins): Define
1978 __cpp_template_template_args.
1979
0dba7960
JJ
19802016-12-21 Jakub Jelinek <jakub@redhat.com>
1981
1982 PR bootstrap/78817
1983 * c-common.c (struct nonnull_arg_ctx): New type.
1984 (check_function_nonnull): Return bool instead of void. Use
1985 nonnull_arg_ctx as context rather than just location_t.
1986 (check_nonnull_arg): Adjust for the new context type, set
1987 warned_p to true if a warning has been diagnosed.
1988 (check_function_arguments): Return bool instead of void.
1989 * c-common.h (check_function_arguments): Adjust prototype.
1990
31bfc9b9
JM
19912016-12-21 Jason Merrill <jason@redhat.com>
1992
1993 * c.opt (-fnew-ttp-matching): New flag.
1994 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
1995
629b3d75
MJ
19962016-12-14 Martin Jambor <mjambor@suse.cz>
1997
1998 * c-omp.c: Include omp-general.h instead of omp-low.h.
1999 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
2000 name.
2001
474da67e
MS
20022016-12-14 Martin Sebor <msebor@redhat.com>
2003
2004 PR c/17308
2005 * c-common.c (check_nonnull_arg): Disable when optimization
2006 is enabled.
2007
fe366b87
MP
20082016-12-12 Marek Polacek <polacek@redhat.com>
2009
2010 PR c++/78647
2011 * c-common.c (attribute_fallthrough_p): Return false for
2012 error_mark_node.
2013
8bd9f164
MS
20142016-12-08 Martin Sebor <msebor@redhat.com>
2015
2016 PR c/78284
2017 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
2018
060162e0
MS
20192016-12-08 Martin Sebor <msebor@redhat.com>
2020
2021 PR c/78165
92a285c1
ML
2022 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
2023 suffix.
060162e0 2024
ee92e7ba
MS
20252016-12-07 Martin Sebor <msebor@redhat.com>
2026
2027 PR c/53562
2028 PR middle-end/77784
2029 PR middle-end/78149
2030 PR middle-end/78138
2031 * c.opt (-Wstringop-overflow): New option.
2032
84b0769e
MO
20332016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2034
2035 * c-attribs.c (asan odr indicator): New attribute.
2036 (handle_asan_odr_indicator_attribute): New function.
2037
7fa6a965
PK
20382016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2039
2040 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
2041 ptrdiff_type_node;
2042
56d8ffc1
JG
20432016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2044
2045 * c-common.c (excess_precision_mode_join): New.
2046 (c_ts18661_flt_eval_method): New.
2047 (c_c11_flt_eval_method): Likewise.
2048 (c_flt_eval_method): Likewise.
2049 * c-common.h (excess_precision_mode_join): New.
2050 (c_flt_eval_method): Likewise.
2051 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
2052 (cpp_iec_559_value): Call it.
2053 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
2054 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
2055 __FLT_EVAL_METHOD_TS_18661_3__.
2056
04f0fcf7
JG
20572016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2058
2059 * c-opts.c (c_common_post_options): Add logic to handle the default
2060 case for -fpermitted-flt-eval-methods.
2061
fb2675cb
PB
20622016-11-23 Paolo Bonzini <bonzini@gnu.org>
2063
2064 * c.opt (Wexpansion-to-defined): New.
2065
ec1c5694
JJ
20662016-11-23 Jakub Jelinek <jakub@redhat.com>
2067
2068 PR target/78451
2069 * c-pragma.c (handle_pragma_target): Don't replace
2070 current_target_pragma, but chainon the new args to the current one.
2071
730c9e75
NS
20722016-11-22 Nathan Sidwell <nathan@acm.org>
2073
2074 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 2075 indentation and formatting.
730c9e75 2076
89990732
MS
20772016-11-21 Martin Sebor <msebor@redhat.com>
2078
2079 * c.opt (-fprintf-return-value): Enable by default.
2080
48330c93
BE
20812016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2082
2083 PR c++/71973
2084 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
2085 * c-common.c (c_common_nodes_and_builtins): Initialize
2086 const_tm_ptr_type_node.
2087
0d939c95
MP
20882016-11-16 Marek Polacek <polacek@redhat.com>
2089
2090 PR c/78285
2091 * c-common.c (c_add_case_label): Turn error_at calls into inform.
2092
8e745a17
JJ
20932016-11-14 Jakub Jelinek <jakub@redhat.com>
2094
2095 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
2096
1ee62b92 20972016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
2098 Richard Biener <rguenther@suse.de>
2099
2100 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
2101 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
2102 * c.opt (fgimple): New option.
1ee62b92 2103
22b15758
UB
21042016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2105
2106 PR c/35503
2107 * c-common.h (warn_for_restrict): Declare.
2108 * c-warn.c: Include gcc-rich-location.h.
2109 (warn_for_restrict): New function.
2110 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
2111 (gcc_cdiag_char_table): Likewise.
2112 (gcc_cxxdiag_char_table): Likewise.
2113 * c.opt (Wrestrict): New option.
2114
4be719cd
EB
21152016-11-13 Eric Botcazou <ebotcazou@adacore.com>
2116
2117 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
2118 for nested types only if the type is a record or union and dump SLOC.
2119
4a826ca6
JM
21202016-11-09 Jason Merrill <jason@redhat.com>
2121
2122 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
2123
2e955d50
JJ
21242016-11-09 Jakub Jelinek <jakub@redhat.com>
2125
2126 * c-ubsan.c (ubsan_instrument_shift): Handle split
2127 -fsanitize=shift-base and -fsanitize=shift-exponent.
2128
51dc6603
JM
21292016-11-07 Jason Merrill <jason@redhat.com>
2130
2131 * c.opt (Wc++1z-compat): New.
2132 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
2133
6dc4a604
ML
21342016-11-07 Martin Liska <mliska@suse.cz>
2135
2136 * c-warn.c (warn_for_unused_label): Save all labels used
2137 in goto or in &label.
2138
b302001e
JM
21392016-11-03 Jason Merrill <jason@redhat.com>
2140
2141 * c-cppbuiltin.c (c_cpp_builtins): Correct
2142 __cpp_inheriting_constructors.
2143
31f7f784
JM
21442016-11-01 Jason Merrill <jason@redhat.com>
2145
2bc78e3c
JM
2146 * c-cppbuiltin.c (c_cpp_builtins): Update
2147 __cpp_inheriting_constructors.
2148
31f7f784
JM
2149 * c.opt (-fnew-inheriting-ctors): New.
2150 * c-opts.c: Default to on for ABI 11+.
2151
dcb466ec
JJ
21522016-10-31 Jakub Jelinek <jakub@redhat.com>
2153
2154 PR c++/77948
2155 * c.opt (fext-numeric-literals): Add Var and Init.
2156 * c-opts.c (c_common_handle_option): Don't clear
2157 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
2158 (c_common_post_options): Clear it here if not set
2159 explicitly.
2160
52e1b91e
AH
21612016-10-28 Aldy Hernandez <aldyh@redhat.com>
2162
2163 PR debug/77773
2164 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
2165 if NULL.
2166
e16f1cc7
JJ
21672016-10-25 Jakub Jelinek <jakub@redhat.com>
2168
2169 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
2170 * c-common.c (c_common_reswords): Add __builtin_launder.
2171
f8348061
BE
21722016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
2173
2174 * c-common.c (c_common_truthvalue_conversion): Warn for
2175 multiplications in boolean context. Fix the quoting of '<<' and '<'
2176 in the shift warning.
2177
eff89e01
BE
21782016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2179
2180 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
2181
24bc7bf4
JM
21822016-10-20 Jason Merrill <jason@redhat.com>
2183
2184 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
2185
4c712374
BE
21862016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2187
2188 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
2189 integer shift ops in boolean context.
2190
21912016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
2192
2193 * c.opt (Walloca): New.
2194 (Walloca-larger-than=): New.
2195 (Wvla-larger-than=): New.
2196
8fa18c06
MP
21972016-10-17 Marek Polacek <polacek@redhat.com>
2198
2199 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
2200 Return immediately when finding a match.
2201 (warn_tautological_cmp): Remove a boolean variable that is no longer
2202 needed.
2203
b12b1915
MP
22042016-10-17 Marek Polacek <polacek@redhat.com>
2205
2206 * c-attribs.c: New file.
2207 * c-common.c: Move attributes handling to c-attribs.c.
2208 (get_nonnull_operand): No longer static.
2209 * c-common.h: Move the declarations from c-attribs.c to its own section.
2210
2045acd9
JM
22112016-10-14 Jason Merrill <jason@redhat.com>
2212
2213 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
2214 and __cpp_deduction_guides.
2215
14a2c9aa
JM
22162016-10-13 Jason Merrill <jason@redhat.com>
2217
2218 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
2219
4d0cdd0c
TP
22202016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2221
2222 * c-cppbuiltin.c: Include memmodel.h.
2223 * c-opts.c: Likewise.
2224 * c-pragma.c: Likewise.
2225 * c-warn.c: Likewise.
2226
70f6d5e1
JJ
22272016-10-12 Jakub Jelinek <jakub@redhat.com>
2228
2229 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
2230 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
2231 * c-opts.c (sanitize_cpp_opts): Initialize
2232 cpp_opts->cpp_warn_implicit_fallthrough.
2233
78f61294
MP
22342016-10-11 Marek Polacek <polacek@redhat.com>
2235
2236 * c-common.c (warning_candidate_p): Change the return type to bool
2237 and return true/false instead of 1/0.
2238 (vector_mode_valid_p): Likewise.
2239
038b5cc0
MP
22402016-10-11 Marek Polacek <polacek@redhat.com>
2241
2242 * c-common.c (fold_for_warn): No longer static.
2243 (bool_promoted_to_int_p): Likewise.
2244 (c_common_get_narrower): Likewise.
2245 (constant_expression_warning): Move to c-warn.c.
2246 (constant_expression_error): Likewise.
2247 (overflow_warning): Likewise.
2248 (warn_logical_operator): Likewise.
2249 (find_array_ref_with_const_idx_r): Likewise.
2250 (warn_tautological_cmp): Likewise.
2251 (expr_has_boolean_operands_p): Likewise.
2252 (warn_logical_not_parentheses): Likewise.
2253 (warn_if_unused_value): Likewise.
2254 (strict_aliasing_warning): Likewise.
2255 (sizeof_pointer_memaccess_warning): Likewise.
2256 (check_main_parameter_types): Likewise.
2257 (conversion_warning): Likewise.
2258 (warnings_for_convert_and_check): Likewise.
2259 (match_case_to_enum_1): Likewise.
2260 (match_case_to_enum): Likewise.
2261 (c_do_switch_warnings): Likewise.
2262 (warn_for_omitted_condop): Likewise.
2263 (readonly_error): Likewise.
2264 (lvalue_error): Likewise.
2265 (invalid_indirection_error): Likewise.
2266 (warn_array_subscript_with_type_char): Likewise.
2267 (warn_about_parentheses): Likewise.
2268 (warn_for_unused_label): Likewise.
2269 (warn_for_div_by_zero): Likewise.
2270 (warn_for_memset): Likewise.
2271 (warn_for_sign_compare): Likewise.
2272 (do_warn_double_promotion): Likewise.
2273 (do_warn_unused_parameter): Likewise.
2274 (record_locally_defined_typedef): Likewise.
2275 (maybe_record_typedef_use): Likewise.
2276 (maybe_warn_unused_local_typedefs): Likewise.
2277 (maybe_warn_bool_compare): Likewise.
2278 (maybe_warn_shift_overflow): Likewise.
2279 (warn_duplicated_cond_add_or_warn): Likewise.
2280 (diagnose_mismatched_attributes): Likewise.
2281 * c-common.h: Move the declarations from c-warn.c to its own section.
2282 * c-warn.c: New file.
2283
627be19f
JM
22842016-10-08 Jason Merrill <jason@redhat.com>
2285
2286 * c-common.c (c_common_truthvalue_conversion): Don't distribute
2287 into COND_EXPR in C++.
2288
7bad794a
JJ
22892016-10-08 Jakub Jelinek <jakub@redhat.com>
2290
2291 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
2292 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
2293 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
2294
be845b04
JJ
22952016-10-07 Jakub Jelinek <jakub@redhat.com>
2296
2297 Implement LWG2296 helper intrinsic
2298 * c-common.h (enum rid): Add RID_ADDRESSOF.
2299 * c-common.c (c_common_reswords): Add __builtin_addressof.
2300
c09c4992
BE
23012016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2302
2303 PR c++/77700
2304 * c-common.c (c_common_truthvalue_conversion): Warn also for
2305 suspicious enum values in boolean context.
2306
342cfb3e
JJ
23072016-10-06 Jakub Jelinek <jakub@redhat.com>
2308
2309 Implement P0258R2 - helper for C++17
2310 std::has_unique_object_representations trait
2311 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
2312 * c-common.c (c_common_reswords): Add
2313 __has_unique_object_representations.
2314
2e69f143
JJ
23152016-10-05 Jakub Jelinek <jakub@redhat.com>
2316
2317 PR sanitizer/66343
2318 * c-ubsan.c (ubsan_instrument_return): Don't call
2319 initialize_sanitizer_builtins here.
2320
700fff34
BE
23212016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2322
2323 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
2324 conditional expression in boolean context when only one arm is
2325 non-boolean.
2326
9563bfcd
JJ
23272016-10-05 Jakub Jelinek <jakub@redhat.com>
2328
04a32443
JJ
2329 PR sanitizer/77823
2330 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
2331 is not integral.
2332
9563bfcd
JJ
2333 * c-common.c (c_common_reswords): Update comment for C++11.
2334
f1644724
JM
23352016-10-04 Jason Merrill <jason@redhat.com>
2336
2337 * c-common.c (make_tree_vector_from_ctor): New.
2338 * c-common.h: Declare it.
2339
5a79befb
JJ
23402016-10-04 Jakub Jelinek <jakub@redhat.com>
2341
2342 * c-cppbuiltin.c (c_cpp_builtins): Don't define
2343 __LIBGCC_JCR_SECTION_NAME__.
2344
1633d3b9
BE
23452016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2346
2347 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
2348 left shift in boolean context.
2349
a2c6e7f2
JJ
23502016-09-29 Jakub Jelinek <jakub@redhat.com>
2351
2352 Implement P0001R1 - C++17 removal of register storage class specifier
2353 * c.opt (Wregister): New warning.
2354 * c-opts.c (c_common_post_options): Enable -Wregister by
2355 default for C++17.
2356
75304c87
JG
23572016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
2358
2359 * c-opts.c (c_common_post_options): Remove special case for
2360 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
2361 in C++.
2362
bbfac6da
JJ
23632016-09-27 Jakub Jelinek <jakub@redhat.com>
2364
6e39060a
JJ
2365 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
2366 -std=c++1z.
2367
bbfac6da
JJ
2368 * c-ada-spec.c (print_ada_declaration): Remove break after return.
2369
e73cf9a2
TP
23702016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2371
2372 * c-common.c: Include memmodel.h.
2373
c6147dc4
MP
23742016-09-26 Marek Polacek <polacek@redhat.com>
2375
2376 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
2377
81fea426
MP
23782016-09-26 Marek Polacek <polacek@redhat.com>
2379
2380 PR c/7652
2381 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
2382 (handle_fallthrough_attribute): New function.
2383 (attribute_fallthrough_p): New function.
2384 * c-common.h (attribute_fallthrough_p): Declare.
2385
9a2300e9
MP
23862016-09-24 Marek Polacek <polacek@redhat.com>
2387
2388 PR c/77490
2389 * c.opt (Wbool-operation): New.
2390
a09e9e35
BE
23912016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2392
2393 * c-common.c (c_common_truthvalue_conversion): Inhibit
2394 Wint-in-bool-context warning with from_macro_definition_at.
2395 Mention the expression will always evaluate to true.
2396
d43b4ccc
MS
23972016-09-21 Martin Sebor <msebor@redhat.com>
2398
2399 PR bootstrap/77676
2400 * c.opt (fprintf-return-value): Temporarily initialize to zero
2401 to unblock bootstrap failures.
2402
2e1c20b1
JJ
24032016-09-21 Jakub Jelinek <jakub@redhat.com>
2404
2405 PR c++/77651
2406 * c.opt (Waligned-new=): Add RejectNegative.
2407 (faligned-new=): Likewise. Spelling fix - change
2408 aligned_new_threshhold to aligned_new_threshold.
2409 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
2410 to aligned_new_threshold.
2411
88d0c3f0
MS
24122016-09-20 Martin Sebor <msebor@redhat.com>
2413
2414 PR middle-end/49905
2415 * c.opt: Add -Wformat-length and -fprintf-return-value.
2416
144a96e4
BE
24172016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2418
2419 PR c++/77434
2420 * c.opt (Wint-in-bool-context): New warning.
2421 * c-common.c (c_common_truthvalue_conversion): Warn on integer
2422 constants in boolean context.
2423
63012d9a
JM
24242016-09-19 Joseph Myers <joseph@codesourcery.com>
2425
2426 * c-common.c (max_align_t_align): Also consider alignment of
2427 float128_type_node.
2428
931388ce
JM
24292016-09-15 Jason Merrill <jason@redhat.com>
2430
2431 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
2432 DECL_EXTERNAL.
2433
38711381
JM
24342016-09-14 Jason Merrill <jason@redhat.com>
2435
2436 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2437 limit FIELD_DECL, either.
2438
e51fbec3
MP
24392016-09-14 Marek Polacek <polacek@redhat.com>
2440
2441 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
2442 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
2443 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
2444
254830ba
DM
24452016-09-13 David Malcolm <dmalcolm@redhat.com>
2446
2447 * c-common.c (warn_logical_not_parentheses): Replace
2448 rich_location::add_fixit_insert calls with add_fixit_insert_before
2449 and add_fixit_insert_after, eliminating the "next_loc" calculation.
2450
42763690
JM
24512016-09-13 Jason Merrill <jason@redhat.com>
2452 Tom de Vries <tom@codesourcery.com>
2453
2454 PR c++/77427
2455 * c-common.c (set_underlying_type): Don't treat array as builtin type.
2456
9453eee9
JM
24572016-09-13 Jason Merrill <jason@redhat.com>
2458
2459 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2460 limit types at all.
2461
e96809e3
JM
24622016-09-12 Jason Merrill <jason@redhat.com>
2463
2464 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
2465 bit/byte confusion, allow large alignment for types.
2466
54dcdb88
BE
24672016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2468
2469 PR c++/77496
2470 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
2471
d1463eb9
DM
24722016-09-12 David Malcolm <dmalcolm@redhat.com>
2473
2474 PR c/72858
2475 * c-format.c (argument_parser::check_argument_type): Add params
2476 "type_start" and "conversion_char". Use the former to generate
2477 offset_to_type_start and pass it and conversion_char to
2478 check_format_types.
2479 (check_format_info_main): Capture the start of the type
2480 information as "type_start", and pass it an format_char
2481 to arg_parser.check_argument_type.
2482 (check_format_types): Provide an example in the leading comment.
2483 Add params "offset_to_type_start" and "conversion_char"; pass
2484 them to format_type_warning calls.
2485 (test_get_modifier_for_format_len): Likewise.
2486 (matching_type_p): New function.
2487 (get_format_for_type): Add param "conversion_char" and move
2488 implementation into...
2489 (get_format_for_type_1): ...new function, called twice.
2490 Use new function matching_type_p rather than checking for
2491 TYPE_CANONICAL equality.
2492 (get_corrected_substring): New function.
2493 (format_type_warning): Provide an example in the leading comment.
2494 Add params "offset_to_type_start" and "conversion_char". Replace
2495 call to get_format_for_type with call to get_corrected_substring
2496 and move rejection of hints for widths/precisions there.
2497 (assert_format_for_type_streq): Add param "conversion_char".
2498 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
2499 (test_get_format_for_type_printf): Add conversion chars to the
2500 tests, adding coverage for various combinations of integer
2501 vs double conversions, and for preserving octal and hexadecimal
2502 conversions.
2503 (test_get_format_for_type_scanf): Add conversion chars to the
2504 tests.
2505
5b28efbb
TV
25062016-09-10 Tom de Vries <tom@codesourcery.com>
2507
2508 PR C/71602
2509 * c-common.c (build_va_arg): Handle more strict
2510 targetm.canonical_va_list_type. Replace first argument type error with
2511 assert.
2512
3f0177e7
MS
25132016-09-09 Martin Sebor <msebor@redhat.com>
2514
2515 PR c/77520
2516 PR c/77521
2517 * c-format.c (argument_parser::find_format_char_info): Use %qc
2518 format directive unconditionally.
2519
af63ba4b
JM
25202016-09-09 Jason Merrill <jason@redhat.com>
2521
2522 Implement C++17 new of over-aligned types.
2523 * c.opt: Add -faligned-new and -Waligned-new.
2524 * c-common.c (max_align_t_align): Split out from...
2525 (cxx_fundamental_alignment_p): ...here.
2526 * c-common.h: Declare it.
2527 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
2528
c65248cb
JM
25292016-09-09 Joseph Myers <joseph@codesourcery.com>
2530
2531 * c-cppbuiltin.c (builtin_define_type_width): New function.
2532 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
2533 macros.
2534
e5106e27
DM
25352016-09-07 David Malcolm <dmalcolm@redhat.com>
2536
2537 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
2538 a POINTER_TYPE.
2539 (substring_loc::get_location): Move to substring-locations.c,
2540 keeping implementation as...
2541 (c_get_substring_location): New function, from the above, reworked
2542 to use accessors rather than member lookup.
2543 * c-common.h (class substring_loc): Move to substring-locations.h,
2544 replacing with a forward decl.
2545 (c_get_substring_location): New decl.
2546 * c-format.c: Include "substring-locations.h".
2547 (format_warning_va): Move to substring-locations.c.
2548 (format_warning_at_substring): Likewise.
2549
a42e7952
MS
25502016-09-06 Martin Sebor <msebor@redhat.com>
2551
2552 PR c/77336
2553 * c-format.c (check_function_format): Avoid issuing warnings for
2554 functions unless they call format functions with non-constant
2555 format strings.
2556
b772a565
RB
25572016-09-06 Richard Biener <rguenther@suse.de>
2558
2559 PR c/77450
2560 * c-common.c (c_common_mark_addressable_vec): Handle
2561 COMPOUND_LITERAL_EXPR.
2562
25ff5dd3
MP
25632016-09-05 Marek Polacek <polacek@redhat.com>
2564
2565 PR c/77423
2566 * c-common.c (bool_promoted_to_int_p): New function.
2567 (expr_has_boolean_operands_p): New function.
2568 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
2569 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
2570
21234eb5
TV
25712016-09-04 Tom de Vries <tom@codesourcery.com>
2572
2573 revert:
2574 2016-08-29 Tom de Vries <tom@codesourcery.com>
2575
2576 * c-common.c (build_va_arg): Replace first argument type error
2577 with assert.
2578
9dc5773f
JJ
25792016-09-02 Jakub Jelinek <jakub@redhat.com>
2580
2581 PR c/65467
2582 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
2583 (c_finish_omp_for): Reject _Atomic qualified iterators.
2584
25852016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
2586
2587 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
2588 size to guarantee it fits the output of the formatted function
2589 regardless of its arguments.
2590
295844f6
MP
25912016-09-01 Marek Polacek <polacek@redhat.com>
2592
2593 PR c/7652
2594 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
2595 FALLTHRU comments.
2596
3d06b6f2
MP
25972016-08-29 Marek Polacek <polacek@redhat.com>
2598
2599 PR c/77292
2600 * c-common.c (warn_logical_not_parentheses): Don't warn for
2601 a comparison or a logical operator.
2602
34cedad5
TV
26032016-08-29 Tom de Vries <tom@codesourcery.com>
2604
2605 * c-common.c (build_va_arg): Fix type comparison assert.
2606
f162d717
TV
26072016-08-29 Tom de Vries <tom@codesourcery.com>
2608
2609 * c-common.c (build_va_arg): Replace first argument type error
2610 with assert.
2611
ba9bbd6f
TV
26122016-08-29 Tom de Vries <tom@codesourcery.com>
2613
2614 PR c/77398
2615 * c-common.c (build_va_arg): Add first argument error. Build va_arg
2616 with error_mark_node as va_list instead of with illegal va_list.
2617
ebef225f
MP
26182016-08-25 Marek Polacek <polacek@redhat.com>
2619 David Malcolm <dmalcolm@redhat.com>
2620
2621 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
2622 * c-common.h (warn_logical_not_parentheses): Update declaration.
2623
b00e6e75
MP
26242016-08-22 Marek Polacek <polacek@redhat.com>
2625
2626 PR c++/77321
2627 * c-common.c (warn_for_memset): Check type for null.
2628
6dc198e3
JM
26292016-08-22 Joseph Myers <joseph@codesourcery.com>
2630
14ec014e 2631 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
2632 _FloatNx types for suffixes for built-in functions.
2633
c65699ef
JM
26342016-08-19 Joseph Myers <joseph@codesourcery.com>
2635
2636 PR c/32187
2637 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2638 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2639 (RID_FLOAT128X): New enum rid values.
2640 (CASE_RID_FLOATN_NX): New macro.
2641 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2642 keywords.
2643 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2644 corresponding complex types.
2645 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2646 _FloatNx and corresponding complex types.
2647 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2648 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2649 and _FloatNx types for the widest type for determining
2650 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
2651 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
2652 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2653 and _FloatNx types.
2654 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2655 constants.
2656 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2657 _FloatNx types.
2658
cc015f3a
DM
26592016-08-18 David Malcolm <dmalcolm@redhat.com>
2660
2661 * c-opts.c (c_diagnostic_finalizer): Update for change to
2662 diagnostic_show_locus.
2663
cb18fd07
DM
26642016-08-18 David Malcolm <dmalcolm@redhat.com>
2665
2666 * c-common.c: Include "spellcheck.h".
2667 (cb_get_suggestion): New function.
2668 * c-common.h (cb_get_suggestion): New decl.
2669 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2670 cb_get_suggestion.
2671
a76989dc
MP
26722016-08-18 Marek Polacek <polacek@redhat.com>
2673
2674 PR c/71514
2675 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2676 and pointer-to-VLA.
2677
65e736c0
DM
26782016-08-16 David Malcolm <dmalcolm@redhat.com>
2679
2680 PR c/72857
2681 * c-common.c (substring_loc::get_range): Rename to...
2682 (substring_loc::get_location): ...this, converting param from a
2683 source_range * to a location_t *. Call
2684 get_source_location_for_substring rather than
2685 get_source_range_for_substring, and pass in m_caret_idx.
2686 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2687 (substring_loc::get_range): Replace with...
2688 (substring_loc::get_location): ...this.
2689 (substring_loc::set_caret_index): New method.
2690 (substring_loc): Add field m_caret_idx.
2691 * c-format.c (format_warning_va): Update for above changes.
2692 Rename local "substring_loc" to "fmt_substring_loc" to avoid
2693 clashing with type name.
2694 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2695 (check_argument_type): Likewise.
2696 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2697 Use a copy when emitting warnings, setting the caret index from TYPE.
2698
7e1dde14 26992016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 2700 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
2701
2702 * c-ada-spec.c (dump_number): New function.
2703 (handle_escape_character): Likewise.
2704 (print_ada_macros): Add handling of constant integers and strings.
2705
191816a3
MP
27062016-08-12 Marek Polacek <polacek@redhat.com>
2707
2708 PR c/7652
2709 * c-common.c (scalar_to_vector): Adjust fall through comment.
2710 * c-opts.c (c_common_handle_option): Likewise.
2711 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2712 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2713 fall through comment.
2714 * cilk.c (extract_free_variables): Add FALLTHRU.
2715
452df4a4
JM
27162016-08-10 Jason Merrill <jason@redhat.com>
2717
2718 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2719
f3365c12
JM
27202016-08-09 Jason Merrill <jason@redhat.com>
2721
2722 * c-common.c (c_common_attribute_table): vector_size affects type
2723 identity.
2724
f0bc3323
MP
27252016-08-09 Marek Polacek <polacek@redhat.com>
2726
2727 PR c/7652
2728 * c-ada-spec.c (dump_generic_ada_node): Add return.
2729
98e5a19a
JM
27302016-08-09 Jason Merrill <jason@redhat.com>
2731
2732 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2733 C++17 constexpr lambdas.
2734
895aa8e1
DM
27352016-08-08 David Malcolm <dmalcolm@redhat.com>
2736
2737 PR c/64955
2738 * c-common.h (selftest::c_format_c_tests): New declaration.
2739 (selftest::run_c_tests): New declaration.
2740 * c-format.c: Include "selftest.h.
2741 (format_warning_va): Add param "corrected_substring" and use
2742 it to add a replacement fix-it hint.
2743 (format_warning_at_substring): Likewise.
2744 (format_warning_at_char): Update for new param of
2745 format_warning_va.
2746 (argument_parser::check_argument_type): Pass "fki" to
2747 check_format_types.
2748 (check_format_types): Add param "fki" and pass it to
2749 format_type_warning.
2750 (deref_n_times): New function.
2751 (get_modifier_for_format_len): New function.
2752 (selftest::test_get_modifier_for_format_len): New function.
2753 (get_format_for_type): New function.
2754 (format_type_warning): Add param "fki" and use it to attempt
2755 to provide hints for argument types when calling
2756 format_warning_at_substring.
2757 (selftest::get_info): New function.
2758 (selftest::assert_format_for_type_streq): New function.
2759 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2760 (selftest::test_get_format_for_type_printf): New function.
2761 (selftest::test_get_format_for_type_scanf): New function.
2762 (selftest::c_format_c_tests): New function.
2763
e52ed3fe
DM
27642016-08-08 David Malcolm <dmalcolm@redhat.com>
2765
2766 PR c/52952
2767 * c-format.c: Include "diagnostic.h".
2768 (location_column_from_byte_offset): Delete.
2769 (location_from_offset): Delete.
2770 (format_warning_va): New function.
2771 (format_warning_at_substring): New function.
2772 (format_warning_at_char): New function.
2773 (check_format_arg): Capture location of format_tree and pass to
2774 check_format_info_main.
2775 (argument_parser): Add fields "start_of_this_format" and
2776 "format_string_cst".
2777 (flag_chars_t::validate): Add param "format_string_cst". Convert
2778 warning_at call using location_from_offset to call to
2779 format_warning_at_char.
2780 (argument_parser::argument_parser): Add param "format_string_cst_"
2781 and use use it to initialize field "format_string_cst".
2782 Initialize new field "start_of_this_format".
2783 (argument_parser::read_format_flags): Convert warning_at call
2784 using location_from_offset to a call to format_warning_at_char.
2785 (argument_parser::read_any_format_left_precision): Likewise.
2786 (argument_parser::read_any_format_precision): Likewise.
2787 (argument_parser::read_any_other_modifier): Likewise.
2788 (argument_parser::find_format_char_info): Likewise, in three places.
2789 (argument_parser::parse_any_scan_set): Likewise, in one place.
2790 (argument_parser::handle_conversions): Likewise, in two places.
2791 (argument_parser::check_argument_type): Add param "fmt_param_loc"
2792 and use it to make a substring_loc. Pass the latter to
2793 check_format_types.
2794 (check_format_info_main): Add params "fmt_param_loc" and
2795 "format_string_cst". Convert warning_at calls using
2796 location_from_offset to calls to format_warning_at_char. Pass the
2797 new params to the arg_parser ctor. Pass "format_string_cst" to
2798 flag_chars.validate. Pass "fmt_param_loc" to
2799 arg_parser.check_argument_type.
2800 (check_format_types): Convert first param from a location_t
2801 to a const substring_loc & and rename to "fmt_loc". Attempt
2802 to extract the range of the relevant parameter and pass it
2803 to format_type_warning.
2804 (format_type_warning): Convert first param from a location_t
2805 to a const substring_loc & and rename to "fmt_loc". Add
2806 params "param_range" and "type". Replace calls to warning_at
2807 with calls to format_warning_at_substring.
2808
1c4d457e
DM
28092016-08-08 David Malcolm <dmalcolm@redhat.com>
2810
2811 * c-format.c (class flag_chars_t): New class.
2812 (struct length_modifier): New struct.
2813 (class argument_parser): New class.
2814 (flag_chars_t::flag_chars_t): New ctor.
2815 (flag_chars_t::has_char_p): New method.
2816 (flag_chars_t::add_char): New method.
2817 (flag_chars_t::validate): New method.
2818 (flag_chars_t::get_alloc_flag): New method.
2819 (flag_chars_t::assignment_suppression_p): New method.
2820 (argument_parser::argument_parser): New ctor.
2821 (argument_parser::read_any_dollar): New method.
2822 (argument_parser::read_format_flags): New method.
2823 (argument_parser::read_any_format_width): New method.
2824 (argument_parser::read_any_format_left_precision): New method.
2825 (argument_parser::read_any_format_precision): New method.
2826 (argument_parser::handle_alloc_chars): New method.
2827 (argument_parser::read_any_length_modifier): New method.
2828 (argument_parser::read_any_other_modifier): New method.
2829 (argument_parser::find_format_char_info): New method.
2830 (argument_parser::validate_flag_pairs): New method.
2831 (argument_parser::give_y2k_warnings): New method.
2832 (argument_parser::parse_any_scan_set): New method.
2833 (argument_parser::handle_conversions): New method.
2834 (argument_parser::check_argument_type): New method.
2835 (check_format_info_main): Introduce classes argument_parser
2836 and flag_chars_t, moving the code within the loop into methods
2837 of these classes. Make various locals "const".
2838
88fa5555
DM
28392016-08-05 David Malcolm <dmalcolm@redhat.com>
2840
2841 * c-common.c: Include "substring-locations.h".
2842 (get_cpp_ttype_from_string_type): New function.
2843 (g_string_concat_db): New global.
2844 (substring_loc::get_range): New method.
2845 * c-common.h (g_string_concat_db): New declaration.
2846 (class substring_loc): New class.
2847 * c-lex.c (lex_string): When concatenating strings, capture the
2848 locations of all tokens using a new obstack, and record the
2849 concatenation locations within g_string_concat_db.
2850 * c-opts.c (c_common_init_options): Construct g_string_concat_db
2851 on the ggc-heap.
2852
78169471
MP
28532016-07-29 Marek Polacek <polacek@redhat.com>
2854
638fc14f
MP
2855 PR c/71926
2856 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
2857 parentheses warning.
2858
78169471
MP
2859 PR c/71574
2860 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
2861
1225d6b1
ML
28622016-07-28 Martin Liska <mliska@suse.cz>
2863
2864 PR gcov-profile/68025
2865 * c-common.c (handle_no_profile_instrument_function_attribute):
2866
ec1e2a40
BE
28672016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
2868
2869 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
2870 BITS_PER_UNIT_LOG.
2871
5ec2cd9f
JM
28722016-07-25 Jason Merrill <jason@redhat.com>
2873
2874 PR c++/65970
2875 * c.opt (fconstexpr-loop-limit): New.
2876
9dc5773f 28772016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
2878
2879 PR c++/71675
2880 * c-common.c (resolve_overloaded_builtin): Avoid converting
2881 __atomic_compare_exchange_n return type to that of what its
2882 first argument points to.
2883
e3fe09c1
UB
28842016-07-22 Uros Bizjak <ubizjak@gmail.com>
2885
2886 * c-common.c: Use HOST_WIDE_INT_M1U instead of
2887 ~(unsigned HOST_WIDE_INT) 0.
2888
bc91c436
ML
28892016-07-22 Martin Liska <mliska@suse.cz>
2890
2891 PR gcov-profile/69028
2892 PR gcov-profile/62047
2893 * cilk.c (create_cilk_helper_decl): Set location of a new decl
2894 to the current_function_decl.
2895
451dcc66
JM
28962016-07-21 Jason Merrill <jason@redhat.com>
2897
2898 PR c++/65168
2899 * c-common.c (c_common_truthvalue_conversion): Check
2900 c_inhibit_evaluation_warnings for warning about address of
2901 reference.
2902
de6a69ee
DM
29032016-07-20 David Malcolm <dmalcolm@redhat.com>
2904
2905 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
2906 const char *.
2907
d022c55a
JM
29082016-07-15 Jason Merrill <jason@redhat.com>
2909
2910 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2911
ddbbcb19
JJ
29122016-07-15 Jakub Jelinek <jakub@redhat.com>
2913
2914 PR c/71858
2915 * c-common.h (enum lookup_name_fuzzy_kind): Add
2916 FUZZY_LOOKUP_FUNCTION_NAME.
2917
d0cf395a
JM
29182016-07-08 Jason Merrill <jason@redhat.com>
2919
2920 P0145: Refining Expression Order for C++.
2921 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
2922 * c-opts.c: Adjust.
2923
98d44e93
MT
29242016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
2925
2926 PR c++/71214
2927 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
2928
f9d8d994
TS
29292016-06-29 Thomas Schwinge <thomas@codesourcery.com>
2930
2931 * c-pragma.h (enum pragma_kind): Rename
2932 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
2933 users.
2934
4aa83879
RB
29352016-06-29 Richard Biener <rguenther@suse.de>
2936
2937 PR middle-end/71002
2938 * c-common.c (c_common_get_alias_set): Remove union type punning case.
2939
a25bd9e6
JM
29402016-06-24 Jason Merrill <jason@redhat.com>
2941
2942 P0145R2: Refining Expression Order for C++.
2943 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
2944 MODIFY_EXPR.
2945
a86451b9
JJ
29462016-06-24 Jakub Jelinek <jakub@redhat.com>
2947
2948 * c-common.c (check_builtin_function_arguments): Require last
2949 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
2950 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
2951 if the last argument is pointer to enumerated or boolean type.
2952
1a4f11c8
DM
29532016-06-22 David Malcolm <dmalcolm@redhat.com>
2954
2955 PR c/70339
2956 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
2957 (lookup_name_fuzzy): New prototype.
2958
fe55692c
JDA
29592016-06-21 John David Anglin <danglin@gcc.gnu.org>
2960
2961 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
2962
4eb24e01
JM
29632016-06-14 Jason Merrill <jason@redhat.com>
2964
2965 P0145R2: Refining Expression Order for C++.
2966 * c.opt (fargs-in-order): New.
2967 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
2968
ef7cf206
JJ
29692016-06-13 Jakub Jelinek <jakub@redhat.com>
2970
0dda258b
JJ
2971 PR sanitizer/71498
2972 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
2973 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
2974
ef7cf206
JJ
2975 PR preprocessor/71183
2976 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
2977 to cb_get_source_date_epoch.
2978
50b15873
JJ
29792016-06-10 Jakub Jelinek <jakub@redhat.com>
2980
2981 PR c/68657
2982 * c.opt (Wpsabi): Add Warning flag.
2983
4d926e34
MS
29842016-06-10 Martin Sebor <msebor@redhat.com>
2985
2986 PR c/71392
14ec014e 2987 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
2988 the nonnull attribute in type-generic builtins.
2989
e01b4e16
MS
29902016-06-09 Martin Sebor <msebor@redhat.com>
2991
2992 PR c/70883
2993 * c-common.c (builtin_function_validate_nargs): Make text of error
2994 message consistent with others like it.
2995
44a845ca
MS
29962016-06-08 Martin Sebor <msebor@redhat.com>
2997 Jakub Jelinek <jakub@redhat.com>
2998
2999 PR c++/70507
3000 PR c/68120
3001 * c-common.c (check_builtin_function_arguments): Handle
3002 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
3003
a80a7051
RB
30042016-06-08 Richard Biener <rguenther@suse.de>
3005
3006 * c-common.c (parse_optimize_options): Improve diagnostic messages.
3007
bfd67b47
RB
30082016-06-07 Richard Biener <rguenther@suse.de>
3009
3010 PR c/61564
3011 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
3012 options and warn about others.
3013
15c98b2e
ES
30142016-06-01 Eduard Sanou <dhole@openmailbox.org>
3015
3016 * c-common.c (get_source_date_epoch): Rename to
3017 cb_get_source_date_epoch.
3018 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
3019 message when the parsing fails. Use error_at instead of fatal_error.
3020 * c-common.h (get_source_date_epoch): Rename to
3021 cb_get_source_date_epoch.
3022 * c-common.h (cb_get_source_date_epoch): Prototype.
3023 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
3024 * c-common.h (c_omp_region_type): Remove trailing comma.
3025 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
3026 * c-lex.c (c_lex_with_flags): Remove initialization of
3027 pfile->source_date_epoch.
3028
00631022
JJ
30292016-05-30 Jakub Jelinek <jakub@redhat.com>
3030
3031 PR c++/71349
3032 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
3033 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
3034 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
3035 instead of C_OMP_CLAUSE_SPLIT_FOR.
3036
f17a223d
RB
30372016-05-24 Richard Biener <rguenther@suse.de>
3038
3039 PR middle-end/70434
3040 PR c/69504
3041 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
3042 (convert_vector_to_array_for_subscript): ... this.
3043 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
3044 VIEW_CONVERT_EXPR to an array type. Rename to ...
3045 (convert_vector_to_array_for_subscript): ... this.
3046
4f2e1536
MP
30472016-05-12 Marek Polacek <polacek@redhat.com>
3048
3049 PR c/70756
3050 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
3051 size_in_bytes and pass LOC to it.
3052
d6e83a8d
MM
30532016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
3054
3055 PR c/43651
3056 * c.opt (Wduplicate-decl-specifier): New option.
3057
5c3a10fb
MP
30582016-05-11 Marek Polacek <polacek@redhat.com>
3059
3060 PR c++/71024
3061 * c-common.c (diagnose_mismatched_attributes): New function.
3062 * c-common.h (diagnose_mismatched_attributes): Declare.
3063
deef7113
MP
30642016-05-04 Marek Polacek <polacek@redhat.com>
3065
3066 * c.opt (Wdangling-else): New option.
3067
79ce98bc
MP
30682016-05-03 Marek Polacek <polacek@redhat.com>
3069
3070 PR c/70859
3071 * c-common.c (builtin_function_validate_nargs): Add location
3072 parameter. Use it.
3073 (check_builtin_function_arguments): Add location and arguments
3074 parameters. Use them.
3075 * c-common.h (check_builtin_function_arguments): Update declaration.
3076
381cdae4
RB
30772016-05-03 Richard Biener <rguenther@suse.de>
3078
3079 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
3080 allow call args to gimplify to SSA names.
3081
1d793c34
MP
30822016-05-03 Marek Polacek <polacek@redhat.com>
3083
3084 * c-common.h (enum c_omp_region_type): Remove stray comma.
3085
77886428
CP
30862016-05-02 Cesar Philippidis <cesar@codesourcery.com>
3087
3088 * c-common.h (enum c_omp_region_type): Define.
3089
697e0b28
RS
30902016-05-02 Richard Sandiford <richard.sandiford@arm.com>
3091
3092 * c-common.c (shorten_compare): Use wi::to_wide.
3093
e7ff0319
CP
30942016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3095
3096 PR middle-end/70626
3097 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
3098 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
3099 reduction clauses in acc parallel loops.
3100
2fff3db8
MP
31012016-04-29 Marek Polacek <polacek@redhat.com>
3102
3103 PR c/70852
3104 * c-common.c (warn_for_memset): Check domain before accessing it.
3105
509063eb
DV
31062016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
3107
3108 PR/69089
3109 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
3110 "aligned" attribute.
3111
b632761d
JM
31122016-04-28 Jason Merrill <jason@redhat.com>
3113
3114 * c-lex.c (c_common_has_attribute): Handle nodiscard.
3115
174f6622
ES
31162016-04-28 Eduard Sanou <dhole@openmailbox.org>
3117 Matthias Klose <doko@debian.org>
3118
3119 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 3120 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
3121 handling.
3122 * c-common.h (get_source_date_epoch): Prototype.
3123 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
3124
6bc2bb18
RB
31252015-04-27 Ryan Burn <contact@rnburn.com>
3126
3127 PR c++/69024
3128 PR c++/68997
3129 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
3130 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
3131 external linkage.
3132 (cilk_detect_and_unwrap): Corresponding changes.
3133 (extract_free_variables): Don't extract free variables from
3134 AGGR_INIT_EXPR slot.
3135 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
3136 (cilk_recognize_spawn): Likewise.
3137
c1e1f433
BS
31382016-04-27 Bernd Schmidt <bschmidt@redhat.com>
3139
3140 * c.opt (Wmemset-elt-size): New option.
3141 * c-common.c (warn_for_memset): New function.
3142 * c-common.h (warn_for_memset): Declare.
3143
d067e05f
JM
31442016-04-25 Jason Merrill <jason@redhat.com>
3145
3146 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
3147 No longer static.
3148 * c-common.h: Declare it.
3149 * c-lex.c (c_common_has_attribute): Add maybe_unused.
3150
9aa36ae5
JM
31512016-04-22 Jason Merrill <jason@redhat.com>
3152
3153 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
3154
477d4906
IV
31552016-04-20 Ilya Verbin <ilya.verbin@intel.com>
3156
3157 PR c++/69363
3158 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
3159 * c-common.h (c_finish_cilk_clauses): Remove declaration.
3160
fe37c7af
MM
31612016-04-18 Michael Matz <matz@suse.de>
3162
3163 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
3164 and SET_DECL_ALIGN.
3165
23f2660f
EB
31662016-04-17 Eric Botcazou <ebotcazou@adacore.com>
3167
3168 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
3169 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
3170 to incomplete types.
3171 (dump_nested_type): Remove redundant tests and tidy up.
3172 (print_ada_declaration): Also set TREE_VISITED on the declaration of
3173 a type which is the typedef of an original type.
3174
1e77281b
MP
31752016-04-15 Marek Polacek <polacek@redhat.com>
3176
3177 PR c/70651
3178 * c-common.c (build_va_arg): Change two asserts into errors and return
3179 error_mark_node.
3180
b3a77f21
MP
31812016-04-13 Marek Polacek <polacek@redhat.com>
3182
3183 PR c++/70639
3184 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
3185 for switch statements, too.
3186
322b8466
JM
31872016-03-28 Jason Merrill <jason@redhat.com>
3188
3189 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
3190
fbdb6baf
MP
31912016-03-23 Marek Polacek <polacek@redhat.com>
3192
3193 PR c++/69884
3194 * c.opt (Wignored-attributes): New option.
3195
5c240f4d
DM
31962016-03-22 David Malcolm <dmalcolm@redhat.com>
3197
3198 PR c/69993
3199 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
3200 diagnostic text, reversing the order of the warning and note so
3201 that they appear in source order.
3202
14ba7b28
MP
32032016-03-17 Marek Polacek <polacek@redhat.com>
3204
3205 PR c/69407
3206 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
3207 operations.
3208
08a1cadc
JM
32092016-03-14 Jason Merrill <jason@redhat.com>
3210
2aaeea19
JM
3211 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
3212
08a1cadc
JM
3213 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
3214
c06d25bb
RB
32152016-03-09 Richard Biener <rguenther@suse.de>
3216
3217 PR c/70143
3218 * c-common.c (strict_aliasing_warning): Add back
3219 alias_sets_conflict_p check.
3220
80aac5c8
JM
32212016-03-08 Jason Merrill <jason@redhat.com>
3222
3223 * c-opts.c (set_std_cxx1z): Don't enable concepts.
3224
64b23c13
DM
32252016-03-04 David Malcolm <dmalcolm@redhat.com>
3226
3227 PR c/68187
3228 * c-indentation.c (get_visual_column): Move code to determine next
3229 tab stop to...
3230 (next_tab_stop): ...this new function.
3231 (line_contains_hash_if): Delete function.
3232 (detect_preprocessor_logic): Delete function.
3233 (get_first_nws_vis_column): New function.
3234 (detect_intervening_unindent): New function.
3235 (should_warn_for_misleading_indentation): Replace call to
3236 detect_preprocessor_logic with a call to
3237 detect_intervening_unindent.
3238
729526f5
DM
32392016-03-04 David Malcolm <dmalcolm@redhat.com>
3240
3241 PR c/68187
3242 * c-indentation.c (should_warn_for_misleading_indentation): When
3243 suppressing warnings about cases where the guard and body are on
3244 the same column, only use the first non-whitespace column in place
3245 of the guard token column when dealing with "else" clauses.
3246 When rejecting aligned BODY and NEXT, loosen the requirement
3247 from equality with the first non-whitespace of guard to simply
3248 that they not be indented relative to it.
3249
e9a35493
RB
32502016-03-04 Richard Biener <rguenther@suse.de>
3251
3252 PR c++/70054
3253 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
3254 instead of alias_sets_conflict_p.
3255
1be56bc5
MP
32562016-03-01 Marek Polacek <polacek@redhat.com>
3257
3258 PR c++/69795
3259 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
3260 any DECL.
3261
35886f0b
MS
32622016-02-22 Martin Sebor <msebor@redhat.com>
3263
3264 PR middle-end/69780
3265 * c-common.c (check_builtin_function_arguments): Validate and
3266 reject invalid arguments to __builtin_alloca_with_align.
3267
4246c8da
MW
32682016-02-20 Mark Wielaard <mjw@redhat.com>
3269
3270 PR c/28901
3271 * c.opt (Wunused-const-variable): Turn into Alias for...
3272 (Wunused-const-variable=): New option.
3273
268be88c
BE
32742016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3275
3276 PR c++/69865
3277 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
3278 here...
3279 (c_common_init_options): ...to here.
3280 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
3281
871b3f47
JJ
32822016-02-19 Jakub Jelinek <jakub@redhat.com>
3283
3284 PR c++/69826
3285 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
3286 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
3287 flag_preprocess_only.
3288
bf14eba2
JJ
32892016-02-16 Jakub Jelinek <jakub@redhat.com>
3290
3291 PR c/69835
3292 * c.opt (Wnonnull-compare): Enable for -Wall.
3293
ba6b3795
JJ
32942016-02-15 Jakub Jelinek <jakub@redhat.com>
3295
3296 PR c++/69797
3297 * c-common.c (sync_resolve_size): Diagnose too few arguments
3298 even when params is non-NULL empty vector.
3299
a011cd92
BS
33002016-02-08 Bernd Schmidt <bschmidt@redhat.com>
3301
3302 PR target/60410
3303 * c.opt (fshort-double): Remove.
3304
46cb9332
MS
33052016-02-05 Martin Sebor <msebor@redhat.com>
3306
3307 PR c++/69662
3308 * c.opt (Warning options): Update -Wplacement-new to take
3309 an optional argument.
3310
e1b81f2b
JJ
33112016-02-01 Jakub Jelinek <jakub@redhat.com>
3312
3313 PR preprocessor/69543
3314 PR c/69558
3315 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
3316 instead of loc to control_warning_option.
3317
b6adbb9f
NS
33182016-02-01 Nathan Sidwell <nathan@codesourcery.com>
3319
3320 * c.opt (fopenacc-dim=): New option.
3321
5d70666e
RB
33222016-01-27 Ryan Burn <contact@rnburn.com>
3323
3324 PR cilkplus/69267
3325 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
3326 gimplify_arg. Removed superfluous post_p argument.
3327 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
3328 superfluous post_p argument.
3329 * c-gimplify.c (c_gimplify_expr): Likewise.
3330
01e1dea3
DM
33312016-01-26 David Malcolm <dmalcolm@redhat.com>
3332
3333 PR other/69006
3334 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
3335 pp_newline_and_flush with pp_flush.
3336
9f04a53e
MS
33372016-01-20 Martin Sebor <msebor@redhat.com>
3338
3339 PR c/69405
3340 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
3341 an incompatible argument when the argument isn't a valid tree node.
3342
7f26f7df
JM
33432016-01-18 Jason Merrill <jason@redhat.com>
3344
3345 PR c++/68767
3346 * c-common.c (check_function_arguments_recurse): Fold the whole
3347 COND_EXPR, not just the condition.
3348
f62bf092
TV
33492016-01-18 Tom de Vries <tom@codesourcery.com>
3350
3351 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
3352 classify as loop clause.
3353
e0a575ff
JJ
33542016-01-15 Jakub Jelinek <jakub@redhat.com>
3355
3356 PR bootstrap/68271
3357 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
3358 C++ FE no longer has limit on number of pragmas.
3359
33602015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
3361
3362 PR c++/69048
3363 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 3364 to add missing cleanup point.
b6e3db06 3365
c7df95d8
DM
33662016-01-14 David Malcolm <dmalcolm@redhat.com>
3367
3368 PR c++/68819
3369 * c-indentation.c (get_visual_column): Add location_t param.
3370 Handle the column number being zero by effectively disabling the
3371 warning, with an "inform".
3372 (should_warn_for_misleading_indentation): Add location_t argument
3373 for all uses of get_visual_column.
3374
21efdd80
PP
33752016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
3376
3377 PR c++/69029
3378 * c-indentation.c (should_warn_for_misleading_indentation):
3379 Don't warn about do-while statements.
3380
7a127fa7
MS
33812016-01-07 Martin Sebor <msebor@redhat.com>
3382
3383 PR c/68966
3384 * c-common.c (sync_resolve_size): Reject first argument when it's
3385 a pointer to _Bool.
3386
c589e975
DM
33872016-01-05 David Malcolm <dmalcolm@redhat.com>
3388
3389 PR c/69122
3390 * c-indentation.c (get_visual_column): Remove default argument.
3391 (should_warn_for_misleading_indentation): For the multiline case,
3392 update call to get_visual_column for next_stmt_exploc so that it
3393 captures the location of the first non-whitespace character in the
3394 relevant line. Don't issue warnings if there is non-whitespace
3395 before the next statement.
3396
818ab71a
JJ
33972016-01-04 Jakub Jelinek <jakub@redhat.com>
3398
3399 Update copyright years.
3400
745e411d
DM
34012015-12-21 David Malcolm <dmalcolm@redhat.com>
3402
3403 * c-common.c (binary_op_error): Convert first param from
3404 location_t to rich_location * and use it when emitting an error.
3405 * c-common.h (binary_op_error): Convert first param from
3406 location_t to rich_location *.
3407
de67c4c3
DM
34082015-12-16 David Malcolm <dmalcolm@redhat.com>
3409
3410 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
3411 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
3412
4a38b02b
IV
34132015-12-15 Ilya Verbin <ilya.verbin@intel.com>
3414
3415 * c-common.c (c_common_attribute_table): Handle "omp declare target
3416 link" attribute.
3417
54d62f51
JJ
34182015-12-14 Jakub Jelinek <jakub@redhat.com>
3419
3420 PR c/68833
3421 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
3422
8d4227c8
TB
34232014-12-12 Tobias Burnus <burnus@net-b.de>
3424
3425 PR fortran/68815
3426 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
3427 specifiers (%d, %i,%u and %c).
3428
f6069ccc
DM
34292015-12-10 David Malcolm <dmalcolm@redhat.com>
3430
3431 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
3432
63bbf46d
JJ
34332015-12-08 Jakub Jelinek <jakub@redhat.com>
3434
3435 PR c/48088
3436 PR c/68657
3437 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
3438 * c-pragma.c (handle_pragma_diagnostic): Adjust
3439 control_warning_option caller.
3440
f79520bb
DM
34412015-12-07 David Malcolm <dmalcolm@redhat.com>
3442
3443 * c-common.c (c_cpp_error): Update for change to
3444 rich_location::set_range.
3445
b3d5bc62
JJ
34462015-12-04 Paolo Bonzini <bonzini@gnu.org>
3447
3448 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
3449 shifting 1 out of the sign bit.
3450
34512015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
3452
3453 * c-common.c (c_common_attribute_table[]): Update max arguments
3454 count for "simd" attribute.
3455 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
3456
6eb4a537
JJ
34572015-12-03 Jakub Jelinek <jakub@redhat.com>
3458
3459 PR preprocessor/57580
3460 * c-ppoutput.c (print): Change printed field to bool.
3461 Move src_file last for smaller padding.
3462 (init_pp_output): Set print.printed to false instead of 0.
3463 (scan_translation_unit): Fix up formatting. Set print.printed
3464 to true after printing something other than newline.
3465 (scan_translation_unit_trad): Set print.printed to true instead of 1.
3466 (maybe_print_line_1): Set print.printed to false instead of 0.
3467 (print_line_1): Likewise.
3468 (do_line_change): Set print.printed to true instead of 1.
3469 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
3470 dump_macro): Set print.printed to false after printing newline.
3471
4250754e
JM
34722015-12-02 Jason Merrill <jason@redhat.com>
3473
f479b43d
JM
3474 * c-common.c (fold_for_warn): New.
3475 (warn_logical_operator, warn_tautological_cmp)
3476 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
3477
4250754e
JM
3478 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
3479 (c_fully_fold_internal, decl_constant_value_for_optimization):
3480 Move to c/c-fold.c.
3481 * c-common.h: Don't declare decl_constant_value_for_optimization.
3482
e9e32ee6
JM
34832015-12-02 Joseph Myers <joseph@codesourcery.com>
3484
3485 PR c/68162
3486 * c-common.h (c_build_qualified_type): Add extra default
3487 arguments.
3488
37d5ad46
JB
34892015-12-01 Julian Brown <julian@codesourcery.com>
3490 Cesar Philippidis <cesar@codesourcery.com>
3491 James Norris <James_Norris@mentor.com>
3492
3493 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
3494 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
3495 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
3496
f07862c7
EB
34972015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3498
3499 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
3500 (decl_sloc_common): Delete and move bulk of processing to...
3501 (decl_sloc): ...here.
3502 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
3503 (dump_ada_double_name): Remove S parameter and compute the suffix.
3504 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
3505 element type and deal with an anonymous one.
3506 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
3507 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
3508 and remove reference to QUAL_UNION_TYPE.
3509 (dump_nested_types): Make 2 passes on the fields and move bulk to...
3510 (dump_nested_type): ...here. New function extracted from above.
3511 Generate a full declaration for anonymous element type of arrays.
3512 (print_ada_declaration): Really skip anonymous declarations. Remove
3513 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
3514 Clean up processing of declarations of array types and objects.
3515 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
3516 Remove obsolete code and tidy up.
3517
75c8aac3
JH
35182015-11-29 Jan Hubicka <hubicka@ucw.cz>
3519
3520 PR c/67581
3521 * c-common.c (handle_transparent_union_attribute): Update
3522 also type variants.
3523
b58d3df2
ML
35242015-11-27 Martin Liska <mliska@suse.cz>
3525
3526 PR c++/68312
3527 * array-notation-common.c (cilkplus_extract_an_triplets):
3528 Release vector of vectors.
3529 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
3530
89a01fcf
EB
35312015-11-26 Eric Botcazou <ebotcazou@adacore.com>
3532
3533 PR c++/68527
3534 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
3535 (print_ada_struct_decl): Likewise.
3536
cc5c5226
IZ
35372015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
3538
3539 PR c++/68001
3540 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
3541 * cilk.c (recognize_spawn): Determine location in a more precise
3542 way.
3543
269adb9d
JM
35442015-11-19 Jason Merrill <jason@redhat.com>
3545
3546 * c-common.c (shorten_compare): But look through macros from
3547 system headers.
3548
d0eccfcd
JM
35492015-11-18 Jason Merrill <jason@redhat.com>
3550
3551 * c-common.c (shorten_compare): Don't -Wtype-limits if the
3552 non-constant operand comes from a macro.
3553
3e44547c
JM
35542015-11-17 Jason Merrill <jason@redhat.com>
3555
3556 PR bootstrap/68346
3557 * c-common.c (warn_tautological_cmp): Fold before checking for
3558 constants.
3559
0f62c7a0
MP
35602015-11-16 Marek Polacek <polacek@redhat.com>
3561
3562 PR c++/68362
3563 * c-common.c (check_case_bounds): Fold low and high cases.
3564
a868811e
MP
35652015-11-16 Marek Polacek <polacek@redhat.com>
3566
3567 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
3568 * c-common.c (c_common_get_alias_set): Likewise.
3569 (handle_visibility_attribute): Likewise.
3570
fff77217
KY
35712015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3572
3573 * c-common.c (handle_simd_attribute): New.
3574 (struct attribute_spec): Add entry for "simd".
3575 (handle_simd_attribute): New.
3576
269e63b7
KT
35772015-11-13 Kai Tietz <ktietz70@googlemail.com>
3578
3579 * c-lex.c (interpret_float): Use fold_convert.
3580
ebedc9a3
DM
35812015-11-13 David Malcolm <dmalcolm@redhat.com>
3582
3583 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
3584 and store it on the result.
3585 * c-opts.c (c_common_init_options): Set
3586 global_dc->colorize_source_p.
3587
6e232ba4
JN
35882015-11-12 James Norris <jnorris@codesourcery.com>
3589 Joseph Myers <joseph@codesourcery.com>
3590
7365279f 3591 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
3592 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
3593 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
3594 PRAGMA_OACC_CLAUSE_LINK.
3595
e78bede6
MP
35962015-11-11 Marek Polacek <polacek@redhat.com>
3597
3598 PR c/68107
3599 PR c++/68266
3600 * c-common.c (valid_array_size_p): New function.
3601 * c-common.h (valid_array_size_p): Declare.
3602
3f8257db 36032015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
3604
3605 PR bootstrap/68271
3606 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
3607
69f293c9
AM
36082015-11-11 Andrew MacLeod <amacleod@redhat.com>
3609
3610 * array-notation-common.c: Remove unused header files.
3611 * c-ada-spec.c: Likewise.
3612 * c-cilkplus.c: Likewise.
3613 * c-common.c: Likewise.
3614 * c-cppbuiltin.c: Likewise.
3615 * c-dump.c: Likewise.
3616 * c-format.c: Likewise.
3617 * c-gimplify.c: Likewise.
3618 * c-indentation.c: Likewise.
3619 * c-lex.c: Likewise.
3620 * c-omp.c: Likewise.
3621 * c-opts.c: Likewise.
3622 * c-pch.c: Likewise.
3623 * c-ppoutput.c: Likewise.
3624 * c-pragma.c: Likewise.
3625 * c-pretty-print.c: Likewise.
3626 * c-semantics.c: Likewise.
3627 * c-ubsan.c: Likewise.
3628 * cilk.c: Likewise.
3629 * stub-objc.c: Likewise.
3630
3a40d81d
NS
36312015-11-09 Thomas Schwinge <thomas@codesourcery.com>
3632 Cesar Philippidis <cesar@codesourcery.com>
3633 James Norris <jnorris@codesourcery.com>
3634 Julian Brown <julian@codesourcery.com>
3635 Nathan Sidwell <nathan@codesourcery.com>
3636
3637 * c-pragma.c (oacc_pragmas): Add "routine".
3638 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3639
ee45a32d
EB
36402015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3641
3642 * c-common.c (c_common_attributes): Add scalar_storage_order.
3643 (handle_scalar_storage_order_attribute): New function.
3644 * c-pragma.c (global_sso): New variable.
3645 (maybe_apply_pragma_scalar_storage_order): New function.
3646 (handle_pragma_scalar_storage_order): Likewise.
3647 (init_pragma): Register scalar_storage_order.
3648 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3649 * c.opt (Wscalar-storage-order): New warning.
3650 (fsso-struct=): New option.
3651
eb11eb15
MS
36522015-11-08 Martin Sebor <msebor@redhat.com>
3653
3654 * c.opt (Wplacement-new): Add a period to the end of a sentence.
3655
0aad0198
RS
36562015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3657
3658 * c-common.c: Don't undef DEF_BUILTIN.
3659
8a645150
DM
36602015-11-06 David Malcolm <dmalcolm@redhat.com>
3661
3662 * c-common.c (c_cpp_error): Convert parameter from location_t to
3663 rich_location *. Eliminate the "column_override" parameter and
3664 the call to diagnostic_override_column.
3665 Update the "done_lexing" clause to set range 0
3666 on the rich_location, rather than overwriting a location_t.
3667 * c-common.h (c_cpp_error): Convert parameter from location_t to
3668 rich_location *. Eliminate the "column_override" parameter.
3669
7a5e4956
CP
36702015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3671 Thomas Schwinge <thomas@codesourcery.com>
3672 James Norris <jnorris@codesourcery.com>
3673
3674 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3675 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
3676 clauses with parallel and kernels and loops.
3677 * c-pragma.h (enum pragma_omp_clause): Add entries for
3678 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3679 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3680 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3681 INDEPENDENT,SEQ}.
3682 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3683
e2f5cc96
MS
36842015-11-05 Martin Sebor <msebor@redhat.com>
3685
3686 PR c++/67942
3687 * c.opt (-Wplacement-new): New option.
3688
e01d41e5
JJ
36892015-11-05 Jakub Jelinek <jakub@redhat.com>
3690
3691 * c-common.h (c_finish_omp_atomic): Add TEST argument.
3692 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3693 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
3694 save_expr or create_tmp_var* if TEST is true.
3695 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3696 Don't call add_stmt here.
3697 (struct c_omp_check_loop_iv_data): New type.
3698 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3699 c_omp_check_loop_iv_exprs): New functions.
3700 (c_omp_split_clauses): Adjust for lastprivate being allowed on
3701 distribute.
3702 (c_omp_declare_simd_clauses_to_numbers): Change
3703 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3704 (c_omp_declare_simd_clauses_to_decls): Similarly change those
3705 from numbers to PARM_DECLs.
3706
595278be
MM
37072015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3708
3709 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3710 flag_checking.
3711
3f8257db 37122015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
3713
3714 PR c++-common/67882
b3d5bc62
JJ
3715 * c-common.h (fold_offsetof_1): Add argument.
3716 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
3717 offsetof expressions that reference elements past the end of
3718 an array.
3719
4bf9e5a8
TS
37202015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3721 Chung-Lin Tang <cltang@codesourcery.com>
3722
3723 * c-pragma.c (oacc_pragmas): Add "atomic".
3724 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3725
3b1661a9
ES
37262015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3727
3728 * c-common.c (handle_target_clones_attribute): New.
3729 (c_common_attribute_table): Add handle_target_clones_attribute.
3730 (handle_always_inline_attribute): Add check on target_clones attribute.
3731 (handle_target_attribute): Ditto.
3732
2adfab87
AM
37332015-10-29 Andrew MacLeod <amacleod@redhat.com>
3734
3735 * array-notation-common.c: Reorder #include's and remove duplicates.
3736 * c-ada-spec.c: Likewise.
3737 * c-cilkplus.c: Likewise.
3738 * c-common.c: Likewise.
3739 * c-cppbuiltin.c: Likewise.
3740 * c-dump.c: Likewise.
3741 * c-format.c: Likewise.
3742 * c-gimplify.c: Likewise.
3743 * c-indentation.c: Likewise.
3744 * c-lex.c: Likewise.
3745 * c-omp.c: Likewise.
3746 * c-opts.c: Likewise.
3747 * c-pch.c: Likewise.
3748 * c-ppoutput.c: Likewise.
3749 * c-pragma.c: Likewise.
3750 * c-pretty-print.c: Likewise.
3751 * c-semantics.c: Likewise.
3752 * c-ubsan.c: Likewise.
3753 * cilk.c: Likewise.
3754 * stub-objc.c: Likewise.
3755
d90ec4f2
JM
37562015-10-28 Jason Merrill <jason@redhat.com>
3757
3758 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3759
88bae6f4
TS
37602015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3761 James Norris <jnorris@codesourcery.com>
3762 Cesar Philippidis <cesar@codesourcery.com>
3763
3764 PR c/64765
3765 PR c/64880
3766 * c-common.h (c_oacc_split_loop_clauses): Declare function.
3767 * c-omp.c (c_oacc_split_loop_clauses): New function.
3768
b1726d6c
MS
37692015-10-21 Martin Sebor <msebor@redhat.com>
3770
3771 PR driver/68043
3772 * c.opt: End each sentence that describes an option with a period.
3773
fa60eeb9
MP
37742015-10-20 Marek Polacek <polacek@redhat.com>
3775
3776 * array-notation-common.c (is_cilkplus_vector_p): Define.
3777 * c-common.h (is_cilkplus_vector_p): Declare.
3778
95979049
MP
37792015-10-20 Marek Polacek <polacek@redhat.com>
3780
3781 * c.opt (std=gnu++11): Do not describe as experimental.
3782 (std=gnu++14): Likewise.
3783
2a9fb712
JM
37842015-10-19 Jason Merrill <jason@redhat.com>
3785
3786 * c-cppbuiltin.c (c_cpp_builtins): Define
3787 __cpp_nontype_template_args.
3788
13b380a3
JM
37892015-10-19 Jason Merrill <jason@redhat.com>
3790
3791 * c-cppbuiltin.c (c_cpp_builtins): Define
3792 __cpp_enumerator_attributes, __cpp_fold_expressions,
3793 __cpp_unicode_characters.
3794
d9a6bd32
JJ
37952015-10-13 Jakub Jelinek <jakub@redhat.com>
3796 Aldy Hernandez <aldyh@redhat.com>
3797
3798 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3799 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3800 (c_define_builtins): Likewise.
3801 * c-common.h (enum c_omp_clause_split): Add
3802 C_OMP_CLAUSE_SPLIT_TASKLOOP.
3803 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3804 (c_finish_omp_for): Add ORIG_DECLV argument.
3805 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3806 201511 instead of 201307.
3807 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3808 OMP_CRITICAL_CLAUSES to it.
3809 (c_finish_omp_ordered): Add CLAUSES argument, set
3810 OMP_ORDERED_CLAUSES to it.
3811 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
3812 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
3813 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
3814 constructs and new OpenMP 4.5 clauses. Clear
3815 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
3816 verification code.
3817 * c-pragma.c (omp_pragmas_simd): Add taskloop.
3818 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
3819 (enum pragma_omp_clause): Add
3820 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
3821 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
3822
624d31fe
RS
38232015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3824
3825 * c-lex.c (interpret_float): Use real_equal instead of
3826 REAL_VALUES_EQUAL.
3827
b8fd7909
JM
38282015-10-04 Jason Merrill <jason@redhat.com>
3829
3830 Implement N4514, C++ Extensions for Transactional Memory.
3831 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
3832 (c_common_attribute_table): Add transaction_safe_dynamic.
3833 transaction_safe now affects type identity.
3834 (handle_tm_attribute): Handle transaction_safe_dynamic.
3835 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
3836 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
3837 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
3838 (D_TRANSMEM): New.
3839 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
3840 * c-pretty-print.c (pp_c_attributes_display): Don't print
3841 transaction_safe in C++.
3842
12651878
MP
38432015-10-02 Marek Polacek <polacek@redhat.com>
3844
3845 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
3846
3e3b8d63
MP
38472015-10-02 Marek Polacek <polacek@redhat.com>
3848
3849 PR c/64249
3850 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
3851 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
3852 * c.opt (Wduplicated-cond): New option.
3853
0d1a8f75
JM
38542015-10-01 Joseph Myers <joseph@codesourcery.com>
3855
3856 * c.opt (std=c11): Do not describe as experimental.
3857 (std=gnu11): Likewise.
3858 (std=iso9899:2011): Likewise.
3859
3e32ee19
NS
38602015-09-28 Nathan Sidwell <nathan@codesourcery.com>
3861
3862 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
3863 (DEF_FUNCTION_TYPE_VAR_11): Delete.
3864
974348ee
MP
38652015-09-25 Marek Polacek <polacek@redhat.com>
3866
3867 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
3868 (ubsan_instrument_shift): Likewise.
3869
15dbc1a6
MP
38702015-09-25 Marek Polacek <polacek@redhat.com>
3871
3872 PR sanitizer/64906
3873 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
3874
6b95d7cc
PP
38752015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
3876
3877 * c-indentation.c (should_warn_for_misleading_indentation):
3878 Compare next_stmt_vis_column with guard_line_first_nws instead
3879 of with guard_line_vis_column.
3880
c1822f9c
MLI
38812015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3882
3883 PR c/49654
3884 PR c/49655
3885 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
3886 options and options not valid for the current language.
3887
d5398058
PP
38882015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
3889
3890 * c-indentation.c (should_warn_for_misleading_indentation):
3891 Float out and consolidate the calls to get_visual_column that
3892 are passed guard_exploc as an argument. Compare
3893 next_stmt_vis_column with guard_line_first_nws instead of with
3894 body_line_first_nws.
3895
6b333269
NS
38962015-09-22 Nathan Sidwell <nathan@codesourcery.com>
3897
3898 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
3899 Wnamespaces): New C++ warnings.
3900
a75f1574
JM
39012015-09-22 Jason Merrill <jason@redhat.com>
3902
3903 * c-common.h (abi_compat_version_crosses): New.
3904 (warn_abi_version): Declare.
3905 * c-common.c: Define it.
3906 * c-opts.c (c_common_post_options): Handle it.
3907 flag_abi_compat_version defaults to 8.
3908
bdaaa8b7
VV
39092015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
3910
3911 Complete the implementation of N4230, Nested namespace definition.
3912 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
3913 __cpp_nested_namespace_definitions.
3914
eaa797e8
MLI
39152015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3916
3917 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
3918
c4914de6
MLI
39192015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
3920
3921 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
3922 when warning.
3923 * c-pragma.h (pragma_lex): Add optional loc argument.
3924
fcb87c50
MM
39252015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
3926
3927 * c-format.c (check_format_arg): Adjust to use common block size in all
3928 object pools.
3929
31bdd08a
DM
39302015-09-15 David Malcolm <dmalcolm@redhat.com>
3931
3932 * c-format.c (location_from_offset): Update for change in
3933 signature of location_get_source_line.
3934 * c-indentation.c (get_visual_column): Likewise.
3935 (line_contains_hash_if): Likewise.
3936
aa9f4b4c
MP
39372015-09-14 Marek Polacek <polacek@redhat.com>
3938
3939 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
3940 setting various warnings.
3941
aa256c4a
MP
39422015-09-14 Marek Polacek <polacek@redhat.com>
3943
3944 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
3945 a negative value.
3946
0f876f22
MW
39472015-09-11 Mark Wielaard <mjw@redhat.com>
3948
3949 PR c/28901
3950 * c.opt (Wunused-variable): Option from common.opt.
3951 (Wunused-const-variable): New option.
3952
273aa49e
PC
39532015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3954
3955 PR c++/53184
3956 * c.opt ([Wsubobject-linkage]): Add.
3957
1807ffc1
MS
39582015-09-03 Martin Sebor <msebor@redhat.com>
3959
3960 PR c/66516
3961 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
3962 functions.
3963 * c-common.c (reject_gcc_builtin): Define.
3964
38942840
BI
39652015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
3966
3967 PR middle-end/60586
3968 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
3969 prototype.
3970 * c-gimplify.c (c_gimplify_expr): Added a call to the function
3971 cilk_gimplify_call_params_in_spawned_fn.
3972 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
3973 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
3974 unwrapping.
3975
c316b5e4
MP
39762015-08-25 Marek Polacek <polacek@redhat.com>
3977
3978 PR middle-end/67330
3979 * c-common.c (handle_weak_attribute): Don't check whether the
3980 visibility can be changed here.
3981
584a7c46
MLI
39822015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3983
3984 * c-lex.c (c_lex_with_flags): Use explicit locations.
3985
a79683d5
TS
39862015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
3987
3988 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
3989 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
3990
61717a45
FXC
39912015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3992
3993 PR middle-end/36757
3994 * c-common.c (check_builtin_function_arguments): Add check
3995 for BUILT_IN_SIGNBIT argument.
3996
329524f5
PC
39972015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
3998
3999 PR c++/67160
4000 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
4001 in c++1z mode.
4002
4ee55665
MP
40032015-08-17 Marek Polacek <polacek@redhat.com>
4004
4005 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
4006 with whitespaces before qualifier names.
4007
b893e375
MP
40082015-08-12 Marek Polacek <polacek@redhat.com>
4009
4010 PR c++/55095
4011 * c-common.c (maybe_warn_shift_overflow): Properly handle
4012 left-shifting 1 into the sign bit.
4013
c2d89095
MLI
40142015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4015
4016 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
4017
971e17ff
AS
40182015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
4019 Braden Obrzut <admin@maniacsvault.net>
4020 Jason Merrill <jason@redhat.com>
4021
4022 Add C++ Concepts TS support.
4023 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
4024 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
4025 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
4026 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
4027 * c-opts.c (set_std_cxx1z): Set flag_concepts.
4028 * c.opt (fconcepts): New.
4029
b3d5bc62
JJ
40302015-08-02 Martin Sebor <msebor@redhat.com>
4031
4032 * c.opt (-Wframe-address): New warning option.
4033
8ebca419
PP
40342015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
4035
4036 * c-indentation.c (should_warn_for_misleading_indentation):
4037 Improve heuristics.
4038
1a1e101f
PP
40392015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
4040
4041 * c-indentation.c (get_visual_column): Add parameter first_nws,
4042 use it. Update comment documenting the function.
4043 (is_first_nonwhitespace_on_line): Remove.
4044 (should_warn_for_misleading_indentation): Replace usage of
4045 of is_first_nonwhitespace_on_line with get_visual_column.
4046
992118a1
PP
40472015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
4048
4049 * c-indentation.h (struct token_indent_info): Define.
4050 (get_token_indent_info): Define.
4051 (warn_for_misleading_information): Declare.
4052 * c-common.h (warn_for_misleading_information): Remove.
4053 * c-identation.c (warn_for_misleading_indentation):
4054 Change declaration to take three token_indent_infos. Adjust
4055 accordingly.
4056 * c-identation.c (should_warn_for_misleading_indentation):
4057 Likewise. Bail out early if the body is a compound statement.
4058 (guard_tinfo_to_string): Define.
4059
e8fa3817
JM
40602015-07-30 Jason Merrill <jason@redhat.com>
4061
4062 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
4063 '*' for reference decay.
4064
173864e8
MP
40652015-07-30 Marek Polacek <polacek@redhat.com>
4066
4067 * c-common.c (warn_tautological_cmp): Bail for float types.
4068
f2afe6dd
MP
40692015-07-27 Marek Polacek <polacek@redhat.com>
4070
4071 PR bootstrap/67030
4072 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
4073
05b28fd6
MP
40742015-07-27 Marek Polacek <polacek@redhat.com>
4075
4076 PR c++/66555
4077 PR c/54979
4078 * c-common.c (find_array_ref_with_const_idx_r): New function.
4079 (warn_tautological_cmp): New function.
4080 * c-common.h (warn_tautological_cmp): Declare.
4081 * c.opt (Wtautological-compare): New option.
4082
5a5062b8
MP
40832015-07-23 Marek Polacek <polacek@redhat.com>
4084
4085 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
4086 (ubsan_instrument_shift): Likewise.
4087
dc891fe7
MP
40882015-07-23 Marek Polacek <polacek@redhat.com>
4089
4090 PR sanitizer/66908
4091 * c-ubsan.c: Include gimplify.h.
4092 (ubsan_instrument_division): Unshare OP0 and OP1.
4093 (ubsan_instrument_shift): Likewise.
4094
451b5e48
MP
40952015-07-20 Marek Polacek <polacek@redhat.com>
4096 Richard Sandiford <richard.sandiford@arm.com>
4097
4098 PR c++/55095
4099 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
4100 Use EXPR_LOC_OR_LOC.
4101 (maybe_warn_shift_overflow): New function.
4102 * c-common.h (maybe_warn_shift_overflow): Declare.
4103 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
4104 * c.opt (Wshift-overflow): New option.
4105
fb0b2914
ML
41062015-07-16 Martin Liska <mliska@suse.cz>
4107
4108 * c-format.c (static void check_format_info_main): Use
4109 object_allocator instead of pool_allocator.
4110 (check_format_arg): Likewise.
4111 (check_format_info_main): Likewise.
4112
903f5c23
AM
41132015-07-15 Andrew MacLeod <amacleod@redhat.com>
4114
4115 * c-opts.c: Remove multiline #include comment.
4116
026c3cfd
AH
41172015-07-12 Aldy Hernandez <aldyh@redhat.com>
4118
4119 * c-common.c: Fix double word typos.
4120
bb49ee66
EB
41212015-07-10 Eric Botcazou <ebotcazou@adacore.com>
4122
4123 * c-ada-spec.h (cpp_operation): Revert latest change.
4124 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
4125 constructors and destructors.
4126
1916bcb5
AM
41272015-07-09 Andrew MacLeod <amacleod@redhat.com>
4128
4129 * c-common.h: Adjust includes for flags.h changes.
4130 * stub-objc.c: Likewise.
026c3cfd 4131
a9dcd529
EB
41322015-07-08 Eric Botcazou <ebotcazou@adacore.com>
4133
4134 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
4135 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
4136
b03b462f
JJ
41372015-07-08 Jakub Jelinek <jakub@redhat.com>
4138
4139 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
4140 are to be removed, return NULL rather than original clauses list.
4141
c7131fb2
AM
41422015-07-07 Andrew MacLeod <amacleod@redhat.com>
4143
4144 * array-notation-common.c: Adjust includes.
4145 * c-ada-spec.c: Likewise.
4146 * c-cilkplus.c: Likewise.
4147 * c-common.h: Likewise.
4148 * c-cppbuiltin.c: Likewise.
4149 * c-dump.c: Likewise.
4150 * c-format.c: Likewise.
4151 * c-gimplify.c: Likewise.
4152 * c-indentation.c: Likewise.
4153 * c-lex.c: Likewise.
4154 * c-omp.c: Likewise.
4155 * c-opts.c: Likewise.
4156 * c-pch.c: Likewise.
4157 * c-ppoutput.c: Likewise.
4158 * c-pragma.c: Likewise.
4159 * c-pretty-print.c: Likewise.
4160 * c-semantics.c: Likewise.
4161 * c-ubsan.c: Likewise.
4162 * cilk.c: Likewise.
4163 * stub-objc.c: Likewise.
4164
2a7fb83f
EB
41652015-07-07 Eric Botcazou <ebotcazou@adacore.com>
4166
4167 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
4168 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
4169
a03c9bf1
JM
41702015-07-01 Jason Merrill <jason@redhat.com>
4171
36a85135
JM
4172 * c-common.h (D_CXX11): Rename from D_CXX0X.
4173 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
4174 * c-common.c: Adjust.
4175
e7fa68d5
JM
4176 * c-opts.c (c_common_post_options): Default to C++14.
4177
a03c9bf1
JM
4178 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
4179
fe95b036
ESR
41802015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
4181
4182 Implement N4197 - Adding u8 character literals
b3d5bc62 4183 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 4184 CPP_CHAR.
b3d5bc62 4185 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 4186 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 4187 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
4188 and CPP_UTF8CHAR tokens.
4189 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 4190
da2e71c9
MLI
41912015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4192
4193 PR fortran/66605
4194 * c-common.c (do_warn_unused_parameter): Move here.
4195 * c-common.h (do_warn_unused_parameter): Declare.
4196
b155cfd9
MP
41972015-06-29 Marek Polacek <polacek@redhat.com>
4198
4199 PR c/66322
4200 * c-common.c (check_case_bounds): Add bool * parameter. Set
4201 OUTSIDE_RANGE_P.
4202 (c_add_case_label): Add bool * parameter. Pass it down to
4203 check_case_bounds.
4204 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
4205 warning here.
4206 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
4207 declarations.
4208
31521951
MP
42092015-06-27 Marek Polacek <polacek@redhat.com>
4210
4211 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
4212 or VECTOR_INTEGER_TYPE_P throughout.
4213 * c-gimplify.c: Likewise.
4214
22d03525
MP
42152015-06-26 Marek Polacek <polacek@redhat.com>
4216
4217 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
4218 * c-common.c (c_fully_fold_internal): Likewise.
4219 (c_alignof_expr): Likewise.
4220 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
4221 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 4222 * cilk.c (create_parm_list): Likewise.
22d03525 4223
af05e6e5
MP
42242015-06-26 Marek Polacek <polacek@redhat.com>
4225
4226 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
4227
f0889939
AM
42282015-06-25 Andrew MacLeod <amacleod@redhat.com>
4229
4230 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
4231 * c-gimplify.c: Likewise.
4232 * c-pragma.c: Likewise.
4233 * c-ubsan.c: Likewise.
4234 * cilk.c: Likewise.
4235
ca752f39
RS
42362015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4237
4238 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
4239 ggc_hasher.
4240
16a16ec7
AM
42412015-06-25 Andrew MacLeod <amacleod@redhat.com>
4242
4243 * cilk.c: Move calls.h after tm.h in the include chain.
4244
0ae9bd27
MP
42452015-06-25 Marek Polacek <polacek@redhat.com>
4246
4247 * array-notation-common.c: Use VAR_P throughout.
4248 * c-ada-spec.c: Likewise.
4249 * c-common.c: Likewise.
4250 * c-format.c: Likewise.
4251 * c-gimplify.c: Likewise.
4252 * c-omp.c: Likewise.
4253 * c-pragma.c: Likewise.
4254 * c-pretty-print.c: Likewise.
4255 * cilk.c: Likewise.
4256
62f9079a
MP
42572015-06-25 Marek Polacek <polacek@redhat.com>
4258
4259 * cilk.c (extract_free_variables): Use is_global_var.
4260
0fa16060
RS
42612015-06-23 Richard Sandiford <richard.sandiford@arm.com>
4262
4263 * c-common.c: Don't include target-def.h.
4264
a68ae2e1
MP
42652015-06-23 Marek Polacek <polacek@redhat.com>
4266
4267 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
4268 when comparing INTEGER_CSTs.
4269
c6a2f2d9
PMR
42702015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
4271
4272 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
4273 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
4274 (dump_ada_template): Skip partially specialized types.
4275
6b4db501
MM
42762015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
4277
4278 * c-common.c (scalar_to_vector): Use std::swap instead of manually
4279 swapping.
4280
abb226c9
AM
42812015-06-17 Andrew MacLeod <amacleod@redhat.com>
4282
4283 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
4284 * c-ada-spec.c: Likewise.
4285 * c-cilkplus.c: Likewise.
4286 * c-common.c: Likewise.
4287 * c-common.h: Likewise.
4288 * c-cppbuiltin.c: Likewise.
4289 * c-dump.c: Likewise.
4290 * c-format.c: Likewise.
4291 * c-gimplify.c: Likewise.
4292 * c-indentation.c: Likewise.
4293 * c-lex.c: Likewise.
4294 * c-omp.c: Likewise.
4295 * c-opts.c: Likewise.
4296 * c-pch.c: Likewise.
4297 * c-ppoutput.c: Likewise.
4298 * c-pragma.c: Likewise.
4299 * c-pretty-print.c: Likewise.
4300 * c-semantics.c: Likewise.
4301 * c-ubsan.c: Likewise.
4302 * cilk.c: Likewise.
4303 * stub-objc.c: Likewise.
4304
076fecad
PP
43052015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
4306
4307 PR c++/65168
4308 * c-common.c (c_common_truthvalue_conversion): Warn when
4309 converting an address of a reference to a truth value.
4310
13fdf2e2
AM
43112015-06-08 Andrew MacLeod <amacleod@redhat.com>
4312
4313 * array-notation-common.c : Adjust include files.
4314 * c-ada-spec.c : Likewise.
4315 * c-cilkplus.c : Likewise.
4316 * c-common.c : Likewise.
4317 * c-common.h : Likewise.
4318 * c-cppbuiltin.c : Likewise.
4319 * c-dump.c : Likewise.
4320 * c-format.c : Likewise.
4321 * c-gimplify.c : Likewise.
4322 * c-indentation.c : Likewise.
4323 * c-lex.c : Likewise.
4324 * c-omp.c : Likewise.
4325 * c-opts.c : Likewise.
4326 * c-pch.c : Likewise.
4327 * c-ppoutput.c : Likewise.
4328 * c-pragma.c : Likewise.
4329 * c-pretty-print.c : Likewise.
4330 * c-semantics.c : Likewise.
4331 * c-ubsan.c : Likewise.
4332 * cilk.c : Likewise.
4333 * stub-objc.c : Likewise.
4334
a1661b90
MP
43352015-06-08 Marek Polacek <polacek@redhat.com>
4336
4337 PR c/66415
4338 * c-format.c (location_from_offset): Return LOC if LINE is null.
4339
d7438551
AH
43402015-06-05 Aldy Hernandez <aldyh@redhat.com>
4341
4342 * c-common.h (c_parse_final_cleanups): New prototype.
4343 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
4344
b3d5bc62
JJ
43452015-06-04 Sriraman Tallam <tmsriram@google.com>
4346
4347 * c-common.c (noplt): New attribute.
4348 (handle_noplt_attribute): New handler.
4349
ecb9f223
AM
43502015-06-04 Andrew MacLeod <amacleod@redhat.com>
4351
4352 * array-notation-common.c: Adjust includes for restructured coretypes.h.
4353 * c-ada-spec.c: Likewise.
4354 * c-cilkplus.c: Likewise.
4355 * c-common.c: Likewise.
4356 * c-common.h: Likewise.
4357 * c-cppbuiltin.c: Likewise.
4358 * c-dump.c: Likewise.
4359 * c-format.c: Likewise.
4360 * c-gimplify.c: Likewise.
4361 * c-indentation.c: Likewise.
4362 * c-lex.c: Likewise.
4363 * c-omp.c: Likewise.
4364 * c-opts.c: Likewise.
4365 * c-pch.c: Likewise.
4366 * c-ppoutput.c: Likewise.
4367 * c-pragma.c: Likewise.
4368 * c-pretty-print.c: Likewise.
4369 * c-semantics.c: Likewise.
4370 * c-ubsan.c: Likewise.
4371 * cilk.c: Likewise.
4372 * stub-objc.c: Likewise.
4373
6ac48155
DM
43742015-06-02 David Malcolm <dmalcolm@redhat.com>
4375
4376 PR c/66220:
4377 * c-indentation.c (should_warn_for_misleading_indentation): Use
4378 expand_location rather than expand_location_to_spelling_point.
4379 Don't warn if the guarding statement is more indented than the
4380 next/body stmts.
4381
773ce42e
DM
43822015-06-02 David Malcolm <dmalcolm@redhat.com>
4383
4384 * c-indentation.c (warn_for_misleading_indentation): Bail out
4385 immediately if -Wmisleading-indentation isn't enabled.
4386
4fef8379
ML
43872015-06-01 Martin Liska <mliska@suse.cz>
4388
4389 * c-format.c (check_format_arg):Use new type-based pool allocator.
4390 (check_format_info_main) Likewise.
4391
1edfb384
EB
43922015-05-31 Eric Botcazou <ebotcazou@adacore.com>
4393
4394 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
4395 (has_nontrivial_methods): Likewise.
4396
9677ef52
MP
43972015-05-25 Marek Polacek <polacek@redhat.com>
4398
4399 * c-ubsan.c (ubsan_instrument_shift): Use type0.
4400
fd5c817a
MP
44012015-05-22 Marek Polacek <polacek@redhat.com>
4402
4403 PR c/47043
4404 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
4405
a2f45fe6 44062015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
4407
4408 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
4409 STACK_GROWS_DOWNWARD.
4410
a2f45fe6 44112015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
4412
4413 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
4414 STACK_GROWS_DOWNWARD rather than if it is defined.
4415
0fee2ac2 44162015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 4417
0fee2ac2
MLI
4418 PR c/52952
4419 * c-format.c (location_column_from_byte_offset): New.
4420 (location_from_offset): New.
4421 (struct format_wanted_type): Add offset_loc field.
4422 (check_format_info): Move handling of location for extra arguments
4423 closer to the point of warning.
4424 (check_format_info_main): Pass the result of location_from_offset
4425 to warning_at.
4426 (format_type_warning): Pass the result of location_from_offset
4427 to warning_at.
4428
cf4ef6f7
MP
44292015-05-20 Marek Polacek <polacek@redhat.com>
4430
4431 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
4432
3a65ee74
MP
44332015-05-20 Marek Polacek <polacek@redhat.com>
4434
4435 * c-ada-spec.c (dump_sloc): Use DECL_P.
4436
21b634ae
MP
44372015-05-20 Marek Polacek <polacek@redhat.com>
4438
4439 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
4440 * c-common.c: Likewise.
4441
0e50b624
DM
44422015-05-19 David Malcolm <dmalcolm@redhat.com>
4443
4444 * c-common.h (fe_file_change): Strengthen param from
4445 const line_map * to const line_map_ordinary *.
4446 (pp_file_change): Likewise.
4447 * c-lex.c (fe_file_change): Likewise.
4448 (cb_define): Use linemap_check_ordinary when invoking
4449 SOURCE_LINE.
4450 (cb_undef): Likewise.
4451 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
4452 invoking cb_file_change.
4453 (c_finish_options): Likewise.
4454 (push_command_line_include): Likewise.
4455 (cb_file_change): Strengthen param "new_map" from
4456 const line_map * to const line_map_ordinary *.
4457 * c-ppoutput.c (cb_define): Likewise for local "map".
4458 (pp_file_change): Likewise for param "map" and local "from".
4459
fab27f52
MM
44602015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
4461
4462 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
4463
2fe1d762
TV
44642015-05-18 Tom de Vries <tom@codesourcery.com>
4465
4466 * c-common.c (build_va_arg_1): New function.
4467 (build_va_arg): Add address operator to va_list operand if necessary.
4468
7a37fa90
MM
44692015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
4470
4471 PR c/48956
4472 * c-common.c (int_safely_convertible_to_real_p): Define.
4473 (unsafe_conversion_p): Check conversions involving complex types.
4474 (conversion_warning): Add new warning message for conversions which
4475 discard imaginary component.
4476 * c-common.h: (enum conversion_safety): Add new enumerator for such
4477 conversions.
4478
3aa3c9fc
MP
44792015-05-14 Marek Polacek <polacek@redhat.com>
4480
4481 PR c/66066
4482 PR c/66127
4483 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
4484 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
4485 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
4486 use it. If FOR_INT_CONST, require that all evaluated operands be
4487 INTEGER_CSTs.
4488
c3388e62
DM
44892015-05-12 David Malcolm <dmalcolm@redhat.com>
4490
4491 * c-common.h (warn_for_misleading_indentation): New prototype.
4492 * c-indentation.c: New file.
4493 * c.opt (Wmisleading-indentation): New option.
4494
c7b38fd5
TV
44952015-05-12 Tom de Vries <tom@codesourcery.com>
4496
4497 PR tree-optimization/66010
4498 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
4499
381bf11e
JM
45002015-05-09 Jason Merrill <jason@redhat.com>
4501
edff0c06
JM
4502 * c-opts.c (c_common_post_options): Also clear
4503 cpp_opts->cpp_warn_cxx11_compat.
4504
129211bc
JM
4505 * c-common.h (enum cxx_dialect): Add cxx_unset.
4506 * c-common.c (cxx_dialect): Initialize to cxx_unset.
4507 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
4508
381bf11e
JM
4509 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
4510 (std=gnu++0x): Mark as Undocumented.
4511 (std=gnu++1y): Add deprecated message.
4512
fe191308
JM
45132015-05-08 Jason Merrill <jason@redhat.com>
4514
765189ff
JM
4515 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
4516 * c-opts.c: Adjust.
4517
fe191308
JM
4518 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
4519
755e528f
MP
45202015-05-08 Marek Polacek <polacek@redhat.com>
4521
4522 PR c/64918
4523 * c.opt (Woverride-init-side-effects): New option.
4524
0173bd2a
MP
45252015-05-07 Marek Polacek <polacek@redhat.com>
4526
4527 PR c/65179
4528 * c-common.c (c_fully_fold_internal): Warn when left shifting a
4529 negative value.
4530 * c.opt (Wshift-negative-value): New option.
4531 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
4532 when -Wextra and C99/C++11 mode.
4533
e0f0d3b9
MP
45342015-05-07 Marek Polacek <polacek@redhat.com>
4535 Martin Uecker <uecker@eecs.berkeley.edu>
4536
4537 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
4538 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
4539
8243e2a9
JM
45402015-05-05 Jason Merrill <jason@redhat.com>
4541
4542 * c.opt (Wterminate): New.
4543
577cd070
MP
45442015-04-30 Marek Polacek <polacek@redhat.com>
4545
4546 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
4547 require that the non-constant be of a boolean type.
4548
0373796b
JT
45492015-04-29 Josh Triplett <josh@joshtriplett.org>
4550
e0f0d3b9
MP
4551 * c-common.c (handle_section_attribute): Refactor to reduce
4552 nesting and distinguish between error cases.
0373796b 4553
716c0ba6
MP
45542015-04-29 Marek Polacek <polacek@redhat.com>
4555
4556 PR c/64610
4557 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
4558 with 0/1.
4559
8848828b
JJ
45602015-04-29 Jakub Jelinek <jakub@redhat.com>
4561
4562 * c-common.h (omp_clause_mask): Unconditionally define as a class.
4563 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
4564 HOST_BITS_PER_WIDE_INT.
4565
ecd0e562
TV
45662015-04-28 Tom de Vries <tom@codesourcery.com>
4567
4568 PR tree-optimization/65887
4569 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
4570
2a877204 45712015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 4572 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
4573
4574 * c-ada-spec.c (in_function): Delete.
4575 (dump_generic_ada_node): Do not change in_function and remove the
4576 redundant code dealing with it.
4577 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
4578 (print_ada_methods): Output the static member functions in a nested
4579 package after the regular methods as well as associated renamings.
4580
4853031e
MP
45812015-04-24 Marek Polacek <polacek@redhat.com>
4582
4583 PR c/65830
4584 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
4585 and OPT_Wshift_count_overflow.
4586
8c2b7f79
MP
4587 PR c/63357
4588 * c-common.c (warn_logical_operator): Warn if the operands have the
4589 same expressions.
4590
b8787813
MP
45912015-04-24 Marek Polacek <polacek@redhat.com>
4592
4593 PR c/61534
4594 * c-common.c (warn_logical_operator): Bail if either operand comes
4595 from a macro expansion.
4596
8fba1830
BRF
45972015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4598
4599 PR target/55143
4600 * c-common.c (c_default_pointer_mode): Add definition.
4601 * c-common.h (c_default_pointer_mode): Add declaration.
4602
17958621
JJ
46032015-03-11 Jakub Jelinek <jakub@redhat.com>
4604
4605 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
4606 on record_builtin_type argument.
4607
7ccb1a11
JJ
46082015-03-10 Jakub Jelinek <jakub@redhat.com>
4609
4610 PR c/65120
4611 * c-common.c (warn_logical_not_parentheses): Don't warn for
4612 !x == 0 or !x != 0.
4613
04fd785e
MP
46142015-03-07 Marek Polacek <polacek@redhat.com>
4615
4616 PR sanitizer/65280
4617 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
4618 before trying to figure out whether we have a flexible array member.
4619
a4e26206 46202015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 4621 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
4622
4623 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
4624
0d2489f4
EB
46252015-03-05 Eric Botcazou <ebotcazou@adacore.com>
4626
4627 PR ada/65319
4628 * c-ada-spec.c (print_destructor): Remove obsolete code.
4629
83ed54d7
EB
46302015-03-01 Eric Botcazou <ebotcazou@adacore.com>
4631
4632 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4633 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4634 DECL_TEMPLATE_RESULT emulations.
4635 (dump_ada_template)): Add guard for TYPE_METHODS.
4636
7631f0e2
MP
46372015-02-27 Marek Polacek <polacek@redhat.com>
4638
4639 PR c/65040
4640 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4641
d1783ae5
KT
46422015-02-27 Kai Tietz <ktietz@redhat.com>
4643
4644 PR c/35330
4645 * c-pragma.c (handle_pragma_weak): Do not try to create
4646 weak/alias of declarations not being function, or variable
4647 declarations.
4648
56a9f6bc
TS
46492015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4650
4651 PR libgomp/64625
4652 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4653 Remove macros.
4654 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4655
3d5cb23d
MP
46562015-02-16 Marek Polacek <polacek@redhat.com>
4657
4658 PR c/65066
4659 * c-format.c (check_format_types): Handle null param.
4660
fa008882
MP
46612015-02-13 Marek Polacek <polacek@redhat.com>
4662
4663 PR c/65040
4664 * c-format.c (check_format_types): Don't warn about different
4665 signedness if the original value is in the range of WANTED_TYPE.
4666
785f21af
JM
46672015-02-12 Jason Merrill <jason@redhat.com>
4668
4669 PR c++/64956
4670 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4671 to the current highest version.
4672 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4673
4886ec8e
JJ
46742015-02-04 Jakub Jelinek <jakub@redhat.com>
4675
4676 PR c/64824
4677 PR c/64868
4678 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4679 instead of RDIV_EXPR. Use build_binary_op instead of
4680 build2_loc.
4681
40fecdd6
JM
46822015-01-30 Joseph Myers <joseph@codesourcery.com>
4683
4684 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4685 to pass input_location as first argument.
4686
a0c88d06
TV
46872015-01-23 Tom de Vries <tom@codesourcery.com>
4688
4689 PR libgomp/64672
4690 * c.opt (fopenacc): Mark as LTO option.
4691
1506ae0e
TV
46922015-01-23 Tom de Vries <tom@codesourcery.com>
4693
4694 PR libgomp/64707
4695 * c.opt (fopenmp): Mark as LTO option.
4696
31be63ab
JJ
46972015-01-21 Jakub Jelinek <jakub@redhat.com>
4698
4699 PR c/63307
b1726d6c 4700 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
4701 (compare_decls): Fix up formatting.
4702
47032015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
4704
4705 PR c/63307
4706 * cilk.c: Include vec.h.
4707 (struct cilk_decls): New structure.
4708 (wrapper_parm_cb): Split this function to...
4709 (fill_decls_vec): ...this...
4710 (create_parm_list): ...and this.
4711 (compare_decls): New function.
4712 (for_local_cb): Remove.
4713 (wrapper_local_cb): Ditto.
4714 (build_wrapper_type): For now first traverse and fill vector of
4715 declarations then sort it and then deal with sorted vector.
4716 (cilk_outline): Ditto.
4717 (declare_one_free_variable): Ditto.
4718
6875457f
JM
47192015-01-21 Jason Merrill <jason@redhat.com>
4720
4721 PR c++/64629
4722 * c-format.c (check_format_arg): Call decl_constant_value.
4723
185c9e56
ML
47242015-01-19 Martin Liska <mliska@suse.cz>
4725
4726 * c-common.c (handle_noicf_attribute): New function.
4727
41dbbb37
TS
47282015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4729 Bernd Schmidt <bernds@codesourcery.com>
4730 James Norris <jnorris@codesourcery.com>
4731 Cesar Philippidis <cesar@codesourcery.com>
4732 Ilmir Usmanov <i.usmanov@samsung.com>
4733 Jakub Jelinek <jakub@redhat.com>
4734
4735 * c.opt (fopenacc): New option.
4736 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4737 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4738 New macros.
4739 * c-common.h (c_finish_oacc_wait): New prototype.
4740 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4741 (c_finish_oacc_wait): New function.
4742 * c-pragma.c (oacc_pragmas): New variable.
4743 (c_pp_lookup_pragma, init_pragma): Handle it.
4744 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4745 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4746 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4747 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4748 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4749 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4750 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4751 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4752 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4753 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4754 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4755 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4756 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4757 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4758 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4759 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4760 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4761 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4762 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4763 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4764 PRAGMA_OACC_CLAUSE_WORKER.
4765
3f8257db 47662015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
4767
4768 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4769 for the new option fstack-protector_explicit.
4770 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4771 (handle_stack_protect_attribute): New function.
4772
3f8257db 47732015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
4774
4775 * c.opt: New option -Warray-bounds=.
4776
adfac8df
JJ
47772015-01-09 Michael Collison <michael.collison@linaro.org>
4778
4779 * array-notation-common.c: Include hash-set.h, machmode.h,
4780 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4781 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4782 * c-ada-spec.c: Ditto.
4783 * c-cilkplus.c: Ditto.
4784 * c-common.c: Include input.h due to flattening of tree.h.
4785 Define macro GCC_C_COMMON_C.
4786 * c-common.h: Flatten tree.h header files into c-common.h.
4787 Remove include of tree-core.h.
4788 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4789 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4790 fold-const.h, wide-int.h, and inchash.h due to
4791 flattening of tree.h.
4792 * c-dump.c: Ditto.
4793 * c-format.c: Flatten tree.h header files into c-common.h.
4794 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4795 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4796 fold-const.h, wide-int.h, and inchash.h due to
4797 flattening of tree.h.
4798 * c-dump.c: Include hash-set.h, machmode.h,
4799 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4800 fold-const.h, wide-int.h, and inchash.h due to
4801 flattening of tree.h.
4802 * c-format.c: Include hash-set.h, machmode.h,
4803 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4804 fold-const.h, wide-int.h, inchash.h and real.h due to
4805 flattening of tree.h.
4806 * c-gimplify.c: Include hash-set.h, machmode.h,
4807 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4808 fold-const.h, wide-int.h, and inchash.h due to
4809 flattening of tree.h.
4810 * cilk.c: Ditto.
4811 * c-lex.c: Ditto.
4812 * c-omp.c: Ditto.
4813 * c-opts.c: Ditto.
4814 * c-pch.c: Ditto.
4815 * c-ppoutput.c: Ditto.
4816 * c-pragma.c: Ditto.
4817 * c-pretty-print.c: Ditto.
4818 * c-semantics.c: Ditto.
4819 * c-ubsan.c: Ditto.
4820 * stub-objc.c: Ditto.
4821
f5481fc4
JM
48222015-01-08 Jason Merrill <jason@redhat.com>
4823
4824 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
4825 do_ubsan_in_current_function.
4826 (ubsan_maybe_instrument_reference_or_call): Likewise.
4827 * c-ubsan.h: Declare it.
4828
de35aa66
MS
48292015-01-08 Mike Stump <mikestump@comcast.net>
4830
4831 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
4832
4a9a42ab
MP
48332015-01-07 Marek Polacek <polacek@redhat.com>
4834
4835 PR c/64440
4836 * c-common.c (c_fully_fold_internal): Warn for division and modulo
4837 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
4838
2f42e5de
TS
48392015-01-05 Trevor Saunders <tsaunders@mozilla.com>
4840
4841 PR c++/31397
4842 * c.opt (Wsuggest-override): New option.
4843
5624e564
JJ
48442015-01-05 Jakub Jelinek <jakub@redhat.com>
4845
4846 Update copyright years.
4847
5bd012f8
MP
48482015-01-05 Marek Polacek <polacek@redhat.com>
4849
4850 PR c/64423
4851 * c-common.c (warn_array_subscript_with_type_char): Add location_t
4852 parameter. Use it.
4853 * c-common.h (warn_array_subscript_with_type_char): Update
4854 declaration.
4855
a7fa8d18
ESR
48562014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
4857
4858 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
4859 Control macro with flag_sized_deallocation.
4860
3f8257db 48612014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
4862
4863 * c.opt (Wdiscarded-array-qualifiers): New option.
4864
1f8d3e84
JJ
48652014-12-19 Jakub Jelinek <jakub@redhat.com>
4866
4867 PR preprocessor/63831
4868 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
4869 and __has_cpp_attribute here.
4870 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
4871 c_common_has_attribute.
4872 * c-common.h (c_common_has_attribute): New prototype.
4873 * c-lex.c (init_c_lex): Set cb->has_attribute to
4874 c_common_has_attribute instead of cb_has_attribute.
4875 (get_token_no_padding): New function.
4876 (cb_has_attribute): Renamed to ...
4877 (c_common_has_attribute): ... this. No longer static. Use
4878 get_token_no_padding, require ()s, don't build TREE_LIST
4879 unnecessarily, fix up formatting, adjust diagnostics, call
4880 init_attributes.
4881
20b06add
JM
48822014-12-15 Jason Merrill <jason@redhat.com>
4883
4884 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
4885 (-Wsized-deallocation): New.
4886 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
4887 to on in C++14 and up.
4888
94a073b2
JM
48892014-12-11 Jason Merrill <jason@redhat.com>
4890
acaa5911
JM
4891 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
4892
94a073b2
JM
4893 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
4894 we aren't complaining about VLAs.
4895
7fb66c15
MP
48962014-12-06 Marek Polacek <polacek@redhat.com>
4897
4898 PR tree-optimization/64183
4899 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
4900 shift-expression if it is integer_type_node. Use types_compatible_p.
4901
b731b390
JJ
49022014-11-29 Jakub Jelinek <jakub@redhat.com>
4903
4904 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
4905 last argument from create_tmp_var_raw and create_tmp_var calls.
4906 * cilk.c (gimplify_cilk_spawn): Likewise.
4907 * c-omp.c (c_finish_omp_atomic): Likewise.
4908
6a4da643
MP
49092014-11-28 Marek Polacek <polacek@redhat.com>
4910
4911 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
4912 instead of unsigned_type_node.
4913
541e35a6
MP
49142014-11-28 Marek Polacek <polacek@redhat.com>
4915
4916 PR c/63862
4917 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
4918 to op1_utype.
4919 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
4920 expression to unsigned_type_node.
4921
dcc97066
MW
49222014-11-20 Mark Wielaard <mjw@redhat.com>
4923
4924 PR debug/38757
4925 * c-opts.c (set_std_c89): Set lang_hooks.name.
4926 (set_std_c99): Likewise.
4927 (set_std_c11): Likewise.
4928 (set_std_cxx98): Likewise.
4929 (set_std_cxx11): Likewise.
4930 (set_std_cxx14): Likewise.
4931 (set_std_cxx1z): Likewise.
4932
aa7da51a
JJ
49332014-11-21 Jakub Jelinek <jakub@redhat.com>
4934
4935 PR target/63764
4936 * c-common.h (convert_vector_to_pointer_for_subscript): Change
4937 return type to bool.
009a3480 4938 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
4939 (convert_vector_to_pointer_for_subscript): Change return type to
4940 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
4941 and copy it into a TARGET_EXPR and use that instead of *vecp
4942 directly.
4943
538dd0b7
DM
49442014-11-19 David Malcolm <dmalcolm@redhat.com>
4945
4946 Merger of git branch "gimple-classes-v2-option-3".
4947 * ChangeLog.gimple-classes: New.
4948 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
4949 from being just a vec<gimple> to a vec<gbind *>.
4950
c39a5e99
JJ
49512014-11-18 Jakub Jelinek <jakub@redhat.com>
4952
4953 PR sanitizer/63813
4954 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
4955 argument to ptype, set type to TREE_TYPE (ptype). Don't call
4956 get_pointer_alignment for non-pointers. Use ptype, or if it is
4957 reference type, corresponding pointer type, as type of kind
4958 argument.
4959 (ubsan_maybe_instrument_reference,
4960 ubsan_maybe_instrument_member_call): Adjust callers.
4961
8537a4a9
MP
49622014-11-15 Marek Polacek <polacek@redhat.com>
4963
4964 PR middle-end/63884
4965 * array-notation-common.c (is_sec_implicit_index_fn): Return false
4966 for NULL fndecl.
4967 (extract_array_notation_exprs): Return for NULL node.
4968
2079956a
JM
49692014-11-12 Joseph Myers <joseph@codesourcery.com>
4970
4971 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
4972 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
4973
1304953e
JJ
49742014-11-12 Jakub Jelinek <jakub@redhat.com>
4975
4976 PR c/59708
4977 * c-common.c (check_builtin_function_arguments): Handle
4978 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
4979
e5e44252
AK
49802014-11-10 Andi Kleen <ak@linux.intel.com>
4981
4982 PR c/60804
4983 * c-common.h (check_no_cilk): Declare.
4984 * cilk.c (get_error_location): New function.
4985 (check_no_cilk): Dito.
4986
e64b984d
AK
49872014-11-10 Andi Kleen <ak@linux.intel.com>
4988
4989 * cilk.c (recognize_spawn): Use expression location
4990 for error message.
4991
13c21655
PC
49922014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
4993
4994 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
4995
42fd12b1
ESR
49962014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
4997
4998 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
4999 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
5000 (__cpp_range_based_for, __cpp_initializer_lists,
5001 __cpp_delegating_constructors, __cpp_nsdmi,
5002 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
5003 for C++11; (__cpp_attribute_deprecated): Remove in favor of
5004 __has_cpp_attribute.
5005 * c-lex.c (cb_has_attribute): New callback CPP function;
5006 (init_c_lex): Set has_attribute callback.
5007
6f450181
RB
50082014-11-04 Richard Biener <rguenther@suse.de>
5009
5010 * c-common.c (shorten_compare): Do not shorten mixed
5011 DFP and non-DFP compares.
5012
26f0e1d6
ESR
50132014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
5014
5015 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
5016 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
5017 Commentary and rearrangement of tests.
5018 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
5019 Commentary and rearrangement of tests.
5020 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
5021 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
5022
ef4bddc2
RS
50232014-10-29 Richard Sandiford <richard.sandiford@arm.com>
5024
5025 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
5026 enum from machine_mode.
5027
c582198b
AM
50282014-10-28 Andrew MacLeod <amacleod@redhat.com>
5029
adfac8df
JJ
5030 * c-common.c: Adjust include files.
5031 * c-gimplify.c: Ditto.
5032 * cilk.c: Ditto.
5033 * c-pragma.c: Ditto.
5034 * c-ubsan.c: Ditto.
c582198b 5035
60393bbc
AM
50362014-10-27 Andrew MacLeod <amacleod@redhat.com>
5037
5038 * c-gimplify.c: Adjust include files.
5039
d723bb7c
MLI
50402014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
5041
5042 PR c++/53061
5043 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
5044 c_common_initialize_diagnostics.
5045 * c-common.h: Likewise.
5046
90f3520e
MP
50472014-10-24 Marek Polacek <polacek@redhat.com>
5048
5049 PR c/56980
5050 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
5051 print "struct"/"union"/"enum" for typedefed names.
5052
59d7607a
MP
50532014-10-23 Marek Polacek <polacek@redhat.com>
5054
5055 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
5056 in unsigned type.
5057
d95a2703
JJ
50582014-10-22 Jakub Jelinek <jakub@redhat.com>
5059 Yury Gribov <y.gribov@samsung.com>
5060
5061 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5062 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
5063 instead of flag_sanitize_recover as bool flag.
5064
8e6ef852
KY
50652014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
5066
5067 * cilk.c: Revert previous change.
5068
948cf550
IZ
50692014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
5070
5071 PR c/63307
5072 * cilk.c: Include vec.h.
5073 (struct cilk_decls): New structure.
5074 (wrapper_parm_cb): Split this function to...
5075 (fill_decls_vec): ...this...
5076 (create_parm_list): ...and this.
5077 (compare_decls): New function.
5078 (for_local_cb): Remove.
5079 (wrapper_local_cb): Ditto.
5080 (build_wrapper_type): For now first traverse and fill vector of
5081 declarations then sort it and then deal with sorted vector.
5082 (cilk_outline): Ditto.
5083 (declare_one_free_variable): Ditto.
5084
92574c7c
MP
50852014-10-17 Marek Polacek <polacek@redhat.com>
5086
5087 * c-opts.c (c_common_post_options): Set warn_implicit_int.
5088 * c.opt (Wimplicit-int): Initialize to -1.
5089
83685514
AM
50902014-10-16 Andrew MacLeod <amacleod@redhat.com>
5091
5092 * c-pragma.c: Adjust include files.
5093 * c-semantics.c: Likewise.
5094
5b8300ea
DD
50952014-10-16 DJ Delorie <dj@redhat.com>
5096
5097 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
5098 multiples of bytes.
5099
5f83e90b
JM
51002014-10-14 Jason Merrill <jason@redhat.com>
5101
5102 PR c++/63455
5103 * c-common.h (CPP_PREPARSED_EXPR): New.
5104 (N_CP_TTYPES): Adjust.
5105
d73326ca
MP
51062014-10-15 Marek Polacek <polacek@redhat.com>
5107
5108 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
5109
78a7c317
DD
51102014-10-14 DJ Delorie <dj@redhat.com>
5111
5112 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
5113 types, not just __int128.
5114 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
5115 types, not just __int128.
5116 (cpp_atomic_builtins): Round pointer sizes up.
5117 (type_suffix): Use type precision, not specific types.
5118 * c-common.c (c_common_reswords): Remove __int128 special case.
5119 (c_common_type_for_size): Check for all __intN types, not just
5120 __int128.
5121 (c_common_type_for_mode): Likewise.
5122 (c_common_signed_or_unsigned_type): Likewise.
5123 (c_build_bitfield_integer_type): Likewise.
5124 (c_common_nodes_and_builtins): Likewise.
5125 (keyword_begins_type_specifier): Likewise.
5126 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
5127 __intN variants.
5128
2a22f99c
TS
51292014-10-12 Trevor Saunders <tsaunders@mozilla.com>
5130
5131 * c-common.c: Use hash_table instead of hashtab.
5132
2a8ef767
ESR
51332014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
5134
adfac8df 5135 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
5136 C++11 section.
5137
3c9aabbd
MG
51382014-10-03 Marc Glisse <marc.glisse@inria.fr>
5139
5140 PR c++/54427
5141 PR c++/57198
5142 PR c++/58845
5143 * c-common.c (warn_logical_operator): Punt for vectors.
5144
a15f7cb8
ESR
51452014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
5146
5147 Implement SD-6: SG10 Feature Test Recommendations
5148 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
5149 macros and the __has_header macro.
5150
8d0cf15e
JM
51512014-09-30 Jason Merrill <jason@redhat.com>
5152
dd5d5481
JM
5153 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
5154 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
5155 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
5156
b752325e
JM
5157 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
5158 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
5159
8d0cf15e
JM
5160 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
5161 * c-common.c (c_common_reswords): Remove __is_convertible_to.
5162
083e891e
MP
51632014-09-24 Marek Polacek <polacek@redhat.com>
5164
5165 PR c/61405
5166 PR c/53874
5167 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
5168
7861b648
AK
51692014-09-23 Andi Kleen <ak@linux.intel.com>
5170
5171 * c-common.c (handle_no_reorder_attribute): New function.
5172 (c_common_attribute_table): Add no_reorder attribute.
5173
9a79452d
JM
51742014-09-22 Joseph Myers <joseph@codesourcery.com>
5175
5176 * c-cppbuiltin.c (c_cpp_builtins): Define
5177 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
5178 modes.
5179
dd69f047
JM
51802014-09-18 Joseph Myers <joseph@codesourcery.com>
5181
5182 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
5183 for supported floating-point modes.
5184
737a4826
MLI
51852014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5186
5187 * c.opt (Wpsabi): Use LangEnabledBy.
5188 * c-opts.c (c_common_handle_option): Do not handle here.
5189
8cc4b7a2
JM
51902014-09-12 Joseph Myers <joseph@codesourcery.com>
5191
5192 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
5193 macros for floating-point modes.
5194
179b5a55
MG
51952014-09-11 Marc Glisse <marc.glisse@inria.fr>
5196
5197 PR target/58757
5198 * c-cppbuiltin.c (builtin_define_float_constants): Correct
5199 __*_DENORM_MIN__ without denormals.
5200
570a11fe
JJ
52012014-09-10 Jakub Jelinek <jakub@redhat.com>
5202
5203 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5204 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5205 ubsan_create_data callers.
5206 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
5207 index is constant or BIT_AND_EXPR with constant mask and is
5208 small enough for the bound.
5209 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
5210 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
5211
b559c810
MLI
52122014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5213
5214 * c.opt: Add CppReason to various flags.
5215 (Wdate-time): Re-sort.
5216 * c-common.c: Include c-common.h earlier.
5217 (struct reason_option_codes_t): Delete.
5218 (c_option_controlling_cpp_error): Prefix global type and struct
5219 with cpp_.
5220
1ef33fd4
MLI
52212014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5222
5223 * c.opt (Wnormalized): New.
5224 (Wnormalized=): Use Enum and Reject Negative.
5225 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
5226
66bb34c0
JM
52272014-09-08 Joseph Myers <joseph@codesourcery.com>
5228
5229 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
5230 digits of floating-point modes if -fbuilding-libgcc.
5231
53d68b9f
JM
52322014-09-05 Joseph Myers <joseph@codesourcery.com>
5233
5234 * c-cppbuiltin.c (c_cpp_builtins): Also define
5235 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
5236 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
5237 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
5238 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
5239 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
5240 __LIBGCC_STACK_GROWS_DOWNWARD__,
5241 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
5242 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
5243 __LIBGCC_DWARF_FRAME_REGISTERS__,
5244 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
5245 __LIBGCC_STACK_POINTER_REGNUM__ and
5246 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
5247 (builtin_define_with_value): Handle backslash-escaping in string
5248 macro values.
5249
f65586dc
RB
52502014-09-05 Richard Biener <rguenther@suse.de>
5251
5252 PR middle-end/63148
5253 * c-format.c (check_format_arg): Properly handle
5254 effectively signed POINTER_PLUS_EXPR offset.
5255
2b71f4a4
MLI
52562014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5257
5258 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
5259 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
5260 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
5261 and Init.
5262 * c-opts.c (c_common_handle_option): Do not handle here.
5263 (sanitize_cpp_opts): Likewise.
5264 * c-common.c (struct reason_option_codes_t): Handle
5265 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
5266
d2e4feca
MP
52672014-09-03 Marek Polacek <polacek@redhat.com>
5268
5269 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
5270
9a771876
JJ
52712014-09-02 Jakub Jelinek <jakub@redhat.com>
5272 Balaji V. Iyer <balaji.v.iyer@intel.com>
5273 Igor Zamyatin <igor.zamyatin@intel.com>
5274
5275 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
5276 * c-common.c (c_common_reswords): Added _Cilk_for.
5277 * c-common.h (enum rid): Added RID_CILK_FOR.
5278 (cilk_for_number_of_iterations): Add declaration.
5279 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
5280 CILK_FOR.
5281 * c-pragma.c (init_pragma): Register "grainsize" pragma.
5282 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
5283
81b5d104
MLI
52842014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5285
5286 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
5287 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
5288 Wundef): Use CPP, Var and Init.
5289 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
5290
b753b37b
MLI
52912014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5292
5293 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
5294 * c-opts.c (c_common_handle_option): Do not handle here.
5295
028aee17
JM
52962014-08-25 Jason Merrill <jason@redhat.com>
5297
5298 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
5299 -std=c++14 and -std=gnu++14, rather than the reverse.
5300 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
5301 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
5302 * c-common.h (cxx_dialect): Remove cxx1y.
5303
e4276ba5
ESR
53042014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
5305
5306 * c-common.h (enum cxx_dialect): Add cxx14.
5307 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
5308 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
5309 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
5310
a545cacd
JM
53112014-08-22 Jason Merrill <jason@redhat.com>
5312
5313 * c.opt (std=gnu++17): Fix alias.
5314
59ea0364
MP
53152014-08-22 Marek Polacek <polacek@redhat.com>
5316
5317 PR c++/62199
5318 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
5319 check for vector types. Drop LHS argument.
5320 * c-common.h (warn_logical_not_parentheses): Adjust.
5321
596e808c
MLI
53222014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5323
5324 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
5325 (Wmultichar): Likewise.
5326 (Wdate-time): Use C-family languages instead of Common. Use CPP
5327 and Var.
5328 * c-opts.c (c_common_handle_option): Do not handle the above
5329 options here.
5330 (sanitize_cpp_opts): Likewise.
5331
18767f65
MLI
53322014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5333
5334 PR fortran/44054
5335 * c-opts.c: Include tree-diagnostics.h.
5336 (c_diagnostic_finalizer): New.
5337 (c_common_initialize_diagnostics): Use it.
5338
b4413594
MLI
53392014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5340
5341 PR preprocessor/51303
5342 * c-common.c (struct reason_option_codes_t option_codes):
5343 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
5344
43f9a13c
MLI
53452014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5346
5347 PR c/60975
5348 PR c/53063
5349 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
5350 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
5351 (c_common_post_options): Call init_global_opts_from_cpp.
5352 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
5353
04159acf
MP
53542014-08-19 Marek Polacek <polacek@redhat.com>
5355
5356 PR c++/62153
5357 * c-common.c (maybe_warn_bool_compare): New function.
5358 * c-common.h (maybe_warn_bool_compare): Declare.
5359 * c.opt (Wbool-compare): New option.
5360
35aff4fb
MP
53612014-08-19 Marek Polacek <polacek@redhat.com>
5362
5363 * c.opt (Wc99-c11-compat): New option.
5364
177cce46
MP
53652014-08-19 Marek Polacek <polacek@redhat.com>
5366
5367 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
5368 to warn_c90_c99_compat.
5369 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
5370 to -1.
5371
6ae9194f
MLI
53722014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
5373 Steven Bosscher <steven@gcc.gnu.org>
5374
5375 PR c/52952
5376 * c-format.c: Add extra_arg_loc and format_string_loc to struct
5377 format_check_results.
5378 (check_function_format): Use true and add comment for boolean
5379 argument.
5380 (finish_dollar_format_checking): Use explicit location when warning.
5381 (check_format_info): Likewise.
5382 (check_format_arg): Set extra_arg_loc and format_string_loc.
5383 (check_format_info_main): Use explicit location when warning.
5384 (check_format_types): Pass explicit location.
5385 (format_type_warning): Likewise.
5386
8e54f6d3
MLI
53872014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5388
5389 PR fortran/44054
5390 * c-format.c: Handle Fortran flags.
5391
cd4e76fc
IZ
53922014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
5393
5394 PR other/61962
5395 * array-notation-common.c (find_rank): Added handling for other
5396 types of references.
5397
f3bede71
MP
53982014-08-10 Marek Polacek <polacek@redhat.com>
5399
5400 PR c/51849
5401 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
5402 * c.opt (Wc90-c99-compat): Add option.
5403
9f25a338
TS
54042014-08-07 Trevor Saunders <tsaunders@mozilla.com>
5405
5406 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
5407
62e4eb35
MP
54082014-08-03 Marek Polacek <polacek@redhat.com>
5409
5410 * c-common.c (check_case_value): Add location_t parameter. Use it.
5411 (c_add_case_label): Pass loc to check_case_value.
5412
b787e7a2
TS
54132014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5414
5415 * cilk.c: Use hash_map instead of pointer_map.
5416
6e2830c3
TS
54172014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5418
5419 * c-gimplify.c: Use hash_set instead of pointer_set.
5420
a7ee52fb
IZ
54212014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
5422
5423 PR middle-end/61455
5424 * array-notation-common.c (extract_array_notation_exprs): Handling
5425 of DECL_EXPR added.
5426
944fa280
JJ
54272014-08-01 Jakub Jelinek <jakub@redhat.com>
5428
5429 * c-common.h (min_align_of_type): Removed prototype.
5430 * c-common.c (min_align_of_type): Removed.
5431 * c-ubsan.h (ubsan_maybe_instrument_reference,
5432 ubsan_maybe_instrument_member_call): New prototypes.
5433 * c-ubsan.c: Include stor-layout.h and builtins.h.
5434 (ubsan_maybe_instrument_reference_or_call,
5435 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
5436 functions.
5437
b4dfdc11
MG
54382014-07-31 Marc Glisse <marc.glisse@inria.fr>
5439
5440 PR c++/60517
5441 * c.opt (-Wreturn-local-addr): Move to common.opt.
5442
a41844e5
JM
54432014-07-30 Jason Merrill <jason@redhat.com>
5444
5445 PR c++/61659
5446 PR c++/61687
5447 Revert:
5448 * c.opt (-fuse-all-virtuals): New.
5449
976d5a22
TT
54502014-07-30 Tom Tromey <tromey@redhat.com>
5451
5452 PR c/59855
5453 * c.opt (Wdesignated-init): New option.
5454 * c-common.c (c_common_attribute_table): Add "designated_init".
5455 (handle_designated_init): New function.
5456
cdc94aca
MP
54572014-07-24 Marek Polacek <polacek@redhat.com>
5458
5459 PR c/57653
5460 * c-opts.c (c_finish_options): If -imacros is in effect, return.
5461
f41373b6
DS
54622014-07-16 Dodji Seketeli <dodji@redhat.com>
5463
5464 PR preprocessor/60723 - missing system-ness marks for macro tokens
5465 * c-ppoutput.c (struct print::prev_was_system_token): New data
5466 member.
5467 (init_pp_output): Initialize it.
5468 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
5469 (do_line_change): Return a flag saying if a line marker was
5470 emitted or not.
5471 (scan_translation_unit): Detect if the system-ness of the token we
5472 are about to emit is different from the one of the previously
5473 emitted token. If so, emit a line marker. Avoid emitting useless
5474 adjacent line markers. Avoid emitting line markers for tokens
5475 originating from the expansion of built-in macros.
5476 (scan_translation_unit_directives_only): Adjust.
5477
4d661eaa
MP
54782014-07-15 Marek Polacek <polacek@redhat.com>
5479
5480 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
5481 TYPE_MAX_VALUE is NULL.
5482
b108f48f
JJ
54832014-07-14 Jakub Jelinek <jakub@redhat.com>
5484
5485 PR middle-end/61294
5486 * c.opt (Wmemset-transposed-args): New warning.
5487
c0221884
JM
54882014-07-10 Jason Merrill <jason@redhat.com>
5489
5490 PR c++/61659
5491 PR c++/61687
5492 * c.opt (-fuse-all-virtuals): New.
5493
63dfbb95
RB
54942014-07-09 Richard Biener <rguenther@suse.de>
5495
5496 PR c-family/61741
5497 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5498 using unsigned arithmetic if overflow does not wrap instead of
5499 if overflow is undefined.
5500
773ec47f
MP
55012014-07-06 Marek Polacek <polacek@redhat.com>
5502
5503 PR c/6940
5504 * c.opt (Wsizeof-array-argument): New option.
5505
00a7ba58
JJ
55062014-07-03 Jakub Jelinek <jakub@redhat.com>
5507
b1726d6c 5508 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
5509 comments->count <= 1, as comments->entries might be NULL.
5510
52ec0ea3
MP
55112014-07-01 Marek Polacek <polacek@redhat.com>
5512
5513 * c.opt (Wint-conversion): New option.
5514
d5c3d343
MP
55152014-07-01 Marek Polacek <polacek@redhat.com>
5516
5517 PR c/58286
5518 * c.opt (Wincompatible-pointer-types): New option.
5519
6e7ceb17
PC
55202014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
5521
5522 PR c++/51400
5523 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
5524 Do not discard TYPE_QUALS of type.
5525
da73100b
JM
55262014-06-26 Jason Merrill <jason@redhat.com>
5527
5528 * c-common.h (enum cxx_dialect): Add cxx1z.
5529 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
5530 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
5531
08eedf75
TJ
55322014-06-26 Teresa Johnson <tejohnson@google.com>
5533
5534 * c-common.h (get_dump_info): Declare.
5535 * c-gimplify.c (c_genericize): Use saved dump files.
5536 * c-opts.c (c_common_parse_file): Begin and end dumps
5537 once around parsing invocation.
5538 (get_dump_info): New function.
5539
7b56b2f8
MP
55402014-06-23 Marek Polacek <polacek@redhat.com>
5541 Andrew MacLeod <amacleod@redhat.com>
5542
5543 PR c/61553
5544 * c-common.c (get_atomic_generic_size): Don't segfault if the
5545 type doesn't have a size.
5546
0e37a2f3
MP
55472014-06-20 Marek Polacek <polacek@redhat.com>
5548
5549 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
5550 (ubsan_walk_array_refs_r): New function.
5551 (c_genericize): Instrument array bounds.
5552 * c-ubsan.c: Include "internal-fn.h".
5553 (ubsan_instrument_division): Mark instrumented arrays as having
5554 side effects. Adjust ubsan_type_descriptor call.
5555 (ubsan_instrument_shift): Likewise.
5556 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
5557 (ubsan_instrument_bounds): New function.
5558 (ubsan_array_ref_instrumented_p): New function.
5559 (ubsan_maybe_instrument_array_ref): New function.
5560 * c-ubsan.h (ubsan_instrument_bounds): Declare.
5561 (ubsan_array_ref_instrumented_p): Declare.
5562 (ubsan_maybe_instrument_array_ref): Declare.
5563
55642014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
5565
5566 PR lto/61123
5567 * c.opt (fshort-enums): Add to LTO.
5568 * c.opt (fshort-wchar): Likewise.
5569
5c3d09f7
MP
55702014-06-16 Marek Polacek <polacek@redhat.com>
5571
5572 PR c/60439
5573 * c.opt (Wswitch-bool): Add Var.
5574
9cf32741
JJ
55752014-06-12 Jakub Jelinek <jakub@redhat.com>
5576
5577 PR middle-end/61486
5578 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
5579 #pragma omp target teams or
5580 #pragma omp {,target }teams distribute simd.
5581
62984918
JM
55822014-06-12 Jason Merrill <jason@redhat.com>
5583
5584 * c.opt (Wabi=, fabi-compat-version): New.
5585 * c-opts.c (c_common_handle_option): Handle -Wabi=.
5586 (c_common_post_options): Handle flag_abi_compat_version default.
5587 Disallow -fabi-compat-version=1.
5588 * c-common.h (abi_version_crosses): New.
5589
f961457f
JH
55902014-06-11 Jan Hubicka <hubicka@ucw.cz>
5591
adfac8df 5592 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
5593 section names that are no longer trees.
5594
92d28cbb
JJ
55952014-06-10 Jakub Jelinek <jakub@redhat.com>
5596
5597 PR fortran/60928
5598 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
5599 (omp_pragmas): ... back here.
5600
742938c9
MP
56012014-06-05 Marek Polacek <polacek@redhat.com>
5602
5603 PR c/49706
5604 * c-common.c (warn_logical_not_parentheses): New function.
5605 * c-common.h (warn_logical_not_parentheses): Declare.
5606 * c.opt (Wlogical-not-parentheses): New option.
5607
9d548dfb
MP
56082014-06-04 Marek Polacek <polacek@redhat.com>
5609
5610 PR c/30020
5611 * c-common.c (check_case_bounds): Add location parameter.
5612 Use it.
5613 (c_add_case_label): Pass loc to check_case_bounds.
5614
fedfecef
MP
56152014-06-03 Marek Polacek <polacek@redhat.com>
5616
5617 PR c/60439
5618 * c.opt (Wswitch-bool): New option.
5619
f6a7cffc
TS
56202014-05-22 Thomas Schwinge <thomas@codesourcery.com>
5621
040d18b6
TS
5622 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
5623 Remove prototypes.
5624 (record_types_used_by_current_var_decl): Move prototype to where
5625 it belongs.
5626
f6a7cffc
TS
5627 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5628 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5629 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5630
632f2871
RS
56312014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5632
5633 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5634 * c-common.c (c_common_nodes_and_builtins): Don't initialize
5635 void_zero_node.
5636 * c-pretty-print.c (pp_c_void_constant): New function.
5637 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5638 (c_pretty_printer::expression): Handle VOID_CST.
5639 * cilk.c (extract_free_variables): Likewise.
5640 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5641 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5642
766090c2
TS
56432014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5644
5645 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5646 * c-pragma.c (push_alignment): Adjust.
5647 (handle_pragma_push_options): Likewise.
5648
661a0813
MP
56492014-05-09 Marek Polacek <polacek@redhat.com>
5650
5651 PR c/50459
5652 * c-common.c (check_user_alignment): Return -1 if alignment is error
5653 node.
5654 (handle_aligned_attribute): Don't call default_conversion on
5655 FUNCTION_DECLs.
5656 (handle_vector_size_attribute): Likewise.
5657 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5658 (handle_sentinel_attribute): Call default_conversion and allow even
5659 integral types as an argument.
5660
2793eeab
MP
56612014-05-08 Marek Polacek <polacek@redhat.com>
5662
5663 PR c/61053
5664 * c-common.c (min_align_of_type): New function factored out from...
5665 (c_sizeof_or_alignof_type): ...here.
5666 * c-common.h (min_align_of_type): Declare.
5667
f827930a
MP
56682014-05-08 Marek Polacek <polacek@redhat.com>
5669
5670 PR c/61077
5671 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5672 parameter type of main.
5673
ca49b74e
DD
56742014-05-07 DJ Delorie <dj@redhat.com>
5675
5676 * c-cppbuiltin.c (print_bits_of_hex): New.
5677 (builtin_define_type_minmax): Print values using hex so as not to
5678 require a pre-computed list of string values.
5679
1d60af08
KZ
56802014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
5681 Mike Stump <mikestump@comcast.net>
5682 Richard Sandiford <rdsandiford@googlemail.com>
5683
5684 * c-ada-spec.c: Include wide-int.h.
5685 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5686 (dump_generic_ada_node): Use wide-int interfaces.
5687 * c-common.c: Include wide-int-print.h.
5688 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5689 (pointer_int_sum): Use wide-int interfaces.
5690 (c_common_nodes_and_builtins): Use make_int_cst.
5691 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5692 (handle_alloc_size_attribute): Use wide-int interfaces.
5693 (get_nonnull_operand): Likewise.
5694 * c-format.c (get_constant): Use tree_fits_uhwi_p.
5695 * c-lex.c: Include wide-int.h.
5696 (narrowest_unsigned_type): Take a widest_int rather than two
5697 HOST_WIDE_INTs.
5698 (narrowest_signed_type): Likewise.
5699 (interpret_integer): Update accordingly. Use wide-int interfaces.
5700 (lex_charconst): Use wide-int interfaces.
5701 * c-pretty-print.c: Include wide-int.h.
5702 (pp_c_integer_constant): Use wide-int interfaces.
5703 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5704 INT_CST_LT_UNSIGNED.
5705
b15458be
RB
57062014-05-06 Richard Biener <rguenther@suse.de>
5707
5708 * c-opts.c (c_common_post_options): For -freestanding,
5709 -fno-hosted and -fno-builtin disable pattern recognition
5710 if not enabled explicitely.
5711
6577374e
MP
57122014-05-02 Marek Polacek <polacek@redhat.com>
5713
5714 * c.opt (Wsizeof-pointer-memaccess): Describe option.
5715
d00887e8
MP
57162014-05-01 Marek Polacek <polacek@redhat.com>
5717
5718 PR c/43245
5719 * c.opt (Wdiscarded-qualifiers): Add.
5720
f8ed5150
MP
57212014-04-30 Marek Polacek <polacek@redhat.com>
5722
5723 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
5724 INT_MIN / -1 sanitization only for integer types.
5725
45484dcf
MP
57262014-04-25 Marek Polacek <polacek@redhat.com>
5727
5728 PR c/18079
5729 * c-common.c (handle_noinline_attribute): Warn if the attribute
5730 conflicts with always_inline attribute.
5731 (handle_always_inline_attribute): Warn if the attribute conflicts
5732 with noinline attribute.
5733
38e514c0
MP
57342014-04-25 Marek Polacek <polacek@redhat.com>
5735
5736 PR c/60156
5737 * c-common.c (check_main_parameter_types): Warn about variadic main.
5738
44875f92
MS
57392014-04-24 Mike Stump <mikestump@comcast.net>
5740
5741 * c.opt (Wshadow-ivar): Default to on.
5742
dcaaa5a0
DP
57432014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
5744
5745 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5746
c07d7c02
MP
57472014-04-23 Marek Polacek <polacek@redhat.com>
5748
5749 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5750
1c33c9b7
JJ
57512014-04-22 Jakub Jelinek <jakub@redhat.com>
5752
5753 PR sanitizer/60275
5754 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5755 if flag_sanitize_undefined_trap_on_error.
5756 (ubsan_instrument_division, ubsan_instrument_shift,
5757 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
5758 if !flag_sanitize_recover.
5759
793c625f
MG
57602014-04-22 Marc Glisse <marc.glisse@inria.fr>
5761
5762 PR libstdc++/43622
5763 * c-common.c (registered_builtin_types): Make non-static.
5764 * c-common.h (registered_builtin_types): Declare.
5765
b0f1bf36
RB
57662014-04-14 Richard Biener <rguenther@suse.de>
5767 Marc Glisse <marc.glisse@inria.fr>
5768
5769 PR c/60819
5770 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5771 apply may-alias the scalar pointer type when applicable.
5772
3b07fa4a
IZ
57732014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
5774
5775 PR middle-end/60467
5776 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5777 as possible argument for Cilk_spawn.
5778
cbbd2b1c
TB
57792014-04-11 Tobias Burnus <burnus@net-b.de>
5780
5781 PR c/60194
5782 * c.opt (Wformat-signedness): Add
5783 * c-format.c(check_format_types): Use it.
5784
6415bd5d
JM
57852014-04-11 Jason Merrill <jason@redhat.com>
5786
5787 PR c++/57926
5788 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5789 default_conversion for an array argument.
5790
6525783a
MP
57912014-04-08 Marek Polacek <polacek@redhat.com>
5792
5793 PR sanitizer/60745
5794 * c-ubsan.c: Include asan.h.
5795 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5796
880a467b
NS
57972014-04-03 Nathan Sidwell <nathan@codesourcery.com>
5798
5799 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5800
7b59ff2d
MP
58012014-04-02 Marek Polacek <polacek@redhat.com>
5802
5803 * c-common.h (c_expand_expr): Remove declaration.
5804
8edbfaa6
JJ
58052014-03-28 Jakub Jelinek <jakub@redhat.com>
5806
5807 PR c++/60689
5808 * c-common.c (add_atomic_size_parameter): When creating new
5809 params vector, push the size argument first.
5810
07d72e1d
JJ
58112014-03-26 Jakub Jelinek <jakub@redhat.com>
5812
5813 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5814 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5815 ubsan_create_data callers.
5816
b35e0fa0
JJ
58172014-03-22 Jakub Jelinek <jakub@redhat.com>
5818
5819 PR debug/60603
5820 * c-opts.c (c_finish_options): Restore cb_file_change call to
5821 <built-in>.
5822
39a1ebb3
JJ
58232014-03-13 Jakub Jelinek <jakub@redhat.com>
5824
5825 PR middle-end/36282
5826 * c-pragma.c (apply_pragma_weak): Only look at
5827 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
5828 DECL_ASSEMBLER_NAME_SET_P (decl).
5829 (maybe_apply_pending_pragma_weaks): Exit early if
5830 vec_safe_is_empty (pending_weaks) rather than only when
5831 !pending_weaks.
5832 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
5833 set assembler name back to NULL afterwards.
5834
a07f6ed2
JM
58352014-03-11 Jason Merrill <jason@redhat.com>
5836
5837 * c.opt: Add -std=gnu++14.
5838
75b107f5
IB
58392014-03-11 Ian Bolton <ian.bolton@arm.com>
5840
5841 * c-opts.c (c_common_post_options): Don't override
5842 -ffp-contract=fast if unsafe-math-optimizations is on.
5843
f42c637e
PM
58442014-03-08 Paulo Matos <paulo@matos-sorge.com>
5845
22b15758 5846 * c.opt: Enable LTO FE for fshort-double.
f42c637e 5847
70e24808
JM
58482014-03-07 Jason Merrill <jason@redhat.com>
5849
5850 * c.opt: Add -std=c++14.
5851
3af9c5e9
MP
58522014-03-06 Marek Polacek <polacek@redhat.com>
5853
5854 PR c/60197
5855 * cilk.c (contains_cilk_spawn_stmt): New function.
5856 (contains_cilk_spawn_stmt_walker): Likewise.
5857 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
5858 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
5859
b3bdf019
JJ
58602014-03-03 Jakub Jelinek <jakub@redhat.com>
5861
5862 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
5863 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
5864 even when flag_preprocess_only.
5865
ca7e759d
JM
58662014-02-26 Jason Merrill <jason@redhat.com>
5867
5868 PR c++/59231
5869 PR c++/11586
5870 * c-common.c (shorten_compare): Don't check
5871 c_inhibit_evaluation_warnings.
5872
28e41874
JJ
58732014-02-19 Jakub Jelinek <jakub@redhat.com>
5874
cca615af
JJ
5875 PR c/37743
5876 * c-common.c (c_common_nodes_and_builtins): When initializing
5877 c_uint{16,32,64}_type_node, also set corresponding
5878 uint{16,32,64}_type_node to the same value.
5879
28e41874
JJ
5880 PR c++/60267
5881 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
5882 for PRAGMA_IVDEP if flag_preprocess_only.
5883
c2bf53a1
JJ
58842014-02-12 Jakub Jelinek <jakub@redhat.com>
5885
5886 PR c/60101
5887 * c-common.c (merge_tlist): If copy is true, call new_tlist,
5888 if false, add ADD itself, rather than vice versa.
5889 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
5890 copy. For SAVE_EXPR, only call merge_tlist once.
5891
8fcbce72
JJ
58922014-02-08 Jakub Jelinek <jakub@redhat.com>
5893
5894 PR middle-end/60092
5895 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
5896 and tree_to_uhwi.
5897 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
5898 functions.
5899 (c_common_attribute_table): Add alloc_align and assume_aligned
5900 attributes.
5901
0a756a3f
MP
59022014-02-06 Marek Polacek <polacek@redhat.com>
5903
5904 PR c/60087
5905 * c-common.c (warn_for_sign_compare): Call warning_at with location
5906 instead of warning.
5907
7ec4847a
MP
59082014-02-05 Marek Polacek <polacek@redhat.com>
5909
5910 PR c/53123
5911 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
5912 statement.
5913
66f20604
MP
59142014-02-04 Marek Polacek <polacek@redhat.com>
5915
5916 PR c/60036
5917 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
5918 SAVE_EXPR.
5919
5d77fb19
MG
59202014-02-03 Marc Glisse <marc.glisse@inria.fr>
5921
5922 PR c++/53017
5923 PR c++/59211
5924 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
5925 handle_vector_size_attribute, handle_nonnull_attribute): Call
5926 default_conversion on the attribute argument.
5927 (handle_nonnull_attribute): Increment the argument number.
5928
81e5eca8
MP
59292014-01-31 Marek Polacek <polacek@redhat.com>
5930
5931 PR c/59963
5932 * c-common.c (add_atomic_size_parameter): Pass vNULL to
5933 build_function_call_vec.
5934 (resolve_overloaded_builtin): Likewise.
5935 * c-common.h (build_function_call_vec): Adjust declaration.
5936
68fca595
MP
59372014-01-30 Marek Polacek <polacek@redhat.com>
5938
5939 PR c/59940
5940 * c-common.h (unsafe_conversion_p): Adjust declaration.
5941 (warnings_for_convert_and_check): Likewise.
5942 (convert_and_check): Likewise.
5943 * c-common.c (unsafe_conversion_p): Add location parameter. Call
5944 expansion_point_location_if_in_system_header on it.
5945 (warnings_for_convert_and_check): Add location parameter. Call
5946 expansion_point_location_if_in_system_header on it. Use it.
5947 (convert_and_check): Add location parameter. Use it.
5948 (conversion_warning): Likewise.
5949 (c_add_case_label): Adjust convert_and_check calls.
5950 (scalar_to_vector): Adjust unsafe_conversion_p calls.
5951
b72271b9
BI
59522014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
5953
5954 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
5955 flag_cilkplus.
5956 * c-pragma.c (init_pragma): Likewise.
5957 * c.opt: Likewise.
5958
393e8e8b
MP
59592014-01-23 Marek Polacek <polacek@redhat.com>
5960
5961 PR c/59846
5962 * c-common.c (shorten_compare): Add location_t parameter.
5963 * c-common.h (shorten_binary_op): Adjust declaration.
5964
f04dda30
MP
59652014-01-23 Marek Polacek <polacek@redhat.com>
5966
5967 PR c/58346
5968 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
5969 * c-common.h: Declare it.
5970
621955cb
EB
59712014-01-20 Eric Botcazou <ebotcazou@adacore.com>
5972
5973 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
5974 * c-ada-spec.c (dump_ads): Likewise.
5975 (cpp_check): Likewise.
5976 (dump_ada_specs): Likewise.
5977
59782014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
5979
5980 PR c++/49718
5981 * c-common.c (handle_no_instrument_function_attribute): Allow
5982 no_instrument_function attribute in class member
5983 definition/declaration.
5984
241f845a
JJ
59852014-01-15 Jakub Jelinek <jakub@redhat.com>
5986
5987 PR c/58943
5988 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
5989 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
5990 being COMPOUND_EXPR.
5991 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
5992 operand a SAVE_EXPR and second MODIFY_EXPR.
5993
e83b8e2e
JJ
59942014-01-09 Jakub Jelinek <jakub@redhat.com>
5995
5996 PR target/58115
5997 * c-pch.c (c_common_write_pch): Call
5998 prepare_target_option_nodes_for_pch.
5999
23a5b65a
RS
60002014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6001
6002 Update copyright years
6003
f9030485
RS
60042014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6005
6006 * array-notation-common.c, c-cilkplus.c: Use the standard form for
6007 the copyright notice.
6008
f2aa696b
EB
60092013-12-28 Eric Botcazou <ebotcazou@adacore.com>
6010
6011 * c-ada-spec.c (print_constructor): New function.
6012 (print_destructor): Retrieve the origin of the destructor.
6013 (print_ada_declaration): Revamp handling of constructors/destructors.
6014
3f8257db 60152013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
6016 Bill Maddox <maddox@google.com>
6017 Jason Merrill <jason@redhat.com>
6018
6019 * c.opt: Add -fdeclone-ctor-dtor.
6020 * c-opts.c (c_common_post_options): Default to on iff -Os.
6021
41958c28
BI
60222013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
6023
6024 * c-common.c (c_common_attribute_table): Added "cilk simd function"
6025 attribute.
6026 * c-pragma.h (enum pragma_cilk_clause): Remove.
6027 (enum pragma_omp_clause): Added the following fields:
6028 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
6029 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
6030 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
6031 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
6032 PRAGMA_CILK_CLAUSE_UNIFORM.
6033
b1726d6c 6034
12893402
BI
60352013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
6036
6037 * cilk.c (cilk_outline): Made this function non-static.
6038 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
6039 (create_cilk_wrapper): Added a new parameter: a function pointer.
6040 (c_install_body_w_frame_cleanup): Remove
6041 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
6042 * c-common.h (cilk_outline): New prototype.
6043 (gimplify_cilk_spawn): Removed two parameters.
6044 (cilk_install_body_with_frame_cleanup): New prototype.
6045 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
6046 CILK_SPAWN_STMT case.
6047
085b42ed
BS
60482013-12-11 Bernd Schmidt <bernds@codesourcery.com>
6049
2ce064c3
BS
6050 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
6051
085b42ed
BS
6052 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
6053 (int_array_type_node): Remove.
6054 * c-common.c (c_common_nodes_and_builtins): Don't build it.
6055
9e36c9ed
MP
60562013-12-05 Marek Polacek <polacek@redhat.com>
6057
6058 PR c/52023
6059 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
6060 [ADJUST_FIELD_ALIGN].
6061
296674db
JM
60622013-12-04 Joseph Myers <joseph@codesourcery.com>
6063
6064 PR c/52023
6065 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
6066 and check field alignment if set.
6067 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
6068 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
6069
b1726d6c 60702013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
6071 Marek Polacek <polacek@redhat.com>
6072
6073 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
6074 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
6075
d7947e19
L
60762013-11-29 H.J. Lu <hongjiu.lu@intel.com>
6077
6078 PR c/59309
6079 * cilk.c (gimplify_cilk_spawn): Properly handle function without
6080 arguments.
6081
fad7652e
JJ
60822013-11-29 Jakub Jelinek <jakub@redhat.com>
6083
6084 PR c/59280
6085 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
6086 goto invalid. If it is error_mark_node, don't issue further
6087 diagnostics.
6088
8b5e1202
SO
60892013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
6090
6091 * c.opt (Wopenmp-simd): New.
6092
0a508bb6
JJ
60932013-11-22 Jakub Jelinek <jakub@redhat.com>
6094
6095 * c-ubsan.h (ubsan_instrument_return): New prototype.
6096 * c-ubsan.c (ubsan_instrument_return): New function.
6097
2fb9a547
AM
60982013-11-22 Andrew MacLeod <amacleod@redhat.com>
6099
6100 * c-common.c: Add required include files from gimple.h.
6101 * c-gimplify.c: Likewise
6102 * cilk.c: Likewise
6103
8400e75e
DM
61042013-11-22 David Malcolm <dmalcolm@redhat.com>
6105
6106 * c-common.c (unsafe_conversion_p): Remove use of
6107 EXPR_LOC_OR_HERE macro.
6108 (conversion_warning): Likewise.
6109 (warnings_for_convert_and_check): Likewise.
6110 (warn_for_collisions_1): Likewise.
6111 (shorten_compare): Likewise, and remove use of in_system_header
6112 macro, using the location from the former.
6113 * c-lex.c (dump_one_header): Remove use of input_filename macro.
6114 (cb_def_pragma): Remove use of in_system_header macro.
6115 (lex_string): Likewise.
6116 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6117
eb1ce453
KZ
61182013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6119 Mike Stump <mikestump@comcast.net>
6120 Richard Sandiford <rdsandiford@googlemail.com>
6121
6122 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
6123 instead of TREE_INT_CST_LOW, in cases where there is a protecting
6124 tree_fits_shwi_p or tree_fits_uhwi_p.
6125 (dump_generic_ada_node): Likewise.
6126 * c-format.c (check_format_arg): Likewise.
6127 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6128
6b3b8c27
KZ
61292013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6130
6131 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
6132
49b0aa18
JC
61332013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
6134
6135 PR c/53001
6136 * c-common.c (unsafe_conversion_p): Make this function
6137 return an enumeration with more detail.
6138 (conversion_warning): Use the new return type of
6139 unsafe_conversion_p to separately warn either about conversions
6140 that lower floating point number precision or about the other
6141 kinds of conversions.
6142 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
6143 (unsafe_conversion_p): switching return type to
6144 conversion_safety enumeration.
49b0aa18
JC
6145 * c.opt: Adding new warning -Wfloat-conversion and
6146 enabling it with -Wconversion.
6147
b826515a
BS
61482013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
6149
8e745a17
JJ
6150 * c-opts.c: Include plugin.h.
6151 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 6152
b9a55b13
MP
61532013-11-19 Marek Polacek <polacek@redhat.com>
6154
6155 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
6156 call.
6157 (ubsan_instrument_shift): Likewise.
6158 (ubsan_instrument_vla): Likewise.
6159
7d362f6c
RS
61602013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6161
6162 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
6163 cast to unsigned type.
6164
386b1f1f
RS
61652013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6166
6167 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
6168 tree_low_cst.
6169 (complete_array_type): Update comment to refer to tree_to_[su]hwi
6170 rather than tree_low_cst.
6171
ae7e9ddd
RS
61722013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6173
6174 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
6175 tree_to_uhwi throughout.
6176
9439e9a1
RS
61772013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6178
6179 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
6180 tree_low_cst (..., 0) with tree_to_shwi throughout.
6181
cc269bb6
RS
61822013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6183
6184 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
6185 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
6186
9541ffee
RS
61872013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6188
6189 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
6190 host_integerp (..., 0) with tree_fits_shwi_p throughout.
6191
c02065fc
AH
61922013-11-15 Aldy Hernandez <aldyh@redhat.com>
6193
6194 * c-cilkplus.c: New file.
6195 * c-common.c (readonly_error): Add location argument.
6196 * c-common.h (readonly_error): Same.
6197 (c_finish_cilk_clauses): Protoize.
6198 (c_check_cilk_loop): Same.
6199 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
6200 Do not fail on error_mark_node.
6201 Abstract increment canonicalization to here...
6202 (c_omp_for_incr_canonicalize_ptr): New.
6203 c-pragma.c (init_pragma): Register "simd" pragma.
6204 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
6205 (enum pragma_cilk_clause): New.
6206
9cc65f15
RS
62072013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6208
6209 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
6210 wchar_type and host_integerp checks.
6211
18f429e2
AM
62122013-11-14 Andrew MacLeod <amacleod@redhat.com>
6213
6214 * c-common.c: Likewise.
6215 * c-gimplify.c: Likewise.
6216 * cilk.c: Likewise.
6217
d8a2d370
DN
62182013-11-14 Diego Novillo <dnovillo@google.com>
6219
6220 * c-common.c: Include fold-const.h.
6221 Include stor-layout.h.
6222 Include calls.h.
6223 Include stringpool.h.
6224 Include attribs.h.
6225 Include varasm.h.
6226 Include trans-mem.h.
6227 * c-cppbuiltin.c: Include stor-layout.h.
6228 Include stringpool.h.
6229 * c-format.c: Include stringpool.h.
6230 * c-lex.c: Include stringpool.h.
6231 Include stor-layout.h.
6232 * c-pragma.c: Include stringpool.h.
6233 Include attribs.h.
6234 Include varasm.h.
6235 Include gcc-symtab.h.
6236 * c-pretty-print.c: Include stor-layout.h.
6237 Include attribs.h.
6238 * cilk.c: Include stringpool.h.
6239 Include calls.h.
6240
38b7bc7f
JM
62412013-11-13 Joseph Myers <joseph@codesourcery.com>
6242
6243 * c-common.h (enum rid): Add RID_AUTO_TYPE.
6244 * c-common.c (c_common_reswords): Add __auto_type.
6245 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
6246
45b0be94
AM
62472013-11-12 Andrew MacLeod <amacleod@redhat.com>
6248
18f429e2
AM
6249 * c-common.c: Include gimplify.h.
6250 * c-gimplify.c: Likewise.
6251 * cilk.c: Likewise.
6252 * c-omp.c: Include gimple-expr.h instead of gimple.h.
6253 * c-ubsan.c: Don't include gimple.h.
45b0be94 6254
582d9b50
JM
62552013-11-12 Joseph Myers <joseph@codesourcery.com>
6256
6257 * c-common.c (c_common_reswords): Add _Thread_local.
6258
6b28e197
JM
62592013-11-09 Joseph Myers <joseph@codesourcery.com>
6260
6261 * c-common.c (atomic_size_supported_p): New function.
6262 (resolve_overloaded_atomic_exchange)
6263 (resolve_overloaded_atomic_compare_exchange)
6264 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
6265 Use it instead of comparing size with a local list of sizes.
6266
267bac10
JM
62672013-11-07 Andrew MacLeod <amacleod@redhat.com>
6268 Joseph Myers <joseph@codesourcery.com>
6269
6270 * c-common.h (enum rid): Add RID_ATOMIC.
6271 * c-common.c (c_common_reswords): Add _Atomic.
6272 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
6273 (keyword_is_type_qualifier): Accept RID_ATOMIC.
6274 * c-format.c (check_format_types): Check for extra _Atomic
6275 qualifiers in format argument.
6276 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
6277 (pp_c_type_qualifier_list): Mention _Atomic in comment.
6278
5157b91e
TB
62792013-11-06 Tobias Burnus <burnus@net-b.de>
6280
6281 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
6282
6dbe0958
JM
62832013-11-06 Joseph Myers <joseph@codesourcery.com>
6284
6285 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
6286 standards modes.
6287 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
6288 to mean lack of IEEE 754 support.
6289
e8ff5196
TB
62902013-11-05 Tobias Burnus <burnus@net-b.de>
6291
6292 * c.opt (-Wdate-time): New option
6293 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
6294
254a0760
JM
62952013-11-05 Joseph Myers <joseph@codesourcery.com>
6296
6297 * c-cppbuiltin.c (cpp_iec_559_value): Test
6298 flag_excess_precision_cmdline not flag_excess_precision.
6299
6d7f7e0a
TB
63002013-11-05 Tobias Burnus <burnus@net-b.de>
6301
6302 * c.opt (fopenmp-simd): New option.
6303 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
6304 (omp_pragmas): ... this new struct.
6305 (c_pp_lookup_pragma): Also walk omp_pragmas.
6306 (init_pragma): Init pragmas for -fopenmp-simd.
6307
55a7f02f
MP
63082013-11-04 Marek Polacek <polacek@redhat.com>
6309
6310 PR c++/58979
6311 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
6312
9193fb05
JM
63132013-11-04 Joseph Myers <joseph@codesourcery.com>
6314
6315 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
6316 New functions.
6317 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
6318
94159ecf
EB
63192013-11-04 Eric Botcazou <ebotcazou@adacore.com>
6320
6321 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
6322 (dump_ada_specs): Adjust prototype of second callback.
6323 * c-ada-spec.c (cpp_check): New global variable.
6324 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
6325 (print_generic_ada_decl): Likewise.
6326 (has_static_fields): Change return type to bool and add guard.
6327 (has_nontrivial_methods): New predicate.
6328 (is_tagged_type): Change return type to bool.
6329 (separate_class_package): Call has_nontrivial_methods.
6330 (pp_ada_tree_identifier): Minor tweaks.
6331 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
6332 (dump_ada_array_domains): Likewise.
6333 (dump_ada_array_type): Likewise.
6334 (dump_template_types): Remove cpp_check parameter and do not pass it to
6335 dump_generic_ada_node.
6336 (dump_ada_template): Likewise.
6337 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
6338 recursively.
6339 (print_ada_methods): Change return type to integer. Remove cpp_check
6340 parameter and do not pass it down.
6341 (dump_nested_types): Remove cpp_check parameter and do not pass it to
6342 dump_generic_ada_node.
6343 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
6344 accessing methods.
6345 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
6346 down. Use has_nontrivial_methods to recognize C++ classes. Use return
6347 value of print_ada_methods.
6348 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
6349 Set cpp_check to it before invoking dump_ada_nodes.
6350 (dump_ada_specs): Likewise.
6351
b906f4ca
MP
63522013-11-03 Marek Polacek <polacek@redhat.com>
6353
6354 * c-ubsan.c: Don't include hash-table.h.
6355 (ubsan_instrument_vla): New function.
6356 * c-ubsan.h: Declare it.
6357
5e20cdc9
DM
63582013-10-31 David Malcolm <dmalcolm@redhat.com>
6359
6360 Automated part of renaming of symtab_node_base to symtab_node.
6361
6362 Patch autogenerated by rename_symtab.py from
6363 https://github.com/davidmalcolm/gcc-refactoring-scripts
6364 revision 58bb219cc090b2f4516a9297d868c245495ee622
6365
6366 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
6367 symtab_node_base to symtab_node.
6368
7057e645
ESR
63692013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
6370
8e745a17 6371 Implement C++14 digit separators.
7057e645
ESR
6372 * c-lex.c (interpret_float): Remove digit separators from scratch string
6373 before building real literal.
6374
193ea7bc
JJ
63752013-10-30 Jakub Jelinek <jakub@redhat.com>
6376
6377 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
6378
939b37da
BI
63792013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
6380
6381 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
6382 fields.
6383 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
6384 enabled.
6385 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
6386 (insert_cilk_frame): New prototype.
6387 (cilk_init_builtins): Likewise.
6388 (gimplify_cilk_spawn): Likewise.
6389 (c_cilk_install_body_w_frame_cleanup): Likewise.
6390 (cilk_detect_spawn_and_unwrap): Likewise.
6391 (cilk_set_spawn_marker): Likewise.
6392 (build_cilk_sync): Likewise.
6393 (build_cilk_spawn): Likewise.
6394 * cilk.c: New file.
6395
67348ccc
DM
63962013-10-29 David Malcolm <dmalcolm@redhat.com>
6397
6398 Patch autogenerated by refactor_symtab.py from
6399 https://github.com/davidmalcolm/gcc-refactoring-scripts
6400 revision 58bb219cc090b2f4516a9297d868c245495ee622
6401
6402 * c-gimplify.c (c_genericize): Update for conversion of symtab types
6403 to a true class hierarchy.
6404 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
6405
d570872d
RS
64062013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
6407
6408 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
6409
98906124
JL
64102013-10-26 Jeff Law <law@redhat.com>
6411
adfac8df
JJ
6412 * c-common.c (c_define_builtins): Remove mudflap support.
6413 * c.opt: Ignore and warn for mudflap options.
98906124 6414
d73749df 64152013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
6416
6417 PR other/33426
6418 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
6419 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
6420
3f04b1bb
JM
64212013-10-23 Jason Merrill <jason@redhat.com>
6422
6423 * c-format.c (gcc_cxxdiag_char_table): Add %X.
6424
acf0174b
JJ
64252013-10-11 Jakub Jelinek <jakub@redhat.com>
6426
acd15a28
JJ
6427 * c-common.h (omp_clause_mask::operator !=): New method.
6428 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
6429 instead of if (mask & something) tests everywhere.
6430
acf0174b
JJ
6431 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
6432 201307 instead of 201107.
6433 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
6434 (c_common_attribute_table): Add "omp declare target" and
6435 "omp declare simd" attributes.
6436 (handle_omp_declare_target_attribute,
6437 handle_omp_declare_simd_attribute): New functions.
6438 * c-omp.c: Include c-pragma.h.
6439 (c_finish_omp_taskgroup): New function.
6440 (c_finish_omp_atomic): Add swapped argument, if true,
6441 build the operation first with rhs, lhs arguments and use NOP_EXPR
6442 build_modify_expr.
6443 (c_finish_omp_for): Add code argument, pass it down to make_code.
6444 (c_omp_split_clauses): New function.
6445 (c_split_parallel_clauses): Removed.
6446 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
6447 c_omp_declare_simd_clauses_to_decls): New functions.
6448 * c-common.h (omp_clause_mask): New type.
6449 (OMP_CLAUSE_MASK_1): Define.
6450 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
6451 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
6452 omp_clause_mask::operator |, omp_clause_mask::operator &,
6453 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
6454 omp_clause_mask::operator ==): New methods.
6455 (enum c_omp_clause_split): New.
6456 (c_finish_omp_taskgroup): New prototype.
6457 (c_finish_omp_atomic): Add swapped argument.
6458 (c_finish_omp_for): Add code argument.
6459 (c_omp_split_clauses): New prototype.
6460 (c_split_parallel_clauses): Removed.
6461 (c_omp_declare_simd_clauses_to_numbers,
6462 c_omp_declare_simd_clauses_to_decls): New prototypes.
6463 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
6464 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
6465 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
6466 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
6467 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
6468 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
6469 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
6470 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
6471 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
6472 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
6473 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
6474 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
6475 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
6476 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
6477 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
6478 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
6479 PRAGMA_OMP_CLAUSE_UNIFORM.
6480
826cacfe
MG
64812013-10-09 Marc Glisse <marc.glisse@inria.fr>
6482
6483 PR tree-optimization/20318
6484 * c-common.c (handle_returns_nonnull_attribute): New function.
6485 (c_common_attribute_table): Add returns_nonnull.
6486
2284b034
MG
64872013-10-03 Marc Glisse <marc.glisse@inria.fr>
6488
6489 PR c++/19476
6490 * c.opt (fcheck-new): Move to common.opt.
6491
b56e9788
MP
64922013-09-25 Marek Polacek <polacek@redhat.com>
6493 Jakub Jelinek <jakub@redhat.com>
6494
6495 PR sanitizer/58413
6496 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
6497 an expression if we can prove it is correct.
6498 (ubsan_instrument_division): Likewise. Remove unnecessary
6499 check.
6500
ce6923c5
MP
65012013-09-18 Marek Polacek <polacek@redhat.com>
6502
6503 PR sanitizer/58411
6504 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
6505 Declare it.
6506 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
6507
fb5610fb
IS
65082013-09-14 Iain Sandoe <iain@codesourcery.com>
6509
6510 PR target/48094
6511 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
6512 fobjc-gc, freplace-objc-classes): Accept for LTO.
6513
88b0e79e
JC
65142013-09-13 Jacek Caban <jacek@codeweavers.com>
6515
6516 * c-target.def: New hook
6517
c9b0866a
PC
65182013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6519
6520 PR c++/43452
6521 * c.opt (Wdelete-incomplete): Add.
6522
0af94e6f
JR
65232013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
6524
6525 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
6526 (vector_types_compatible_elements_p): New function.
6527 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
6528 declaration.
6529 (vector_types_compatible_elements_p): Declare.
6530
7c26172c
GDR
65312013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6532
6533 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
6534 a virtual member function.
6535 (pp_simple_type_specifier): Remove.
6536 (pp_c_type_specifier): Likewise.
6537 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
6538 Rename from pp_c_type_specifier. Adjust.
6539 (c_pretty_printer::c_pretty_printer): Do not assign to
6540 simple_type_specifier.
6541
20059c8b
GDR
65422013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6543
6544 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
6545 member function.
6546 (c_pretty_printer::storage_class_specifier): Likewise.
6547 (c_pretty_printer::initializer): Likewise.
6548 (pp_declaration): Remove.
6549 (pp_declaration_specifiers): Likewise.
6550 (pp_abstract_declarator): Likewise.
6551 (pp_declarator): Likewise.
6552 (pp_type_id): Likewise.
6553 (pp_statement): Likewise.
6554 (pp_constant): Likewise.
6555 (pp_id_expression): Likewise.
6556 (pp_primary_expression): Likewise.
6557 (pp_unary_expression): Likewise.
6558 (pp_multiplicative_expression): Likewise.
6559 (pp_conditional_expression): Likewise.
6560 (pp_assignment_expression): Likewise.
6561 (pp_expression): Likewise.
6562 (pp_c_type_id): Likewise.
6563 (pp_c_storage_class_specifier): Likewise.
6564 * c-pretty-print.c (pp_c_type_cast): Tidy.
6565 (pp_c_pointer): Likewise.
6566 (pp_c_type_specifier): Likewise.
6567 (pp_c_parameter_type_list): Likewise.
6568 (pp_c_function_definition): Likewise.
6569 (pp_c_init_declarator): Likewise.
6570 (pp_c_initializer_list): Likewise.
6571 (pp_c_constructor_elts): Likewise.
6572 (c_pretty_printer::direct_abstract_declarator): Likewise.
6573 (c_pretty_printer::declaration_specifiers): Likewise.
6574 (c_pretty_printer::primary_expression): Likewise.
6575 (c_pretty_printer::postfix_expression): Likewise.
6576 (c_pretty_printer::type_id): Rename from pp_c_type_id.
6577 (c_pretty_printer::storage_class_specifier): Rename from
6578 pp_c_storage_class_specifier.
6579 (c_pretty_printer::initializer): Rename from pp_c_initializer.
6580 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
6581 storage_class_specifier, initializer, offset_list, flags.
6582
de5a5fa1
MP
65832013-08-30 Marek Polacek <polacek@redhat.com>
6584
6585 * c-ubsan.c: New file.
6586 * c-ubsan.h: New file.
6587
8f0e4d72
GDR
65882013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
6589
6590 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
6591 member function.
6592 (c_pretty_printer::declaration_specifiers): Likewise.
6593 (c_pretty_printer::declarator): Likewise.
6594 (c_pretty_printer::abstract_declarator): Likewise.
6595 (c_pretty_printer::direct_abstract_declarator): Likewise.
6596 (c_pretty_printer::direct_declarator): Likewise.
6597 (c_pretty_printer::function_specifier): Likewise.
6598 (pp_declaration): Adjust.
6599 (pp_declaration_specifiers): Likewise.
6600 (pp_abstract_declarator): Likewise.
6601 (pp_direct_declarator): Likewise.
6602 (pp_function_specifier): Likewise.
6603 (pp_direct_abstract_declarator): Remove as unused.
6604 (pp_c_declaration): Remove.
6605 (pp_c_declaration_specifiers): Likewise.
6606 (pp_c_declarator): Likewise.
6607 (pp_c_direct_declarator): Likewise.
6608 (pp_c_function_specifier): Likewise.
6609 (pp_c_direct_abstract_declarator): Likewise.
6610 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
6611 from pp_c_abstract_declarator. Adjust.
6612 (c_pretty_printer::direct_abstract_declarator): Rename from
6613 pp_c_direct_abstract_declarator. Adjust.
6614 (c_pretty_printer::function_specifier): Rename from
6615 pp_c_function_specifier. Adjust.
6616 (c_pretty_printer::declaration_specifiers): Rename from
6617 pp_c_declaration_specifiers. Adjust.
6618 (c_pretty_printer::direct_declarator): Rename from
6619 pp_c_direct_declarator. Adjust.
6620 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
6621 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
6622 (c_pretty_printer::c_pretty_printer): Do not assign to
6623 declaration, declaration_specifiers, declarator,
6624 direct_declarator, direct_abstract_declarator, function_specifier.
6625
00d34d3a
GDR
66262013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
6627
6628 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6629 virtual member function.
6630 (c_pretty_printer::multiplicative_expression): Likewise.
6631 (c_pretty_printer::conditional_expression): Likewise.
6632 (c_pretty_printer::assignment_expression): Likewise.
6633 (c_pretty_printer::expression): Likewise.
6634 (pp_unary_expression): Adjust.
6635 (pp_multiplicative_expression): Likewise.
6636 (pp_assignment_expression): Likewise.
6637 (pp_conditional_expression): Likewise.
6638 (pp_expression): Likewise.
6639 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6640 from pp_c_unary_expression. Adjust.
6641 (c_pretty_printer::multiplicative_expression): Rename from
6642 pp_c_multiplicative_expression. Adjust.
6643 (c_pretty_printer::conditional_expression): Rename from
6644 pp_c_conditional_expression. Adjust.
6645 (c_pretty_printer::assignment_expression): Rename from
6646 pp_c_assignment_expression. Adjust.
6647 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
6648 (c_pretty_printer::c_pretty_printer): Do not assign to
6649 unary_expression, multiplicative_expression,
6650 conditional_expression, expression.
6651
fb22178f
GDR
66522013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6653
6654 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6655 virtual member function.
6656 (pp_postfix_expression): Adjust.
6657 (pp_c_postfix_expression): Remove.
6658 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6659 from pp_c_postfix_expression. Adjust.
6660 (c_pretty_printer::c_pretty_printer): Do not assign to
6661 postfix_expression.
6662
7ecc2600
GDR
66632013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6664
6665 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6666 virtua member function.
6667 (pp_primary_expression): Adjust.
6668 (pp_c_primary_expression): Remove.
6669 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6670 from pp_c_primary_expression. Adjust.
6671 (pp_c_initializer_list): Use pp_primary_expression.
6672 (c_pretty_printer::c_pretty_printer): Do not assign to
6673 primary_expression.
6674
0691175f
GDR
66752013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6676
6677 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6678 * c-pretty-print.c (M_): Remove.
6679 (c_pretty_printer::translate_string): Define.
6680 (pp_c_type_specifier): Use it.
6681 (pp_c_primary_expression): Likewise.
6682 (pp_c_expression): Likewise.
6683
66dfe4c4
GDR
66842013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6685
6686 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6687 virtual function.
6688 (pp_c_id_expression): Remove.
6689 (pp_id_expression): Adjust.
6690 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6691 pp_c_id_expression. Adjust.
6692 (pp_c_postfix_expression): Use pp_id_expression.
6693 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6694
ca43e9d5
GDR
66952013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6696
6697 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6698 member function.
6699 (pp_constant): Adjust.
6700 (pp_c_constant): Remove.
6701 * c-pretty-print.c (c_pretty_printer::constant): Rename from
6702 pp_c_constant. Adjust.
6703 (pp_c_constant)
6704 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6705 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6706
da6ca2b5
GDR
67072013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6708
6709 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6710 (c_pretty_printer::c_pretty_printer): Declare.
6711 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6712 c_pretty_printer_init. Adjust.
6713 (print_c_tree): Do not call c_pretty_printer_init.
6714 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6715
65a372f4
AC
67162013-08-09 Arnaud Charlet <charlet@adacore.com>
6717
6718 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6719
fd9b0f32
PC
67202013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
6721
6722 PR c++/58080
6723 * c-common.c (pointer_int_sum): Add bool parameter.
6724 * c-common.h (pointer_int_sum): Adjust declaration.
6725
e0aec1e9
GDR
67262013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6727
6728 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
6729 c_pretty_printer variable.
6730
b066401f
GDR
67312013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6732
6733 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6734 (pp_base): Remove.
6735 (pp_c_base): Likewise. Adjust users.
6736 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6737 (pp_c_whitespace): Do not call pp_base.
6738 (pp_c_left_paren): Likewise.
6739 (pp_c_right_paren): Likewise.
6740 (pp_c_left_brace): Likewise.
6741 (pp_c_right_brace): Likewise.
6742 (pp_c_left_bracket): Likewise.
6743 (pp_c_right_bracket): Likewise.
6744 (pp_c_dot): Likewise.
6745 (pp_c_ampersand): Likewise.
6746 (pp_c_star): Likewise.
6747 (pp_c_arrow): Likewise.
6748 (pp_c_semicolon): Likewise.
6749 (pp_c_complement): Likewise.
6750 (pp_c_exclamation): Likewise.
6751 (pp_c_direct_declarator): Likewise.
6752 (pp_c_ws_string): Likewise.
6753 (pp_c_identifier): Likewise.
6754 (pp_c_statement): Likewise.
6755 (print_c_tree): Likewise.
6756
65e5a578
ESR
67572013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
6758
6759 PR c++/58072
6760 * c-common.c (c_parse_error): Catch user-defined literal tokens and
6761 provide useful error strings.
6762
137a1a27
GDR
67632013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6764
6765 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6766 printer functions instead of pp_string or operators and punctuators.
6767 (dump_generic_ada_node): Likewise.
6768 * c-pretty-print.c (pp_c_type_specifier): Likewise.
6769 (pp_c_relational_expression): Likewise.
6770 (pp_c_logical_or_expression): Likewise.
6771
07838b13
GDR
67722013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6773
6774 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6775 functions instead of pp_character.
6776 (pp_ada_tree_identifier): Likewise.
6777 (dump_ada_double_name): Likewise.
6778 (dump_ada_function_declaration): Likewise.
6779 (dump_ada_array_domains): Likewise.
6780 (dump_template_types): Likewise.
6781 (dump_generic_ada_node): Likewise.
6782 (print_ada_declaration): Likewise.
6783 (print_ada_struct_decl): Likewise.
6784 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6785
433cc7b0
TT
67862013-07-23 Tom Tromey <tromey@redhat.com>
6787
6788 * c-common.h (enum rid) <RID_GENERIC>: New constant.
6789 * c-common.c (c_common_reswords): Add _Generic.
6790
688010ba
OB
67912013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
6792
6793 * c-common.c: Fix typos.
6794 * c-common.h: Likewise.
6795
2a99e5e6
LL
67962013-07-13 Lubos Lunak <l.lunak@suse.cz>
6797
6798 PR c++/55203
6799 * c-common.c (c_common_attribute_table): Add warn_unused.
6800 (handle_warn_unused_attribute): New.
6801
c26302d5
JJ
68022013-07-10 Jakub Jelinek <jakub@redhat.com>
6803
6804 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6805 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6806
dfeadaa0
PC
68072013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
6808
6809 PR c++/57869
6810 * c.opt: Add Wconditionally-supported.
6811
6a2fa4b2
GS
68122013-07-08 Graham Stott <graham.stott@btinternet.com>
6813
adfac8df 6814 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
6815 unused variables l_length and l_node.
6816
ecdbd01a 68172013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
6818
6819 PR c/57821
6820 * c-common.c (complete_array_type): Delay folding first index
6821 like other indices. When folding, check for index overflow.
6822
bedc293e
MG
68232013-06-27 Marc Glisse <marc.glisse@inria.fr>
6824
6825 PR c++/57509
6826 * c-common.h (c_build_vec_perm_expr): New complain argument.
6827 * c-common.c (c_build_vec_perm_expr): Likewise.
6828 Use save_expr also in C++.
6829
604b2bfc
GDR
68302013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6831
6832 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
6833 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
6834 * c-opts.c (c_common_post_options): Likewise.
6835
dfeadaa0 68362013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
6837
6838 * array-notation-common.c (length_mismatch_in_expr): Changed the
6839 parameter type's from a dynamic array to a vec_tree. Also removed
6840 the size parameters.
6841 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
6842 the change above.
6843
2ce86d2e
BI
68442013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
6845
6846 * c-common.h (struct cilkplus_an_parts): New structure.
6847 (struct cilkplus_an_loop_parts): Likewise.
6848 (cilkplus_extract_an_triplets): New prototype.
6849 (fix_sec_implicit_args): Likewise.
6850 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
6851 (fix_sec_implicit_args): Likewise.
604b2bfc 6852
07a6825b
BI
68532013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
6854
6855 * array-notation-common.c (find_inv_trees): Removed an unwanted
6856 typecasting.
6857 * c-common.h (struct inv_list::additional_tcodes): Changed type from
6858 enum rid to enum tree_code.
6859
08346abd
JH
68602013-06-11 Jan Hubicka <jh@suse.cz>
6861
6862 * c-common.c (handle_alias_ifunc_attribute): Do not set
6863 DECL_EXTERNAL for weakref variables.
6864 * c-pragma.c (handle_pragma_weak): Make sure aliases
6865 are not declared as external.
6866
d60f1706
BI
68672013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
6868
6869 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
6870 function from c/c-array-notation.c.
6871 (is_cilkplus_reduce_builtin): Likewise.
6872 (find_rank): Likewise.
6873 (extract_array_notation_exprs): Likewise.
6874 (replace_array_notations): Likewise.
6875 (find_inv_trees): Likewise.
6876 (replace_inv_trees): Likewise.
6877 (contains_array_notation_expr): Likewise.
6878 (find_correct_array_notation_type): Likewise.
6879 * c-common.h (struct inv_list): Moved this struct from the file
6880 c/c-array-notation.c and added a new field called additional tcodes.
6881 (length_mismatch_in_expr_p): New prototype.
6882 (is_cilkplus_reduce_builtin): Likewise.
6883 (find_rank): Likewise.
6884 (extract_array_notation_exprs): Likewise.
6885 (replace_array_notation): Likewise.
6886 (find_inv_trees): Likewise.
6887 (replace_inv_trees): Likewise.
6888 (find_correct_array_notation_type): Likewise.
dfeadaa0 6889
36536d79
BI
68902013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
6891
6892 * c-common.c (c_define_builtins): When cilkplus is enabled, the
6893 function array_notation_init_builtins is called.
6894 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
6895 * c-common.def (ARRAY_NOTATION_REF): New tree.
6896 * c-common.h (build_array_notation_expr): New function declaration.
6897 (build_array_notation_ref): Likewise.
6898 (extract_sec_implicit_index_arg): New extern declaration.
6899 (is_sec_implicit_index_fn): Likewise.
6900 (ARRAY_NOTATION_CHECK): New define.
6901 (ARRAY_NOTATION_ARRAY): Likewise.
6902 (ARRAY_NOTATION_START): Likewise.
6903 (ARRAY_NOTATION_LENGTH): Likewise.
6904 (ARRAY_NOTATION_STRIDE): Likewise.
6905 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
6906 ARRAY_NOTATION_REF.
6907 (pp_c_expression): Likewise.
6908 * c.opt (flag_enable_cilkplus): New flag.
6909 * array-notation-common.c: New file.
6910
f7716d57
JJ
69112013-05-14 Jakub Jelinek <jakub@redhat.com>
6912
6913 PR c++/57274
6914 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
6915
a5e0cd1d
MG
69162013-05-10 Marc Glisse <marc.glisse@inria.fr>
6917
6918 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
6919 vectors.
6920
f6bc1c4a
HS
69212013-05-07 Han Shen <shenhan@google.com>
6922
6923 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
6924
3f12f6e9
SKS
69252013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6926
6927 * c-common.c (check_user_alignment): Emit error for negative values.
6928
61949153
PC
69292013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6930
6931 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
6932
e93e18e9
PC
69332013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6934
6935 * c-cppbuiltin.c (c_cpp_builtins): Do not define
6936 __GXX_EXPERIMENTAL_CXX1Y__.
6937
44d90fe1 69382013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 6939 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
6940
6941 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
6942 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
6943 to simply use OPT_Wpointer_arith.
6944 (c_sizeof_or_alignof_type): Likewise.
6945
13f39b2e
PC
69462013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6947
6948 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
6949
4b84d650
JJ
69502013-04-12 Jakub Jelinek <jakub@redhat.com>
6951
6952 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
6953 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
6954 specifiers.
6955
fb037b5d
SB
69562013-04-07 Steven Bosscher <steven@gcc.gnu.org>
6957
6958 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
6959
4e856798
PC
69602013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
6961
6962 * c-common.c (pointer_int_sum): Remove dead code.
6963
4b1baac8
RS
69642013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
6965
6966 PR middle-end/56524
6967 * c-common.c (handle_optimize_attribute): Don't call
6968 save_optabs_if_changed.
6969
0b50e654
JJ
69702013-03-05 Jakub Jelinek <jakub@redhat.com>
6971
6972 PR middle-end/56461
6973 * c-pch.c (pch_init): Free target_validity at the end.
6974
48c41403
JJ
69752013-03-04 Jakub Jelinek <jakub@redhat.com>
6976
6977 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
6978
e664c61c
KS
69792013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
6980 Jakub Jelinek <jakub@redhat.com>
6981
6982 PR sanitizer/56454
6983 * c-common.c (handle_no_sanitize_address_attribute): New function.
6984 (c_common_attribute_table): Add no_sanitize_address attribute.
6985 (handle_no_address_safety_analysis_attribute): Add
6986 no_sanitize_address attribute, not no_address_safety_analysis
6987 attribute.
6988
a475fd3d 69892013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
6990
6991 PR target/52555
6992 * c-common.c (handle_optimize_attribute): Call
6993 save_optabs_if_changed.
6994
f6007d99
JJ
69952013-02-18 Jakub Jelinek <jakub@redhat.com>
6996 Steven Bosscher <steven@gcc.gnu.org>
6997
6998 PR pch/54117
6999 * c-opts.c (c_common_post_options): If debug info is enabled
7000 and non-dwarf*, refuse to load PCH files and when writing PCH
7001 file warn.
7002
cf35e2b1
JJ
70032013-02-05 Jakub Jelinek <jakub@redhat.com>
7004
7005 PR middle-end/56167
7006 * c-common.c (handle_error_attribute): Fix condition.
7007
32887460
JJ
70082013-01-30 Jakub Jelinek <jakub@redhat.com>
7009
7010 PR c++/55742
7011 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
7012
5af057d8
JM
70132013-01-18 Jason Merrill <jason@redhat.com>
7014
7015 PR target/54908
7016 * c.opt (-fextern-tls-init): New.
7017 * c-opts.c (c_common_post_options): Handle it.
7018
cc83c823
JJ
70192013-01-09 Jakub Jelinek <jakub@redhat.com>
7020
7021 PR c/48418
7022 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
7023 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
7024 and is either negative or bigger or equal to type precision
7025 of the first operand.
7026
a859517f
MP
70272012-12-03 Marek Polacek <polacek@redhat.com>
7028
7029 PR c/55570
7030 * c-common.c (check_user_alignment): Swap order of tests,
7031 check TREE_CODE first.
7032
2d7aa578
ESR
70332012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
7034
7035 PR c++/52654
7036 * c-common.h (overflow_type): New enum.
7037 (build_userdef_literal): Add overflow_type argument.
7038 (tree_userdef_literal): Add overflow_type.
7039 (USERDEF_LITERAL_OVERFLOW): New access macro.
7040 * c-common.c (build_userdef_literal): Add overflow_type
7041 argument.
7042 * c-lex.c (c_lex_with_flags): Add overflow_type to
7043 build_userdef_literal calls.
7044 (interpret_integer, interpret_float): Add overflow_type argument.
7045
cc3c4f62
RB
70462012-11-28 Richard Biener <rguenther@suse.de>
7047
7048 PR c/35634
7049 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
7050 here and use a type with proper overflow behavior for types that would
7051 need to be promoted for the arithmetic.
7052
77bc5132
JJ
70532012-11-23 Jakub Jelinek <jakub@redhat.com>
7054
7055 PR sanitizer/55435
7056 * c-common.c (handle_no_address_safety_analysis_attribute): New
7057 function.
7058 (c_common_attribute_table): Add no_address_safety_analysis.
7059
5dc99c46
SB
70602012-11-16 Simon Baldwin <simonb@google.com>
7061
7062 * c.opt: Add f[no-]canonical-system-headers.
7063 * c-opts.c (c_common_handle_option): Handle
7064 OPT_fcanonical_system_headers.
7065
a4a0016d
ESR
70662012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
7067
7068 PR c++/54413
7069 * c-opts.c (c_common_handle_option): Set new flags.
7070 * c.opt: Describe new flags.
7071
7dbb85a7
JM
70722012-11-09 Jason Merrill <jason@redhat.com>
7073
7074 * c.opt (Wabi-tag): New.
7075
ad7bac31
AK
70762012-11-09 Andi Kleen <ak@linux.intel.com>
7077
7078 PR 55139
7079 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 7080 MEMMODEL_MASK
ad7bac31 7081
7332899a
MLI
70822012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7083
7084 PR c/53063
7085 * c.opt (Wformat): Make it Alias Wformat=1.
7086 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
7087 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
7088 LangEnabledBy.
7089 (Wformat=): RejectNegative. Use LangEnabledBy.
7090 (Wnonnull): Use LangEnabledBy.
7091 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
7092 * c-format.c (set_Wformat): Delete.
7093 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
7094 (maybe_read_dollar_number): Likewise.
7095 (avoid_dollar_number): Likewise.
7096 (finish_dollar_format_checking): Likewise.
7097 (check_format_info): Likewise.
7098 (check_format_info_main): Likewise.
7099 (check_format_types): Likewise.
7100 (format_type_warning): Likewise.
7101 * c-common.c (int): Likewise.
7102 (check_function_sentinel): Likewise.
7103 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 7104
34a180a6
MLI
71052012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7106
7107 PR c/53063
7108 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
7109 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
7110 Use LangEnabledBy.
7111 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
7112 common.opt.
7113 (Wvariadic-macros): Init(1).
7114 * c-opts.c (c_common_handle_option): Do not handle them
7115 explicitly.
7116 (c_common_post_options): Likewise.
7117 (sanitize_cpp_opts): warn_unused_macros is now
7118 cpp_warn_unused_macros.
7119 (push_command_line_include): Likewise.
7120 * c-common.c (warn_unknown_pragmas): Do not define.
7121 * c-common.h (warn_unknown_pragmas): Do not declare.
7122
3f46d6a5
MLI
71232012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7124
7125 PR c/51294
7126 * c-common.c (conversion_warning): Handle conditional expressions.
7127
880661a4
JW
71282012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
7129
7130 PR c++/54930
7131 * c.opt (Wreturn_local_addr): Define new option.
7132
4514a96b
JM
71332012-10-25 Jason Merrill <jason@redhat.com>
7134
f14edc1a
JM
7135 * c.opt (Wvirtual-move-assign): New.
7136
4514a96b
JM
7137 * c.opt (Winherited-variadic-ctor): New.
7138
93100c6b
MG
71392012-10-25 Marc Glisse <marc.glisse@inria.fr>
7140
7141 PR c++/54427
7142 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
7143
1efcb8c6
JM
71442012-10-23 Joseph Myers <joseph@codesourcery.com>
7145
7146 * c-common.h (pch_cpp_save_state): Declare.
7147 * c-target.def (c_preinclude): New hook.
7148 * c-opts.c (done_preinclude): New.
7149 (push_command_line_include): Handle default preincluded header.
7150 (cb_file_change): Call pch_cpp_save_state when calling
7151 push_command_line_include.
7152 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
7153 (pch_cpp_save_state): New.
7154 (pch_init): Call pch_cpp_save_state conditionally, instead of
7155 calling cpp_save_state.
7156
4a0ae68e
MLI
71572012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7158
7159 PR c/53063
7160 PR c/40989
7161 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
7162 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
7163 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
7164 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
7165 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
7166 * c-opts.c (c_common_handle_option): Remove explicit handling from
7167 here.
7168 (c_common_post_options): Likewise.
7169
67e4210b
EB
71702012-10-18 Eric Botcazou <ebotcazou@adacore.com>
7171
7172 * c-ada-spec.c (LOCATION_COL): Delete.
7173 (compare_location): New function.
7174 (compare_node): Use it.
7175 (compare_comment): Likewise.
7176
65d4f2cd
MLI
71772012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7178
7179 PR c/53063
7180 PR c/40989
7181 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
7182 * c-opts.c (c_common_handle_option): Do not set them here. Add
7183 comment.
7184 (c_common_post_options): Likewise.
7185
909881cb
EB
71862012-10-16 Eric Botcazou <ebotcazou@adacore.com>
7187
7188 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
7189 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
7190 Remove POINTER_TYPE handling, add large unsigned handling and use
7191 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
7192
3a785c97
JJ
71932012-10-12 Jakub Jelinek <jakub@redhat.com>
7194
7195 PR c/54381
7196 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
7197 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
7198 locs and array of 3 trees instead of just single loc and single
7199 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
7200 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
7201 For *cmp* builtins that take two sources strings report warnings
7202 about first and second source, not about destination and source.
7203
5e54f81d
MG
72042012-10-12 Marc Glisse <marc.glisse@inria.fr>
7205
7206 PR c++/53055
7207 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
7208
f5b02f1e
EB
72092012-10-11 Eric Botcazou <ebotcazou@adacore.com>
7210
7211 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
7212 declaring something coming from another file.
7213
b46dbc6c
AC
72142012-10-10 Arnaud Charlet <charlet@adacore.com>
7215
f5b02f1e 7216 PR ada/54845
b46dbc6c
AC
7217 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
7218
5d9de0d0
PC
72192012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
7220
7221 PR c++/54194
7222 * c-common.c (warn_about_parentheses): Add location_t parameter;
7223 use EXPR_LOC_OR_LOC.
7224 * c-common.h: Update declaration.
7225
a212e43f
MG
72262012-10-09 Marc Glisse <marc.glisse@inria.fr>
7227
7228 PR c++/54427
7229 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
7230 more operations. Make error messages optional.
7231 * c-common.h (enum stv_conv): Moved from c-typeck.c.
7232 (scalar_to_vector): Declare.
7233
b1db7f91
JM
72342012-10-08 Jason Merrill <jason@redhat.com>
7235
7236 * c-common.c (c_common_reswords): Add thread_local.
7237
e28d52cf
DS
72382012-10-08 Dodji Seketeli <dodji@redhat.com>
7239
7240 PR c++/53528 C++11 attribute support
7241 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
7242 new functions.
7243 * c-common.c (check_cxx_fundamental_alignment_constraints): New
7244 static function.
7245 (handle_aligned_attribute): In choose strictest alignment
7246 among many. Use new check_cxx_fundamental_alignment_constraints.
7247 (handle_transparent_union_attribute): In c++11 attribute syntax,
7248 don't look through typedefs.
7249
3b78de56
AC
72502012-10-04 Arnaud Charlet <charlet@adacore.com>
7251
7252 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
7253 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
7254 out of dumpfile.h.
7255
6040bb5f
DC
72562012-09-25 Dehao Chen <dehao@google.com>
7257
7258 PR middle-end/54645
3b78de56 7259 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
7260 map when read in the pch.
7261
3f8257db 72622012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
7263
7264 * c-ada-spec.c: Style fixes.
7265
3f8257db 72662012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
7267
7268 * c.opt (-fada-spec-parent): Define new command line switch.
7269 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
7270 is specified, generate binding spec as a child of the specified unit.
7271
0ccb505d
PC
72722012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
7273 Manuel López-Ibáñez <manu@gcc.gnu.org>
7274
7275 PR c++/53210
7276 * c.opt ([Winit-self]): Enabled by -Wall in C++.
7277
c583af79
AC
72782012-08-23 Arnaud Charlet <charlet@adacore.com>
7279
7280 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
7281 for pointers, and add missing Convention C pragma.
7282 (print_ada_struct_decl): Add missing aliased keyword.
7283 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
7284
1a4049e7
JJ
72852012-08-17 Jakub Jelinek <jakub@redhat.com>
7286
7287 * c-common.c (sizeof_pointer_memaccess_warning): New function.
7288 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
7289 * c-opts.c (c_common_handle_option): Enable it for -Wall.
7290 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
7291 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
7292
70b5e7dc
RG
72932012-08-10 Richard Guenther <rguenther@suse.de>
7294
7295 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
7296
f8923f7e
SB
72972012-08-07 Steven Bosscher <steven@gcc.gnu.org>
7298
7299 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
7300 instead of separate pp_newline and pp_flush.
7301 (print_c_tree): Likewise.
7302
e45abe1f
RH
73032012-07-26 Richard Henderson <rth@redhat.com>
7304
7305 * c-common.c (handle_hot_attribute): Allow labels.
7306 (handle_cold_attribute): Likewise.
7307
332f1d24
JJ
73082012-07-20 Jakub Jelinek <jakub@redhat.com>
7309
7310 PR c++/28656
7311 * c-common.c (check_function_nonnull): Handle multiple nonnull
7312 attributes properly.
7313
7ee2468b
SB
73142012-07-16 Steven Bosscher <steven@gcc.gnu.org>
7315
7316 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
7317 * c-ada-spec.c: Likewise.
7318 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
7319
ee7b28eb
SB
73202012-07-14 Steven Bosscher <steven@gcc.gnu.org>
7321
7322 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
7323 Remove code conditional on it.
7324
6bdf3519
SB
73252012-07-11 Steven Bosscher <steven@gcc.gnu.org>
7326
7327 * c-gimplify.c: Do not include basic-block.h.
7328 * c-common.c: Do not include linfuncs.h.
7329
532aafad
SB
73302012-07-08 Steven Bosscher <steven@gcc.gnu.org>
7331
7332 * c-common.h: Include tree.h.
7333
8d0d1915
JM
73342012-07-02 Jason Merrill <jason@redhat.com>
7335
7336 PR c++/53524
7337 * c-common.c (get_priority): Call default_conversion.
7338
fbc873ad
UB
73392012-07-01 Uros Bizjak <ubizjak@gmail.com>
7340
7341 * c-pch.c (c_common_write_pch): Remove unused variables.
7342
d4a10d0a
SB
73432012-06-29 Steven Bosscher <steven@gcc.gnu.org>
7344
7345 * cppspec.c: Moved from gcc/ to here.
7346
6f3a2e23
KT
73472012-06-27 Kai Tietz <ktietz@redhat.com>
7348
7349 PR preprocessor/37215
7350 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
7351
8ca92d04
SB
73522012-06-21 Steven Bosscher <steven@gcc.gnu.org>
7353
7354 * c-common.h (c_common_print_pch_checksum): Remove.
7355 * c-pch.c: Do not include output.h.
7356 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
7357 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
7358 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
7359 (struct c_pch_header): Remove.
7360 (get_ident): Update gpch version.
7361 (pch_init): Do not print executable_checksum to asm_out_file.
7362 Do not fail if there is no asm_out_file to read back from. Set
7363 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
7364 (c_common_write_pch): Verify that nothing was written to asm_out_file
7365 since pch_init was called. Do not write a c_pch_header, and do not
7366 copy from asm_out_file to the PCH.
7367 (c_common_read_pch): Do not read a c_pch_header, and do not restore
7368 the content of asm_out_file from the PCH.
7369 (c_common_print_pch_checksum): Remove.
7370 * c-opts.c (c_common_init): Print out executable_checksum directly.
7371
70f42967
SB
73722012-06-19 Steven Bosscher <steven@gcc.gnu.org>
7373
7374 * c-target.def (objc_declare_unresolved_class_reference,
7375 objc_declare_class_definition): Add new hooks.
7376
a8781821
SB
73772012-06-19 Steven Bosscher <steven@gcc.gnu.org>
7378
7379 * c-lex.c: Do not include output.h.
7380 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
7381 Remove uses of ASM_OUTPUT_IDENT.
7382
9e1a8dd1
RR
73832012-06-15 Marc Glisse <marc.glisse@inria.fr>
7384
7385 PR c++/51033
7386 * c-common.h (c_build_vec_perm_expr): Move decl here.
7387 * c-common.c (c_build_vec_perm_expr): Move definition
7388 here.
7389
6f07a821
SB
73902012-06-06 Steven Bosscher <steven@gcc.gnu.org>
7391
7392 * c.opt (fconserve-space): Turn into a no-op.
7393
9faeb493 73942012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
7395
7396 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
7397 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
7398 both the start and end of the function.
7399
a4b7d13c
SB
74002012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7401
7402 * c-common.c: Do not include output.h.
7403 * c-pragma.c: Likewise.
7404
c265f413
SA
74052012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7406
7407 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
7408 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
7409 (lang_decl_name): Handle namespace decls.
7410
be7a421e
SB
74112012-05-31 Steven Bosscher <steven@gcc.gnu.org>
7412
7413 * c-ada-spec.c: Do not include output.h.
7414 * c-semantics.c: Likewise.
7415
65de6659
JM
74162012-05-29 Joseph Myers <joseph@codesourcery.com>
7417
7418 * c-common.c: Fix typo.
7419
ca5f4331
MM
74202012-05-29 Michael Matz <matz@suse.de>
7421
7422 * c-common.h (c_expand_decl): Remove prototype.
7423
4f7f7aca
MLI
74242012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7425
7426 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
7427 * c-opts.c (c_common_handle_option): Remove code handling
7428 warn_missing_braces.
7429
4a792f9b
PC
74302012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
7431
7432 PR c++/25137
7433 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
7434 -Wmissing_braces.
7435
650dc14a
DS
74362012-05-22 Dodji Seketeli <dodji@redhat.com>
7437
7438 PR c++/53322
7439 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
7440
9b095bf1
MLI
74412012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7442
7443 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
7444 * c-opts.c (c_common_handle_option): Do not handle explicitly
7445 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
7446
0b2c4be5
DS
74472012-05-16 Dodji Seketeli <dodji@redhat.com>
7448
7449 PR preprocessor/7263
7450 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
7451 to cpp_classify_number. For diagnostics, use the precise location
7452 instead of the global input_location.
7453
a1bde5af
PC
74542012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7455
d02924ef 7456 PR c++/11856
a1bde5af
PC
7457 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
7458
d1ede5f4
BS
74592012-05-14 Bernd Schmidt <bernds@codesourcery.com>
7460
a1bde5af 7461 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 7462
f2bc201f
MLI
74632012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7464
7465 PR 53063
7466 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
7467 Wreorder): Use LangEnabledBy.
7468 * c-opts.c (c_common_handle_option): Do not enable them
7469 explicitly. Call lang-specific generated functions.
7470 (c_common_post_options): Do not set them here.
7471
95744782
MLI
74722012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7473
7474 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
7475 Wmissing-field-initializers,Wmissing-parameter-type,
7476 Wold-style-declaration,Woverride-init): Use EnabledBy.
7477 * c-opts.c (c_common_post_options): Do not set here explicitly.
7478
7d5a5747
MLI
74792012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7480
7481 PR 53063
7482 * c-opts.c (c_common_handle_option): Use handle_generated_option
7483 to enable sub-options.
7484
5a3c9cf2
PC
74852012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
7486
7487 PR c++/53158
7488 * c-common.c (warnings_for_convert_and_check): Use warning_at.
7489
3ac8781c
RG
74902012-05-10 Richard Guenther <rguenther@suse.de>
7491
7492 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
7493 adjust commentary about TYPE_IS_SIZETYPE types.
7494
1e537948
MLI
74952012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7496
7497 PR c++/53261
7498 * c-common.c (warn_logical_operator): Check that argument of
7499 integer_zerop is not NULL.
7500
f2c4a785
MLI
75012012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
7502
7503 PR c/43772
7504 * c-common.c (warn_logical_operator): Do not warn if either side
7505 is already true or false.
7506
50f305ca
MLI
75072012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7508
7509 PR c/51712
7510 * c-common.c (expr_original_type): New.
7511 (shorten_compare): Do not warn for enumeration types.
7512
0c3641b0
MLI
75132012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7514
7515 * c.opt (fpermissive): Add Var(flag_permissive).
7516
7edaa4d2
MG
75172012-04-30 Marc Glisse <marc.glisse@inria.fr>
7518
7519 PR c++/51033
7520 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
7521 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
7522
b9c8da34
DS
75232012-04-30 Dodji Seketeli <dodji@redhat.com>
7524
7525 Add -Wvarargs option
7526 * c.opt (Wvarargs): Define new option.
7527
e6c69da0
MLI
75282012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7529
7530 * c-common.c (check_function_arguments): Replace
7531 Wmissing-format-attribute with Wsuggest-attribute=format.
7532
90137d8f
MLI
75332012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7534
7535 * c.opt (Wsuggest-attribute=format): New. Alias of
7536 Wmissing-format-attribute.
7537 * c-format.c (decode_format_type): Replace
7538 Wmissing-format-attribute with Wsuggest-attribute=format.
7539 (check_function_format): Likewise.
7540
9faeb493 75412012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
7542
7543 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
7544 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
7545 * c.opt: Add Wliteral-suffix.
7546
c1771a20
MLI
75472012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7548
7549 PR c/44774
7550 * c.opt (Wpedantic): New.
7551 (pedantic): Alias Wpedantic.
7552 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
7553 (c_common_post_options): Likewise.
7554 (sanitize_cpp_opts): Likewise.
7555 * c-lex.c (interpret_float): Likewise.
7556 * c-format.c (check_format_types): Likewise.
7557 * c-common.c (pointer_int_sum): Likewise.
7558 (c_sizeof_or_alignof_type): Likewise.
7559 (c_add_case_label): Likewise.
7560 (c_do_switch_warnings): Likewise.
7561 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7562
04b391c1
JM
75632012-04-15 Jason Merrill <jason@redhat.com>
7564
7565 PR c++/52818
7566 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
7567 (C_STD_NAME): Distinguish between C++98 and C++11.
7568
ac868f29
EB
75692012-04-11 Eric Botcazou <ebotcazou@adacore.com>
7570
7571 PR target/52624
7572 * c-common.h (uint16_type_node): Rename into...
7573 (c_uint16_type_node): ...this.
7574 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
7575 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
7576
fd4116f4
MLI
75772012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
7578
7579 * c-common.c (warn_if_unused_value): Move definition to here.
7580 * c-common.h (warn_if_unused_value): Move declaration to here.
7581
573ac65e
WB
75822012-03-23 William Bader <williambader@hotmail.com>
7583
7584 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
7585
552b8185
JM
75862012-03-20 Jason Merrill <jason@redhat.com>
7587
7588 * c-common.h (enum cxx_dialect): Add cxx1y.
7589 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
7590 test.
7591 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7592 * c-opts.c (c_common_post_options): Likewise.
7593 (set_std_cxx1y): New.
7594 (c_common_handle_option): Call it.
7595 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
7596
04398fa8
PC
75972012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
7598
7599 PR c++/14710
7600 * c.opt ([Wuseless-cast]): Add.
7601
d2a12ae7
RG
76022012-03-16 Richard Guenther <rguenther@suse.de>
7603
7604 * c-pretty-print.c (pp_c_initializer_list): Adjust.
7605
a12bf402
MLI
76062012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7607
7608 PR c++/44783
7609 * c.opt (ftemplate-backtrace-limit) Add.
7610
5c30094f
RO
76112012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7612
7613 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
7614 handling.
7615 * c-pragma.c (handle_pragma_extern_prefix): Remove.
7616 (init_pragma): Don't register extern_prefix.
7617
21fa2faf
RG
76182012-03-12 Richard Guenther <rguenther@suse.de>
7619
7620 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
7621 (builtin_type_for_size): Likewise.
7622
e3793c6f
JJ
76232012-02-13 Jakub Jelinek <jakub@redhat.com>
7624
7625 PR c++/52215
7626 * c-common.c (sync_resolve_params): Don't decide whether to convert
7627 or not based on TYPE_SIZE comparison, convert whenever arg_type
7628 is unsigned INTEGER_TYPE.
7629
93286335
PC
76302012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
7631
7632 PR c/52118
7633 * c.opt ([Wunused-local-typedefs]): Fix description.
7634
7a421706
MS
76352012-01-24 Mike Stump <mikestump@comcast.net>
7636
7637 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7638 exactly.
7639
ba9b1f11
RG
76402012-01-18 Richard Guenther <rguenther@suse.de>
7641
7642 * c-opts.c (c_common_post_options): Reset LTO flags if
7643 we are about to generate a PCH.
7644
465406be
PC
76452012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
7646
7647 PR c++/51777
7648 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7649 use pp_unsigned_wide_integer.
7650
aee15221
RG
76512012-01-10 Richard Guenther <rguenther@suse.de>
7652
7653 PR middle-end/51806
7654 * c-opts.c (c_common_handle_option): Move -Werror handling
7655 to language independent code.
7656
5720c0dc
RG
76572012-01-05 Richard Guenther <rguenther@suse.de>
7658
7659 PR middle-end/51764
7660 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7661 from common.opt.
7662
73ac190a
PC
76632011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
7664
7665 PR c++/51316
7666 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7667 of array types with an unknown bound.
7668
48b0b196
JM
76692011-12-20 Joseph Myers <joseph@codesourcery.com>
7670
7671 * c-common.c (flag_isoc99): Update comment to refer to C11.
7672 (flag_isoc1x): Change to flag_isoc11.
7673 * c-common.h (flag_isoc99): Update comment to refer to C11.
7674 (flag_isoc1x): Change to flag_isoc11.
7675 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7676 C11.
7677 * c-opts.c (set_std_c1x): Change to set_std_c11.
7678 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7679 Call set_std_c11.
7680 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7681 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7682 * c.opt (std=c1x): Change to std=c11. Document as non-draft
7683 standard.
7684 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7685 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
7686 (std=gnu1x): Make alias of std=gnu11.
7687
d58d6eb5
JM
76882011-12-19 Jason Merrill <jason@redhat.com>
7689
7690 PR c++/51228
7691 * c-common.c (handle_transparent_union_attribute): Check the first
7692 field if the type is complete.
7693
b3908fcc
JW
76942011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
7695
7696 PR libstdc++/51365
7697 * c-common.c (RID_IS_FINAL): Add.
7698 * c-common.h (RID_IS_FINAL): Add.
7699
fea3ca91
IS
77002011-11-30 Iain Sandoe <iains@gcc.gnu.org>
7701
7702 * c.opt (fgnu-runtime): Provide full description.
7703 (fnext-runtime): Likewise.
7704 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7705
62bad7cd
AM
77062011-11-28 Andrew MacLeod <amacleod@redhat.com>
7707
7708 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
7709 predefines in one place. Add LOCK_FREE predefines.
7710 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7711 new func.
7712
c466c4ff
AM
77132011-11-24 Andrew MacLeod <amacleod@redhat.com>
7714
7715 PR c/51256
9faeb493 7716 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 7717 conditions
9faeb493
UB
7718 (resolve_overloaded_atomic_exchange,
7719 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
7720 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7721 error_mark_node for error conditions.
9faeb493 7722
a5952633
RG
77232011-11-08 Richard Guenther <rguenther@suse.de>
7724
7725 PR middle-end/51010
7726 c-family/
7727
0a35513e
AH
77282011-11-07 Richard Henderson <rth@redhat.com>
7729 Aldy Hernandez <aldyh@redhat.com>
7730 Torvald Riegel <triegel@redhat.com>
7731
7732 Merged from transactional-memory.
7733
7734 * c-common.c (handle_tm_wrap_attribute,
7735 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7736 (struct c_common_reswords): Added __transaction* keywords.
7737 (struct c_common_attribute_table): Added transaction* and tm_regparm
7738 attributes.
7739 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7740 masks.
7741 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7742 find_tm_attribute): Declare.
7743
6d87092d
JM
77442011-11-07 Jason Merrill <jason@redhat.com>
7745
7746 PR c++/35688
7747 * c-common.c, c-common.h: Revert yesterday's changes.
7748
8e7860a1
JM
77492011-11-06 Jason Merrill <jason@redhat.com>
7750
7751 PR c++/35688
7752 * c-common.c (decl_has_visibility_attr): Split out from...
7753 (c_determine_visibility): ...here.
7754 * c-common.h: Declare it.
7755
d19fa6b5
JM
77562011-11-06 Joseph Myers <joseph@codesourcery.com>
7757
7758 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7759 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7760 type.
7761 (check_user_alignment): New. Split out of
7762 handle_aligned_attribute. Disallow integer constants with
7763 noninteger types. Conditionally allow zero.
7764 (handle_aligned_attribute): Use check_user_alignment.
7765 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7766
86951993
AM
77672011-11-06 Andrew MacLeod <amacleod@redhat.com>
7768 Richard Henderson <rth@redhat.com>
7769
7770 Merged from cxx-mem-model.
7771
7772 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 7773 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
7774 parameters that are the same type size.
7775 (get_atomic_generic_size): New. Find size of generic
7776 atomic function parameters and do typechecking.
7777 (add_atomic_size_parameter): New. Insert size into parameter list.
7778 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7779 either __atomic_exchange_n or external library call.
9faeb493 7780 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 7781 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 7782 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
7783 __atomic_load_n or an external library call.
7784 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7785 __atomic_store_n or an external library call.
7786 (resolve_overloaded_builtin): Handle new __atomic builtins.
7787
cf9e9959
EB
77882011-11-04 Eric Botcazou <ebotcazou@adacore.com>
7789
7790 PR c++/50608
7791 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7792 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
7793 <INDIRECT_REF>: Return the argument.
7794 <ARRAY_REF>: Remove special code for negative offset.
7795 Call fold_build_pointer_plus instead of size_binop.
7796 (fold_offsetof): Remove STOP_REF argument and adjust.
7797 * c-common.h (fold_offsetof_1): Declare.
7798 (fold_offsetof): Remove STOP_REF argument.
7799
25339f10
JM
78002011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
7801
7802 PR c++/50810
7803 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7804 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7805 Wnarrowing for C++0x and C++98.
7806 * c.opt ([Wnarrowing]): Update.
7807
89401152
PC
78082011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
7809
7810 PR c++/44277
7811 * c.opt: Add Wzero-as-null-pointer-constant.
7812
97e3ad20
JM
78132011-10-31 Jason Merrill <jason@redhat.com>
7814
15694fdd
JM
7815 * c.opt (-fdeduce-init-list): Off by default.
7816
97e3ad20
JM
7817 PR c++/50920
7818 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
7819 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
7820 and -Wc++11-compat.
7821 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
7822
fb9120e3
RAV
78232011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
7824
7825 PR c++/30066
7826 * c.opt (fvisibility-inlines-hidden): Description change.
7827
3ce4f9e4
ESR
78282011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
7829
7830 Implement C++11 user-defined literals.
7831 * c-common.c (build_userdef_literal): New.
7832 * c-common.def: New tree code.
7833 * c-common.h (tree_userdef_literal): New tree struct and accessors.
7834 * c-lex.c (interpret_float): Add suffix parm.
7835 (c_lex_with_flags): Build literal tokens.
7836
5f53c243
PC
78372011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7838
7839 PR c++/50841
7840 Revert:
7841 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7842
7843 PR c++/50810
7844 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7845 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7846 Wnarrowing for C++0x and C++98.
7847 * c.opt ([Wnarrowing]): Update.
7848
263734e1
PC
78492011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
7850
7851 PR c++/50810
7852 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7853 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7854 Wnarrowing for C++0x and C++98.
7855 * c.opt ([Wnarrowing]): Update.
7856
d2e312d7
PC
78572011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
7858
7859 PR c++/45385
7860 * c-common.c (conversion_warning): Remove code looking for
7861 artificial operands.
7862
d17687f6
DS
78632011-10-18 Dodji Seketeli <dodji@redhat.com>
7864
7865 PR bootstrap/50760
7866 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 7867 !NO_IMPLICIT_EXTERN_C.
d17687f6 7868
fc8396e9
PC
78692011-10-17 Michael Spertus <mike_spertus@symantec.com>
7870
7871 * c-common.c (c_common_reswords): Add __bases,
7872 __direct_bases.
7873 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
7874
78752011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
7876
7877 PR c++/50757
7878 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
7879
847e697a
TT
78802011-10-15 Tom Tromey <tromey@redhat.com>
7881 Dodji Seketeli <dodji@redhat.com>
7882
7883 * c.opt (fdebug-cpp): New option.
7884 * c-opts.c (c_common_handle_option): Handle the option.
7885 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
7886 output stream in parameter. Factorized from ...
7887 (maybe_print_line): ... this. Dump location debug information when
7888 -fdebug-cpp is in effect.
7889 (print_line_1): New static function. Takes an output stream in
7890 parameter. Factorized from ...
7891 (print_line): ... here. Dump location information when -fdebug-cpp
7892 is in effect.
7893 (scan_translation_unit): Dump location information when
7894 -fdebug-cpp is in effect.
7895
92582b75
TT
78962011-10-15 Tom Tromey <tromey@redhat.com>
7897 Dodji Seketeli <dodji@redhat.com>
7898
7899 * c.opt (ftrack-macro-expansion): New option. Handle it with and
7900 without argument.
7901 * c-opts.c (c_common_handle_option)<case
7902 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
7903 cases. Handle -ftrack-macro-expansion with and without argument.
7904
46427374
TT
79052011-10-15 Tom Tromey <tromey@redhat.com>
7906 Dodji Seketeli <dodji@redhat.com>
7907
7908 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
7909 (print_line, cb_define, do_line_change): Adjust to avoid touching
7910 the internals of struct line_map. Use the public API instead.
7911 * c-pch.c (c_common_read_pch): Likewise.
7912 * c-lex.c (fe_file_change): Likewise.
7913
fc8396e9
PC
79142011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
7915
7916 PR c++/17212
7917 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
7918
79192011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
7920
7921 PR c++/33067
7922 * c-pretty-print.c (pp_c_floating_constant): Output
7923 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
7924
e79983f4
MM
79252011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
7926
7927 * c-common.c (def_builtin_1): Delete old interface with two
7928 parallel arrays to hold standard builtin declarations, and replace
7929 it with a function based interface that can support creating
7930 builtins on the fly in the future. Change all uses, and poison
7931 the old names. Make sure 0 is not a legitimate builtin index.
7932 * c-omp.c (c_finish_omp_barrier): Ditto.
7933 (c_finish_omp_taskwait): Ditto.
7934 (c_finish_omp_flush): Ditto.
7935
6637388f
TG
79362011-10-11 Tristan Gingold <gingold@adacore.com>
7937
7938 * c.opt: (fallow-parameterless-variadic-functions): New.
7939
3797cb21
DS
79402011-09-08 Dodji Seketeli <dodji@redhat.com>
7941
7942 PR c++/33255 - Support -Wunused-local-typedefs warning
7943 * c-common.h (struct c_language_function::local_typedefs): New
7944 field.
9faeb493
UB
7945 (record_locally_defined_typedef, maybe_record_typedef_use)
7946 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 7947 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
7948 (maybe_record_typedef_use)
7949 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
7950 * c.opt: Declare new -Wunused-local-typedefs flag.
7951
693ddb1b
EB
79522011-09-06 Eric Botcazou <ebotcazou@adacore.com>
7953
7954 PR middle-end/50266
7955 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
7956 computations.
7957
830c740f
RG
79582011-09-05 Richard Guenther <rguenther@suse.de>
7959
7960 * c-common.c (complete_array_type): Use ssize_int (-1) instead
7961 of integer_minus_one_node for empty array upper bounds.
7962
892a371f
DS
79632011-08-28 Dodji Seketeli <dodji@redhat.com>
7964
7965 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
7966 it's the first time it's being called on this main TU.
7967
0e3fdb48
RB
79682011-08-24 Richard Guenther <rguenther@suse.de>
7969
7970 PR c/49396
7971 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
7972
79732011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
7974
7975 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
7976 defined in cpp_init_builtins and c_cpp_builtins.
7977
d4a83c10
JM
79782011-08-19 Joseph Myers <joseph@codesourcery.com>
7979
7980 * c-common.c (c_common_reswords): Add __builtin_complex.
7981 * c-common.h (RID_BUILTIN_COMPLEX): New.
7982
bbceee64
JM
79832011-08-18 Joseph Myers <joseph@codesourcery.com>
7984
7985 * c-common.c (c_common_reswords): Add _Noreturn.
7986 (keyword_is_function_specifier): Handle RID_NORETURN.
7987 * c-common.h (RID_NORETURN): New.
7988
3f8257db 79892011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
7990
7991 * c-common.c (unsafe_conversion_p): New function. Check if it is
7992 unsafe to convert an expression to the type.
7993 (conversion_warning): Adjust, use unsafe_conversion_p.
7994 * c-common.h (unsafe_conversion_p): New function declaration.
7995
20906c66
JJ
79962011-08-02 Jakub Jelinek <jakub@redhat.com>
7997
7998 * c-common.h (c_finish_omp_atomic): Adjust prototype.
7999 (c_finish_omp_taskyield): New prototype.
8000 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
8001 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
8002 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
8003 or RHS1 have side-effects, evaluate those too in the right spot,
8004 if it is a decl and LHS is also a decl, error out if they
8005 aren't the same.
8006 (c_finish_omp_taskyield): New function.
8007 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
8008 * c-pragma.c (omp_pragmas): Add taskyield.
8009 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
8010 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
8011 PRAGMA_OMP_CLAUSE_MERGEABLE.
8012
770e5a2e
DS
80132011-07-25 Dodji Seketeli <dodji@redhat.com>
8014
8015 * c-common.h (set_underlying_type): Remove parm name from
8016 declaration.
8017
1baae426
RG
80182011-07-25 Romain Geissler <romain.geissler@gmail.com>
8019
8020 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 8021
fcb21722
JM
80222011-07-22 Jason Merrill <jason@redhat.com>
8023
76f86d00
JM
8024 PR c++/49793
8025 * c.opt (Wnarrowing): New.
8026
3a636414
JM
8027 PR c++/30112
8028 * c-common.h: Declare c_linkage_bindings.
8029 * c-pragma.c (handle_pragma_redefine_extname): Use it.
8030
fcb21722
JM
8031 PR c++/49813
8032 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
8033 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
8034 as flag_isoc99 for 'restrict'.
8035 (pp_c_specifier_qualifier_list): Likewise for _Complex.
8036
02614448
ILT
80372011-07-21 Ian Lance Taylor <iant@google.com>
8038
8039 PR middle-end/49705
8040 * c-common.c (c_disable_warnings): New static function.
8041 (c_enable_warnings): New static function.
8042 (c_fully_fold_internal): Change local unused_p to bool. Call
8043 c_disable_warnings and c_enable_warnings rather than change
8044 c_inhibit_evaluation_warnings.
8045
34429675
JM
80462011-07-20 Jason Merrill <jason@redhat.com>
8047
8048 PR c++/6709 (DR 743)
8049 PR c++/42603 (DR 950)
8050 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
8051 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
8052 (CPP_DECLTYPE): New.
8053 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
8054
5d49b6a7
RG
80552011-07-19 Richard Guenther <rguenther@suse.de>
8056
8057 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
8058 * c-omp.c (c_finish_omp_for): Likewise.
8059
e84a58ff
EB
80602011-07-12 Eric Botcazou <ebotcazou@adacore.com>
8061
8062 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
8063 body on the next line.
8064
329af3c7
JM
80652011-07-08 Jason Merrill <jason@redhat.com>
8066
4063e61b
JM
8067 PR c++/45437
8068 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
8069
329af3c7
JM
8070 PR c++/49673
8071 * c-common.c (c_apply_type_quals_to_decl): Don't check
8072 TYPE_NEEDS_CONSTRUCTING.
8073
1a072294
RG
80742011-07-06 Richard Guenther <rguenther@suse.de>
8075
8076 * c-common.c (c_common_nodes_and_builtins):
8077 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
8078
fce5dddd
RG
80792011-07-05 Richard Guenther <rguenther@suse.de>
8080
8081 * c-common.c (c_common_nodes_and_builtins): Build all common
8082 tree nodes first.
8083
45d439ac
JJ
80842011-06-27 Jakub Jelinek <jakub@redhat.com>
8085
56300785
JJ
8086 * c-common.h (c_tree_chain_next): New static inline function.
8087
45d439ac
JJ
8088 * c-common.c (check_builtin_function_arguments): Handle
8089 BUILT_IN_ASSUME_ALIGNED.
8090
e0a8ecf2
AM
80912011-06-21 Andrew MacLeod <amacleod@redhat.com>
8092
8093 * c-common.c: Add sync_ or SYNC__ to builtin names.
8094 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
8095
80962011-06-20 Pierre Vittet <piervit@pvittet.com>
8097
8098 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
8099 handler.
8100 (gen_pragma_handler): New union.
8101 (internal_pragma_handler): New type.
8102 (c_register_pragma_with_data)
8103 (c_register_pragma_with_expansion_and_data): New functions.
8104
8105 * c-pragma.c (registered_pragmas, c_register_pragma_1)
8106 (c_register_pragma, c_register_pragma_with_expansion)
8107 (c_invoke_pragma_handler): Changed to work with
8108 internal_pragma_handler.
8109 (c_register_pragma_with_data)
8110 (c_register_pragma_with_expansion_and_data): New functions.
8111
677f3fa8
JM
81122011-06-14 Joseph Myers <joseph@codesourcery.com>
8113
8114 * c-common.c: Include common/common-target.h.
8115 (handle_section_attribute): Use
8116 targetm_common.have_named_sections.
8117 * c-cppbuiltin.c: Include common/common-target.h.
8118 (c_cpp_builtins): Use targetm_common.except_unwind_info.
8119
d7fc8c14
RG
81202011-06-10 Richard Guenther <rguenther@suse.de>
8121
8122 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
8123 to print a IDENTIFIER_NODE.
8124
10e48e39
RO
81252011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8126 Joseph Myers <joseph@codesourcery.com>
8127
8128 * c.opt (fbuilding-libgcc): New option.
8129 * c-cppbuiltin.c (c_cpp_builtins): Define
8130 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
8131
6976ae51
JM
81322011-06-07 Jason Merrill <jason@redhat.com>
8133
3ff60975
JM
8134 * c-common.c (max_tinst_depth): Lower default to 900.
8135
6976ae51
JM
8136 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
8137
009db074
RG
81382011-06-07 Richard Guenther <rguenther@suse.de>
8139
8140 * c-common.c (c_common_nodes_and_builtins): Do not set
8141 size_type_node or call set_sizetype.
8142
b4592b92
DS
81432011-06-07 Dodji Seketeli <dodji@redhat.com>
8144
8145 PR debug/49130
8146 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 8147 type when using pointer comparison to compare types.
b4592b92 8148
014ab419
JW
81492011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
8150
8151 * c.opt: Add -Wdelete-non-virtual-dtor.
8152 * c-opts.c (c_common_handle_option): Include it in -Wall.
8153
4f60111f
NF
81542011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
8155
8156 PR bootstrap/49190
8157
8158 Revert:
8159 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8160
8161 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
8162 not tree_common.
8163
4cc4f2f4
JJ
81642011-05-27 Jakub Jelinek <jakub@redhat.com>
8165
8166 PR c++/49165
8167 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
8168 C++ don't call c_common_truthvalue_conversion on void type arms.
8169
38e01f9e
NF
81702011-05-27 Nathan Froyd <froydnj@codesourcery.com>
8171
8172 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
8173 (stmt_list_stack): Define.
8174 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
8175 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
8176
92e948a8
NF
81772011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8178
8179 * c-common.c (warning_candidate_p): Check for BLOCKs.
8180
a2fc3e63
NF
81812011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8182
8183 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
8184 not tree_common.
8185
0957c029
JJ
81862011-05-25 Jakub Jelinek <jakub@redhat.com>
8187
8188 * c-common.c (def_fn_type): Remove extra va_end.
8189
828fb3ba
JM
81902011-05-23 Jason Merrill <jason@redhat.com>
8191
8192 PR c++/48106
8193 * c-common.c (c_common_get_narrower): New.
8194 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
8195
dde05067
NF
81962011-05-23 Nathan Froyd <froydnj@codesourcery.com>
8197
8198 * c-common.h (check_function_arguments): Tweak prototype of
8199 check_function_arguments.
8200 * c-common.c (check_function_arguments): Likewise. Adjust
8201 calls to check_function_nonnull, check_function_format, and
8202 check_function_sentinel.
8203 (check_function_sentinel): Take a FUNCTION_TYPE rather than
8204 separate attributes and typelist arguments. Use
8205 FOREACH_FUNCTION_ARGS to iterate over argument types.
8206
3c0d13bf
PC
82072011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
8208
8209 * c-common.c (c_common_reswords): Reorder.
8210 * c-common.h (rid): Likewise.
8211
8242dd04
NF
82122011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8213
8214 * c-common.c (def_fn_type): Don't call build_function_type, call
8215 build_function_type_array or build_varargs_function_type_array
8216 instead.
8217 (c_common_nodes_and_builtins): Likewise.
8218
3d528853
NF
82192011-05-05 Nathan Froyd <froydnj@codesourcery.com>
8220
8221 * c-common.c (c_add_case_label): Omit the loc argument to
8222 build_case_label.
8223 * c-common.h (build_case_label): Remove.
8224 * c-semantics.c (build_case_label): Remove.
8225
a04a722b
JM
82262011-05-05 Joseph Myers <joseph@codesourcery.com>
8227
8228 * c-objc.h (objc_start_method_definition): Update prototype.
8229 * stub-objc.c (objc_start_method_definition): Add extra parameter.
8230
e19a18d4
NF
82312011-05-04 Nathan Froyd <froydnj@codesourcery.com>
8232
8233 * c-common.c (check_main_parameter_types): Reindent. Don't use
8234 TYPE_ARG_TYPES directly.
8235 (handle_nonnull_attribute): Likewise.
8236 (sync_resolve_params): Likewise.
8237 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
8238 to check_format_string.
8239 (handle_format_attribute): Likewise.
8240 (check_format_string): Take a function type to examine instead of
8241 a type list. Use a function_arg_iterator to step through argument
8242 types.
8243
c62c040f
RG
82442011-05-04 Richard Guenther <rguenther@suse.de>
8245
8246 * c-common.c (fix_string_type): Use size_int for index type bounds.
8247 (start_fname_decls): Do not pass NULL to build_int_cst.
8248 (c_init_attributes): Likewise.
8249 * c-lex.c (c_lex_with_flags): Likewise.
8250
c12ff9d8
JM
82512011-04-27 Jason Merrill <jason@redhat.com>
8252
8253 * c-common.c (make_tree_vector_from_list): New.
8254 * c-common.h: Declare it.
8255
304dfbe3
RG
82562011-04-26 Richard Guenther <rguenther@suse.de>
8257
8258 PR preprocessor/48248
8259 * c-ppoutput.c (maybe_print_line): Always optimize newlines
8260 for output size with -P.
8261
3c0d13bf
PC
82622011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8263
8264 * c-common.c (struct c_common_resword): Add __underlying_type.
8265 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
8266
04695783
JM
82672011-04-20 Jim Meyering <meyering@redhat.com>
8268
8269 * c-format.c (init_dollar_format_checking): Remove useless
8270 if-before-free.
8271
0dc33c3c
NP
82722011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8273
8274 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 8275 (objc_detect_field_duplicates): New.
0dc33c3c 8276 * stub-objc.c: Likewise.
3c0d13bf 8277
c59633d9
NP
82782011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8279
8280 * stub-objc.c (objc_declare_protocols): Renamed to
8281 objc_declare_protocol.
8282 * c-objc.h: Likewise.
3c0d13bf 8283
32dabdaf
NP
82842011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8285
8286 * stub-objc.c (objc_declare_class): Updated argument name.
8287
81f653d6
NF
82882011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8289
8290 * c-common.h (c_common_init_ts): Declare.
8291 * c-common.c (c_common_init_ts): Define.
8292
eb345401
NP
82932011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8294
8295 * c-objc.h (objc_build_message_expr): Updated prototype.
8296 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 8297
a358e188
MJ
82982011-04-12 Martin Jambor <mjambor@suse.cz>
8299
8300 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
8301 of cgraph_node.
8302
e6313a78
RG
83032011-04-11 Richard Guenther <rguenther@suse.de>
8304
8305 * c-common.c (complete_array_type): Build a range type of
8306 proper type.
8307
dcf0c47e
NF
83082011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8309
8310 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
8311 (handle_type_generic_attribute): Likewise.
8312
1ee44b26
JM
83132011-04-07 Jason Merrill <jason@redhat.com>
8314
8315 PR c++/48450
8316 * c-common.c (c_common_truthvalue_conversion): Don't ignore
8317 conversion from C++0x scoped enum.
8318
acce4e77
JM
83192011-04-06 Joseph Myers <joseph@codesourcery.com>
8320
8321 * c-target-def.h: New file.
8322 * c-target.def: New file.
8323 * c-target.h: New file.
8324 * c-common.c (targetcm): Don't define here.
8325 * c-common.h (default_handle_c_option): Declare.
8326 * c-format.c: Include c-target.h instead of target.h.
8327 * c-opts.c: Include c-target.h instead of target.h. Explicitly
8328 include tm.h.
8329 (default_handle_c_option): Move from targhooks.c.
8330
e2eefb55
JJ
83312011-03-29 Jakub Jelinek <jakub@redhat.com>
8332
8333 PR preprocessor/48248
8334 * c-ppoutput.c (print): Add src_file field.
8335 (init_pp_output): Initialize it.
8336 (maybe_print_line): Don't optimize by adding up to 8 newlines
8337 if map->to_file and print.src_file are different file.
8338 (print_line): Update print.src_file.
8339
ba78087b
KT
83402011-03-25 Kai Tietz <ktietz@redhat.com>
8341
8342 * c-ada-spec.c (compare_comment): Use filename_cmp
8343 instead of strcmp for filename.
8344
0edf1bb2
JL
83452011-03-25 Jeff Law <law@redhat.com>
8346
adfac8df 8347 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 8348
c7dc8804
JM
83492011-03-25 Jason Merrill <jason@redhat.com>
8350
8351 * c.opt: Add -std=c++03.
8352
d1d879b1
EB
83532011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8354
8355 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
8356
3f8257db 83572011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
8358
8359 PR target/12171
5050afdf
KT
8360 * c-pretty-print.c (pp_c_specifier_qualifier_list):
8361 Display allowed attributes for function pointer types.
8362 (pp_c_attributes_display): New function to display
8363 attributes having affects_type_identity flag set to true.
8364 * c-pretty-print.h (pp_c_attributes_display): New prototype.
8365
62d784f7
KT
8366 * c-common.c (c_common_attribute_table):
8367 Add new element.
8368 (c_common_format_attribute_table): Likewise.
8369
82d37118
JM
83702011-03-18 Jason Merrill <jason@redhat.com>
8371
49a000c3
JM
8372 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
8373 * c-common.h: Don't declare it here.
8374 * c-common.c: Or define it here.
8375 * c-opts.c (c_common_handle_option): Or set it here.
8376
82d37118
JM
8377 PR c++/35315
8378 * c-common.c (handle_transparent_union_attribute): Don't
8379 make a duplicate type in C++.
8380
17bc631c
JM
83812011-03-15 Jason Merrill <jason@redhat.com>
8382
8383 * c-common.c (max_constexpr_depth): New.
8384 * c-common.h: Declare it.
8385 * c-opts.c (c_common_handle_option): Set it.
8386 * c.opt (fconstexpr-depth): New option.
8387
1b9b91a6
JM
83882011-03-11 Jason Merrill <jason@redhat.com>
8389
f231b5ff
JM
8390 * c-common.c (attribute_takes_identifier_p): Add missing const.
8391
1b9b91a6
JM
8392 PR c++/46803
8393 * c-common.c (attribute_takes_identifier_p): Assume that an
8394 unknown attribute takes an identifier.
8395
a19e4d44
NF
83962011-03-07 Nathan Froyd <froydnj@codesourcery.com>
8397
8398 PR c/47786
8399 * c-common.c (c_type_hash): Call list_length instead of iterating
8400 through DECL_CHAIN. Rename 'i' to 'n_elements'.
8401
982d62f6
JJ
84022011-02-19 Jakub Jelinek <jakub@redhat.com>
8403
8404 PR c/47809
8405 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
8406
0a256240
NP
84072011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8408
8409 * c.opt (fobjc-abi-version=) New.
8410 (fobjc-nilcheck): New.
8411
ba9e6dd5
NF
84122011-02-03 Nathan Froyd <froydnj@codesourcery.com>
8413
8414 PR c++/46890
8415 * c-common.h (keyword_is_decl_specifier): Declare.
8416 * c-common.c (keyword_is_decl_specifier): Define.
8417 (keyword_is_function_specifier): New function.
8418
7273813a
JJ
84192011-01-26 Jakub Jelinek <jakub@redhat.com>
8420
8421 PR c/47473
8422 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
8423 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
8424 REAL_TYPE.
8425
908ef79b
AC
84262011-01-26 Arnaud Charlet <charlet@adacore.com>
8427
8428 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
8429
237e9384
JJ
84302011-01-26 Jakub Jelinek <jakub@redhat.com>
8431
8432 PR pch/47430
8433 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
8434 after init_c_lex if pch_file is set.
8435
47ea1edf
DK
84362011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8437
d4dba752 8438 PR c++/43601
47ea1edf
DK
8439 * c.opt (-fkeep-inline-dllexport): New switch.
8440
2aa9c6ae
RG
84412011-01-12 Richard Guenther <rguenther@suse.de>
8442
8443 PR middle-end/32511
8444 * c-common.c (handle_weak_attribute): Warn instead of error
8445 on declaring an inline function weak.
8446
7bd11157
TT
84472011-01-05 Tom Tromey <tromey@redhat.com>
8448
8449 * c-common.h (lvalue_error): Update.
8450 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
8451 not error.
8452
0e66e494 84532010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 8454
b4f588c4
NP
8455 PR objc/47075
8456 * c-objc.h (objc_finish_message_expr): Added argument to
8457 prototype.
8458
f4da8dce
NF
84592010-12-22 Nathan Froyd <froydnj@codesourcery.com>
8460
8461 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
8462 Use prototype_p.
8463
46270f14
NP
84642010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
8465
8466 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 8467 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 8468
4816c593
NF
84692010-12-10 Nathan Froyd <froydnj@codesourcery.com>
8470
8471 * c-common.h (readonly_error): Declare.
8472 * c-common.c (readonly_error): Define.
8473
7a6daeb0
NF
84742010-12-09 Nathan Froyd <froydnj@codesourcery.com>
8475
8476 * c-common.h (invalid_indirection_error): Declare.
8477 * c-common.c (invalid_indirection_error): Define.
8478
892f6119
RG
84792010-12-03 Richard Guenther <rguenther@suse.de>
8480
8481 PR c/46745
8482 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
8483 (pp_c_unary_expression): Likewise.
8484 (pp_c_expression): Likewise.
8485
6c39e757
NP
84862010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
8487
8488 * c-common.h (objc_finish_function): New.
8489 (objc_non_volatilized_type): Removed.
8490 (objc_type_quals_match): Removed.
8491 * stub-objc.c (objc_finish_function): New.
8492 (objc_non_volatilized_type): Removed.
8493 (objc_type_quals_match): Removed.
9faeb493 8494
7c475d11
JM
84952010-11-30 Joseph Myers <joseph@codesourcery.com>
8496
8497 * c-common.h (parse_optimize_options): Declare.
8498 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
8499 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
8500
71f3e391
JM
85012010-11-29 Joseph Myers <joseph@codesourcery.com>
8502
8503 * c-opts.c (check_deps_environment_vars): Use getenv instead of
8504 GET_ENVIRONMENT.
8505 * c-pch.c (O_BINARY): Don't define here.
8506 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
8507
d5fabb58
JM
85082010-11-25 Joseph Myers <joseph@codesourcery.com>
8509
8510 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
8511 targetm.except_unwind_info.
8512
299404a1
JM
85132010-11-23 Joseph Myers <joseph@codesourcery.com>
8514
8515 * c-opts.c (c_common_handle_option): Pass location to
8516 set_struct_debug_option.
8517
c98cd5bf
JM
85182010-11-23 Joseph Myers <joseph@codesourcery.com>
8519
8520 * c-common.c (visibility_options): Move from ../opts.c.
8521 * c-common.h (struct visibility_flags, visibility_options):
8522 Declare here.
8523 * c-opts.c (finish_options): Rename to c_finish_options.
8524 (c_common_init): Update call to finish_options.
8525
a9546771
NP
85262010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
8527
8528 PR objc/34033
8529 * c-lex.c (lex_string): Check that each string in an Objective-C
8530 string concat sequence starts with either one or zero '@', and
8531 that there are no spurious '@' signs at the end.
8532
24a57808
JM
85332010-11-20 Joseph Myers <joseph@codesourcery.com>
8534
8535 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
8536 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
8537 HANDLE_PRAGMA_VISIBILITY.
8538 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
8539 HANDLE_PRAGMA_VISIBILITY): Don't define.
8540 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
8541
a9aa2c3a
NF
85422010-11-20 Nathan Froyd <froydnj@codesourcery.com>
8543
8544 PR c++/16189
8545 PR c++/36888
8546 PR c++/45331
8547 * c-common.h (keyword_begins_type_specifier): Declare.
8548 (keyword_is_storage_class_specifier): Declare.
8549 (keyword_is_type_qualifier): Declare.
8550 * c-common.c (keyword_begins_type_specifier): New function.
8551 (keyword_is_storage_class_specifier): New function.
8552 (keyword_is_type_qualifier): Declare.
8553
5386338c
JM
85542010-11-19 Joseph Myers <joseph@codesourcery.com>
8555
8556 PR c/46547
8557 * c-common.c (in_late_binary_op): Define.
8558 (c_common_truthvalue_conversion): Check in_late_binary_op before
8559 calling c_save_expr.
8560 * c-common.h (in_late_binary_op): Declare.
8561
69ccdddb
JM
85622010-11-19 Joseph Myers <joseph@codesourcery.com>
8563
8564 * c-opts.c (c_common_handle_option): Update calls to
8565 set_struct_debug_option.
8566
6b192a09
NP
85672010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
8568
8569 * c-common.h (objc_declare_protocols): Added additional argument.
8570 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 8571
fb52b50a
NF
85722010-11-18 Nathan Froyd <froydnj@codesourcery.com>
8573
8574 PR c/33193
8575 * c-common.h (build_real_imag_expr): Declare.
8576 * c-semantics.c (build_real_imag_expr): Define.
8577
b37421c6
JM
85782010-11-17 Joseph Myers <joseph@codesourcery.com>
8579
8580 * c-opts.c (c_common_parse_file): Take no arguments.
8581 * c-common.h (c_common_parse_file): Update prototype.
8582
07078664
JJ
85832010-11-16 Jakub Jelinek <jakub@redhat.com>
8584
8585 PR c++/46401
8586 * c-common.c (warning_candidate_p): Don't track non-const calls
8587 or STRING_CSTs.
8588
c6a13190
ILT
85892010-11-15 Ian Lance Taylor <iant@google.com>
8590
8591 * c-lex.c (init_c_lex): Set macro debug callbacks if
8592 flag_dump_go_spec is set.
8593
925e8657
NP
85942010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
8595
8596 * c-common.h (objc_build_incr_expr_for_property_ref): New.
8597 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
8598
bb0a9581
NF
85992010-11-15 Nathan Froyd <froydnj@codesourcery.com>
8600
8601 PR preprocessor/45038
8602 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
8603 dialects.
8604
c5fa0890
JM
86052010-11-12 Joseph Myers <joseph@codesourcery.com>
8606
8607 * c-common.h (c_family_lang_mask): Declare.
8608 * c-opts.c (c_family_lang_mask): Make extern.
8609 * c-pragma.c (handle_pragma_diagnostic): Use
8610 control_warning_option.
8611
a4d8c676
JM
86122010-11-12 Joseph Myers <joseph@codesourcery.com>
8613
8614 * c-common.c (parse_optimize_options): Update call to
8615 decode_options.
8616 * c-common.h (c_common_handle_option): Update prototype.
8617 * c-opts.c (c_common_handle_option): Take location_t parameter and
8618 pass it to other functions.
8619
f954bd2c
JM
86202010-11-11 Joseph Myers <joseph@codesourcery.com>
8621
8622 * c-opts.c (warning_as_error_callback): Remove.
8623 (c_common_initialize_diagnostics): Don't call
8624 register_warning_as_error_callback.
8625 (c_common_handle_option): Handle -Werror=normalized= here.
8626
d8a07487
JM
86272010-11-10 Joseph Myers <joseph@codesourcery.com>
8628
8629 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8630 in diagnostic.
8631 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8632 letter.
8633 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8634 Remove trailing '.' from diagnostics.
8635 * c.opt (Wwrite-strings_: Avoid '`' in help text.
8636
d5478783
JM
86372010-11-10 Joseph Myers <joseph@codesourcery.com>
8638
8639 * c-common.c (parse_optimize_options): Pass global_dc to
8640 decode_options.
8641 * c-opts.c (c_common_handle_option): Pass &global_options to
8642 set_Wstrict_aliasing.
8643 * c.opt (v): Don't mark Common or document here.
8644
91ebb981
IS
86452010-11-06 Iain Sandoe <iains@gcc.gnu.org>
8646
8647 PR target/44981
8648 * c-format.c (format_type): New type gcc_objc_string_format_type.
8649 (valid_stringptr_type_p): New.
8650 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 8651 (check_format_string): Pass expected type, use
91ebb981
IS
8652 valid_stringptr_type_p (), check that the format string types are
8653 consistent with the format specification.
8654 (decode_format_attr): Warn if NSString is used outside objective-c.
8655 (format_types_orig): Add NSString.
8656 (format_name): New.
8657 (format_flags): New.
8658 (check_format_arg): Handle format strings requiring an external parser.
8659 first_target_format_type: New variable.
8660 (handle_format_attribute): Set up first_target_format_type, pass the
8661 expected format arg string type to check_format_string().
8662 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
8663 * stub-objc.c (objc_string_ref_type_p): New.
8664 (objc_check_format_arg): New.
8665
bede2adc
NP
86662010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
8667
9faeb493 8668 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
8669 * c-common.h (objc_build_class_component_ref): New.
8670 * stub-objc.c (objc_build_class_component_ref): New.
8671
9a179d01
NP
86722010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8673
8674 * c.opt (Wproperty-assign-default): New option.
8675
22d8d616
NP
86762010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8677
8678 Implemented -fobjc-std=objc1 flag.
8679 * c.opt (fobjc-std=objc1): New option.
8680
2debdb4f
NP
86812010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
8682
8683 Implemented format and noreturn attributes for Objective-C methods.
8684 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8685 attribute for Objective-C methods.
8686
ec52b111
JM
86872010-10-31 Jason Merrill <jason@redhat.com>
8688
8689 * c-common.c (conversion_warning, warn_for_collisions_1): Use
8690 EXPR_LOC_OR_HERE.
8691
46a88c12
NP
86922010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
8693
8694 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8695 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8696 (objc_add_property_declaration): Removed arguments for copies and
8697 ivar.
8698 (objc_build_getter_call): Renamed to
8699 objc_maybe_build_component_ref.
8700 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8701 (objc_is_property_ref): New.
8702 * c-common.c (c_common_reswords): Removed copies and ivar.
8703 * stub-objc.c (objc_add_property_declaration): Removed arguments
8704 for copies and ivar.
8705 (objc_build_getter_call): Renamed to
8706 objc_maybe_build_component_ref.
8707 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8708 (objc_is_property_ref): New.
9faeb493 8709
1e4bf85b
AC
87102010-10-29 Arnaud Charlet <charlet@adacore.com>
8711 Matthew Gingell <gingell@adacore.com>
8712
8713 * c-ada-spec.c (separate_class_package): New function.
8714 (pp_ada_tree_identifier): Prefix references to C++ classes with the
8715 name of their enclosing package.
8716 (print_ada_declaration): Use separate_class_package.
8717
81f0bab2
JM
87182010-10-27 Jason Merrill <jason@redhat.com>
8719
2b08f2c5
JM
8720 * c-common.c (c_common_reswords): Add __is_literal_type.
8721 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8722
81f0bab2
JM
8723 * c-common.c (check_case_value): Remove special C++ code.
8724
200290f2
NP
87252010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8726
8727 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8728 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
8729 and RID_LAST_PATTR.
8730 (objc_add_property_declaration): Added additional arguments.
8731 (objc_property_attribute_kind): Removed.
8732 (objc_set_property_attr): Removed.
8733 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8734 copy and nonatomic.
8735 * stub-objc.c (objc_add_property_declaration): Added additional
8736 arguments.
8737 (objc_set_property_attr): Removed.
9faeb493 8738
f614132b
NP
87392010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8740
8741 * c-common.h (objc_add_property_variable): Renamed to
8742 objc_add_property_declaration. Added location argument.
8743 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 8744
b8a18805
NP
87452010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
8746
8747 * c-common.h (objc_maybe_printable_name): New.
8748 * stub-objc.c (objc_maybe_printable_name): New.
8749
3f8257db
JJ
87502010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8751 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
8752
8753 * c-common.h (c_common_mark_addressable_vec): Declare.
8754 * c-common.c (c_common_mark_addressable_vec): New function.
8755
249a82c4
NP
87562010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8757
8758 * c-common.h (objc_set_method_type): Removed.
8759 (objc_add_method_declaration): Added boolean argument.
8760 (objc_start_method_definition): Same change.
8761 (objc_build_method_signature): Same change.
8762 * stub-objc.c (objc_set_method_type): Removed.
8763 (objc_add_method_declaration): Added boolean argument.
8764 (objc_start_method_definition): Same change.
8765 (objc_build_method_signature): Same change.
8766
977e30bc
NP
87672010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8768
8769 * c-common.h (finish_file): Removed.
8770 (objc_write_global_declarations): New.
8771 * c-opts.c (c_common_parse_file): Do not call finish_file.
8772 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 8773
da57d1b9
NP
87742010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8775
8776 Implemented parsing @synthesize and @dynamic for
8777 Objective-C/Objective-C++.
8778 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8779 (objc_add_synthesize_declaration): New.
8780 (objc_add_dynamic_declaration): New.
8781 * c-common.c (c_common_reswords): Add synthesize and dynamic.
8782 * stub-objc.c (objc_add_synthesize_declaration): New.
8783 (objc_add_dynamic_declaration): New.
9faeb493 8784
0069111f
MM
87852010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8786
8787 PR target/46041
8788 * c-cppbuiltin.c (mode_has_fma): Move function here from
8789 builtins.c. Don't use the fma optab, instead just use the
8790 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8791 using -save-temps.
8792
e426b47b
NP
87932010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8794
8795 Merge from 'apple/trunk' branch on FSF servers.
0069111f 8796
3f8257db 8797 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 8798
9faeb493 8799 Radar 4330422
e426b47b
NP
8800 * c-common.h (objc_non_volatilized_type): New declaration
8801 * stub-objc.c (objc_non_volatilized_type): New stub.
8802
90fbfdc3
NP
88032010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8804
e426b47b 8805 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 8806
3f8257db 8807 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 8808
9faeb493 8809 Radar 4133425
90fbfdc3 8810 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 8811 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 8812
c37d8c30
IS
88132010-10-17 Iain Sandoe <iains@gcc.gnu.org>
8814
8815 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
8816 * c-common.h (enum rid): Add RID_AT_PACKAGE.
8817 (objc_ivar_visibility_kind): New enum.
8818 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 8819 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
8820 visibility enum.
8821
1b1562a5
MM
88222010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8823
8824 * c-cppbuiltin.c (builtin_define_float_constants): Emit
8825 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
8826 has the appropriate fma builtins.
8827 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
8828
668ea4b1
IS
88292010-10-14 Iain Sandoe <iains@gcc.gnu.org>
8830
1b1562a5 8831 merge from FSF apple 'trunk' branch.
3f8257db 8832 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 8833
668ea4b1
IS
8834 Radars 4436866, 4505126, 4506903, 4517826
8835 * c-common.c (c_common_resword): Define @property and its attributes.
8836 * c-common.h: Define property attribute enum entries.
8837 (OBJC_IS_PATTR_KEYWORD): New.
8838 (objc_property_attribute_kind): New enum.
8839 Declare objc_set_property_attr (), objc_add_property_variable (),
8840 objc_build_getter_call () and objc_build_setter_call ().
8841 * stub-objc.c (objc_set_property_attr): New stub.
8842 (objc_add_property_variable): Likewise.
8843 (objc_build_getter_call): Likewise.
8844 (objc_build_setter_call) Likewise.
1b1562a5 8845
a1178b30
IS
88462010-10-13 Iain Sandoe <iains@gcc.gnu.org>
8847
1b1562a5 8848 merge from FSF apple 'trunk' branch.
3f8257db 8849 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
8850
8851 Radar 3803157 (method attributes)
8852 * c-common.c (handle_deprecated_attribute): Recognize
8853 objc methods as valid declarations.
8854 * c-common.h: Declare objc_method_decl ().
1b1562a5 8855 * stub-objc.c (objc_method_decl): New stub.
a1178b30 8856
a75bfaa6
JM
88572010-10-08 Joseph Myers <joseph@codesourcery.com>
8858
8859 * c-common.c (parse_optimize_options): Call
8860 decode_cmdline_options_to_array_default_mask before
8861 decode_options. Update arguments to decode_options.
8862 * c-common.h (c_common_init_options_struct): Declare.
8863 * c-opts.c (c_common_init_options_struct): New. Split out from
8864 c_common_init_options.
8865
f05b9d93
NP
88662010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
8867
8868 Implemented fast enumeration for Objective-C.
8869 * c-common.h (objc_finish_foreach_loop): New.
8870 * stub-objc.c (objc_finish_foreach_loop): New.
8871
1ebe4b4f
JM
88722010-10-05 Joseph Myers <joseph@codesourcery.com>
8873
8874 * c-common.h (struct diagnostic_context): Don't declare here.
8875 (c_common_initialize_diagnostics): Declare using
8876 diagnostic_context typedef.
8877 * c-opts.c (c_common_handle_option): Pass global_dc to
8878 handle_generated_option.
8879
d4d24ba4
JM
88802010-10-04 Joseph Myers <joseph@codesourcery.com>
8881
8882 * c-opts.c (c_common_handle_option): Pass &global_options_set to
8883 handle_generated_option.
8884
478a1c5b
ILT
88852010-10-03 Ian Lance Taylor <iant@google.com>
8886
8887 * c.opt (-fplan9-extensions): New option.
8888
82a1c2fe
FXC
88892010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8890
8891 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
8892 Remove.
8893 (c_cpp_builtins): Call functions from cppbuiltin.c instead
8894 of duplicating code.
8895
92902b1b
IS
88962010-09-30 Iain Sandoe <iains@gcc.gnu.org>
8897
8898 * c-common.c: Add two new entries for @optional
8899 and @required keywords.
8900
8901 merge from FSF 'apple/trunk' branch.
3f8257db 8902 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
8903
8904 Radar 4386773
8905 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
8906 objective-c keywords.
8907 (objc_set_method_opt): New declaration.
8908 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 8909
46625112
JM
89102010-09-30 Joseph Myers <joseph@codesourcery.com>
8911
8912 * c-common.c (handle_optimize_attribute): Pass &global_options to
8913 cl_optimization_save and cl_optimization_restore.
8914 * c-opts.c (c_common_handle_option): Pass &global_options to
8915 handle_generated_option.
8916 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
8917 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
8918 &global_options to cl_optimization_restore.
8919
49b91f05
NP
89202010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
8921
8922 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
8923 Objective-C/Objective-C++ keywords.
8924
13ed556f 89252010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 8926
9faeb493
UB
8927 Merge from 'apple/trunk' branch on FSF servers.
8928
3f8257db 8929 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
8930
8931 Radar 4281748
8932 * c-common.h (objc_check_global_decl): New declaration.
8933 * stub-objc.c (objc_check_global_decl): New stub.
8934
f0036cca
JM
89352010-09-29 Joseph Myers <joseph@codesourcery.com>
8936
8937 * c.opt: Don't use VarExists.
8938
e3339d0f
JM
89392010-09-29 Joseph Myers <joseph@codesourcery.com>
8940
8941 * c-common.c (c_cpp_error): Update names of diagnostic_context
8942 members.
8943 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
8944 cl_optimization members.
8945 * c-opts.c (warning_as_error_callback, c_common_handle_option,
8946 sanitize_cpp_opts, finish_options): Update names of cpp_options
8947 members.
8948
1973201f
NP
89492010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
8950
8951 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
8952 (objc_is_reserved_word): Removed.
8953 * c-common.c: Updated comments.
8954 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
8955 objc_is_reserved_word.
8956 * stub-objc.c (objc_is_reserved_word): Removed.
8957
f7e71da5
IS
89582010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8959
9faeb493 8960 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
8961 include attributes.
8962 (objc_start_method_definition): Likewise.
8963 (objc_build_keyword_decl): Likewise.
8964 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
8965 (objc_start_method_definition): Likewise.
8966 (objc_build_keyword_decl): Likewise.
8967
c165dca7
IS
89682010-09-28 Iain Sandoe <iains@gcc.gnu.org>
8969
8970 * c-common.h (objc_start_class_interface): Adjust prototype.
8971 (objc_start_category_interface): Likewise.
8972 (objc_start_protocol): Likewise.
8973 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
8974 (objc_start_class_interface): Likewise.
8975 (objc_start_category_interface): Likewise.
8976
7458026b
ILT
89772010-09-27 Ian Lance Taylor <iant@google.com>
8978
8979 * c-common.c (c_common_attribute_table): Add no_split_stack.
8980 (handle_no_split_stack_attribute): New static function.
8981
b581b85b
NP
89822010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
8983
9faeb493 8984 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 8985
3f8257db 8986 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 8987
9faeb493 8988 Radar 4229905
b581b85b
NP
8989 * c-common.h (objc_have_common_type): New declaration.
8990 * stub-objc.c (objc_have_common_type): New stub.
8991
8992 2005-06-22 Ziemowit Laski <zlaski@apple.com>
8993
8994 Radar 4154928
8995 * c-common.h (objc_common_type): New prototype.
9faeb493 8996 * stub-objc.c (objc_common_type): New stub.
b581b85b 8997
46a4da10
JH
89982010-09-24 Jan Hubicka <jh@suse.cz>
8999
9000 * c-common.c (handle_leaf_attribute): New function.
9001 (struct attribute_spec c_common_att): Add leaf.
9002
e200444e
JM
90032010-09-22 Joseph Myers <joseph@codesourcery.com>
9004
9005 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
9006 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
9007 -dump, -dump=, -imacros, -imacros=, -include, -include=,
9008 -include-barrier, -include-directory, -include-directory=,
9009 -include-directory-after, -include-directory-after=,
9010 -include-prefix, -include-prefix=, -include-with-prefix,
9011 -include-with-prefix=, -include-with-prefix-after,
9012 -include-with-prefix-after=, -include-with-prefix-before,
9013 -include-with-prefix-before=, -no-integrated-cpp,
9014 -no-line-commands, -no-standard-includes, -no-warnings, -output,
9015 -output=, -pedantic, -pedantic-errors, -preprocess,
9016 -print-missing-file-dependencies, -trace-includes, -traditional,
9017 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
9018 -user-dependencies, -verbose, -write-dependencies,
9019 -write-user-dependencies, no-integrated-cpp, traditional): New.
9020
29a80ea6
NP
90212010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
9022
9023 PR objc/23710
ac1fc2fc
NP
9024 * c-common.h (objc_start_method_definition): Return bool instead
9025 of void.
9026 * stub-objc.c (objc_start_method_definition): Return bool instead
9027 of void.
9028
90292010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
9030
9031 PR objc/25965
9032 * c-common.h (objc_get_interface_ivars): New declaration.
9033 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 9034
de621752
ILT
90352010-09-15 Ian Lance Taylor <iant@google.com>
9036
9037 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 9038 messages. Remove period at end of warning message.
de621752 9039
ba885ec5
NS
90402010-09-09 Nathan Sidwell <nathan@codesourcery.com>
9041
9042 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
9043 (handle_alias_attribute): ... here.
9044 (handle_ifunc_attribute): New.
9045
c5ee1358
MM
90462010-09-06 Mark Mitchell <mark@codesourcery.com>
9047
9048 * c-common.h (do_warn_double_promotion): Declare.
9049 * c-common.c (do_warn_double_promotion): Define.
9050
0a0b3574
MM
90512010-09-05 Mark Mitchell <mark@codesourcery.com>
9052
9053 * c.opt (Wdouble-promotion): New.
9054
d1779886
JM
90552010-09-02 Joseph Myers <joseph@codesourcery.com>
9056
9057 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
9058 fvtable-thunks, fxref): Mark no longer supported in help text.
9059
2d2bd949
JM
90602010-09-02 Joseph Myers <joseph@codesourcery.com>
9061
9062 * c.opt (Wimport, fall-virtual, falt-external-templates,
9063 fdefault-inline, fenum-int-equiv, fexternal-templates,
9064 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
9065 fname-mangling-version-, fnew-abi, fnonnull-objects,
9066 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
9067 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
9068 applicable.
9069 (fhandle-exceptions): Mark with Alias and Warn.
9070 * c-opts.c (c_common_handle_option): Don't handle options marked
9071 as ignored.
9072
5de8299c
JM
90732010-09-02 Joseph Myers <joseph@codesourcery.com>
9074
9075 * c.opt (Wcomments, Werror-implicit-function-declaration,
9076 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
9077 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
9078 aliases.
9079 * c-common.c (option_codes): Use OPT_Wcomment instead of
9080 OPT_Wcomments.
9081 * c-opts.c (warning_as_error_callback, c_common_handle_option):
9082 Don't handle options marked as aliases.
9083
0ceb0201
RG
90842010-08-25 Richard Guenther <rguenther@suse.de>
9085
9086 * c-common.c (c_common_get_alias_set): Remove special
9087 handling for pointers.
9088
ac47786e
NF
90892010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9090
9091 * c-common.c: Use FOR_EACH_VEC_ELT.
9092 * c-gimplify.c: Likewise.
9093 * c-pragma.c: Likewise.
9094
c878765b
JM
90952010-08-16 Joseph Myers <joseph@codesourcery.com>
9096
9097 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
9098 RejectDriver.
9099 (MMDX): Change back to MMD. Mark NoDriverArg instead of
9100 RejectDriver.
9101 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
9102 instead of OPT_MDX and OPT_MMDX.
9103
603349bf
JM
91042010-08-16 Joseph Myers <joseph@codesourcery.com>
9105
9106 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
9107
644fa7ac
JM
91082010-08-12 Joseph Myers <joseph@codesourcery.com>
9109
9110 * c.opt (MD, MMD): Change to MDX and MMDX.
9111 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
9112
481e1176
JM
91132010-08-11 Joseph Myers <joseph@codesourcery.com>
9114
9115 * c-opts.c (c_common_handle_option): Call handle_generated_option
9116 instead of handle_option.
9117
ac8dc9f7
NF
91182010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9119
9120 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
9121 (maybe_apply_renaming_pragma): Delete unneeded declarations.
9122
4f8c876d
NF
91232010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9124
9125 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
9126 (pending_redefine_extname): Change type to a VEC.
9127 (add_to_renaming_pragma_list): Update for new type of
9128 pending_redefine_extname.
ac8dc9f7 9129 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 9130
3b0c690e
AC
91312010-08-04 Arnaud Charlet <charlet@adacore.com>
9132
9133 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
9134 visited.
9135 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
9136 decide whether a type has already been declared/seen.
9137 Do not go to the original type.
9138 (dump_nested_types): New parameter forward.
9139 Generate forward declaration if needed and mark type as visited.
9140 (print_ada_declaration): Call dump_nested_types if not already done.
9141 Mark types as visited.
9142
1890bccc
JM
91432010-08-03 Joseph Myers <joseph@codesourcery.com>
9144
9145 * c.opt (-print-pch-checksum): Remove option.
9146 * c-opts.c (c_common_handle_option): Don't handle
9147 OPT_print_pch_checksum.
9148
5f20c657
JM
91492010-07-27 Joseph Myers <joseph@codesourcery.com>
9150
9151 * c-common.h (c_common_handle_option): Update prototype and return
9152 value type.
9153 * c-opts.c (c_common_handle_option): Update prototype and return
9154 value type. Update calls to handle_option and
9155 enable_warning_as_error.
9156
f551f80c
JJ
91572010-07-27 Jakub Jelinek <jakub@redhat.com>
9158
9159 PR c/45079
9160 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
9161
61ff2bdc
JM
91622010-07-27 Joseph Myers <joseph@codesourcery.com>
9163
9164 * c-common.h (c_common_missing_argument): Remove.
9165 * c-opts.c (c_common_missing_argument): Remove.
9166 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
9167 idirafter, imacros, include, isysroot, isystem, iquote): Add
9168 MissingArgError.
9169 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
9170
7a9bf9a4
JM
91712010-07-27 Joseph Myers <joseph@codesourcery.com>
9172
9173 * c-common.h (c_common_option_lang_mask,
9174 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
9175 New.
9176 (c_common_init_options): Update prototype.
9177 * c-opts.c (c_common_option_lang_mask): New.
9178 (c_common_initialize_diagnostics): Split out of
9179 c_common_init_options.
9180 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
9181 New.
9182 (c_common_init_options): Update prototype. Use decoded options in
9183 search for -lang-asm.
9184
910ad8de
NF
91852010-07-15 Nathan Froyd <froydnj@codesourcery.com>
9186
9187 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9188 * c-format.c: Likewise.
9189
718f9c0f
MLI
91902010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
9191
9192 * c-common.h: Include diagnostic-core.h. Error if already
9193 included.
9194 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
9195
4d451982
MLI
91962010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
9197
adfac8df 9198 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
9199 Do not include expr.h
9200 (vector_mode_valid_p): Move here.
9201
119fe915
SB
92022010-06-21 DJ Delorie <dj@redhat.com>
9203
9204 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
9205 allow these pragmas anywhere.
9206
92072010-06-14 Jakub Jelinek <jakub@redhat.com>
9208
9209 PR bootstrap/44509
9210 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
9211 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
9212 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
9213 ggc_strdup instead of xstrdup.
9214
92152010-06-10 Jakub Jelinek <jakub@redhat.com>
9216
9217 * c-cppbuiltin.c: Include cpp-id-data.h.
9218 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
9219 (lazy_hex_fp_value): New function.
9220 (builtin_define_with_hex_fp_value): Provide definitions lazily.
9221
6662d794
MLI
92222010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
9223
9224 * c-gimplify.c: Do not include tree-flow.h
9225
38f8b050
JR
92262010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
9227
9228 PR other/44034
9229 * c-common.c: Rename targetm member:
9230 targetm.enum_va_list -> targetm.enum_va_list_p
9231
9589f23e
AS
92322010-06-28 Anatoly Sokolov <aesok@post.ru>
9233
9234 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
9235
3b06d379
SB
92362010-06-28 Steven Bosscher <steven@gcc.gnu.org>
9237
9238 * c-cppbuiltin.c: Do not include except.h.
9239
d166d4c3
AK
92402010-06-24 Andi Kleen <ak@linux.intel.com>
9241
9faeb493
UB
9242 * c-common.c (warn_for_omitted_condop): New.
9243 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 9244
70cb8be6
JM
92452010-06-21 Joseph Myers <joseph@codesourcery.com>
9246
9247 * c.opt (lang-objc): Remove.
9248 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
9249
a4c97feb
JR
92502010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
9251
9252 * c-opts.c: Include "tm_p.h".
9253
6e2f1956
JM
92542010-06-20 Joseph Myers <joseph@codesourcery.com>
9255
9256 * c-common.c (parse_optimize_options): Update call to
9257 decode_options.
9258
bc87224e
NF
92592010-06-18 Nathan Froyd <froydnj@codesourcery.com>
9260
9261 * c-common.c (record_types_used_by_current_var_decl): Adjust for
9262 new type of types_used_by_cur_var_decl.
9263
b49cf425
JR
92642010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
9265
9266 PR bootstrap/44512
9267 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
9268 for C++ standard compliance.
9269
59f9c2ed
JM
92702010-06-16 Jason Merrill <jason@redhat.com>
9271
9272 * c.opt: Add -Wnoexcept.
9273
33766b66
RG
92742010-06-16 Richard Guenther <rguenther@suse.de>
9275
9276 PR c/44555
9277 * c-common.c (c_common_truthvalue_conversion): Remove
9278 premature and wrong optimization concering ADDR_EXPRs.
9279
eff7e30c
AC
92802010-06-15 Arnaud Charlet <charlet@adacore.com>
9281
9282 * c-ada-spec.c (dump_sloc): Remove column info.
9283 (is_simple_enum): New function.
9284 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
9285 enum types when relevant.
9286
6312e84d
MLI
92872010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9288
9faeb493 9289 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
9290 location.
9291
1cb42611
JM
92922010-06-10 Joseph Myers <joseph@codesourcery.com>
9293
9294 * c-opts.c (c_common_handle_option): Don't handle
9295 OPT_fshow_column.
9296
a9429e29
LB
92972010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9298
9299 * c-pragma.c (push_alignment): Use typed GC allocation.
9300 (handle_pragma_push_options): Likewise.
9301
9302 * c-common.c (parse_optimize_options): Likewise.
9303
9304 * c-common.h (struct sorted_fields_type): Add variable_size GTY
9305 option.
9306
5498f011
JM
93072010-06-07 Joseph Myers <joseph@codesourcery.com>
9308
9309 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
9310 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
9311 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
9312 flag_signed_bitfields, warn_strict_null_sentinel,
9313 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
9314 flag_gen_declaration, flag_no_gnu_keywords,
9315 flag_implement_inlines, flag_implicit_templates,
9316 flag_implicit_inline_templates, flag_optional_diags,
9317 flag_elide_constructors, flag_default_inline, flag_rtti,
9318 flag_conserve_space, flag_access_control, flag_check_new,
9319 flag_new_for_scope, flag_weak, flag_working_directory,
9320 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
9321 flag_enforce_eh_specs, flag_threadsafe_statics,
9322 flag_pretty_templates): Remove.
9323 * c-common.h (flag_preprocess_only, flag_nil_receivers,
9324 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
9325 flag_replace_objc_classes, flag_undef, flag_no_builtin,
9326 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
9327 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
9328 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
9329 flag_no_gnu_keywords, flag_implement_inlines,
9330 flag_implicit_templates, flag_implicit_inline_templates,
9331 flag_optional_diags, flag_elide_constructors, flag_default_inline,
9332 flag_rtti, flag_conserve_space, flag_access_control,
9333 flag_check_new, flag_new_for_scope, flag_weak,
9334 flag_working_directory, flag_use_cxa_atexit,
9335 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
9336 flag_threadsafe_statics, flag_pretty_templates,
9337 warn_strict_null_sentinel): Remove.
9338 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
9339 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
9340 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
9341 fimplicit-inline-templates, fimplicit-templates,
9342 flax-vector-conversions, fms-extensions, fnil-receivers,
9343 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
9344 frtti, fshort-double, fshort-enums, fshort-wchar,
9345 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
9346 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
9347 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
9348 gen-decls, undef): Use Var.
9349 (fdefault-inline, foptional-diags): Document as doing nothing.
9350 * c-opts.c (c_common_handle_option): Remove cases for options now
9351 using Var. Mark ignored options as such.
9352
39dabefd
SB
93532010-06-05 Steven Bosscher <steven@gcc.gnu.org>
9354
9faeb493 9355 * c-common.c: Moved to here from parent directory.
39dabefd
SB
9356 * c-common.def: Likewise.
9357 * c-common.h: Likewise.
9358 * c-cppbuiltin.c: Likewise.
9359 * c-dump.c: Likewise.
9360 * c-format.c: Likewise.
9361 * c-format.h : Likewise.
9362 * c-gimplify.c: Likewise.
9363 * c-lex.c: Likewise.
9364 * c-omp.c: Likewise.
9365 * c.opt: Likewise.
9366 * c-opts.c: Likewise.
9367 * c-pch.c: Likewise.
9368 * c-ppoutput.c: Likewise.
9369 * c-pragma.c: Likewise.
9370 * c-pragma.h: Likewise.
9371 * c-pretty-print.c: Likewise.
9372 * c-pretty-print.h: Likewise.
9373 * c-semantics.c: Likewise.
9374 * stub-objc.c: Likewise.
9375
9376 * c-common.c: Include gt-c-family-c-common.h.
9377 * c-pragma.c: Include gt-c-family-c-pragma.h.
9378\f
85ec4feb 9379Copyright (C) 2010-2018 Free Software Foundation, Inc.
39dabefd
SB
9380
9381Copying and distribution of this file, with or without modification,
9382are permitted in any medium without royalty provided the copyright
9383notice and this notice are preserved.
This page took 3.191021 seconds and 5 git commands to generate.