]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
PR middle-end/81824 - Warn for missing attributes with function aliases
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
f9731de3
MS
12018-11-13 Martin Sebor <msebor@redhat.com>
2
3 PR middle-end/81824
4 * c-attribs.c (handle_copy_attribute): Exclude inlining attributes.
5 (handle_tls_model_attribute): Improve diagnostics.
6
e4bd6d5e
JM
72018-11-12 Jason Merrill <jason@redhat.com>
8
a6bb6b07
JM
9 * c-cppbuiltin.c (c_cpp_builtins): Define
10 __cpp_impl_destroying_delete.
11
e4bd6d5e
JM
12 * c-cppbuiltin.c (c_cpp_builtins): Change __cpp_explicit_bool to
13 __cpp_conditional_explicit.
14
79a2c428
MS
152018-11-09 Martin Sebor <msebor@redhat.com>
16
17 PR middle-end/81824
18 * c-attribs.c (handle_copy_attribute): New function.
19
4c7bd361
MS
202018-11-09 Martin Sebor <msebor@redhat.com>
21
22 PR c/87795
23 * c-common.c (check_user_alignment): Use MAX_OFILE_ALIGNMENT.
24
28567c40
JJ
252018-11-08 Jakub Jelinek <jakub@redhat.com>
26
27 * c-common.h (c_finish_omp_taskgroup): Add CLAUSES argument.
28 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
29 enum omp_memory_order MEMORY_ORDER.
30 (c_finish_omp_flush): Add MO argument.
31 (c_omp_depend_t_p, c_finish_omp_depobj): Declare.
32 (c_finish_omp_for): Add FINAL_P argument.
33 * c-omp.c: Include memmodel.h.
34 (c_finish_omp_taskgroup): Add CLAUSES argument. Set
35 OMP_TASKGROUP_CLAUSES to it.
36 (c_finish_omp_atomic): Replace bool SEQ_CST argument with
37 enum omp_memory_order MEMORY_ORDER. Set OMP_ATOMIC_MEMORY_ORDER
38 instead of OMP_ATOMIC_SEQ_CST.
39 (c_omp_depend_t_p, c_finish_omp_depobj): New functions.
40 (c_finish_omp_flush): Add MO argument, if not MEMMODEL_LAST, emit
41 __atomic_thread_fence call with the given value.
42 (check_omp_for_incr_expr): Formatting fixes.
43 (c_finish_omp_for): Add FINAL_P argument. Allow NE_EXPR
44 even in OpenMP loops, diagnose if NE_EXPR and incr expression
45 is not constant expression 1 or -1. Transform NE_EXPR loops
46 with iterators pointers to VLA into LT_EXPR or GT_EXPR loops.
47 (c_omp_check_loop_iv_r): Look for orig decl of C++ range for
48 loops too.
49 (c_omp_split_clauses): Add support for combined
50 #pragma omp parallel master and
51 #pragma omp {,parallel }master taskloop{, simd} constructs.
52 Handle OMP_CLAUSE_IN_REDUCTION. Handle OMP_CLAUSE_REDUCTION_TASK.
53 Handle OMP_CLAUSE_NONTEMPORAL. Handle splitting OMP_CLAUSE_IF
54 also to OMP_SIMD. Copy OMP_CLAUSE_LASTPRIVATE_CONDITIONAL.
55 (c_omp_predetermined_sharing): Don't return
56 OMP_CLAUSE_DEFAULT_SHARED for const qualified decls.
57 * c-pragma.c (omp_pragmas): Add PRAGMA_OMP_DEPOBJ and
58 PRAGMA_OMP_REQUIRES.
59 * c-pragma.h (enum pragma_kind): Likewise.
60 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_NONTEMPORAL
61 and PRAGMA_OMP_CLAUSE_{IN,TASK}_REDUCTION.
62
204839e7
DM
632018-11-08 David Malcolm <dmalcolm@redhat.com>
64
65 * c-format.c (gcc_dump_printf_char_table): Add entry for %f.
66
d8010ee4
DM
672018-11-08 David Malcolm <dmalcolm@redhat.com>
68
69 * c-format.c (local_cgraph_node_ptr_node): New variable.
70 (gcc_dump_printf_char_table): Add entry for %C.
71 (get_pointer_to_named_type): New function, taken from the handling
72 code for "gimple *" from...
73 (init_dynamic_diag_info): ...here. Add handling for
74 "cgraph_node *".
75 * c-format.h (T_CGRAPH_NODE): New.
76
4be5c72c
JM
772018-10-19 Jason Merrill <jason@redhat.com>
78
79 * c-cppbuiltin.c (c_cpp_builtins): Add
80 __cpp_nontype_template_parameter_class.
81
f3f6029d
NS
822018-10-31 Nathan Sidwell <nathan@acm.org>
83
ab5324fb
NS
84 * c-opts.c (c_finish_options): Force command line macro
85 location. Refactor to avoid repeating main debug hook.
86 (push_command_line_include): Clarify comment.
87
f3f6029d
NS
88 * c-opts.c (c_finish_options): Adjust cpp_force_token_locations call.
89
91e3ec29
MS
902018-10-30 Martin Sebor <msebor@redhat.com>
91
92 PR middle-end/87041
93 * c-format.c (check_format_types): Avoid diagnosing null pointer
94 arguments to printf-family of functions.
95
b5ff4f5c
MP
962018-10-30 Marek Polacek <polacek@redhat.com>
97
98 Implement P0892R2, explicit(bool).
99 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.
100
7e2de6df
DM
1012018-10-29 David Malcolm <dmalcolm@redhat.com>
102
103 * name-hint.h (name_hint::take_deferred): New member function.
104
b2bf438c
DM
1052018-10-29 David Malcolm <dmalcolm@redhat.com>
106
107 PR c++/56856
108 * c-common.c (check_function_sentinel): Call fold_for_warn on the
109 argument.
110 (check_function_restrict): Rename param "argarray" to
111 "unfolded_argarray", and make a copy named "argarray", calling
112 fold_for_warn on each argument.
113 (check_function_arguments): Add note about responsibility for
114 folding the arguments.
115
9f936c86
JM
1162018-10-17 Joseph Myers <joseph@codesourcery.com>
117
118 * c-common.c (flag_isoc2x): New variable.
119 * c-common.h (clk_c): Update comment to reference C2X.
120 (flag_isoc99, flag_isoc11): Update comments to reference future
121 standard versions in general.
122 (flag_isoc2x): Declare.
123 * c-opts.c (set_std_c2x): New function.
124 (c_common_handle_option): Handle -std=c2x and -std=gnu2x.
125 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set
126 flag_isoc2x to 0.
127 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options.
128
7a8a92c4
JM
1292018-10-17 Joseph Myers <joseph@codesourcery.com>
130
131 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
132 (std=iso9899:2018): Document C17 as published in 2018.
133
4dc003ff
CL
1342018-10-12 Christophe Lyon <christophe.lyon@linaro.org>
135
136 PR c++/87364
137 * c-pretty-print.c (c_pretty_printer::constant): Fix typo.
138
79371671
WW
1392018-10-11 Will Wray <wjwray@gmail.com>
140
141 PR c++/87364
142 * c-pretty-print.h (pp_c_type_cast): Prototype.
143 (pp_c_integer_constant): Likewise.
144 * c-pretty-print.c (pp_c_type_cast): No longer static.
145 (pp_c_integer_constant): Likewise.
146 (pp_c_enumeration_constant): Fix loop termination when finding
147 name of constant. No longer returns a value. Call
148 pp_c_integer_constant.
149 (c_pretty_printer::constant): Update for changes to
150 pp_c_enumeration_constant.
151
46c62690
JJ
1522018-10-11 Jakub Jelinek <jakub@redhat.com>
153
154 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312
155 for no_unique_address.
156
c24300ba
DM
1572018-10-09 David Malcolm <dmalcolm@redhat.com>
158
159 * c-common.c (c_option_controlling_cpp_error): Rename to...
160 (c_option_controlling_cpp_diagnostic): ...this, and convert
161 "reason" from int to enum.
162 (c_cpp_error): Rename to...
163 (c_cpp_diagnostic): ...this, converting level and reason to enums.
164 * c-common.h (c_cpp_error): Rename to...
165 (c_cpp_diagnostic): ...this, converting level and reason to enums.
166 * c-opts.c (c_common_init_options): Update for renaming.
167
8656dafa
RS
1682018-10-08 Richard Sandiford <richard.sandiford@arm.com>
169
170 PR c/87286
171 * c-common.c (vector_types_compatible_elements_p): Use
172 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE.
173
8cff0652
VK
1742018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com>
175
176 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor
177 to generate constructor destructor priority warning.
178 * c.opt (-Wprio-ctor-dtor): New option.
179
bedf03a2
JM
1802018-10-01 Jason Merrill <jason@redhat.com>
181
182 * c-lex.c (c_common_has_attribute): Add no_unique_address.
183
6cc430c1
EB
1842018-10-01 Eric Botcazou <ebotcazou@adacore.com>
185
186 * c-ada-spec.c (get_underlying_decl): Get to the main type variant.
187 (dump_ada_node): Add const keyword.
188
87677ac7
ML
1892018-09-25 Martin Liska <mliska@suse.cz>
190
191 * c-common.c (c_common_truthvalue_conversion):
192 Remove Pascal from documentation.
193
518196cb
EB
1942018-09-21 Eric Botcazou <ebotcazou@adacore.com>
195
196 * c-ada-spec.c: Include diagnostic.h.
197 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout.
198
a599af84
MP
1992018-09-19 Marek Polacek <polacek@redhat.com>
200
201 * c.opt (Wclass-conversion): New.
202
9c4a4b3c
DM
2032018-09-17 David Malcolm <dmalcolm@redhat.com>
204
205 * c-format.c (range_label_for_format_type_mismatch::get_text):
206 Update for new param.
207
c896ecfe
DM
2082018-09-17 David Malcolm <dmalcolm@redhat.com>
209
210 * c-format.c (format_warning_at_char): Update for introduction of
211 format_string_diagnostic_t.
212 (format_type_warning): Likewise.
213
80c6d1f4
MJ
2142018-09-17 Martin Jambor <mjambor@suse.cz>
215
216 PR c/63886
217 * c.opt (Wabsolute-value): New.
218
6d900107
BE
2192018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
220
221 * c-common.c (complete_flexible_array_elts): New helper function.
222 * c-common.h (complete_flexible_array_elts): Declare.
223
b5764229
BE
2242018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
225
226 * c-common.c (braced_list_to_string): Remove eval parameter.
227 Add some more checks. Always create zero-terminated STRING_CST.
228 * c-common.h (braced_list_to_string): Adjust prototype.
229
85204e23
DM
2302018-08-27 David Malcolm <dmalcolm@redhat.com>
231
232 PR 87091
233 * c-common.c (c_cpp_error): Update for conversion of show_caret_p
234 to a tri-state.
235 (maybe_suggest_missing_token_insertion): Likewise.
236 (maybe_add_include_fixit): Add param "override_location". If set,
237 and source-printing is enabled, then override the rich_location's
238 primary location with that of the insertion point for the fix-it
239 hint, marking it with SHOW_LINES_WITHOUT_RANGE.
240 * c-common.h (extern void maybe_add_include_fixit): Add bool
241 param.
242 * c-format.c (selftest::test_type_mismatch_range_labels): Update
243 for conversion of show_caret_p to a tri-state.
244 * c-warn.c (warn_for_restrict): Likewise.
245 * known-headers.cc
246 (suggest_missing_header::~suggest_missing_header): Update call to
247 maybe_add_include_fixit to suggest overriding the location, as it
248 is for a note.
249
3d78e008
ML
2502018-08-27 Martin Liska <mliska@suse.cz>
251
252 * c-common.c (check_function_restrict): Use new function
92a285c1
ML
253 fndecl_built_in_p and remove check for FUNCTION_DECL if
254 possible.
3d78e008
ML
255 (check_builtin_function_arguments): Likewise.
256 (reject_gcc_builtin): Likewise.
257 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise.
258
b5be6d0c
MP
2592018-08-26 Marek Polacek <polacek@redhat.com>
260
261 PR c++/87029, Implement -Wredundant-move.
262 * c.opt (Wredundant-move): New option.
263
79ca9c35
MP
2642018-08-21 Marek Polacek <polacek@redhat.com>
265
266 PR c++/86981, Implement -Wpessimizing-move.
267 * c.opt (Wpessimizing-move): New option.
268
097f82ec
DM
2692018-08-20 David Malcolm <dmalcolm@redhat.com>
270
271 PR other/84889
272 * c-attribs.c (common_handle_aligned_attribute): Add
273 auto_diagnostic_group instance.
274 * c-indentation.c (warn_for_misleading_indentation): Likewise.
275 * c-opts.c (c_common_post_options): Likewise.
276 * c-warn.c (warn_logical_not_parentheses): Likewise.
277 (warn_duplicated_cond_add_or_warn): Likewise.
278 (warn_for_multistatement_macros): Likewise.
279
3fb558b1
NS
2802018-08-20 Nathan Sidwell <nathan@acm.org>
281
282 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm
283 access.
284
800c0e98
NS
2852018-08-17 Nathan Sidwell <nathan@acm.org>
286
287 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro
288 field.
289 (laxy_hex_fp_value_count): Make unsigned.
290 (lazy_hex_fp_value): Provided with macro & lazy number. Directly
291 manipulate the macro.
292 (builtin_defin_with_hex_fp_value): Adjust callback name, use
293 cpp_define_lazily.
294
6f795a92
DM
2952018-08-17 David Malcolm <dmalcolm@redhat.com>
296
297 * c-format.c (enum format_type): Add gcc_dump_printf_format_type.
298 (gcc_dump_printf_length_specs): New.
299 (gcc_dump_printf_flag_pairs): New.
300 (gcc_dump_printf_flag_specs): New.
301 (gcc_dump_printf_char_table): New.
302 (format_types_orig): Add entry for "gcc_dump_printf".
303 (init_dynamic_diag_info): Set up length_char_specs and
304 conversion_specs for gcc_dump_printf_format_type.
305 (handle_format_attribute): Handle gcc_dump_printf_format_type.
306
c5d725c0
NS
3072018-08-17 Nathan Sidwell <nathan@acm.org>
308
10f04917
NS
309 * c-ada-spec.c (macro_length, dump_ada_macros): Constify.
310
c5d725c0
NS
311 * c-ada-spec.c: Don't #include "cpp-id-data.h"
312 * c-cppbuiltin.c: Likewise.
313
c0c12356
ML
3142018-08-17 Martin Liska <mliska@suse.cz>
315
316 * c.opt: Remove Warn, Init and Report for options with
92a285c1
ML
317 Ignore/Deprecated flag. Warning is done automatically for
318 Deprecated flags.
c0c12356 319
10fcc142
DM
3202018-08-16 David Malcolm <dmalcolm@redhat.com>
321
322 PR c++/70693
323 * c-common.c (selftest::c_family_tests): Call
324 selftest::c_indentation_c_tests.
325 * c-common.h (selftest::c_indentation_c_tests): New decl.
326 * c-indentation.c: Include "selftest.h".
327 (next_tab_stop): Add "tab_width" param, rather than accessing
328 cpp_opts.
329 (get_visual_column): Likewise. Clarify comment. Bulletproof
330 against reading past the end of the line.
331 (get_first_nws_vis_column): Add "tab_width" param.
332 (detect_intervening_unindent): Likewise.
333 (should_warn_for_misleading_indentation): Read tab width from
334 cpp_opts and pass around.
335 (selftest::test_next_tab_stop): New test.
336 (selftest::assert_get_visual_column_succeeds): New function.
337 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro.
338 (selftest::assert_get_visual_column_fails): New function.
339 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro.
340 (selftest::test_get_visual_column): New test.
341 (selftest::c_indentation_c_tests): New function.
342
3f6677f4
NS
3432018-08-16 Nathan Sidwell <nathan@acm.org>
344
345 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p.
346 (store_ada_macro): Likewise.
347 * c-ppoutput.c (cb_used_define, dump_macro): Likewise.
348 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise,
349
96e6ae57
DM
3502018-08-15 David Malcolm <dmalcolm@redhat.com>
351
352 * c-format.c: Include "selftest-diagnostic.h" and
353 "gcc-rich-location.h".
354 (format_warning_at_char): Pass NULL for new label params of
355 format_warning_va.
356 (class indirection_suffix): New class.
357 (class range_label_for_format_type_mismatch): New class.
358 (format_type_warning): Move logic for generating "*" suffix to
359 class indirection_suffix. Create "fmt_label" and "param_label"
360 to show their types, and pass them to the
361 format_warning_at_substring calls.
362 (selftest::test_type_mismatch_range_labels): New test.
363 (selftest::c_format_c_tests): Call it.
364
23aa9f7c
MS
3652018-08-13 Martin Sebor <msebor@redhat.com>
366
367 PR tree-optimization/71625
368 * c-common.c (braced_list_to_string): New function.
369 * c-common.h (braced_list_to_string): Declare it.
370
f10a9135
NS
3712018-08-08 Nathan Sidwell <nathan@acm.org>
372
373 * c-common.c (try_to_locate_new_include_inertion_point): Use
374 linemap_included_from_linemap.
375 * c-lex.c (fe_file_change): Use linemap_included_from.
376 * c-ppoutput.c (pp_file_change): Likewise.
377
8a45b051
MS
3782018-08-01 Martin Sebor <msebor@redhat.com>
379
380 PR tree-optimization/86650
381 * c-family/c-format.c (gcc_tdiag_char_table): Update comment for "%G".
382 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same.
383 (init_dynamic_diag_info): Update from "gcall *" to "gimple *".
384 * c-format.h (T89_G): Update to be "gimple *" rather than
385 "gcall *".
386 (local_gcall_ptr_node): Rename...
387 (local_gimple_ptr_node): ...to this.
388
e540ccc0
DM
3892018-07-31 David Malcolm <dmalcolm@redhat.com>
390
391 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing
392 table entries for gcc_diag_char_table, and the 'Z' entry from
393 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from
394 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0].
395 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly
396 adding missing "Z" for this table. Remove erroneous "G" and "K"
397 entries.
398 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
399 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE.
400 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v".
401
425fc685
RE
4022018-07-31 Richard Earnshaw <rearnsha@arm.com>
403
404 * c-common.c (speculation_safe_resolve_call): New function.
405 (speculation_safe_resolve_params): New function.
406 (speculation_safe_resolve_return): New function.
407 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value.
408 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for
409 __HAVE_SPECULATION_SAFE_VALUE.
410
181463c2
DM
4112018-07-20 David Malcolm <dmalcolm@redhat.com>
412
413 * c-common.c (c_cpp_error): Remove redundant "line_table"
414 parameter from call to rich_location::set_range.
415 (maybe_suggest_missing_token_insertion): Likewise.
416
0d7f9065
MS
4172018-07-20 Martin Sebor <msebor@redhat.com>
418
419 PR middle-end/82063
420 * gcc/c-family/c.opt (-Warray-bounds): Remove redundant -Wall.
421
00abf86c
MS
4222018-07-20 Martin Sebor <msebor@redhat.com>
423
424 PR middle-end/82063
425 * c-common.h (c_common_handle_option): Change function argument
426 to HOST_WIDE_INT.
427 * c-opts.c (c_common_init_options): Same.
428 (c_common_handle_option): Same. Remove special handling of
429 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_.
430 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change
431 options to take a HOST_WIDE_INT argument and accept a byte-size
432 suffix. Initialize.
433 (-Wvla-larger-than): Same.
434 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New.
435 (-Wno-vla-larger-than): Same.
436
9b452033
JJ
4372018-07-12 Jakub Jelinek <jakub@redhat.com>
438
439 * c-attribs.c (c_common_attribute_table): Add
440 "omp declare target implicit" attribute.
441
cd0762f3
RB
4422018-07-12 Richard Biener <rguenther@suse.de>
443
444 PR c/86453
445 * c-attribs.c (handle_packed_attribute): Do not build a variant
446 type with TYPE_PACKED, instead ignore the attribute if we may
447 not apply to the original type.
448
0b27c3ed
JJ
4492018-07-10 Jakub Jelinek <jakub@redhat.com>
450
451 PR c++/86443
452 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv
453 to contain TREE_LIST for both the original class iterator and the
454 "last" helper var.
455
e730a0ef
EB
4562018-07-07 Eric Botcazou <ebotcazou@adacore.com>
457
458 * c-ada-spec.c (to_ada_name): Remove index parameter.
459 (pp_ada_tree_identifier): Likewise.
460 (dump_ada_macros): Adjust call to to_ada_name.
461 (struct overloaded_name_hash): Delete.
462 (struct overloaded_name_hasher): Likewise.
463 (overloaded_names): Likewise.
464 (compute_overloading_index): Likewise.
465 (dump_ada_decl_name): Do not call compute_overloading_index and
466 adjust calls to pp_ada_tree_identifier.
467 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
468 (dump_ada_import): Add spc parameter and switch to aspect syntax.
469 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier.
470 (dump_ada_enum_type): Remove type and display_convention parameters.
471 Adjust calls to pp_ada_tree_identifier.
472 (dump_ada_node): Likewise and for dump_ada_structure.
473 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type
474 and tidy up.
475 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect
476 syntax.
477 (print_constructor): Adjust call to pp_ada_tree_identifier.
478 (print_destructor): Likewise.
479 (dump_ada_declaration): Switch to aspect syntax.
480 (dump_ada_structure): Likewise and tidy up. Replace display_convention
481 parameter with nested parameter.
482 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005.
483 (dump_ada_specs): Do not delete overloaded_names table.
484
8de583fc
PB
4852018-07-06 Peter Bergner <bergner@linux.ibm.com>
486
487 PR target/86324
e730a0ef 488 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute
8de583fc
PB
489 target hook.
490
09cff37b
NS
4912018-07-05 Nathan Sidwell <nathan@acm.org>
492
493 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not
494 NO_IMPLICIT_EXTERN_C.
495
98086b2b
ML
4962018-06-28 Martin Liska <mliska@suse.cz>
497
498 * cppspec.c: Include opt-suggestions.h.
499
829c6349
CLT
5002018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
501 Thomas Schwinge <thomas@codesourcery.com>
502 Cesar Philippidis <cesar@codesourcery.com>
503
504 * c-pragma.h (enum pragma_omp_clause): Add
505 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove
506 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}.
507
f41b7612
JJ
5082018-06-20 Jakub Jelinek <jakub@redhat.com>
509
510 PR c++/86210
511 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete
512 comment.
513
4252ccd7
MS
5142018-06-18 Martin Sebor <msebor@redhat.com>
515
516 PR middle-end/85602
517 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute
518 nonstring.
519
e197e64e
KV
5202018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org>
521
522 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR.
523
34a7a230
JM
5242018-06-13 Jason Merrill <jason@redhat.com>
525
5cef3733
JM
526 * c-opts.c (c_common_post_options): Warn about useless -Wabi.
527 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version
528 handling.
529
34a7a230
JM
530 PR c++/86094 - wrong code with defaulted move ctor.
531 * c-opts.c (c_common_post_options): Bump the current ABI version to
532 13. Set warn_abi_version and flag_abi_compat_version to the current
533 version rather than 0. Fix defaulting flag_abi_compat_version from
534 warn_abi_version.
535
bb0f14ae
MS
5362018-06-12 Martin Sebor <msebor@redhat.com>
537
538 PR c/85931
539 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when
540 sizeof source and destination yields the same value.
541
3713f2e2
ML
5422018-06-12 Martin Liska <mliska@suse.cz>
543
544 * c.opt: Make MPX-related options as Deprecated.
545
4af78ef8
DM
5462018-06-08 David Malcolm <dmalcolm@redhat.com>
547
548 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE
549 rather than 0.
550
31db0fe0
ML
5512018-06-08 Martin Liska <mliska@suse.cz>
552
553 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support
554 for MPX (macros, related functions, fields in cgraph_node, ...).
555 (handle_bnd_legacy): Likewise.
556 (handle_bnd_instrument): Likewise.
557 * c.opt: Likewise.
558
fe16acf2
JJ
5592018-06-06 Jakub Jelinek <jakub@redhat.com>
560
561 PR c++/86068
562 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set
563 __cpp_transactional_memory to 201500 instead of 210500.
564
4dbdb49b
JM
5652018-06-06 Jason Merrill <jason@redhat.com>
566
567 PR c++/85710 - ICE with -Wmemset-elt-size.
568 * c-warn.c (warn_for_memset): Don't crash on incomplete element type.
569
f8ad043f
JM
5702018-06-01 Jason Merrill <jason@redhat.com>
571
572 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to
573 201703.
574
abc24d93
EB
5752018-06-01 Eric Botcazou <ebotcazou@adacore.com>
576
577 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward
578 declaration for a typedef independently of whether the declaration of
579 the subtype is generated.
580
d258f4aa
MS
5812018-05-31 Martin Sebor <msebor@redhat.com>
582
583 PR c/82063
584 * c.opt (-Wno-alloc-size-larger-than): New option.
585
b67b9225
DP
5862018-04-22 David Pagan <dave.pagan@oracle.com>
587
588 PR c/55976
589 * c-opts.c (c_common_post_options): Set default for warn_return_type
590 for C++/C++ with ObjC extensions only. For C, makes it possible to
591 differentiate between default (no option), -Wreturn-type, and
592 -Wno-return-type.
593
04eb9c55
JM
5942018-05-29 Jason Merrill <jason@redhat.com>
595
596 * c.opt (Winit-list-lifetime): New flag.
597
b0c31bc6
BE
5982018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
599
600 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and
601 splay_tree_delete_pointers.
602
44284983
JJ
6032018-05-26 Jakub Jelinek <jakub@redhat.com>
604
605 PR bootstrap/85921
606 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary
607 noinline variable to workaround broken kernel headers.
608
b46b715d
JM
6092018-05-18 Jason Merrill <jason@redhat.com>
610
611 * c.opt (Wdeprecated-copy): New flag.
612
40659769
ML
6132018-05-17 Martin Liska <mliska@suse.cz>
614
615 * c-warn.c (overflow_warning): Do not use
616 space in between 'G_' and '('.
617
403962ea
JM
6182018-05-09 Jason Merrill <jason@redhat.com>
619
620 * c-common.c (valid_array_size_p): Add complain parameter.
621 * c-common.h: ...which defaults to true.
622
1c9ee609
JJ
6232018-05-11 Jakub Jelinek <jakub@redhat.com>
624
625 PR c/85696
626 * c-omp.c (c_omp_predetermined_sharing): Return
627 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type.
628
19916065
ML
6292018-05-11 Martin Liska <mliska@suse.cz>
630
92a285c1 631 PR sanitizer/85556
19916065
ML
632 * c-attribs.c (handle_no_sanitize_attribute): Iterate all
633 TREE_LIST values.
634
79e7b1fe
JJ
6352018-05-10 Jakub Jelinek <jakub@redhat.com>
636
637 PR c++/85662
638 * c-common.h (fold_offsetof_1): Removed.
639 (fold_offsetof): Add TYPE argument defaulted to size_type_node and
640 CTX argument defaulted to ERROR_MARK.
641 * c-common.c (fold_offsetof_1): Renamed to ...
642 (fold_offsetof): ... this. Remove wrapper function. Add TYPE
643 argument, convert the pointer constant to TYPE and use size_binop
644 with PLUS_EXPR instead of fold_build_pointer_plus if type is not
645 a pointer type. Adjust recursive calls.
646
86c12f76
EB
6472018-05-10 Eric Botcazou <ebotcazou@adacore.com>
648
649 PR c++/85400
650 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs.
651
ee336e84
NS
6522018-05-07 Nathan Sidwell <nathan@acm.org>
653
654 * c.opt (ffor-scope): Remove functionality, issue warning.
655
6c072e21
NS
6562018-05-03 Nathan Sidwell <nathan@acm.org>
657
658 * c.opt (ffriend-injection): Remove functionality, issue warning.
659
2cc7d3a7
DM
6602018-05-01 David Malcolm <dmalcolm@redhat.com>
661
662 PR c/84258
663 * c-format.c (struct format_check_results): Add field
664 "number_non_char".
665 (check_format_info): Initialize it, and warn if encountered.
666 (check_format_arg): Distinguish between wide char and
667 everything else when detecting arrays of non-char.
668
7761dfbe
DM
6692018-04-30 David Malcolm <dmalcolm@redhat.com>
670
671 * c-format.c (get_corrected_substring): Update for
672 location_get_source_line returning a char_span. Use a char_span
673 when handling the prefix of the correction.
674 * c-indentation.c (get_visual_column): Update for
675 location_get_source_line returning a char_span.
676 (get_first_nws_vis_column): Likewise.
677
62e98ef1
DM
6782018-03-29 David Malcolm <dmalcolm@redhat.com>
679
680 PR c++/84269
681 * known-headers.cc (get_stdlib_header_for_name): Add various names
682 from <assert.h>, <string.h>, and <memory.h>; add more names from
683 <stdio.h>.
684
a7dea617
JJ
6852018-03-27 Jakub Jelinek <jakub@redhat.com>
686
687 PR c++/85061
688 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that
689 get_base_address of the second operand is a VAR_P, rather than the
690 operand itself, and use gcc_checking_assert instead of gcc_assert.
691
889a3a30
MP
6922018-03-23 Marek Polacek <polacek@redhat.com>
693
694 PR c++/85045
695 * c-pretty-print.c (c_pretty_printer::multiplicative_expression)
696 <case RDIV_EXPR>: Tweak condition.
697
452154b9
EB
6982018-03-20 Eric Botcazou <ebotcazou@adacore.com>
699
700 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool.
701
63ecb626
JJ
7022018-03-16 Jakub Jelinek <jakub@redhat.com>
703
ce811fc4
JJ
704 PR c/84909
705 * c-warn.c (conversion_warning): Replace "to to" with "to" in
706 diagnostics.
707
63ecb626
JJ
708 PR c/84910
709 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from
710 diagnostics.
711
a1295eec
RB
7122018-03-16 Richard Biener <rguenther@suse.de>
713
714 PR c/84873
715 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead
716 unshare the possibly folded expression.
717
919674fb
RB
7182018-03-15 Richard Biener <rguenther@suse.de>
719
720 PR c/84873
721 * c-gimplify.c (c_gimplify_expr): Do not fold expressions.
722
f99309b2
MS
7232018-03-13 Martin Sebor <msebor@redhat.com>
724
725 PR tree-optimization/84725
726 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring
727 with all three narrow character types, including their qualified forms.
728
e9b9fa4c
MS
7292018-03-12 Martin Sebor <msebor@redhat.com>
730
731 PR tree-optimization/83456
732 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
733 Restore checking of bounded built-in functions.
734 (check_function_arguments): Also return the result
735 of warn_for_restrict.
736 * gcc/c-family/c-common.c (check_function_restrict): Return bool.
737 * gcc/c-family/c-warn.c (warn_for_restrict): Return bool.
738
0805d020
MP
7392018-03-02 Marek Polacek <polacek@redhat.com>
740
741 PR c++/84171
742 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands
743 is erroneous.
744
ed2a2f08
TS
7452018-03-02 Thomas Schwinge <thomas@codesourcery.com>
746
747 * c-attribs.c (c_common_attribute_table): Remove "cilk simd
748 function".
749
90abdde0
MP
7502018-03-01 Marek Polacek <polacek@redhat.com>
751
752 PR c++/84639
753 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid
754 alignment in computation.
755
c6db43fa
EB
7562018-02-28 Eric Botcazou <ebotcazou@adacore.com>
757
758 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case.
759 <REAL_TYPE>: Deal specifically with _Float128/__float128.
760
9e25c7ed
EB
7612018-02-28 Eric Botcazou <ebotcazou@adacore.com>
762
763 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case.
764 (is_char_array): Take a type instead of a declaration.
765 (dump_ada_array_type): Likewise.
766 (is_simple_enum): Minor tweak.
767 (dump_ada_enum_type): New function extracted from...
768 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it.
769 <INTEGER_TYPE>: Remove unreachable code.
770 <RECORD_TYPE>: Likewise. Minor tweaks.
771 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes.
772 <ENUMERAL_TYPE>: New case.
773 <RECORD_TYPE>: Factor out common code.
774 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes.
775 Minor tweaks. Deal with enumeral types.
776 (dump_ada_structure): Minor tweaks.
777
09de3550
EB
7782018-02-28 Eric Botcazou <ebotcazou@adacore.com>
779
780 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic
781 address for incomplete structures.
782 (dump_forward_type): Do not bail out for incomplete structures.
783 (dump_ada_declaration): Do not special-case incomplete structures
784 for subtypes. Dump them as null records for types.
785
095d8d4b
EB
7862018-02-28 Eric Botcazou <ebotcazou@adacore.com>
787
788 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting.
789 (is_char_array): Fix formatting.
790 (dump_template_types): Likewise.
791 (dump_generic_ada_node): Rename into...
792 (dump_ada_node): ...this.
793 <POINTER_TYPE>: Remove superfluous space. Use generic address for
794 incomplete structures and not for empty structures. Do not use it
795 when forward declarations are needed.
796 (dump_forward_type): New function.
797 (dump_nested_types): Remove FORWARD parameter. Do not consider
798 TREE_VISITED and do not generate a forward declaration. Only dump
799 original nested types for nested declaration.
800 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type.
801 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer.
802 <RECORD_TYPE>: Do not consider TREE_VISITED.
803 (dump_ada_declaration): Use booleans and fix formatting throughout.
804 <TYPE_DECL>: Skip incomplete structures and not empty structures.
805 Call dump_forward_type instead of dump_nested_types for a typedef.
806 Remove superfluous check and adjust call to dump_nested_types.
807 <POINTER_TYPE>: Call dump_forward_type and fall through.
808 (dump_ada_struct_decl): Rename into...
809 (dump_ada_structure): ...this. Do not special-case empty structures.
810
d4cfd486
MS
8112018-02-27 Martin Sebor <msebor@redhat.com>
812
813 PR c++/83871
814 * c.opt (-Wmissing-attributes): New option.
815
b22dbd03
ML
8162018-02-21 Martin Liska <mliska@suse.cz>
817
818 * c.opt (Wcatch-value=): Add IntegerRange.
819
883dfe2a
JM
8202018-02-15 Jason Merrill <jason@redhat.com>
821
822 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides.
823
0444aa9c
NS
8242018-02-09 Nathan Sidwell <nathan@acm.org>
825
826 PR c/84293
827 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC
828 arg.
829 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC
830 arg. Adjust.
831
cea71f0a
MS
8322018-02-09 Martin Sebor <msebor@redhat.com>
833
834 PR lto/84212
835 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO.
836 (-Walloc-size-larger-than, -Wformat-truncation=): Same.
837 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same.
838 (-Wstrict-overflow, -Wsuggest-attribute): Same.
839 (-Wuninitialized): Same.
840
8c8b7be5
EB
8412018-02-09 Eric Botcazou <ebotcazou@adacore.com>
842
843 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant'
844 keyword for components.
845
7c30b12a
PC
8462018-02-02 Paolo Carlini <paolo.carlini@oracle.com>
847
848 * c-common.h (DECL_UNNAMED_BIT_FIELD): New.
849
eece7fe5
JK
8502018-02-02 Julia Koval <julia.koval@intel.com>
851
852 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h.
853
7d07a93a
MP
8542018-01-29 Marek Polacek <polacek@redhat.com>
855
856 PR c/83966
857 * c-format.c (check_function_format): Check current_function_decl.
858
53723269
JJ
8592018-01-27 Jakub Jelinek <jakub@redhat.com>
860
861 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix
862 argument.
863 (LAZY_HEX_FP_VALUES_CNT): Define.
864 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp
865 values rather than just 12.
866 (builtin_define_with_hex_fp_value): Likewise.
867
7365279f
BK
8682018-01-18 Boris Kolpackov <boris@codesynthesis.com>
869
92a285c1
ML
870 PR other/70268
871 * c.opt (-fmacro-prefix-map): New option.
872 * c-opts.c (c_common_handle_option): Handle it.
873 * c-lex.c (init_c_lex): Set remap_filename cpp callback.
874 * c-ppoutput.c (init_pp_output): Likewise.
7365279f 875
bb9869d5
DM
8762018-01-17 David Malcolm <dmalcolm@redhat.com>
877
878 PR c++/83814
879 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c.
880
68dc87c3
EB
8812018-01-10 Eric Botcazou <ebotcazou@adacore.com>
882
883 * c-ada-spec.c (dump_number): Add FLOAT_P parameter.
884 Skip 'f' and 'F' characters if it is true.
885 (store_ada_macro): Minor tweak.
886 (dump_ada_macros) <CPP_COMMENT>: Likewise.
887 <CPP_WSTRING>: Likewise.
888 <CPP_STRING>: Output '&' in the buffer if not the first string.
889 <CPP_NUMBER>: Adjust calls to dump_number.
890
9a004410
DM
8912018-01-10 David Malcolm <dmalcolm@redhat.com>
892
893 PR c++/43486
894 * c-common.c: Include "selftest.h".
895 (get_atomic_generic_size): Perform the test for integral type
896 before the range test for any integer constant, fixing indentation
897 of braces. Call fold_for_warn before testing for an INTEGER_CST.
898 (reject_gcc_builtin): Strip any location wrapper from EXPR.
899 (selftest::test_fold_for_warn): New function.
900 (selftest::c_common_c_tests): New function.
901 (selftest::c_family_tests): Call it, and
902 selftest::c_pretty_print_c_tests.
903 * c-common.h (selftest::c_pretty_print_c_tests): New decl.
904 * c-format.c (check_format_arg): Convert VAR_P check to a
905 fold_for_warn.
906 * c-pretty-print.c: Include "selftest.h".
907 (pp_c_cast_expression): Don't print casts for location wrappers.
908 (selftest::assert_c_pretty_printer_output): New function.
909 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro.
910 (selftest::test_location_wrappers): New function.
911 (selftest::c_pretty_print_c_tests): New function.
912 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments.
913
5c0caeb3
RS
9142018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
915 Alan Hayward <alan.hayward@arm.com>
916 David Sherwood <david.sherwood@arm.com>
917
918 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL.
919
73a699ae
RS
9202018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
921 Alan Hayward <alan.hayward@arm.com>
922 David Sherwood <david.sherwood@arm.com>
923
924 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE
925 as polynomial.
926
928686b1
RS
9272018-01-03 Richard Sandiford <richard.sandiford@linaro.org>
928 Alan Hayward <alan.hayward@arm.com>
929 David Sherwood <david.sherwood@arm.com>
930
931 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr)
932 (convert_vector_to_array_for_subscript): Handle polynomial
933 TYPE_VECTOR_SUBPARTS.
934 (c_common_type_for_mode): Check valid_vector_subparts_p.
935 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial
936 VECTOR_CST_NELTS.
937
85ec4feb
JJ
9382018-01-03 Jakub Jelinek <jakub@redhat.com>
939
940 Update copyright years.
941
170a8bd6 9422017-12-22 Mike Stump <mikestump@comcast.net>
92a285c1 943 Eric Botcazou <ebotcazou@adacore.com>
170a8bd6
EB
944
945 * c-pragma.c (init_pragma): Register pragma GCC unroll.
946 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL.
947
18408e96
AO
9482017-12-22 Alexandre Oliva <aoliva@redhat.com>
949
950 PR debug/83527
951 PR debug/83419
952 * c-semantics.c (only_debug_stmts_after_p): New.
953 (pop_stmt_list): Clear side effects in debug-only stmt list.
954 Check for single nondebug stmt followed by debug stmts only.
955
c12d20d4
AO
9562017-12-21 Alexandre Oliva <aoliva@redhat.com>
957
958 PR debug/83419
959 * c-semantics.c (pop_stmt_list): Propagate side effects from
960 single nondebug stmt to container list.
961
01512446
JJ
9622017-12-19 Jakub Jelinek <jakub@redhat.com>
963
964 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda
965 conditions with typical order conditions.
966
82cfbd01
MP
9672017-12-18 Marek Polacek <polacek@redhat.com>
968
969 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is
970 not in effect.
971
99da11ec
MS
9722017-12-17 Martin Sebor <msebor@redhat.com>
973
974 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing
975 an error for attribute warn_if_not_aligned.
976
cc8bea0a
MS
9772017-12-16 Martin Sebor <msebor@redhat.com>
978
979 PR tree-optimization/78918
980 * c-common.c (check_function_restrict): Avoid checking built-ins.
981 * c.opt (-Wrestrict): Include in -Wall.
982
4849deb1
JJ
9832017-12-15 Jakub Jelinek <jakub@redhat.com>
984
985 * c-attribs.c (c_common_attribute_table,
986 c_common_format_attribute_table): Swap affects_type_identity
987 and handler fields, adjust comments.
988
c65e18d3
BE
9892017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
990
991 * c.opt (Wcast-function-type): New warning option.
992 * c-lex.c (get_fileinfo): Avoid warning.
993 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast.
994
2004617a
QZ
9952017-12-14 Qing Zhao <qing.zhao@oracle.com>
996
7365279f 997 PR middle_end/79538
2004617a
QZ
998 * c-cppbuiltin.c (builtin_define_with_hex_fp_value):
999 Adjust the size of buf1 and buf2, add a new buf to avoid
1000 format-overflow warning.
1001
96a95ac1
AO
10022017-12-12 Alexandre Oliva <aoliva@redhat.com>
1003
1004 * c-semantics.c (pop_stmt_list): Move begin stmt marker into
1005 subsequent statement list.
1006
5d9ae53d
MS
10072017-12-07 Martin Sebor <msebor@redhat.com>
1008
1009 PR c/81544
1010 PR c/81566
1011 * c-attribs.c (attr_aligned_exclusions): New array.
1012 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same.
1013 (attr_common_exclusions, attr_const_pure_exclusions): Same.
1014 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same.
1015 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same.
1016 (attr_warn_unused_result_exclusions): Same.
1017 (handle_hot_attribute, handle_cold_attribute): Simplify.
1018 (handle_const_attribute): Warn on function returning void.
1019 (handle_pure_attribute): Same.
1020 (handle_aligned_attribute): Diagnose conflicting attribute
1021 specifications.
1022 * c-warn.c (diagnose_mismatched_attributes): Simplify.
1023
c79144f8
DM
10242017-12-06 David Malcolm <dmalcolm@redhat.com>
1025
1026 PR c/83236
1027 * c-common.c (selftest::c_family_tests): Call
1028 selftest::c_spellcheck_cc_tests.
1029 * c-common.h (selftest::c_spellcheck_cc_tests): New decl.
1030 * c-spellcheck.cc: Include "selftest.h".
1031 (name_reserved_for_implementation_p): New function.
1032 (should_suggest_as_macro_p): New function.
1033 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to
1034 should_suggest_as_macro_p and call it.
1035 (selftest::test_name_reserved_for_implementation_p): New function.
1036 (selftest::c_spellcheck_cc_tests): New function.
1037 * c-spellcheck.h (name_reserved_for_implementation_p): New decl.
1038
613bc14f
DM
10392017-12-06 David Malcolm <dmalcolm@redhat.com>
1040
1041 * c-spellcheck.cc: New file, taken from macro-handling code in
1042 spellcheck-tree.c.
1043 * c-spellcheck.h: New file, taken from macro-handling code in
1044 spellcheck-tree.h.
1045
e76c7157
JJ
10462017-12-01 Jakub Jelinek <jakub@redhat.com>
1047
1048 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function"
1049 attribute.
1050 (handle_simd_attribute): Don't check for "cilk simd function"
1051 attribute. Reindent, formatting changes.
1052
b0da4034
JK
10532017-11-30 Julia Koval <julia.koval@intel.com>
1054
1055 * c-common.h (inv_list): Remove.
1056
058f0b9e
JJ
10572017-11-28 Jakub Jelinek <jakub@redhat.com>
1058
1059 PR sanitizer/81275
1060 * c-common.c (c_switch_covers_all_cases_p_1,
1061 c_switch_covers_all_cases_p): New functions.
1062 * c-common.h (c_switch_covers_all_cases_p): Declare.
1063
5e9d6aa4 10642017-11-28 Julia Koval <julia.koval@intel.com>
92a285c1 1065 Sebastian Peryt <sebastian.peryt@intel.com>
5e9d6aa4
JK
1066
1067 * array-notation-common.c: Delete.
1068 * c-cilkplus.c: Ditto.
1069 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove.
1070 * c-common.def (ARRAY_NOTATION_REF): Remove.
1071 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr,
1072 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop,
1073 c_validate_cilk_plus_loop, cilkplus_an_parts,
1074 cilk_ignorable_spawn_rhs_op,
1075 cilk_recognize_spawn): Remove.
1076 * c-gimplify.c (CILK_SPAWN_STMT): Remove.
1077 * c-omp.c: Remove CILK_SIMD check.
1078 * c-pragma.c: Ditto.
1079 * c-pragma.h: Remove CILK related pragmas.
1080 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove
1081 ARRAY_NOTATION_REF condition.
1082 (c_pretty_printer::expression): Ditto.
1083 * c.opt (fcilkplus): Remove.
1084 * cilk.c: Delete.
1085
1af4ebf5
MG
10862017-11-21 Marc Glisse <marc.glisse@inria.fr>
1087
1088 * c-pretty-print.c (pp_c_additive_expression,
1089 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR.
1090
d44ed508
JJ
10912017-11-21 Jakub Jelinek <jakub@redhat.com>
1092
7d2f0f9b
JJ
1093 * c-common.c (get_nonnull_operand): Use tree_to_uhwi.
1094
d44ed508
JJ
1095 PR c++/83059
1096 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
1097 instead of tree_to_uhwi, formatting fix.
1098
26edace6
DM
10992017-11-20 David Malcolm <dmalcolm@redhat.com>
1100
1101 PR c/81404
1102 * known-headers.cc: New file, based on material from c/c-decl.c.
1103 (suggest_missing_header): Copied as-is.
1104 (get_stdlib_header_for_name): New, based on get_c_name_hint but
1105 heavily edited to add C++ support. Add some knowledge about
1106 <limits.h>, <stdint.h>, and <wchar.h>.
1107 * known-headers.h: Likewise.
1108
6c7a259b
DM
11092017-11-20 David Malcolm <dmalcolm@redhat.com>
1110
1111 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h.
1112 (lookup_name_fuzzy): Likewise. Convert return type from
1113 const char * to name_hint. Add location_t param.
1114 * name-hint.h: New header.
1115
f9c59f7e
JJ
11162017-11-19 Jakub Jelinek <jakub@redhat.com>
1117
1118 PR c/66618
1119 PR c/69960
1120 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false.
1121
1e39313a
JM
11222017-11-16 Joseph Myers <joseph@codesourcery.com>
1123
1124 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018
1125 expected publication date of C17.
1126 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases.
1127
3ca0dc60
JM
11282017-11-15 Joseph Myers <joseph@codesourcery.com>
1129
1130 PR c/81156
1131 * c-common.c (c_common_reswords): Add __builtin_tgmath.
1132 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH.
1133
025d57f0
MS
11342017-11-10 Martin Sebor <msebor@redhat.com>
1135
1136 PR c/81117
1137 * c-common.c (catenate_strings): Use memcpy instead of strncpy.
1138 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays.
1139 * c.opt (-Wstringop-truncation): New option.
1140
1b6fa695
ML
11412017-11-06 Martin Liska <mliska@suse.cz>
1142
1143 PR middle-end/82404
1144 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++
1145 FE.
1146 * c.opt: Set default value of warn_return_type.
1147
64a5912c
DM
11482017-10-31 David Malcolm <dmalcolm@redhat.com>
1149
1150 * c-common.c (binary_op_error): Update for renaming of
1151 error_at_rich_loc.
1152 (c_parse_error): Likewise.
1153 * c-warn.c (warn_logical_not_parentheses): Likewise for
1154 renaming of inform_at_rich_loc.
1155 (warn_for_restrict): Likewise for renaming of
1156 warning_at_rich_loc_n.
1157
c76dc9c3
JM
11582017-10-30 Joseph Myers <joseph@codesourcery.com>
1159
1160 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options.
1161 * c-opts.c (set_std_c17): New function.
1162 (c_common_init_options): Use gnu17 as default C version.
1163 (c_common_handle_option): Handle -std=c17 and -std=gnu17.
1164
ee5fd23a
MM
11652017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1166
1167 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode.
1168 (c_cpp_builtins): If a machine has a fast fma _Float<N> and
1169 _Float<N>X variant, define __FP_FAST_FMA<N> and/or
1170 __FP_FAST_FMA<N>X.
1171
d1047465
MP
11722017-10-23 Marek Polacek <polacek@redhat.com>
1173
1174 PR c/82681
1175 * c-warn.c (warnings_for_convert_and_check): Fix typos.
1176
9e878cf1
EB
11772017-10-19 Eric Botcazou <ebotcazou@adacore.com>
1178
1179 * c-common.c (check_builtin_function_arguments): Also check arguments
1180 of __builtin_alloca_with_align_and_max.
1181
89b6abbb
DM
11822017-10-17 David Malcolm <dmalcolm@redhat.com>
1183
1184 * c-format.c (format_warning_at_char): Pass UNKNOWN_LOCATION
1185 rather than NULL to format_warning_va.
1186 (check_format_types): Likewise when calling format_type_warning.
1187 Remove code to extract source_ranges and source_range * in favor
1188 of just a location_t.
1189 (format_type_warning): Convert source_range * param to a
1190 location_t.
1191
39382c09
JJ
11922017-10-13 Jakub Jelinek <jakub@redhat.com>
1193
1194 * c-gimplify.c (c_gimplify_expr): Handle [LR]ROTATE_EXPR like
1195 [LR]SHIFT_EXPR.
1196
62e1c678
DM
11972017-10-12 David Malcolm <dmalcolm@redhat.com>
1198
1199 * c-common.c (enum missing_token_insertion_kind): New enum.
1200 (get_missing_token_insertion_kind): New function.
1201 (maybe_suggest_missing_token_insertion): New function.
1202 * c-common.h (maybe_suggest_missing_token_insertion): New decl.
1203
b90c9338
NS
12042017-10-11 Nathan Sidwell <nathan@acm.org>
1205
1206 * c-opts.c (add_prefixed_path): Change chain to incpath_kind.
1207 (c_common_handle_option): Update incpath_kind names.
1208
3a266bcd
ML
12092017-10-11 Martin Liska <mliska@suse.cz>
1210
1211 PR sanitizer/82490
1212 * c-attribs.c (handle_no_sanitize_attribute): Report directly
1213 Wattributes warning.
1214
8e6cdc90
RS
12152017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
1216
1217 * c-ada-spec.c (dump_generic_ada_node): Use wi::to_wide when
1218 operating on trees as wide_ints.
1219 * c-common.c (pointer_int_sum): Likewise.
1220 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1221 * c-warn.c (match_case_to_enum_1): Likewise.
1222 (c_do_switch_warnings): Likewise.
1223 (maybe_warn_shift_overflow): Likewise.
1224
802b38c9
JJ
12252017-10-10 Jakub Jelinek <jakub@redhat.com>
1226
1227 PR c/82437
1228 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_wide
1229 instead of wide_int::from.
1230
4e34b338
JJ
12312017-10-06 Jakub Jelinek <jakub@redhat.com>
1232
1233 PR c/82437
1234 * c-warn.c (warn_tautological_bitwise_comparison): Instead of
1235 using to_widest use wide_int with the larger of the two precisions.
1236
4bc4b2b4
BE
12372017-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
1238
1239 * c-pretty-print.c (pp_c_parameter_type_list): Print ... for variadic
1240 functions.
1241
a1488398
RS
12422017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
1243
1244 * c-warn.c (warn_tautological_bitwise_comparison): Use wi::to_widest
1245 when combining the original unconverted comparison operands.
1246
01c9fb68
JJ
12472017-09-29 Jakub Jelinek <jakub@redhat.com>
1248
1249 * c-attribs.c (handle_noipa_attribute): Don't add "stack_protect"
1250 attribute.
1251
6e3e8419
EB
12522017-09-29 Eric Botcazou <ebotcazou@adacore.com>
1253
1254 * c-ada-spec.c (to_ada_name): Add index parameter.
1255 (pp_ada_tree_identifier): Likewise.
1256 (dump_ada_macros): Adjust call to to_ada_name.
1257 (struct overloaded_name_hash): New type.
1258 (struct overloaded_name_hasher): Likewise.
1259 (overloaded_names): New hash table.
1260 (compute_overloading_index): New function.
1261 (dump_ada_decl_name): Call it and pass the result to
1262 pp_ada_tree_identifier.
1263 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier.
1264 (dump_ada_function_declaration): Likewise.
1265 (dump_generic_ada_node): Likewise.
1266 (print_constructor): Likewise.
1267 (print_destructor): Likewise.
1268 (dump_ada_specs): Delete overloaded_names table.
1269
79310774
EB
12702017-09-29 Eric Botcazou <ebotcazou@adacore.com>
1271
1272 * c-ada-spec.c (max_ada_macros): Move around.
1273 (store_ada_macro_index): Likewise.
1274 (source_file): Rename into...
1275 (macro_source_file): ...this.
1276 (count_ada_macro): Move around.
1277 (store_ada_macro): Likewise.
1278 (compare_macro): Likewise.
1279 (print_ada_macros): Merge in...
1280 (dump_ada_macros): ...this.
1281 (source_file_base): Rename into...
1282 (current_source_file): ...this.
1283 (print_comment): Move around.
1284 (dump_ada_nodes): Call dump_ada_declaration directly.
1285 (struct with): Change type of limited field to bool.
1286 (append_withs): Change type of limited_access parameter to bool.
1287 (pp_ada_tree_identifie): Likewise.
1288 (dump_ada_decl_nam): Likewise.
1289 (dump_generic_ada_node): Likewise. Do not print the return type.
1290 (to_ada_name): Change type of space_found parameter to bool.
1291 (dump_ada_function_declaration): Return void and change type of
1292 parameters to bool. Also print the return type for a function.
1293 (print_ada_methods): Rename into...
1294 (dump_ada_methods): ...this.
1295 (print_ada_declaration): Rename into ...
1296 (dump_ada_declaration): ...this. Do not print the return type.
1297 (print_ada_struct_decl): Rename into...
1298 (dump_ada_struct_decl): ...this.
1299
7d386d45
JJ
13002017-09-29 Jakub Jelinek <jakub@redhat.com>
1301
1302 * c-attribs.c (handle_packed_attribute): Test DECL_C_BIT_FIELD
1303 rather than DECL_INITIAL.
1304 (common_handle_aligned_attribute): Likewise.
1305
9ed32e27
AO
13062017-09-20 Alexandre Oliva <aoliva@redhat.com>
1307
1308 * c.opt (gen-decls): Add RejectNegative.
1309
026a79f7
AS
13102017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
1311 Jakub Jelinek <jakub@redhat.com>
1312
1313 Add support for -std=c++2a.
1314 * c-common.h (cxx_dialect): Add cxx2a as a dialect.
1315 * opt.c: Add options for -std=c++2a and -std=gnu++2a.
1316 * c-opts.c (set_std_cxx2a): New.
1317 (c_common_handle_option): Set options when -std=c++2a is enabled.
1318 (c_common_post_options): Adjust comments.
1319 (set_std_cxx14, set_std_cxx17): Likewise.
1320
4a8ca690
EB
13212017-09-15 Eric Botcazou <ebotcazou@adacore.com>
1322
1323 * c-pragma.c (handle_pragma_scalar_storage_order): Expand on error
1324 message for non-uniform endianness and issue a warning in C++.
1325
7b936140
JJ
13262017-09-15 Jakub Jelinek <jakub@redhat.com>
1327
1328 * c.opt (Wc++1z-compat): Change from option to undocumented alias.
1329 (Wc++17-compat): Change from undocumented alias to option.
1330 (Wnoexcept-type): Enable by Wc++17-compat instead of Wc++1z-compat,
1331 change C++1z to C++17 in description.
1332 (std=c++1z, std=gnu++1z): Change from option to undocumented
1333 deprecated alias.
1334 (std=c++17, std=gnu++17): Change from undocumented alias to option.
1335 Adjust description.
1336 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17.
1337 * c-opts.c (set_std_cxx1z): Rename to ...
1338 (set_std_cxx17): ... this.
1339 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17
1340 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z
7365279f 1341 caller.
7b936140
JJ
1342 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust
1343 comments.
1344
12263f13
L
13452017-09-12 H.J. Lu <hongjiu.lu@intel.com>
1346
1347 * c-attribs.c (common_handle_aligned_attribute): Don't warn
1348 function alignment if warn_if_not_aligned_p is true.
1349
6836632e
NS
13502017-09-12 Nathan Sidwell <nathan@acm.org>
1351
1352 * c-common.c (field_decl_cmp, resort_data, resort_field_decl_cmp,
1353 resort_sorted_fields): Move to c/c-decl.c.
1354 * c-common.h (field_decl_cmp, resort_sorted_fields): Delete.
1355 (struct sorted_fields_type): Move to c/c-lang.h.
1356
019bf9ad
JW
13572017-09-09 Jonathan Wakely <jwakely@redhat.com>
1358
1359 PR c++/81852
1360 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_threadsafe_static_init.
1361
bc7fe952
MP
13622017-09-04 Marek Polacek <polacek@redhat.com>
1363
1364 PR c/81783
1365 * c-warn.c (warn_tautological_bitwise_comparison): New function.
1366 (warn_tautological_cmp): Call it.
1367
de7c2c6a
BK
13682017-09-01 Boris Kolpackov <boris@codesynthesis.com>
1369
1370 * c-opts.c (c_common_finish): Write dependency information even if
1371 there are errors.
1372
d2e05fcb
JJ
13732017-09-01 Jakub Jelinek <jakub@redhat.com>
1374
1375 PR c/81887
1376 * c-pragma.c (omp_pragmas): Move "ordered" entry from here to ...
1377 (omp_pragmas_simd): ... here.
1378 * c-omp.c (c_finish_omp_ordered): If clauses isn't simd clause alone,
1379 create new clauses list containing just simd clause.
1380
18e2a8b8
RS
13812017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1382 Alan Hayward <alan.hayward@arm.com>
1383 David Sherwood <david.sherwood@arm.com>
1384
1385 * c-attribs.c (vector_mode_valid_p) Fold GET_MODE_INNER call
1386 into scalar_mode_supported_p call.
1387 (handle_mode_attribute): Update call to scalar_mode_supported_p.
1388
16d22000
RS
13892017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1390 Alan Hayward <alan.hayward@arm.com>
1391 David Sherwood <david.sherwood@arm.com>
1392
1393 * c-common.c (c_common_fixed_point_type_for_size): Use opt_scalar_mode
1394 for the mode iterator.
1395
b397965c
RS
13962017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1397 Alan Hayward <alan.hayward@arm.com>
1398 David Sherwood <david.sherwood@arm.com>
1399
1400 * c-lex.c (interpret_fixed): Use SCALAR_TYPE_MODE.
1401 * c-common.c (c_build_vec_perm_expr): Likewise.
1402
357b7604
RS
14032017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1404 Alan Hayward <alan.hayward@arm.com>
1405 David Sherwood <david.sherwood@arm.com>
1406
1407 * c-common.c (c_common_type_for_mode): Use as_a <scalar_int_mode>.
1408
e05c94ba
RS
14092017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1410 Alan Hayward <alan.hayward@arm.com>
1411 David Sherwood <david.sherwood@arm.com>
1412
1413 * c-attribs.c (handle_mode_attribute): Check for a scalar_int_mode
1414 before calling targetm.addr_space.valid_pointer_mode.
1415
5c20c4af
RS
14162017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1417 Alan Hayward <alan.hayward@arm.com>
1418 David Sherwood <david.sherwood@arm.com>
1419
1420 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode.
1421
c94843d2 14222017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
92a285c1
ML
1423 Alan Hayward <alan.hayward@arm.com>
1424 David Sherwood <david.sherwood@arm.com>
c94843d2
RS
1425
1426 * c-common.c (c_common_fixed_point_type_for_size): Use new mode
1427 iterators.
1428 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1429
4e10a5a7
RS
14302017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
1431 Alan Hayward <alan.hayward@arm.com>
1432 David Sherwood <david.sherwood@arm.com>
1433
1434 * c-cppbuiltin.c (mode_has_fma): Prefix mode names with E_ in
1435 case statements.
1436
130fcab0
ML
14372017-08-29 Martin Liska <mliska@suse.cz>
1438
1439 PR other/39851
1440 * c-common.c (parse_optimize_options): Add argument to function
1441 call.
1442 * c-pragma.c (handle_pragma_diagnostic): Likewise.
1443
14e18d71
DM
14442017-08-24 David Malcolm <dmalcolm@redhat.com>
1445
1446 * c-lex.c (interpret_float): Use token location
1447 when building an EXCESS_PRECISION_EXPR.
1448
2f687306
DM
14492017-08-21 David Malcolm <dmalcolm@redhat.com>
1450
1451 * c-common.c (check_function_arguments): Add "arglogs" param; pass
1452 it to check_function_format.
1453 * c-common.h (check_function_arguments): Add vec<location_t> *
1454 param.
1455 (check_function_format): Likewise.
1456 * c-format.c (struct format_check_context): Add field "arglocs".
1457 (check_function_format): Add param "arglocs"; pass it to
1458 check_format_info.
1459 (check_format_info): Add param "arglocs"; use it to initialize
1460 new field of format_ctx.
1461 (check_format_arg): Pass format_ctx->arglocs to new param of
1462 check_format_info_main.
1463 (class argument_parser): New field "arglocs".
1464 (argument_parser::argument_parser): Add "arglocs_" param and use
1465 it to initialize new field.
1466 (argument_parser::check_argument_type): Pass new arglocs field to
1467 check_format_types.
1468 (check_format_info_main): Add param "arglocs", and use it when
1469 constructing arg_parser.
1470 (check_format_types): Add param "arglocs"; use it if non-NULL when
1471 !EXPR_HAS_LOCATION (cur_param) to get at location information.
1472
00aa1fa2
L
14732017-08-18 H.J. Lu <hongjiu.lu@intel.com>
1474
1475 PR c/53037
1476 * c-attribs.c (handle_warn_if_not_aligned_attribute): New.
1477 (c_common_attribute_table): Add warn_if_not_aligned.
1478 (handle_aligned_attribute): Renamed to ...
1479 (common_handle_aligned_attribute): Remove argument, name, and add
1480 argument, warn_if_not_aligned. Handle warn_if_not_aligned.
1481 (handle_aligned_attribute): New.
1482 * c.opt: Add -Wif-not-aligned and -Wpacked-not-aligned.
1483
27be025d
MS
14842017-08-14 Martin Sebor <msebor@redhat.com>
1485
1486 PR c/81117
1487 * c-attribs.c (c_common_attribute_table): Add nonstring entry.
1488 (handle_nonstring_attribute): New function.
1489
da67acb9
MS
14902017-08-14 Martin Sebor <msebor@redhat.com>
1491
1492 PR c/81117
1493 * c-format.h (T89_G): New macro.
1494 * c-format.c (local_gcall_ptr_node): New variable.
1495 (init_dynamic_diag_info): Initialize it.
1496
a8b522b4
ML
14972017-08-11 Martin Liska <mliska@suse.cz>
1498
1499 * c-opts.c (c_common_post_options): Replace ASM_OUTPUT_DEF with
1500 TARGET_SUPPORTS_ALIASES.
1501
32129a17
DM
15022017-08-10 David Malcolm <dmalcolm@redhat.com>
1503
1504 * c-common.c (c_parse_error): Add rich_location * param, using it
1505 rather implicitly using input_location.
1506 * c-common.h (c_parse_error): Add rich_location * param.
1507
30af3a2b
MP
15082017-08-09 Marek Polacek <polacek@redhat.com>
1509
1510 * c-common.c (pointer_int_sum): Use true/false instead of 1/0.
1511 (c_common_truthvalue_conversion): Likewise.
1512 * c-omp.c (c_finish_omp_atomic): Likewise.
1513 * c-common.h (build_binary_op): Update declaration.
1514
314e6352
ML
15152017-08-08 Martin Liska <mliska@suse.cz>
1516
1517 * c-ada-spec.c: Include header files.
1518 * c-ubsan.c: Likewise.
1519 * c-warn.c: Likewise.
1520
56b5041c
JJ
15212017-08-07 Jakub Jelinek <jakub@redhat.com>
1522
1523 PR c/69389
1524 * c-omp.c (c_finish_omp_atomic): Handle atomics on bitfields.
1525
db440138
EB
15262017-08-07 Eric Botcazou <ebotcazou@adacore.com>
1527
1528 * c-ada-spec.c (has_nontrivial_methods): Test for FUNCTION_DECL.
1529 (print_ada_methods): Likewise.
1530 (print_ada_declaration): Likewise.
1531
577eec56
ML
15322017-08-07 Martin Liska <mliska@suse.cz>
1533
1534 * array-notation-common.c: Add new includes.
1535 * c-format.c( handle_format_attribute): Canonicalize a format
1536 function name.
1537 * c-lex.c (c_common_has_attribute): Canonicalize name of an
1538 attribute.
1539 * c-pretty-print.c: Add new include.
1540
b854df3c
EB
15412017-08-05 Eric Botcazou <ebotcazou@adacore.com>
1542
1543 * c-ada-spec.c (has_static_fields): Look only into variables.
1544 (print_constructor): Add TYPE parameter and use it for the name.
1545 (print_destructor): Likewise.
1546 (print_ada_declaration): Adjust to new constructor/destructor names.
1547 Adjust calls to print_constructor and print_destructor.
1548 (print_ada_struct_decl): Do not test TREE_STATIC on FIELD_DECL.
1549 Look only into variables in the final loop.
1550
9f2cb25e
EB
15512017-08-01 Eric Botcazou <ebotcazou@adacore.com>
1552
1553 * c-ada-spec.c (has_static_fields): Look only into fields.
1554 (dump_generic_ada_node): Small tweak.
1555 (dump_nested_types): Look only into fields.
1556 (print_ada_declaration): Look only into methods. Small tweak.
1557 (print_ada_struct_decl): Look only into fields. Use DECL_VIRTUAL_P.
1558
f4bcd9eb
EB
15592017-08-01 Eric Botcazou <ebotcazou@adacore.com>
1560
1561 * c-ada-spec.c (print_generic_ada_decl): Pass correctly-typed constant.
1562 (dump_ada_function_declaration): Likewise.
1563 (dump_generic_ada_node): Likewise.
1564 (print_ada_declaration): Add support for const-qualified variables.
1565
f34ebeb2
ML
15662017-07-31 Martin Liska <mliska@suse.cz>
1567
1568 PR sanitize/81530
1569 * c-ubsan.c (ubsan_maybe_instrument_array_ref):
1570 Guard condition with flag_sanitize_p also with current_function_decl
1571 non-null equality.
1572 (ubsan_maybe_instrument_reference_or_call): Likewise.
1573
218e5d04
UB
15742017-07-30 Uros Bizjak <ubizjak@gmail.com>
1575
1576 * c-format.c (asm_fprintf_char_table): Add 'z' to format_chars.
1577
942047f2
EB
15782017-07-29 Eric Botcazou <ebotcazou@adacore.com>
1579
1580 * c-ada-spec.c (dump_generic_ada_node): Take into account signedness
1581 for enumeral types.
1582 (print_ada_declaration): Add missing guard for record types.
1583
a40ff0ae
JJ
15842017-07-27 Jakub Jelinek <jakub@redhat.com>
1585
1586 PR c/45784
1587 * c-omp.c (c_finish_omp_for): If the condition is wrapped in
1588 rhs of COMPOUND_EXPR(s), skip them and readd their lhs into
1589 new COMPOUND_EXPRs around the rhs of the comparison.
1590
06bd22f6
MP
15912017-07-27 Marek Polacek <polacek@redhat.com>
1592
1593 PR c/81417
1594 * c-warn.c (warn_for_sign_compare): Tweak the warning message. Print
1595 the types.
1596
036ea399
JJ
15972017-07-27 Jakub Jelinek <jakub@redhat.com>
1598
1599 * c-attribs.c (c_common_attribute_table): Add noipa attribute.
1600 (handle_noipa_attribute): New function.
1601
417ca011
TD
16022017-07-07 Torsten Duwe <duwe@suse.de>
1603
1604 * c-attribs.c (c_common_attribute_table): Add entry for
1605 "patchable_function_entry".
1606
5aaa8fb4
NS
16072017-07-20 Nathan Sidwell <nathan@acm.org>
1608
1609 Remove TYPE_METHODS.
1610 * c-ada-spec.c (is_tagged_type, has_nontrivial_methods,
1611 dump_ada_template, print_ada_methods,
1612 print_ada_declaration): Member fns are on TYPE_FIELDS.
1613
ff22eb12
NS
16142017-07-18 Nathan Sidwell <nathan@acm.org>
1615
1616 * c-warn.c (warn_for_memset): Use TYPE_{MIN,MAX}_VALUE.
1617
eea77d1f
DM
16182017-07-14 David Malcolm <dmalcolm@redhat.com>
1619
1620 * c-common.c (try_to_locate_new_include_insertion_point): New
1621 function.
1622 (per_file_includes_t): New typedef.
1623 (added_includes_t): New typedef.
1624 (added_includes): New variable.
1625 (maybe_add_include_fixit): New function.
1626 * c-common.h (maybe_add_include_fixit): New decl.
1627
281ac396
MS
16282017-07-10 Martin Sebor <msebor@redhat.com>
1629
1630 PR other/81345
1631 * c.opt (-Wstringop-overflow): Set defaults in LangEnabledBy.
1632
b6f43128
DM
16332017-07-06 David Malcolm <dmalcolm@redhat.com>
1634
1635 * c-common.c (selftest::c_family_tests): New.
1636 * c-common.h (selftest::run_c_tests): Move decl to c/c-lang.h.
1637 (selftest::c_family_tests): New decl.
1638
efbf55b0
MP
16392017-07-04 Marek Polacek <polacek@redhat.com>
1640
1641 PR c/81231
1642 * c-common.c (sync_resolve_size): Give error for pointers to incomplete
1643 types.
1644
6c86bd88
MP
16452017-07-04 Marek Polacek <polacek@redhat.com>
1646
1647 * c-warn.c (warn_if_unused_value): Remove WITH_CLEANUP_EXPR handling.
1648
17a7218b
ML
16492017-06-28 Martin Liska <mliska@suse.cz>
1650
1651 PR ipa/81128
1652 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias
1653 to a function declaration.
1654
63010089
ML
16552017-06-28 Martin Liska <mliska@suse.cz>
1656
1657 PR driver/79659
1658 * c.opt: Add IntegerRange to various options.
1659
3e2becc4
MP
16602017-06-26 Marek Polacek <polacek@redhat.com>
1661
1662 PR c/80116
1663 * c-common.h (warn_for_multistatement_macros): Declare.
1664 * c-warn.c: Include "c-family/c-indentation.h".
1665 (warn_for_multistatement_macros): New function.
1666 * c.opt (Wmultistatement-macros): New option.
1667 * c-indentation.c (guard_tinfo_to_string): No longer static.
1668 Change the parameter type to "enum rid". Handle RID_SWITCH.
1669 * c-indentation.h (guard_tinfo_to_string): Declare.
1670
2db9b7cd
MG
16712017-06-23 Marc Glisse <marc.glisse@inria.fr>
1672
1673 * c-common.c (c_common_nodes_and_builtins): Use builtin_structptr_types.
1674
c3684b7b
MS
16752017-06-15 Martin Sebor <msebor@redhat.com>
1676
1677 PR c++/80560
1678 * c.opt (-Wclass-memaccess): New option.
1679
e72c4afd
BK
16802017-06-14 Boris Kolpackov <boris@codesynthesis.com>
1681
1682 * c-opts.c (c_common_finish): Handle '-' special value to -MF.
1683
8a516588
MP
16842017-06-13 Marek Polacek <polacek@redhat.com>
1685
1686 PR objc/80949
1687 * c-warn.c (do_warn_duplicated_branches): Return if any of the
1688 branches is null.
1689
45b2222a
ML
16902017-06-13 Martin Liska <mliska@suse.cz>
1691
1692 PR sanitize/78204
1693 * c-attribs.c (add_no_sanitize_value): New function.
1694 (handle_no_sanitize_attribute): Likewise.
1695 (handle_no_sanitize_address_attribute): Use the function.
1696 (handle_no_sanitize_thread_attribute): New function.
1697 (handle_no_address_safety_analysis_attribute): Use
1698 add_no_sanitize_value.
1699 (handle_no_sanitize_undefined_attribute): Likewise.
1700 * c-common.h: Declare new functions.
1701 * c-ubsan.c (ubsan_instrument_division): Use sanitize_flags_p.
1702 (ubsan_instrument_shift): Likewise.
1703 (ubsan_instrument_bounds): Likewise.
1704 (ubsan_maybe_instrument_array_ref): Likewise.
1705 (ubsan_maybe_instrument_reference_or_call): Likewise.
1706
a01f151f
JM
17072017-06-11 Jason Merrill <jason@redhat.com>
1708
1709 * c-ada-spec.c, c-pragma.c: Use id_equal.
1710
3de4ac6d
MP
17112017-06-04 Marek Polacek <polacek@redhat.com>
1712
1713 PR c/80919
1714 * c-format.c (matching_type_p): Return false if any of the types
1715 requires structural equality.
1716
2474f48f
MS
17172017-06-02 Martin Sebor <msebor@redhat.com>
1718
1719 PR c/80892
1720 * c-warn.c (conversion_warning): Use -Wconversion for integer
1721 conversion and -Wfloat-conversion for floating one.
1722
40ffd95f
BE
17232017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
1724
1725 * c.opt (Wsizeof-pointer-div): New warning option.
1726
3fa4634c
VR
17272017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
1728
1729 * c.opt (Wcatch-value): New shortcut for Wcatch-value=1.
1730 (Wcatch-value=1): Enable by -Wall.
1731
f012c8ef
DM
17322017-05-30 David Malcolm <dmalcolm@redhat.com>
1733
1734 * c-format.c (gcc_cxxdiag_char_table): Add 'H' and 'I' to
1735 format_chars.
1736 * c.opt (fdiagnostics-show-template-tree): New option.
1737 (felide-type): New option.
1738
63dbcd13
VR
17392017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
1740
1741 * c.opt (Wcatch-value=): New C++ warning flag.
1742
be136b5c
NS
17432017-05-24 Nathan Sidwell <nathan@acm.org>
1744
1745 * c=common.c (field_decl_cmp, resort_field_decl_cmp): Adjust T
1746 const casts to avoid warning.
1747
3cd211af
MS
17482017-05-24 Martin Sebor <msebor@redhat.com>
1749
1750 PR c/80731
1751 * c-common.h (unsafe_conversion_p): Add a function argument.
1752 * c-common.c (unsafe_conversion_p): Same.
1753 Add type names and values to diagnostics.
1754 (scalar_to_vector): Adjust.
1755 * c-warn.c (constant_expression_error): Add a function argument.
1756 Add type names and values to diagnostics.
1757 (conversion_warning): Add a function argument.
1758 Add type names and values to diagnostics.
1759 (warnings_for_convert_and_check): Same.
1760
1ff7be5a
JM
17612017-05-19 Jason Merrill <jason@redhat.com>
1762
1763 * c-warn.c (match_case_to_enum_1): Don't warn about enums with no
1764 enumerators.
1765
ff502317
BE
17662017-05-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
1767
1768 * c-format.c (locus): Move out of function scope,
1769 add GTY attribute.
1770
2a8a8d7b
NS
17712017-05-19 Nathan Sidwell <nathan@acm.org>
1772
1773 * c-opts.c (class_dump_file, class_dump_flags): Delete.
1774 (c_common_parse_file): Remove class dump handling.
1775 (get_dump_info): Likewise.
1776
39aac208
RB
17772017-05-19 Richard Biener <rguenther@suse.de>
1778
1779 PR c++/80593
1780 * c-warn.c (strict_aliasing_warning): Do not warn for accesses
1781 to alias-set zero memory.
1782
6ecd2339
BE
17832017-05-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1784
1785 * c-format.c (local_tree_type_node): Add GTY attribute.
1786
6574d78e
MP
17872017-05-18 Marek Polacek <polacek@redhat.com>
1788
1789 * c-common.c (c_common_type_for_size): Use NULL_TREE instead of 0.
1790 (c_common_fixed_point_type_for_size): Likewise.
1791 (c_common_type_for_mode): Likewise.
1792 (shorten_compare): Likewise.
1793 (c_promoting_integer_type_p): Use false/true instead of 0/1.
1794 * c-pragma.c (maybe_apply_renaming_pragma): Use NULL_TREE instead of 0.
1795
e3455240
MP
17962017-05-18 Marek Polacek <polacek@redhat.com>
1797
1798 * c-common.c (self_promoting_args_p): Change the return type to bool.
1799 Use false/true instead of 0/1.
1800 * c-common.h (self_promoting_args_p): Update.
1801
3fa8871b
MP
18022017-05-17 Marek Polacek <polacek@redhat.com>
1803
1804 * c-common.c: Use NULL_TREE instead of 0 where appropriate.
1805 * c-warn.c: Likewise.
1806
b42cc3ca
VV
18072017-05-17 Ville Voutilainen <ville.voutilainen@gmail.com>
1808
1809 Implement new C++ intrinsics __is_assignable and __is_constructible.
1810 * c-common.c (__is_assignable, __is_constructible): New.
1811 * c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
1812
1a817418
ML
18132017-05-17 Martin Liska <mliska@suse.cz>
1814
1815 * c-common.h: Introduce dump_flags_t type and
1816 use it instead of int type.
1817 * c-gimplify.c (c_genericize): Likewise.
1818 * c-opts.c: Likewise.
1819
b2fa0a8b
MP
18202017-05-17 Marek Polacek <polacek@redhat.com>
1821
1822 * c-common.c (c_save_expr): Remove.
1823 (c_common_truthvalue_conversion): Remove a call to c_save_expr.
1824 * c-common.h (c_save_expr): Remove declaration.
1825
31c2d57d
VR
18262017-05-09 Volker Reichelt <v.reichelt@netcologne.de>
1827
1828 PR c/35441
1829 * c-pretty-print.c (c_pretty_printer::expression): Handle MAX_EXPR,
1830 MIN_EXPR, EXACT_DIV_EXPR, RDIV_EXPR, LROTATE_EXPR, RROTATE_EXPR.
1831 (c_pretty_printer::postfix_expression): Handle MAX_EXPR, MIN_EXPR.
1832 (c_pretty_printer::multiplicative_expression): Handle EXACT_DIV_EXPR,
1833 RDIV_EXPR.
1834 (pp_c_shift_expression): Handle LROTATE_EXPR, RROTATE_EXPR.
1835
684f84de
MP
18362017-05-09 Marek Polacek <polacek@redhat.com>
1837
1838 PR c/80525
1839 * c-warn.c (unwrap_c_maybe_const): New.
1840 (warn_logical_operator): Call it.
1841
641da50a
NS
18422017-05-09 Nathan Sidwell <nathan@acm.org>
1843
1844 * c-common.c (c_register_builtin_type): Use pushdecl lang_hook.
1845 * c-common.h (pushdecl_top_level, pushdecl): Don't declare here.
1846
631238ac
MS
18472017-05-08 Martin Sebor <msebor@redhat.com>
1848
1849 PR translation/80280
1850 * c-format.h (struct format_flag_spec): Add new member.
1851 (T89_T): New macro.
1852 * c-format.c (local_tree_type_node): New global.
1853 (printf_flag_specs, asm_fprintf_flag_spec): Initialize new data.
1854 (gcc_diag_flag_specs, scanf_flag_specs, strftime_flag_specs): Ditto.
1855 (strfmon_flag_specs): Likewise.
1856 (gcc_diag_char_table, gcc_cdiag_char_table): Split up specifiers
1857 with distinct quoting properties.
1858 (gcc_tdiag_char_table, gcc_cxxdiag_char_table): Same.
1859 (flag_chars_t::validate): Add argument and handle bad quoting.
1860 (check_format_info_main): Handle quoting problems.
1861 (init_dynamic_diag_info): Simplify.
1862
49f0c04c
JM
18632017-05-08 Jason Merrill <jason@redhat.com>
1864
1865 * c-opts.c (c_common_post_options): Update defaults for
1866 flag_abi_version and flag_abi_compat_version.
1867
56d35585
DM
18682017-05-05 David Malcolm <dmalcolm@redhat.com>
1869
1870 * c-common.c (c_cpp_error): Replace report_diagnostic
1871 with diagnostic_report_diagnostic.
1872
0f2c4a8f
MS
18732017-05-04 Martin Sebor <msebor@redhat.com>
1874
1875 PR translation/80280
1876 * c-attribs.c (handle_alias_ifunc_attribute): Quote a %D directive.
1877 (handle_weakref_attribute): Same.
1878
6fe63fb4
NS
18792017-05-03 Nathan Sidwell <nathan@acm.org>
1880
1881 Canonicalize canonical type hashing
1882 * c-common.c (complete_array_type): Use type_hash_canon.
1883
815d9cc6
XR
18842017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
1885
92a285c1 1886 PR c++/80038
815d9cc6
XR
1887 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove
1888 prototype.
1889 (cilk_install_body_pedigree_operations): Likewise.
1890 * cilk.c (cilk_set_spawn_marker): Mark functions that should be
1891 detatched.
1892 (cilk_gimplify_call_params_in_spawned_fn): Remove.
1893 (cilk_install_body_pedigree_operations): Likewise.
1894 (gimplify_cilk_spawn): Add EXPR_STMT and CLEANUP_POINT_EXPR
1895 unwrapping.
1896
f8a36447
JJ
18972017-04-27 Jakub Jelinek <jakub@redhat.com>
1898
1899 PR c++/80534
1900 * c-common.c (complete_array_type): Only hash TYPE_TYPELESS_STORAGE
1901 flag on non-aggregate element types.
1902
7c145456
BE
19032017-04-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1904
1905 * c-common.c (c_type_hasher, type_hash_table): Remove.
1906 (c_common_get_alias_set): Remove unreachable code.
1907 * c-opts.c (c_common_post_options): Make sure cc1 takes only one file.
1908
c3cbcd45
VR
19092017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
1910
1911 * c.opt (Wextra-semi): New C++ warning flag.
1912
8a59d466
JJ
19132017-04-20 Jakub Jelinek <jakub@redhat.com>
1914
1915 PR middle-end/80423
1916 * c-common.c (complete_array_type): Preserve TYPE_TYPELESS_STORAGE.
1917
8487c9a5
JJ
19182017-04-18 Jakub Jelinek <jakub@redhat.com>
1919
1920 PR middle-end/79788
1921 PR middle-end/80375
1922 * c-common.c (c_common_type_for_mode): Don't handle
1923 widest_*_literal_type_node here.
1924 c_common_signed_or_unsigned_type): Likewise.
1925 (c_common_nodes_and_builtins): Set widest_*_literal_type_node
1926 to *intTI_type_node or *intDI_type_node depending on whether
1927 TImode is supported by the target or not.
1928
3ee0fb02
ML
19292017-04-10 Martin Liska <mliska@suse.cz>
1930
1931 PR sanitizer/80350
1932 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
1933 doing an UBSAN check.
1934
5764ee3c
JW
19352017-04-03 Jonathan Wakely <jwakely@redhat.com>
1936
1937 * c-warn.c (do_warn_double_promotion): Fix typo in comment.
1938
6f3af356
JJ
19392017-03-31 Jakub Jelinek <jakub@redhat.com>
1940
1941 PR c++/79572
1942 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
1943 tree *.
1944 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
1945 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
1946 REFERENCE_TYPE.
1947
f6a7a9d5
DM
19482017-03-31 David Malcolm <dmalcolm@redhat.com>
1949
1950 PR documentation/78732
1951 * c.opt (Wendif-labels): Fix description to refer to
1952 #else rather than #elif.
1953
af88f557
JJ
19542017-03-31 Jakub Jelinek <jakub@redhat.com>
1955
1956 PR libstdc++/80251
1957 * c-common.h (enum rid): Add RID_IS_AGGREGATE.
1958 * c-common.c (c_common_reswords): Add __is_aggregate trait.
1959
a9e4a1a5
JJ
19602017-03-27 Jakub Jelinek <jakub@redhat.com>
1961
1962 PR middle-end/80162
1963 * c-common.c (c_common_mark_addressable_vec): Don't set
1964 TREE_ADDRESSABLE on DECL_HARD_REGISTER.
1965
3f01b620
MS
19662017-03-21 Martin Sebor <msebor@redhat.com>
1967
1968 PR c++/79548
1969 * c-common.c (set_underlying_type): Mark type used only when
1970 original del is declared unused.
1971
2f6f187a
DM
19722017-03-10 David Malcolm <dmalcolm@redhat.com>
1973
1974 PR translation/79848
1975 * c-format.c (check_format_string): Simplify uses of "%<%s%>" to
1976 "%qs".
1977
a02fa805
DM
19782017-03-10 David Malcolm <dmalcolm@redhat.com>
1979
1980 PR c/79921
1981 * c-indentation.c (warn_for_misleading_indentation): Remove parens
1982 from inform's message, so that xgettext can locate it.
1983
822a132c
MP
19842017-03-09 Marek Polacek <polacek@redhat.com>
1985
1986 PR c++/79962
1987 PR c++/79984
1988 * c-attribs.c (handle_nonnull_attribute): Save the result of default
1989 conversion to the attribute list.
1990
bba81f1c
ML
19912017-03-09 Martin Liska <mliska@suse.cz>
1992
1993 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
1994
108154ff
JM
19952017-03-03 Jason Merrill <jason@redhat.com>
1996
1997 * c.opt (Wnoexcept-type): New.
1998
eb0e7c34
RB
19992017-03-02 Richard Biener <rguenther@suse.de>
2000
2001 PR c/79756
2002 * c-common.c (c_common_mark_addressable_vec): Look through
2003 C_MAYBE_CONST_EXPR.
2004
9453ba0a
ML
20052017-02-28 Martin Liska <mliska@suse.cz>
2006
2007 * c.opt: Replace space with tabular for options of <number>
2008 type.
2009
6a825afe
ML
20102017-02-28 Martin Liska <mliska@suse.cz>
2011
2012 * c.opt: Fix --help=option -Q for options which are of
2013 an enum type.
2014
4227c9ad
JJ
20152017-02-24 Jakub Jelinek <jakub@redhat.com>
2016
2017 PR c++/79588
2018 * c-common.c (check_function_restrict): New function.
2019 (check_function_arguments): Add FNDECL argument. Call
2020 check_function_restrict if -Wrestrict.
2021 * c-warn.c (warn_for_restrict): Remove ARGS argument, add ARGARRAY
2022 and NARGS. Use auto_vec for ARG_POSITIONS, simplify.
2023 * c-common.h (check_function_arguments): Add FNDECL argument.
2024 (warn_for_restrict): Remove ARGS argument, add ARGARRAY and NARGS.
2025
59909673
EB
20262017-02-24 Eric Botcazou <ebotcazou@adacore.com>
2027
2028 * c-ada-spec.c (dump_ada_function_declaration): Add comment about the
2029 treatment of parameters with pointer-to-tagged type and tidy up.
2030 (print_ada_methods): Remove the special treatment of C++ static member
2031 functions.
2032
54dcd526
ML
20332017-02-22 Martin Liska <mliska@suse.cz>
2034
2035 * c.opt: Replace inequality signs with square brackets
2036 for -Wnornalized.
2037
00bc9de3
JJ
20382017-02-21 Jakub Jelinek <jakub@redhat.com>
2039
2040 PR c++/79641
2041 * c-attribs.c (handle_mode_attribute): Use build_qualified_type to
2042 preserve quals.
2043
97fcf744
JM
20442017-02-17 Joseph Myers <joseph@codesourcery.com>
2045
2046 * c-cppbuiltin.c (builtin_define_float_constants): Define
2047 __DECIMAL_DIG__ to the value for long double.
2048
c7545f1c
MP
20492017-02-15 Marek Polacek <polacek@redhat.com>
2050
2051 PR c/79515
2052 * c-warn.c (do_warn_double_promotion): Don't warn if an invalid
2053 conversion has occured.
2054
c2e84327
DM
20552017-01-24 David Malcolm <dmalcolm@redhat.com>
2056
2057 * c-common.c (c_common_reswords): Add "__RTL".
2058 * c-common.h (enum rid): Add RID_RTL.
2059
2ebd93e1
MP
20602017-01-20 Marek Polacek <polacek@redhat.com>
2061
2062 PR c/64279
2063 * c-common.h (do_warn_duplicated_branches_r): Declare.
2064 * c-gimplify.c (c_genericize): Walk the function tree calling
2065 do_warn_duplicated_branches_r.
2066 * c-warn.c (expr_from_macro_expansion_r): New.
2067 (do_warn_duplicated_branches): New.
2068 (do_warn_duplicated_branches_r): New.
2069 * c.opt (Wduplicated-branches): New option.
2070
0d80ab91
DM
20712017-01-17 David Malcolm <dmalcolm@redhat.com>
2072
2073 PR c++/71497
2074 * c-indentation.c (warn_for_misleading_indentation): Use the past
2075 subjunctive in the note.
2076
7f991c36
AH
20772017-01-17 Aldy Hernandez <aldyh@redhat.com>
2078
2079 PR c/79116
2080 * array-notation-common.c (cilkplus_extract_an_triplets): Convert
2081 start type to integer_type.
2082
1c70261c
JJ
20832017-01-16 Jakub Jelinek <jakub@redhat.com>
2084
2085 PR driver/49726
2086 * c.opt (gen-decls): Add Driver flag.
2087
1ddca3f3
PC
20882017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
2089
2090 Revert:
2091 2017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
2092
2093 PR c++/71737
2094 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
2095
7d2f3f1d
PC
20962017-01-16 Paolo Carlini <paolo.carlini@oracle.com>
2097
2098 PR c++/71737
2099 * c-common.c (set_underlying_type): Always set DECL_ORIGINAL_TYPE.
2100
bce6f760
MS
21012017-01-12 Martin Sebor <msebor@redhat.com>
2102
2103 (-Wformat-overflow): ...to this.
2104
bf5fbf46
MS
21052017-01-11 Martin Sebor <msebor@redhat.com>
2106
2107 PR c/78768
2108 * c.opt (-Walloca-larger-than, -Wformat-length, -Wformat-truncation):
2109 Also enable for LTO.
2110
e363df3f
JM
21112017-01-10 Jason Merrill <jason@redhat.com>
2112
2113 Implement P0195R2, C++17 variadic using.
2114 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
2115
bd2c6270
JJ
21162017-01-09 Jakub Jelinek <jakub@redhat.com>
2117
2118 PR translation/79019
2119 PR translation/79020
2120 * c.opt (Wnormalized=): Fix typo in description.
2121
efcc8d38
MS
21222017-01-08 Martin Sebor <msebor@redhat.com>
2123
2124 PR middle-end/77708
2125 * c.opt (-Wformat-truncation): New option.
2126
435f3f7a
AO
21272017-01-06 Alexandre Oliva <aoliva@redhat.com>
2128
2129 * c-pretty-print.c (pp_c_tree_decl_identifier): Convert 16-bit
2130 value to unsigned short to fit in 4 hex digits without
2131 warnings.
2132
4e89adf9
EB
21332017-01-05 Eric Botcazou <ebotcazou@adacore.com>
2134
2135 * c.opt (fsso-struct): Add 'native' value.
2136
cd445b54
ML
21372017-01-05 Martin Liska <mliska@suse.cz>
2138
2139 PR pch/78970
2140 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
2141 header.
2142
a9342885
MP
21432017-01-04 Marek Polacek <polacek@redhat.com>
2144
2145 PR c++/64767
2146 * c.opt (Wpointer-compare): New option.
2147
fc73e60c
JJ
21482017-01-04 Jakub Jelinek <jakub@redhat.com>
2149
2150 PR driver/78957
2151 * c.opt (fsso-struct=): Add RejectNegative.
2152
cbe34bb5
JJ
21532017-01-01 Jakub Jelinek <jakub@redhat.com>
2154
2155 Update copyright years.
2156
d4a6c0ea
ML
21572016-12-29 Martin Liska <mliska@suse.cz>
2158
2159 PR c/78933
2160 * c.opt (strong-eval-order): Add RejectNegative keyword.
2161
67a5ad7c
JM
21622016-12-22 Jason Merrill <jason@redhat.com>
2163
2164 Implement P0522R0, matching of template template arguments.
2165 * c-cppbuiltin.c (c_cpp_builtins): Define
2166 __cpp_template_template_args.
2167
0dba7960
JJ
21682016-12-21 Jakub Jelinek <jakub@redhat.com>
2169
2170 PR bootstrap/78817
2171 * c-common.c (struct nonnull_arg_ctx): New type.
2172 (check_function_nonnull): Return bool instead of void. Use
2173 nonnull_arg_ctx as context rather than just location_t.
2174 (check_nonnull_arg): Adjust for the new context type, set
2175 warned_p to true if a warning has been diagnosed.
2176 (check_function_arguments): Return bool instead of void.
2177 * c-common.h (check_function_arguments): Adjust prototype.
2178
31bfc9b9
JM
21792016-12-21 Jason Merrill <jason@redhat.com>
2180
2181 * c.opt (-fnew-ttp-matching): New flag.
2182 * c-opts.c (c_common_post_options): Default on if -std=c++1z.
2183
629b3d75
MJ
21842016-12-14 Martin Jambor <mjambor@suse.cz>
2185
2186 * c-omp.c: Include omp-general.h instead of omp-low.h.
2187 (c_finish_oacc_wait): Adjusted call to find_omp_clause to use its new
2188 name.
2189
474da67e
MS
21902016-12-14 Martin Sebor <msebor@redhat.com>
2191
2192 PR c/17308
2193 * c-common.c (check_nonnull_arg): Disable when optimization
2194 is enabled.
2195
fe366b87
MP
21962016-12-12 Marek Polacek <polacek@redhat.com>
2197
2198 PR c++/78647
2199 * c-common.c (attribute_fallthrough_p): Return false for
2200 error_mark_node.
2201
8bd9f164
MS
22022016-12-08 Martin Sebor <msebor@redhat.com>
2203
2204 PR c/78284
2205 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options.
2206
060162e0
MS
22072016-12-08 Martin Sebor <msebor@redhat.com>
2208
2209 PR c/78165
92a285c1
ML
2210 * c-pretty-print (pp_c_integer_constant): Avoid formatting type
2211 suffix.
060162e0 2212
ee92e7ba
MS
22132016-12-07 Martin Sebor <msebor@redhat.com>
2214
2215 PR c/53562
2216 PR middle-end/77784
2217 PR middle-end/78149
2218 PR middle-end/78138
2219 * c.opt (-Wstringop-overflow): New option.
2220
84b0769e
MO
22212016-12-02 Maxim Ostapenko <m.ostapenko@samsung.com>
2222
2223 * c-attribs.c (asan odr indicator): New attribute.
2224 (handle_asan_odr_indicator_attribute): New function.
2225
7fa6a965
PK
22262016-11-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2227
2228 * c-common.c (c_common_nodes_and_builtins): Remove initialization of
2229 ptrdiff_type_node;
2230
56d8ffc1
JG
22312016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2232
2233 * c-common.c (excess_precision_mode_join): New.
2234 (c_ts18661_flt_eval_method): New.
2235 (c_c11_flt_eval_method): Likewise.
2236 (c_flt_eval_method): Likewise.
2237 * c-common.h (excess_precision_mode_join): New.
2238 (c_flt_eval_method): Likewise.
2239 * c-cppbuiltin.c (c_cpp_flt_eval_method_iec_559): New.
2240 (cpp_iec_559_value): Call it.
2241 (c_cpp_builtins): Modify logic for __LIBGCC_*_EXCESS_PRECISION__,
2242 call c_flt_eval_method to set __FLT_EVAL_METHOD__ and
2243 __FLT_EVAL_METHOD_TS_18661_3__.
2244
04f0fcf7
JG
22452016-11-23 James Greenhalgh <james.greenhalgh@arm.com>
2246
2247 * c-opts.c (c_common_post_options): Add logic to handle the default
2248 case for -fpermitted-flt-eval-methods.
2249
fb2675cb
PB
22502016-11-23 Paolo Bonzini <bonzini@gnu.org>
2251
2252 * c.opt (Wexpansion-to-defined): New.
2253
ec1c5694
JJ
22542016-11-23 Jakub Jelinek <jakub@redhat.com>
2255
2256 PR target/78451
2257 * c-pragma.c (handle_pragma_target): Don't replace
2258 current_target_pragma, but chainon the new args to the current one.
2259
730c9e75
NS
22602016-11-22 Nathan Sidwell <nathan@acm.org>
2261
2262 * array-notation-common.c (cilkplus_extract_an_trplets): Fix
cacd29be 2263 indentation and formatting.
730c9e75 2264
89990732
MS
22652016-11-21 Martin Sebor <msebor@redhat.com>
2266
2267 * c.opt (-fprintf-return-value): Enable by default.
2268
48330c93
BE
22692016-11-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2270
2271 PR c++/71973
2272 * c.opt (-Wbuiltin-declaration-mismatch): New warning.
2273 * c-common.c (c_common_nodes_and_builtins): Initialize
2274 const_tm_ptr_type_node.
2275
0d939c95
MP
22762016-11-16 Marek Polacek <polacek@redhat.com>
2277
2278 PR c/78285
2279 * c-common.c (c_add_case_label): Turn error_at calls into inform.
2280
8e745a17
JJ
22812016-11-14 Jakub Jelinek <jakub@redhat.com>
2282
2283 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
2284
1ee62b92 22852016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
8e745a17
JJ
2286 Richard Biener <rguenther@suse.de>
2287
2288 * c-common.h (c_common_resword): Add RID_GIMPLE, RID_PHI types.
2289 * c-common.h (enum rid): Add RID_GIMPLE, RID_PHI.
2290 * c.opt (fgimple): New option.
1ee62b92 2291
22b15758
UB
22922016-11-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2293
2294 PR c/35503
2295 * c-common.h (warn_for_restrict): Declare.
2296 * c-warn.c: Include gcc-rich-location.h.
2297 (warn_for_restrict): New function.
2298 * c-format.c (gcc_tdiag_char_table): Add entry for "Z" specifier.
2299 (gcc_cdiag_char_table): Likewise.
2300 (gcc_cxxdiag_char_table): Likewise.
2301 * c.opt (Wrestrict): New option.
2302
4be719cd
EB
23032016-11-13 Eric Botcazou <ebotcazou@adacore.com>
2304
2305 * c-ada-spec.c (print_ada_declaration): For typedef declarations, look
2306 for nested types only if the type is a record or union and dump SLOC.
2307
4a826ca6
JM
23082016-11-09 Jason Merrill <jason@redhat.com>
2309
2310 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_template_auto.
2311
2e955d50
JJ
23122016-11-09 Jakub Jelinek <jakub@redhat.com>
2313
2314 * c-ubsan.c (ubsan_instrument_shift): Handle split
2315 -fsanitize=shift-base and -fsanitize=shift-exponent.
2316
51dc6603
JM
23172016-11-07 Jason Merrill <jason@redhat.com>
2318
2319 * c.opt (Wc++1z-compat): New.
2320 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_noexcept_function_type.
2321
6dc4a604
ML
23222016-11-07 Martin Liska <mliska@suse.cz>
2323
2324 * c-warn.c (warn_for_unused_label): Save all labels used
2325 in goto or in &label.
2326
b302001e
JM
23272016-11-03 Jason Merrill <jason@redhat.com>
2328
2329 * c-cppbuiltin.c (c_cpp_builtins): Correct
2330 __cpp_inheriting_constructors.
2331
31f7f784
JM
23322016-11-01 Jason Merrill <jason@redhat.com>
2333
2bc78e3c
JM
2334 * c-cppbuiltin.c (c_cpp_builtins): Update
2335 __cpp_inheriting_constructors.
2336
31f7f784
JM
2337 * c.opt (-fnew-inheriting-ctors): New.
2338 * c-opts.c: Default to on for ABI 11+.
2339
dcb466ec
JJ
23402016-10-31 Jakub Jelinek <jakub@redhat.com>
2341
2342 PR c++/77948
2343 * c.opt (fext-numeric-literals): Add Var and Init.
2344 * c-opts.c (c_common_handle_option): Don't clear
2345 cpp_opts->ext_numeric_literals for -std=c++{11,14,1z}.
2346 (c_common_post_options): Clear it here if not set
2347 explicitly.
2348
52e1b91e
AH
23492016-10-28 Aldy Hernandez <aldyh@redhat.com>
2350
2351 PR debug/77773
2352 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
2353 if NULL.
2354
e16f1cc7
JJ
23552016-10-25 Jakub Jelinek <jakub@redhat.com>
2356
2357 * c-common.h (enum rid): Add RID_BUILTIN_LAUNDER.
2358 * c-common.c (c_common_reswords): Add __builtin_launder.
2359
f8348061
BE
23602016-10-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
2361
2362 * c-common.c (c_common_truthvalue_conversion): Warn for
2363 multiplications in boolean context. Fix the quoting of '<<' and '<'
2364 in the shift warning.
2365
eff89e01
BE
23662016-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2367
2368 * c-common.c (c_common_truthvalue_conversion): Fix the comment.
2369
24bc7bf4
JM
23702016-10-20 Jason Merrill <jason@redhat.com>
2371
2372 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_concepts value.
2373
4c712374
BE
23742016-10-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2375
2376 * c-common.c (c_common_truthvalue_conversion): Warn only for signed
2377 integer shift ops in boolean context.
2378
23792016-10-18 Aldy Hernandez <aldyh@redhat.com>
adc577c5
AH
2380
2381 * c.opt (Walloca): New.
2382 (Walloca-larger-than=): New.
2383 (Wvla-larger-than=): New.
2384
8fa18c06
MP
23852016-10-17 Marek Polacek <polacek@redhat.com>
2386
2387 * c-warn.c (find_array_ref_with_const_idx_r): Remove parameter names.
2388 Return immediately when finding a match.
2389 (warn_tautological_cmp): Remove a boolean variable that is no longer
2390 needed.
2391
b12b1915
MP
23922016-10-17 Marek Polacek <polacek@redhat.com>
2393
2394 * c-attribs.c: New file.
2395 * c-common.c: Move attributes handling to c-attribs.c.
2396 (get_nonnull_operand): No longer static.
2397 * c-common.h: Move the declarations from c-attribs.c to its own section.
2398
2045acd9
JM
23992016-10-14 Jason Merrill <jason@redhat.com>
2400
2401 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_aggregate_bases
2402 and __cpp_deduction_guides.
2403
14a2c9aa
JM
24042016-10-13 Jason Merrill <jason@redhat.com>
2405
2406 * c-cppbuiltin.c (c_cpp_builtins): Add __cpp_inline_variables.
2407
4d0cdd0c
TP
24082016-10-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
2409
2410 * c-cppbuiltin.c: Include memmodel.h.
2411 * c-opts.c: Likewise.
2412 * c-pragma.c: Likewise.
2413 * c-warn.c: Likewise.
2414
70f6d5e1
JJ
24152016-10-12 Jakub Jelinek <jakub@redhat.com>
2416
2417 * c.opt (Wextra): Add as C/C++/ObjC/ObjC++ option.
2418 (Wimplicit-fallthrough=): Enable for these languages by -Wextra.
2419 * c-opts.c (sanitize_cpp_opts): Initialize
2420 cpp_opts->cpp_warn_implicit_fallthrough.
2421
78f61294
MP
24222016-10-11 Marek Polacek <polacek@redhat.com>
2423
2424 * c-common.c (warning_candidate_p): Change the return type to bool
2425 and return true/false instead of 1/0.
2426 (vector_mode_valid_p): Likewise.
2427
038b5cc0
MP
24282016-10-11 Marek Polacek <polacek@redhat.com>
2429
2430 * c-common.c (fold_for_warn): No longer static.
2431 (bool_promoted_to_int_p): Likewise.
2432 (c_common_get_narrower): Likewise.
2433 (constant_expression_warning): Move to c-warn.c.
2434 (constant_expression_error): Likewise.
2435 (overflow_warning): Likewise.
2436 (warn_logical_operator): Likewise.
2437 (find_array_ref_with_const_idx_r): Likewise.
2438 (warn_tautological_cmp): Likewise.
2439 (expr_has_boolean_operands_p): Likewise.
2440 (warn_logical_not_parentheses): Likewise.
2441 (warn_if_unused_value): Likewise.
2442 (strict_aliasing_warning): Likewise.
2443 (sizeof_pointer_memaccess_warning): Likewise.
2444 (check_main_parameter_types): Likewise.
2445 (conversion_warning): Likewise.
2446 (warnings_for_convert_and_check): Likewise.
2447 (match_case_to_enum_1): Likewise.
2448 (match_case_to_enum): Likewise.
2449 (c_do_switch_warnings): Likewise.
2450 (warn_for_omitted_condop): Likewise.
2451 (readonly_error): Likewise.
2452 (lvalue_error): Likewise.
2453 (invalid_indirection_error): Likewise.
2454 (warn_array_subscript_with_type_char): Likewise.
2455 (warn_about_parentheses): Likewise.
2456 (warn_for_unused_label): Likewise.
2457 (warn_for_div_by_zero): Likewise.
2458 (warn_for_memset): Likewise.
2459 (warn_for_sign_compare): Likewise.
2460 (do_warn_double_promotion): Likewise.
2461 (do_warn_unused_parameter): Likewise.
2462 (record_locally_defined_typedef): Likewise.
2463 (maybe_record_typedef_use): Likewise.
2464 (maybe_warn_unused_local_typedefs): Likewise.
2465 (maybe_warn_bool_compare): Likewise.
2466 (maybe_warn_shift_overflow): Likewise.
2467 (warn_duplicated_cond_add_or_warn): Likewise.
2468 (diagnose_mismatched_attributes): Likewise.
2469 * c-common.h: Move the declarations from c-warn.c to its own section.
2470 * c-warn.c: New file.
2471
627be19f
JM
24722016-10-08 Jason Merrill <jason@redhat.com>
2473
2474 * c-common.c (c_common_truthvalue_conversion): Don't distribute
2475 into COND_EXPR in C++.
2476
7bad794a
JJ
24772016-10-08 Jakub Jelinek <jakub@redhat.com>
2478
2479 * c-lex.c (c_lex_with_flags) <case CPP_COMMENT>: For CPP_COMMENT
2480 token with PREV_FALLTHROUGH, skip all following CPP_PADDING and
2481 CPP_COMMENT tokens and set add_flags to PREV_FALLTHROUGH afterwards.
2482
be845b04
JJ
24832016-10-07 Jakub Jelinek <jakub@redhat.com>
2484
2485 Implement LWG2296 helper intrinsic
2486 * c-common.h (enum rid): Add RID_ADDRESSOF.
2487 * c-common.c (c_common_reswords): Add __builtin_addressof.
2488
c09c4992
BE
24892016-10-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2490
2491 PR c++/77700
2492 * c-common.c (c_common_truthvalue_conversion): Warn also for
2493 suspicious enum values in boolean context.
2494
342cfb3e
JJ
24952016-10-06 Jakub Jelinek <jakub@redhat.com>
2496
2497 Implement P0258R2 - helper for C++17
2498 std::has_unique_object_representations trait
2499 * c-common.h (enum rid): Add RID_HAS_UNIQUE_OBJ_REPRESENTATIONS.
2500 * c-common.c (c_common_reswords): Add
2501 __has_unique_object_representations.
2502
2e69f143
JJ
25032016-10-05 Jakub Jelinek <jakub@redhat.com>
2504
2505 PR sanitizer/66343
2506 * c-ubsan.c (ubsan_instrument_return): Don't call
2507 initialize_sanitizer_builtins here.
2508
700fff34
BE
25092016-10-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
2510
2511 * c-common.c (c_common_truthvalue_conversion): Warn also for suspicious
2512 conditional expression in boolean context when only one arm is
2513 non-boolean.
2514
9563bfcd
JJ
25152016-10-05 Jakub Jelinek <jakub@redhat.com>
2516
04a32443
JJ
2517 PR sanitizer/77823
2518 * c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
2519 is not integral.
2520
9563bfcd
JJ
2521 * c-common.c (c_common_reswords): Update comment for C++11.
2522
f1644724
JM
25232016-10-04 Jason Merrill <jason@redhat.com>
2524
2525 * c-common.c (make_tree_vector_from_ctor): New.
2526 * c-common.h: Declare it.
2527
5a79befb
JJ
25282016-10-04 Jakub Jelinek <jakub@redhat.com>
2529
2530 * c-cppbuiltin.c (c_cpp_builtins): Don't define
2531 __LIBGCC_JCR_SECTION_NAME__.
2532
1633d3b9
BE
25332016-10-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
2534
2535 * c-common.c (c_common_truthvalue_conversion): Warn for suspicious
2536 left shift in boolean context.
2537
a2c6e7f2
JJ
25382016-09-29 Jakub Jelinek <jakub@redhat.com>
2539
2540 Implement P0001R1 - C++17 removal of register storage class specifier
2541 * c.opt (Wregister): New warning.
2542 * c-opts.c (c_common_post_options): Enable -Wregister by
2543 default for C++17.
2544
75304c87
JG
25452016-09-29 James Greenhalgh <james.greenhalgh@arm.com>
2546
2547 * c-opts.c (c_common_post_options): Remove special case for
2548 TARGET_FLT_EVAL_METHOD_NON_DEFAULT with -fexcess-precision=standard
2549 in C++.
2550
bbfac6da
JJ
25512016-09-27 Jakub Jelinek <jakub@redhat.com>
2552
6e39060a
JJ
2553 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
2554 -std=c++1z.
2555
bbfac6da
JJ
2556 * c-ada-spec.c (print_ada_declaration): Remove break after return.
2557
e73cf9a2
TP
25582016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
2559
2560 * c-common.c: Include memmodel.h.
2561
c6147dc4
MP
25622016-09-26 Marek Polacek <polacek@redhat.com>
2563
2564 * c-lex.c (c_common_has_attribute): Handle attribute fallthrough.
2565
81fea426
MP
25662016-09-26 Marek Polacek <polacek@redhat.com>
2567
2568 PR c/7652
2569 * c-common.c (c_common_attribute_table): Add fallthrough attribute.
2570 (handle_fallthrough_attribute): New function.
2571 (attribute_fallthrough_p): New function.
2572 * c-common.h (attribute_fallthrough_p): Declare.
2573
9a2300e9
MP
25742016-09-24 Marek Polacek <polacek@redhat.com>
2575
2576 PR c/77490
2577 * c.opt (Wbool-operation): New.
2578
a09e9e35
BE
25792016-09-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
2580
2581 * c-common.c (c_common_truthvalue_conversion): Inhibit
2582 Wint-in-bool-context warning with from_macro_definition_at.
2583 Mention the expression will always evaluate to true.
2584
d43b4ccc
MS
25852016-09-21 Martin Sebor <msebor@redhat.com>
2586
2587 PR bootstrap/77676
2588 * c.opt (fprintf-return-value): Temporarily initialize to zero
2589 to unblock bootstrap failures.
2590
2e1c20b1
JJ
25912016-09-21 Jakub Jelinek <jakub@redhat.com>
2592
2593 PR c++/77651
2594 * c.opt (Waligned-new=): Add RejectNegative.
2595 (faligned-new=): Likewise. Spelling fix - change
2596 aligned_new_threshhold to aligned_new_threshold.
2597 * c-cppbuiltin.c (c_cpp_builtins): Change aligned_new_threshhold
2598 to aligned_new_threshold.
2599
88d0c3f0
MS
26002016-09-20 Martin Sebor <msebor@redhat.com>
2601
2602 PR middle-end/49905
2603 * c.opt: Add -Wformat-length and -fprintf-return-value.
2604
144a96e4
BE
26052016-09-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
2606
2607 PR c++/77434
2608 * c.opt (Wint-in-bool-context): New warning.
2609 * c-common.c (c_common_truthvalue_conversion): Warn on integer
2610 constants in boolean context.
2611
63012d9a
JM
26122016-09-19 Joseph Myers <joseph@codesourcery.com>
2613
2614 * c-common.c (max_align_t_align): Also consider alignment of
2615 float128_type_node.
2616
931388ce
JM
26172016-09-15 Jason Merrill <jason@redhat.com>
2618
2619 * c-common.c (check_cxx_fundamental_alignment_constraints): Check
2620 DECL_EXTERNAL.
2621
38711381
JM
26222016-09-14 Jason Merrill <jason@redhat.com>
2623
2624 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2625 limit FIELD_DECL, either.
2626
e51fbec3
MP
26272016-09-14 Marek Polacek <polacek@redhat.com>
2628
2629 * c-common.c (c_common_truthvalue_conversion): Use false instead of 0.
2630 * c-common.h (build_unary_op): Change nonconvert parameter type to bool.
2631 * c-omp.c (c_finish_omp_atomic): Use false instead of 0.
2632
254830ba
DM
26332016-09-13 David Malcolm <dmalcolm@redhat.com>
2634
2635 * c-common.c (warn_logical_not_parentheses): Replace
2636 rich_location::add_fixit_insert calls with add_fixit_insert_before
2637 and add_fixit_insert_after, eliminating the "next_loc" calculation.
2638
42763690
JM
26392016-09-13 Jason Merrill <jason@redhat.com>
2640 Tom de Vries <tom@codesourcery.com>
2641
2642 PR c++/77427
2643 * c-common.c (set_underlying_type): Don't treat array as builtin type.
2644
9453eee9
JM
26452016-09-13 Jason Merrill <jason@redhat.com>
2646
2647 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
2648 limit types at all.
2649
e96809e3
JM
26502016-09-12 Jason Merrill <jason@redhat.com>
2651
2652 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
2653 bit/byte confusion, allow large alignment for types.
2654
54dcdb88
BE
26552016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
2656
2657 PR c++/77496
2658 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
2659
d1463eb9
DM
26602016-09-12 David Malcolm <dmalcolm@redhat.com>
2661
2662 PR c/72858
2663 * c-format.c (argument_parser::check_argument_type): Add params
2664 "type_start" and "conversion_char". Use the former to generate
2665 offset_to_type_start and pass it and conversion_char to
2666 check_format_types.
2667 (check_format_info_main): Capture the start of the type
2668 information as "type_start", and pass it an format_char
2669 to arg_parser.check_argument_type.
2670 (check_format_types): Provide an example in the leading comment.
2671 Add params "offset_to_type_start" and "conversion_char"; pass
2672 them to format_type_warning calls.
2673 (test_get_modifier_for_format_len): Likewise.
2674 (matching_type_p): New function.
2675 (get_format_for_type): Add param "conversion_char" and move
2676 implementation into...
2677 (get_format_for_type_1): ...new function, called twice.
2678 Use new function matching_type_p rather than checking for
2679 TYPE_CANONICAL equality.
2680 (get_corrected_substring): New function.
2681 (format_type_warning): Provide an example in the leading comment.
2682 Add params "offset_to_type_start" and "conversion_char". Replace
2683 call to get_format_for_type with call to get_corrected_substring
2684 and move rejection of hints for widths/precisions there.
2685 (assert_format_for_type_streq): Add param "conversion_char".
2686 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
2687 (test_get_format_for_type_printf): Add conversion chars to the
2688 tests, adding coverage for various combinations of integer
2689 vs double conversions, and for preserving octal and hexadecimal
2690 conversions.
2691 (test_get_format_for_type_scanf): Add conversion chars to the
2692 tests.
2693
5b28efbb
TV
26942016-09-10 Tom de Vries <tom@codesourcery.com>
2695
2696 PR C/71602
2697 * c-common.c (build_va_arg): Handle more strict
2698 targetm.canonical_va_list_type. Replace first argument type error with
2699 assert.
2700
3f0177e7
MS
27012016-09-09 Martin Sebor <msebor@redhat.com>
2702
2703 PR c/77520
2704 PR c/77521
2705 * c-format.c (argument_parser::find_format_char_info): Use %qc
2706 format directive unconditionally.
2707
af63ba4b
JM
27082016-09-09 Jason Merrill <jason@redhat.com>
2709
2710 Implement C++17 new of over-aligned types.
2711 * c.opt: Add -faligned-new and -Waligned-new.
2712 * c-common.c (max_align_t_align): Split out from...
2713 (cxx_fundamental_alignment_p): ...here.
2714 * c-common.h: Declare it.
2715 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
2716
c65248cb
JM
27172016-09-09 Joseph Myers <joseph@codesourcery.com>
2718
2719 * c-cppbuiltin.c (builtin_define_type_width): New function.
2720 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
2721 macros.
2722
e5106e27
DM
27232016-09-07 David Malcolm <dmalcolm@redhat.com>
2724
2725 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
2726 a POINTER_TYPE.
2727 (substring_loc::get_location): Move to substring-locations.c,
2728 keeping implementation as...
2729 (c_get_substring_location): New function, from the above, reworked
2730 to use accessors rather than member lookup.
2731 * c-common.h (class substring_loc): Move to substring-locations.h,
2732 replacing with a forward decl.
2733 (c_get_substring_location): New decl.
2734 * c-format.c: Include "substring-locations.h".
2735 (format_warning_va): Move to substring-locations.c.
2736 (format_warning_at_substring): Likewise.
2737
a42e7952
MS
27382016-09-06 Martin Sebor <msebor@redhat.com>
2739
2740 PR c/77336
2741 * c-format.c (check_function_format): Avoid issuing warnings for
2742 functions unless they call format functions with non-constant
2743 format strings.
2744
b772a565
RB
27452016-09-06 Richard Biener <rguenther@suse.de>
2746
2747 PR c/77450
2748 * c-common.c (c_common_mark_addressable_vec): Handle
2749 COMPOUND_LITERAL_EXPR.
2750
25ff5dd3
MP
27512016-09-05 Marek Polacek <polacek@redhat.com>
2752
2753 PR c/77423
2754 * c-common.c (bool_promoted_to_int_p): New function.
2755 (expr_has_boolean_operands_p): New function.
2756 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
2757 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
2758
21234eb5
TV
27592016-09-04 Tom de Vries <tom@codesourcery.com>
2760
2761 revert:
2762 2016-08-29 Tom de Vries <tom@codesourcery.com>
2763
2764 * c-common.c (build_va_arg): Replace first argument type error
2765 with assert.
2766
9dc5773f
JJ
27672016-09-02 Jakub Jelinek <jakub@redhat.com>
2768
2769 PR c/65467
2770 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
2771 (c_finish_omp_for): Reject _Atomic qualified iterators.
2772
27732016-09-01 Martin Sebor <msebor@redhat.com>
3d7b83b6
MS
2774
2775 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
2776 size to guarantee it fits the output of the formatted function
2777 regardless of its arguments.
2778
295844f6
MP
27792016-09-01 Marek Polacek <polacek@redhat.com>
2780
2781 PR c/7652
2782 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
2783 FALLTHRU comments.
2784
3d06b6f2
MP
27852016-08-29 Marek Polacek <polacek@redhat.com>
2786
2787 PR c/77292
2788 * c-common.c (warn_logical_not_parentheses): Don't warn for
2789 a comparison or a logical operator.
2790
34cedad5
TV
27912016-08-29 Tom de Vries <tom@codesourcery.com>
2792
2793 * c-common.c (build_va_arg): Fix type comparison assert.
2794
f162d717
TV
27952016-08-29 Tom de Vries <tom@codesourcery.com>
2796
2797 * c-common.c (build_va_arg): Replace first argument type error
2798 with assert.
2799
ba9bbd6f
TV
28002016-08-29 Tom de Vries <tom@codesourcery.com>
2801
2802 PR c/77398
2803 * c-common.c (build_va_arg): Add first argument error. Build va_arg
2804 with error_mark_node as va_list instead of with illegal va_list.
2805
ebef225f
MP
28062016-08-25 Marek Polacek <polacek@redhat.com>
2807 David Malcolm <dmalcolm@redhat.com>
2808
2809 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
2810 * c-common.h (warn_logical_not_parentheses): Update declaration.
2811
b00e6e75
MP
28122016-08-22 Marek Polacek <polacek@redhat.com>
2813
2814 PR c++/77321
2815 * c-common.c (warn_for_memset): Check type for null.
2816
6dc198e3
JM
28172016-08-22 Joseph Myers <joseph@codesourcery.com>
2818
14ec014e 2819 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
6dc198e3
JM
2820 _FloatNx types for suffixes for built-in functions.
2821
c65699ef
JM
28222016-08-19 Joseph Myers <joseph@codesourcery.com>
2823
2824 PR c/32187
2825 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
2826 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
2827 (RID_FLOAT128X): New enum rid values.
2828 (CASE_RID_FLOATN_NX): New macro.
2829 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
2830 keywords.
2831 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
2832 corresponding complex types.
2833 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
2834 _FloatNx and corresponding complex types.
2835 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
2836 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
2837 and _FloatNx types for the widest type for determining
2838 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
2839 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
2840 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
2841 and _FloatNx types.
2842 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
2843 constants.
2844 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
2845 _FloatNx types.
2846
cc015f3a
DM
28472016-08-18 David Malcolm <dmalcolm@redhat.com>
2848
2849 * c-opts.c (c_diagnostic_finalizer): Update for change to
2850 diagnostic_show_locus.
2851
cb18fd07
DM
28522016-08-18 David Malcolm <dmalcolm@redhat.com>
2853
2854 * c-common.c: Include "spellcheck.h".
2855 (cb_get_suggestion): New function.
2856 * c-common.h (cb_get_suggestion): New decl.
2857 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
2858 cb_get_suggestion.
2859
a76989dc
MP
28602016-08-18 Marek Polacek <polacek@redhat.com>
2861
2862 PR c/71514
2863 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
2864 and pointer-to-VLA.
2865
65e736c0
DM
28662016-08-16 David Malcolm <dmalcolm@redhat.com>
2867
2868 PR c/72857
2869 * c-common.c (substring_loc::get_range): Rename to...
2870 (substring_loc::get_location): ...this, converting param from a
2871 source_range * to a location_t *. Call
2872 get_source_location_for_substring rather than
2873 get_source_range_for_substring, and pass in m_caret_idx.
2874 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
2875 (substring_loc::get_range): Replace with...
2876 (substring_loc::get_location): ...this.
2877 (substring_loc::set_caret_index): New method.
2878 (substring_loc): Add field m_caret_idx.
2879 * c-format.c (format_warning_va): Update for above changes.
2880 Rename local "substring_loc" to "fmt_substring_loc" to avoid
2881 clashing with type name.
2882 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
2883 (check_argument_type): Likewise.
2884 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
2885 Use a copy when emitting warnings, setting the caret index from TYPE.
2886
7e1dde14 28872016-08-16 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 2888 Arnaud Charlet <charlet@adacore.com>
7e1dde14
EB
2889
2890 * c-ada-spec.c (dump_number): New function.
2891 (handle_escape_character): Likewise.
2892 (print_ada_macros): Add handling of constant integers and strings.
2893
191816a3
MP
28942016-08-12 Marek Polacek <polacek@redhat.com>
2895
2896 PR c/7652
2897 * c-common.c (scalar_to_vector): Adjust fall through comment.
2898 * c-opts.c (c_common_handle_option): Likewise.
2899 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
2900 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
2901 fall through comment.
2902 * cilk.c (extract_free_variables): Add FALLTHRU.
2903
452df4a4
JM
29042016-08-10 Jason Merrill <jason@redhat.com>
2905
2906 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2907
f3365c12
JM
29082016-08-09 Jason Merrill <jason@redhat.com>
2909
2910 * c-common.c (c_common_attribute_table): vector_size affects type
2911 identity.
2912
f0bc3323
MP
29132016-08-09 Marek Polacek <polacek@redhat.com>
2914
2915 PR c/7652
2916 * c-ada-spec.c (dump_generic_ada_node): Add return.
2917
98e5a19a
JM
29182016-08-09 Jason Merrill <jason@redhat.com>
2919
2920 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
2921 C++17 constexpr lambdas.
2922
895aa8e1
DM
29232016-08-08 David Malcolm <dmalcolm@redhat.com>
2924
2925 PR c/64955
2926 * c-common.h (selftest::c_format_c_tests): New declaration.
2927 (selftest::run_c_tests): New declaration.
2928 * c-format.c: Include "selftest.h.
2929 (format_warning_va): Add param "corrected_substring" and use
2930 it to add a replacement fix-it hint.
2931 (format_warning_at_substring): Likewise.
2932 (format_warning_at_char): Update for new param of
2933 format_warning_va.
2934 (argument_parser::check_argument_type): Pass "fki" to
2935 check_format_types.
2936 (check_format_types): Add param "fki" and pass it to
2937 format_type_warning.
2938 (deref_n_times): New function.
2939 (get_modifier_for_format_len): New function.
2940 (selftest::test_get_modifier_for_format_len): New function.
2941 (get_format_for_type): New function.
2942 (format_type_warning): Add param "fki" and use it to attempt
2943 to provide hints for argument types when calling
2944 format_warning_at_substring.
2945 (selftest::get_info): New function.
2946 (selftest::assert_format_for_type_streq): New function.
2947 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
2948 (selftest::test_get_format_for_type_printf): New function.
2949 (selftest::test_get_format_for_type_scanf): New function.
2950 (selftest::c_format_c_tests): New function.
2951
e52ed3fe
DM
29522016-08-08 David Malcolm <dmalcolm@redhat.com>
2953
2954 PR c/52952
2955 * c-format.c: Include "diagnostic.h".
2956 (location_column_from_byte_offset): Delete.
2957 (location_from_offset): Delete.
2958 (format_warning_va): New function.
2959 (format_warning_at_substring): New function.
2960 (format_warning_at_char): New function.
2961 (check_format_arg): Capture location of format_tree and pass to
2962 check_format_info_main.
2963 (argument_parser): Add fields "start_of_this_format" and
2964 "format_string_cst".
2965 (flag_chars_t::validate): Add param "format_string_cst". Convert
2966 warning_at call using location_from_offset to call to
2967 format_warning_at_char.
2968 (argument_parser::argument_parser): Add param "format_string_cst_"
2969 and use use it to initialize field "format_string_cst".
2970 Initialize new field "start_of_this_format".
2971 (argument_parser::read_format_flags): Convert warning_at call
2972 using location_from_offset to a call to format_warning_at_char.
2973 (argument_parser::read_any_format_left_precision): Likewise.
2974 (argument_parser::read_any_format_precision): Likewise.
2975 (argument_parser::read_any_other_modifier): Likewise.
2976 (argument_parser::find_format_char_info): Likewise, in three places.
2977 (argument_parser::parse_any_scan_set): Likewise, in one place.
2978 (argument_parser::handle_conversions): Likewise, in two places.
2979 (argument_parser::check_argument_type): Add param "fmt_param_loc"
2980 and use it to make a substring_loc. Pass the latter to
2981 check_format_types.
2982 (check_format_info_main): Add params "fmt_param_loc" and
2983 "format_string_cst". Convert warning_at calls using
2984 location_from_offset to calls to format_warning_at_char. Pass the
2985 new params to the arg_parser ctor. Pass "format_string_cst" to
2986 flag_chars.validate. Pass "fmt_param_loc" to
2987 arg_parser.check_argument_type.
2988 (check_format_types): Convert first param from a location_t
2989 to a const substring_loc & and rename to "fmt_loc". Attempt
2990 to extract the range of the relevant parameter and pass it
2991 to format_type_warning.
2992 (format_type_warning): Convert first param from a location_t
2993 to a const substring_loc & and rename to "fmt_loc". Add
2994 params "param_range" and "type". Replace calls to warning_at
2995 with calls to format_warning_at_substring.
2996
1c4d457e
DM
29972016-08-08 David Malcolm <dmalcolm@redhat.com>
2998
2999 * c-format.c (class flag_chars_t): New class.
3000 (struct length_modifier): New struct.
3001 (class argument_parser): New class.
3002 (flag_chars_t::flag_chars_t): New ctor.
3003 (flag_chars_t::has_char_p): New method.
3004 (flag_chars_t::add_char): New method.
3005 (flag_chars_t::validate): New method.
3006 (flag_chars_t::get_alloc_flag): New method.
3007 (flag_chars_t::assignment_suppression_p): New method.
3008 (argument_parser::argument_parser): New ctor.
3009 (argument_parser::read_any_dollar): New method.
3010 (argument_parser::read_format_flags): New method.
3011 (argument_parser::read_any_format_width): New method.
3012 (argument_parser::read_any_format_left_precision): New method.
3013 (argument_parser::read_any_format_precision): New method.
3014 (argument_parser::handle_alloc_chars): New method.
3015 (argument_parser::read_any_length_modifier): New method.
3016 (argument_parser::read_any_other_modifier): New method.
3017 (argument_parser::find_format_char_info): New method.
3018 (argument_parser::validate_flag_pairs): New method.
3019 (argument_parser::give_y2k_warnings): New method.
3020 (argument_parser::parse_any_scan_set): New method.
3021 (argument_parser::handle_conversions): New method.
3022 (argument_parser::check_argument_type): New method.
3023 (check_format_info_main): Introduce classes argument_parser
3024 and flag_chars_t, moving the code within the loop into methods
3025 of these classes. Make various locals "const".
3026
88fa5555
DM
30272016-08-05 David Malcolm <dmalcolm@redhat.com>
3028
3029 * c-common.c: Include "substring-locations.h".
3030 (get_cpp_ttype_from_string_type): New function.
3031 (g_string_concat_db): New global.
3032 (substring_loc::get_range): New method.
3033 * c-common.h (g_string_concat_db): New declaration.
3034 (class substring_loc): New class.
3035 * c-lex.c (lex_string): When concatenating strings, capture the
3036 locations of all tokens using a new obstack, and record the
3037 concatenation locations within g_string_concat_db.
3038 * c-opts.c (c_common_init_options): Construct g_string_concat_db
3039 on the ggc-heap.
3040
78169471
MP
30412016-07-29 Marek Polacek <polacek@redhat.com>
3042
638fc14f
MP
3043 PR c/71926
3044 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
3045 parentheses warning.
3046
78169471
MP
3047 PR c/71574
3048 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
3049
1225d6b1
ML
30502016-07-28 Martin Liska <mliska@suse.cz>
3051
3052 PR gcov-profile/68025
3053 * c-common.c (handle_no_profile_instrument_function_attribute):
3054
ec1e2a40
BE
30552016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
3056
3057 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
3058 BITS_PER_UNIT_LOG.
3059
5ec2cd9f
JM
30602016-07-25 Jason Merrill <jason@redhat.com>
3061
3062 PR c++/65970
3063 * c.opt (fconstexpr-loop-limit): New.
3064
9dc5773f 30652016-07-22 Martin Sebor <msebor@redhat.com>
2e6b45af
MS
3066
3067 PR c++/71675
3068 * c-common.c (resolve_overloaded_builtin): Avoid converting
3069 __atomic_compare_exchange_n return type to that of what its
3070 first argument points to.
3071
e3fe09c1
UB
30722016-07-22 Uros Bizjak <ubizjak@gmail.com>
3073
3074 * c-common.c: Use HOST_WIDE_INT_M1U instead of
3075 ~(unsigned HOST_WIDE_INT) 0.
3076
bc91c436
ML
30772016-07-22 Martin Liska <mliska@suse.cz>
3078
3079 PR gcov-profile/69028
3080 PR gcov-profile/62047
3081 * cilk.c (create_cilk_helper_decl): Set location of a new decl
3082 to the current_function_decl.
3083
451dcc66
JM
30842016-07-21 Jason Merrill <jason@redhat.com>
3085
3086 PR c++/65168
3087 * c-common.c (c_common_truthvalue_conversion): Check
3088 c_inhibit_evaluation_warnings for warning about address of
3089 reference.
3090
de6a69ee
DM
30912016-07-20 David Malcolm <dmalcolm@redhat.com>
3092
3093 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
3094 const char *.
3095
d022c55a
JM
30962016-07-15 Jason Merrill <jason@redhat.com>
3097
3098 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
3099
ddbbcb19
JJ
31002016-07-15 Jakub Jelinek <jakub@redhat.com>
3101
3102 PR c/71858
3103 * c-common.h (enum lookup_name_fuzzy_kind): Add
3104 FUZZY_LOOKUP_FUNCTION_NAME.
3105
d0cf395a
JM
31062016-07-08 Jason Merrill <jason@redhat.com>
3107
3108 P0145: Refining Expression Order for C++.
3109 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
3110 * c-opts.c: Adjust.
3111
98d44e93
MT
31122016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
3113
3114 PR c++/71214
3115 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
3116
f9d8d994
TS
31172016-06-29 Thomas Schwinge <thomas@codesourcery.com>
3118
3119 * c-pragma.h (enum pragma_kind): Rename
3120 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
3121 users.
3122
4aa83879
RB
31232016-06-29 Richard Biener <rguenther@suse.de>
3124
3125 PR middle-end/71002
3126 * c-common.c (c_common_get_alias_set): Remove union type punning case.
3127
a25bd9e6
JM
31282016-06-24 Jason Merrill <jason@redhat.com>
3129
3130 P0145R2: Refining Expression Order for C++.
3131 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
3132 MODIFY_EXPR.
3133
a86451b9
JJ
31342016-06-24 Jakub Jelinek <jakub@redhat.com>
3135
3136 * c-common.c (check_builtin_function_arguments): Require last
3137 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
3138 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
3139 if the last argument is pointer to enumerated or boolean type.
3140
1a4f11c8
DM
31412016-06-22 David Malcolm <dmalcolm@redhat.com>
3142
3143 PR c/70339
3144 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
3145 (lookup_name_fuzzy): New prototype.
3146
fe55692c
JDA
31472016-06-21 John David Anglin <danglin@gcc.gnu.org>
3148
3149 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
3150
4eb24e01
JM
31512016-06-14 Jason Merrill <jason@redhat.com>
3152
3153 P0145R2: Refining Expression Order for C++.
3154 * c.opt (fargs-in-order): New.
3155 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
3156
ef7cf206
JJ
31572016-06-13 Jakub Jelinek <jakub@redhat.com>
3158
0dda258b
JJ
3159 PR sanitizer/71498
3160 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
3161 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
3162
ef7cf206
JJ
3163 PR preprocessor/71183
3164 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
3165 to cb_get_source_date_epoch.
3166
50b15873
JJ
31672016-06-10 Jakub Jelinek <jakub@redhat.com>
3168
3169 PR c/68657
3170 * c.opt (Wpsabi): Add Warning flag.
3171
4d926e34
MS
31722016-06-10 Martin Sebor <msebor@redhat.com>
3173
3174 PR c/71392
14ec014e 3175 * c-common.c (handle_nonnull_attribute): Accept
4d926e34
MS
3176 the nonnull attribute in type-generic builtins.
3177
e01b4e16
MS
31782016-06-09 Martin Sebor <msebor@redhat.com>
3179
3180 PR c/70883
3181 * c-common.c (builtin_function_validate_nargs): Make text of error
3182 message consistent with others like it.
3183
44a845ca
MS
31842016-06-08 Martin Sebor <msebor@redhat.com>
3185 Jakub Jelinek <jakub@redhat.com>
3186
3187 PR c++/70507
3188 PR c/68120
3189 * c-common.c (check_builtin_function_arguments): Handle
3190 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
3191
a80a7051
RB
31922016-06-08 Richard Biener <rguenther@suse.de>
3193
3194 * c-common.c (parse_optimize_options): Improve diagnostic messages.
3195
bfd67b47
RB
31962016-06-07 Richard Biener <rguenther@suse.de>
3197
3198 PR c/61564
3199 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
3200 options and warn about others.
3201
15c98b2e
ES
32022016-06-01 Eduard Sanou <dhole@openmailbox.org>
3203
3204 * c-common.c (get_source_date_epoch): Rename to
3205 cb_get_source_date_epoch.
3206 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
3207 message when the parsing fails. Use error_at instead of fatal_error.
3208 * c-common.h (get_source_date_epoch): Rename to
3209 cb_get_source_date_epoch.
3210 * c-common.h (cb_get_source_date_epoch): Prototype.
3211 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
3212 * c-common.h (c_omp_region_type): Remove trailing comma.
3213 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
3214 * c-lex.c (c_lex_with_flags): Remove initialization of
3215 pfile->source_date_epoch.
3216
00631022
JJ
32172016-05-30 Jakub Jelinek <jakub@redhat.com>
3218
3219 PR c++/71349
3220 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
3221 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
3222 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
3223 instead of C_OMP_CLAUSE_SPLIT_FOR.
3224
f17a223d
RB
32252016-05-24 Richard Biener <rguenther@suse.de>
3226
3227 PR middle-end/70434
3228 PR c/69504
3229 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
3230 (convert_vector_to_array_for_subscript): ... this.
3231 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
3232 VIEW_CONVERT_EXPR to an array type. Rename to ...
3233 (convert_vector_to_array_for_subscript): ... this.
3234
4f2e1536
MP
32352016-05-12 Marek Polacek <polacek@redhat.com>
3236
3237 PR c/70756
3238 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
3239 size_in_bytes and pass LOC to it.
3240
d6e83a8d
MM
32412016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
3242
3243 PR c/43651
3244 * c.opt (Wduplicate-decl-specifier): New option.
3245
5c3a10fb
MP
32462016-05-11 Marek Polacek <polacek@redhat.com>
3247
3248 PR c++/71024
3249 * c-common.c (diagnose_mismatched_attributes): New function.
3250 * c-common.h (diagnose_mismatched_attributes): Declare.
3251
deef7113
MP
32522016-05-04 Marek Polacek <polacek@redhat.com>
3253
3254 * c.opt (Wdangling-else): New option.
3255
79ce98bc
MP
32562016-05-03 Marek Polacek <polacek@redhat.com>
3257
3258 PR c/70859
3259 * c-common.c (builtin_function_validate_nargs): Add location
3260 parameter. Use it.
3261 (check_builtin_function_arguments): Add location and arguments
3262 parameters. Use them.
3263 * c-common.h (check_builtin_function_arguments): Update declaration.
3264
381cdae4
RB
32652016-05-03 Richard Biener <rguenther@suse.de>
3266
3267 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
3268 allow call args to gimplify to SSA names.
3269
1d793c34
MP
32702016-05-03 Marek Polacek <polacek@redhat.com>
3271
3272 * c-common.h (enum c_omp_region_type): Remove stray comma.
3273
77886428
CP
32742016-05-02 Cesar Philippidis <cesar@codesourcery.com>
3275
3276 * c-common.h (enum c_omp_region_type): Define.
3277
697e0b28
RS
32782016-05-02 Richard Sandiford <richard.sandiford@arm.com>
3279
3280 * c-common.c (shorten_compare): Use wi::to_wide.
3281
e7ff0319
CP
32822016-04-29 Cesar Philippidis <cesar@codesourcery.com>
3283
3284 PR middle-end/70626
3285 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
3286 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
3287 reduction clauses in acc parallel loops.
3288
2fff3db8
MP
32892016-04-29 Marek Polacek <polacek@redhat.com>
3290
3291 PR c/70852
3292 * c-common.c (warn_for_memset): Check domain before accessing it.
3293
509063eb
DV
32942016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
3295
3296 PR/69089
3297 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
3298 "aligned" attribute.
3299
b632761d
JM
33002016-04-28 Jason Merrill <jason@redhat.com>
3301
3302 * c-lex.c (c_common_has_attribute): Handle nodiscard.
3303
174f6622
ES
33042016-04-28 Eduard Sanou <dhole@openmailbox.org>
3305 Matthias Klose <doko@debian.org>
3306
3307 * c-common.c (get_source_date_epoch): New function, gets the environment
7365279f 3308 variable SOURCE_DATE_EPOCH and parses it as long long with error
174f6622
ES
3309 handling.
3310 * c-common.h (get_source_date_epoch): Prototype.
3311 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
3312
6bc2bb18
RB
33132015-04-27 Ryan Burn <contact@rnburn.com>
3314
3315 PR c++/69024
3316 PR c++/68997
3317 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
3318 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
3319 external linkage.
3320 (cilk_detect_and_unwrap): Corresponding changes.
3321 (extract_free_variables): Don't extract free variables from
3322 AGGR_INIT_EXPR slot.
3323 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
3324 (cilk_recognize_spawn): Likewise.
3325
c1e1f433
BS
33262016-04-27 Bernd Schmidt <bschmidt@redhat.com>
3327
3328 * c.opt (Wmemset-elt-size): New option.
3329 * c-common.c (warn_for_memset): New function.
3330 * c-common.h (warn_for_memset): Declare.
3331
d067e05f
JM
33322016-04-25 Jason Merrill <jason@redhat.com>
3333
3334 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
3335 No longer static.
3336 * c-common.h: Declare it.
3337 * c-lex.c (c_common_has_attribute): Add maybe_unused.
3338
9aa36ae5
JM
33392016-04-22 Jason Merrill <jason@redhat.com>
3340
3341 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
3342
477d4906
IV
33432016-04-20 Ilya Verbin <ilya.verbin@intel.com>
3344
3345 PR c++/69363
3346 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
3347 * c-common.h (c_finish_cilk_clauses): Remove declaration.
3348
fe37c7af
MM
33492016-04-18 Michael Matz <matz@suse.de>
3350
3351 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
3352 and SET_DECL_ALIGN.
3353
23f2660f
EB
33542016-04-17 Eric Botcazou <ebotcazou@adacore.com>
3355
3356 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
3357 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
3358 to incomplete types.
3359 (dump_nested_type): Remove redundant tests and tidy up.
3360 (print_ada_declaration): Also set TREE_VISITED on the declaration of
3361 a type which is the typedef of an original type.
3362
1e77281b
MP
33632016-04-15 Marek Polacek <polacek@redhat.com>
3364
3365 PR c/70651
3366 * c-common.c (build_va_arg): Change two asserts into errors and return
3367 error_mark_node.
3368
b3a77f21
MP
33692016-04-13 Marek Polacek <polacek@redhat.com>
3370
3371 PR c++/70639
3372 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
3373 for switch statements, too.
3374
322b8466
JM
33752016-03-28 Jason Merrill <jason@redhat.com>
3376
3377 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
3378
fbdb6baf
MP
33792016-03-23 Marek Polacek <polacek@redhat.com>
3380
3381 PR c++/69884
3382 * c.opt (Wignored-attributes): New option.
3383
5c240f4d
DM
33842016-03-22 David Malcolm <dmalcolm@redhat.com>
3385
3386 PR c/69993
3387 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
3388 diagnostic text, reversing the order of the warning and note so
3389 that they appear in source order.
3390
14ba7b28
MP
33912016-03-17 Marek Polacek <polacek@redhat.com>
3392
3393 PR c/69407
3394 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
3395 operations.
3396
08a1cadc
JM
33972016-03-14 Jason Merrill <jason@redhat.com>
3398
2aaeea19
JM
3399 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
3400
08a1cadc
JM
3401 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
3402
c06d25bb
RB
34032016-03-09 Richard Biener <rguenther@suse.de>
3404
3405 PR c/70143
3406 * c-common.c (strict_aliasing_warning): Add back
3407 alias_sets_conflict_p check.
3408
80aac5c8
JM
34092016-03-08 Jason Merrill <jason@redhat.com>
3410
3411 * c-opts.c (set_std_cxx1z): Don't enable concepts.
3412
64b23c13
DM
34132016-03-04 David Malcolm <dmalcolm@redhat.com>
3414
3415 PR c/68187
3416 * c-indentation.c (get_visual_column): Move code to determine next
3417 tab stop to...
3418 (next_tab_stop): ...this new function.
3419 (line_contains_hash_if): Delete function.
3420 (detect_preprocessor_logic): Delete function.
3421 (get_first_nws_vis_column): New function.
3422 (detect_intervening_unindent): New function.
3423 (should_warn_for_misleading_indentation): Replace call to
3424 detect_preprocessor_logic with a call to
3425 detect_intervening_unindent.
3426
729526f5
DM
34272016-03-04 David Malcolm <dmalcolm@redhat.com>
3428
3429 PR c/68187
3430 * c-indentation.c (should_warn_for_misleading_indentation): When
3431 suppressing warnings about cases where the guard and body are on
3432 the same column, only use the first non-whitespace column in place
3433 of the guard token column when dealing with "else" clauses.
3434 When rejecting aligned BODY and NEXT, loosen the requirement
3435 from equality with the first non-whitespace of guard to simply
3436 that they not be indented relative to it.
3437
e9a35493
RB
34382016-03-04 Richard Biener <rguenther@suse.de>
3439
3440 PR c++/70054
3441 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
3442 instead of alias_sets_conflict_p.
3443
1be56bc5
MP
34442016-03-01 Marek Polacek <polacek@redhat.com>
3445
3446 PR c++/69795
3447 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
3448 any DECL.
3449
35886f0b
MS
34502016-02-22 Martin Sebor <msebor@redhat.com>
3451
3452 PR middle-end/69780
3453 * c-common.c (check_builtin_function_arguments): Validate and
3454 reject invalid arguments to __builtin_alloca_with_align.
3455
4246c8da
MW
34562016-02-20 Mark Wielaard <mjw@redhat.com>
3457
3458 PR c/28901
3459 * c.opt (Wunused-const-variable): Turn into Alias for...
3460 (Wunused-const-variable=): New option.
3461
268be88c
BE
34622016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
3463
3464 PR c++/69865
3465 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
3466 here...
3467 (c_common_init_options): ...to here.
3468 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
3469
871b3f47
JJ
34702016-02-19 Jakub Jelinek <jakub@redhat.com>
3471
3472 PR c++/69826
3473 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
3474 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
3475 flag_preprocess_only.
3476
bf14eba2
JJ
34772016-02-16 Jakub Jelinek <jakub@redhat.com>
3478
3479 PR c/69835
3480 * c.opt (Wnonnull-compare): Enable for -Wall.
3481
ba6b3795
JJ
34822016-02-15 Jakub Jelinek <jakub@redhat.com>
3483
3484 PR c++/69797
3485 * c-common.c (sync_resolve_size): Diagnose too few arguments
3486 even when params is non-NULL empty vector.
3487
a011cd92
BS
34882016-02-08 Bernd Schmidt <bschmidt@redhat.com>
3489
3490 PR target/60410
3491 * c.opt (fshort-double): Remove.
3492
46cb9332
MS
34932016-02-05 Martin Sebor <msebor@redhat.com>
3494
3495 PR c++/69662
3496 * c.opt (Warning options): Update -Wplacement-new to take
3497 an optional argument.
3498
e1b81f2b
JJ
34992016-02-01 Jakub Jelinek <jakub@redhat.com>
3500
3501 PR preprocessor/69543
3502 PR c/69558
3503 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
3504 instead of loc to control_warning_option.
3505
b6adbb9f
NS
35062016-02-01 Nathan Sidwell <nathan@codesourcery.com>
3507
3508 * c.opt (fopenacc-dim=): New option.
3509
5d70666e
RB
35102016-01-27 Ryan Burn <contact@rnburn.com>
3511
3512 PR cilkplus/69267
3513 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
3514 gimplify_arg. Removed superfluous post_p argument.
3515 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
3516 superfluous post_p argument.
3517 * c-gimplify.c (c_gimplify_expr): Likewise.
3518
01e1dea3
DM
35192016-01-26 David Malcolm <dmalcolm@redhat.com>
3520
3521 PR other/69006
3522 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
3523 pp_newline_and_flush with pp_flush.
3524
9f04a53e
MS
35252016-01-20 Martin Sebor <msebor@redhat.com>
3526
3527 PR c/69405
3528 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
3529 an incompatible argument when the argument isn't a valid tree node.
3530
7f26f7df
JM
35312016-01-18 Jason Merrill <jason@redhat.com>
3532
3533 PR c++/68767
3534 * c-common.c (check_function_arguments_recurse): Fold the whole
3535 COND_EXPR, not just the condition.
3536
f62bf092
TV
35372016-01-18 Tom de Vries <tom@codesourcery.com>
3538
3539 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
3540 classify as loop clause.
3541
e0a575ff
JJ
35422016-01-15 Jakub Jelinek <jakub@redhat.com>
3543
3544 PR bootstrap/68271
3545 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
3546 C++ FE no longer has limit on number of pragmas.
3547
35482015-01-14 Ryan Burn <contact@rnburn.com>
b6e3db06
RB
3549
3550 PR c++/69048
3551 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
c47eaca6 3552 to add missing cleanup point.
b6e3db06 3553
c7df95d8
DM
35542016-01-14 David Malcolm <dmalcolm@redhat.com>
3555
3556 PR c++/68819
3557 * c-indentation.c (get_visual_column): Add location_t param.
3558 Handle the column number being zero by effectively disabling the
3559 warning, with an "inform".
3560 (should_warn_for_misleading_indentation): Add location_t argument
3561 for all uses of get_visual_column.
3562
21efdd80
PP
35632016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
3564
3565 PR c++/69029
3566 * c-indentation.c (should_warn_for_misleading_indentation):
3567 Don't warn about do-while statements.
3568
7a127fa7
MS
35692016-01-07 Martin Sebor <msebor@redhat.com>
3570
3571 PR c/68966
3572 * c-common.c (sync_resolve_size): Reject first argument when it's
3573 a pointer to _Bool.
3574
c589e975
DM
35752016-01-05 David Malcolm <dmalcolm@redhat.com>
3576
3577 PR c/69122
3578 * c-indentation.c (get_visual_column): Remove default argument.
3579 (should_warn_for_misleading_indentation): For the multiline case,
3580 update call to get_visual_column for next_stmt_exploc so that it
3581 captures the location of the first non-whitespace character in the
3582 relevant line. Don't issue warnings if there is non-whitespace
3583 before the next statement.
3584
818ab71a
JJ
35852016-01-04 Jakub Jelinek <jakub@redhat.com>
3586
3587 Update copyright years.
3588
745e411d
DM
35892015-12-21 David Malcolm <dmalcolm@redhat.com>
3590
3591 * c-common.c (binary_op_error): Convert first param from
3592 location_t to rich_location * and use it when emitting an error.
3593 * c-common.h (binary_op_error): Convert first param from
3594 location_t to rich_location *.
3595
de67c4c3
DM
35962015-12-16 David Malcolm <dmalcolm@redhat.com>
3597
3598 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
3599 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
3600
4a38b02b
IV
36012015-12-15 Ilya Verbin <ilya.verbin@intel.com>
3602
3603 * c-common.c (c_common_attribute_table): Handle "omp declare target
3604 link" attribute.
3605
54d62f51
JJ
36062015-12-14 Jakub Jelinek <jakub@redhat.com>
3607
3608 PR c/68833
3609 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
3610
8d4227c8
TB
36112014-12-12 Tobias Burnus <burnus@net-b.de>
3612
3613 PR fortran/68815
3614 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
3615 specifiers (%d, %i,%u and %c).
3616
f6069ccc
DM
36172015-12-10 David Malcolm <dmalcolm@redhat.com>
3618
3619 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
3620
63bbf46d
JJ
36212015-12-08 Jakub Jelinek <jakub@redhat.com>
3622
3623 PR c/48088
3624 PR c/68657
3625 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
3626 * c-pragma.c (handle_pragma_diagnostic): Adjust
3627 control_warning_option caller.
3628
f79520bb
DM
36292015-12-07 David Malcolm <dmalcolm@redhat.com>
3630
3631 * c-common.c (c_cpp_error): Update for change to
3632 rich_location::set_range.
3633
b3d5bc62
JJ
36342015-12-04 Paolo Bonzini <bonzini@gnu.org>
3635
3636 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
3637 shifting 1 out of the sign bit.
3638
36392015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
3640
3641 * c-common.c (c_common_attribute_table[]): Update max arguments
3642 count for "simd" attribute.
3643 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
3644
6eb4a537
JJ
36452015-12-03 Jakub Jelinek <jakub@redhat.com>
3646
3647 PR preprocessor/57580
3648 * c-ppoutput.c (print): Change printed field to bool.
3649 Move src_file last for smaller padding.
3650 (init_pp_output): Set print.printed to false instead of 0.
3651 (scan_translation_unit): Fix up formatting. Set print.printed
3652 to true after printing something other than newline.
3653 (scan_translation_unit_trad): Set print.printed to true instead of 1.
3654 (maybe_print_line_1): Set print.printed to false instead of 0.
3655 (print_line_1): Likewise.
3656 (do_line_change): Set print.printed to true instead of 1.
3657 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
3658 dump_macro): Set print.printed to false after printing newline.
3659
4250754e
JM
36602015-12-02 Jason Merrill <jason@redhat.com>
3661
f479b43d
JM
3662 * c-common.c (fold_for_warn): New.
3663 (warn_logical_operator, warn_tautological_cmp)
3664 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
3665
4250754e
JM
3666 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
3667 (c_fully_fold_internal, decl_constant_value_for_optimization):
3668 Move to c/c-fold.c.
3669 * c-common.h: Don't declare decl_constant_value_for_optimization.
3670
e9e32ee6
JM
36712015-12-02 Joseph Myers <joseph@codesourcery.com>
3672
3673 PR c/68162
3674 * c-common.h (c_build_qualified_type): Add extra default
3675 arguments.
3676
37d5ad46
JB
36772015-12-01 Julian Brown <julian@codesourcery.com>
3678 Cesar Philippidis <cesar@codesourcery.com>
3679 James Norris <James_Norris@mentor.com>
3680
3681 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
3682 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
3683 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
3684
f07862c7
EB
36852015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3686
3687 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
3688 (decl_sloc_common): Delete and move bulk of processing to...
3689 (decl_sloc): ...here.
3690 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
3691 (dump_ada_double_name): Remove S parameter and compute the suffix.
3692 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
3693 element type and deal with an anonymous one.
3694 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
3695 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
3696 and remove reference to QUAL_UNION_TYPE.
3697 (dump_nested_types): Make 2 passes on the fields and move bulk to...
3698 (dump_nested_type): ...here. New function extracted from above.
3699 Generate a full declaration for anonymous element type of arrays.
3700 (print_ada_declaration): Really skip anonymous declarations. Remove
3701 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
3702 Clean up processing of declarations of array types and objects.
3703 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
3704 Remove obsolete code and tidy up.
3705
75c8aac3
JH
37062015-11-29 Jan Hubicka <hubicka@ucw.cz>
3707
3708 PR c/67581
3709 * c-common.c (handle_transparent_union_attribute): Update
3710 also type variants.
3711
b58d3df2
ML
37122015-11-27 Martin Liska <mliska@suse.cz>
3713
3714 PR c++/68312
3715 * array-notation-common.c (cilkplus_extract_an_triplets):
3716 Release vector of vectors.
3717 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
3718
89a01fcf
EB
37192015-11-26 Eric Botcazou <ebotcazou@adacore.com>
3720
3721 PR c++/68527
3722 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
3723 (print_ada_struct_decl): Likewise.
3724
cc5c5226
IZ
37252015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
3726
3727 PR c++/68001
3728 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
3729 * cilk.c (recognize_spawn): Determine location in a more precise
3730 way.
3731
269adb9d
JM
37322015-11-19 Jason Merrill <jason@redhat.com>
3733
3734 * c-common.c (shorten_compare): But look through macros from
3735 system headers.
3736
d0eccfcd
JM
37372015-11-18 Jason Merrill <jason@redhat.com>
3738
3739 * c-common.c (shorten_compare): Don't -Wtype-limits if the
3740 non-constant operand comes from a macro.
3741
3e44547c
JM
37422015-11-17 Jason Merrill <jason@redhat.com>
3743
3744 PR bootstrap/68346
3745 * c-common.c (warn_tautological_cmp): Fold before checking for
3746 constants.
3747
0f62c7a0
MP
37482015-11-16 Marek Polacek <polacek@redhat.com>
3749
3750 PR c++/68362
3751 * c-common.c (check_case_bounds): Fold low and high cases.
3752
a868811e
MP
37532015-11-16 Marek Polacek <polacek@redhat.com>
3754
3755 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
3756 * c-common.c (c_common_get_alias_set): Likewise.
3757 (handle_visibility_attribute): Likewise.
3758
fff77217
KY
37592015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3760
3761 * c-common.c (handle_simd_attribute): New.
3762 (struct attribute_spec): Add entry for "simd".
3763 (handle_simd_attribute): New.
3764
269e63b7
KT
37652015-11-13 Kai Tietz <ktietz70@googlemail.com>
3766
3767 * c-lex.c (interpret_float): Use fold_convert.
3768
ebedc9a3
DM
37692015-11-13 David Malcolm <dmalcolm@redhat.com>
3770
3771 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
3772 and store it on the result.
3773 * c-opts.c (c_common_init_options): Set
3774 global_dc->colorize_source_p.
3775
6e232ba4
JN
37762015-11-12 James Norris <jnorris@codesourcery.com>
3777 Joseph Myers <joseph@codesourcery.com>
3778
7365279f 3779 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
6e232ba4
JN
3780 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
3781 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
3782 PRAGMA_OACC_CLAUSE_LINK.
3783
e78bede6
MP
37842015-11-11 Marek Polacek <polacek@redhat.com>
3785
3786 PR c/68107
3787 PR c++/68266
3788 * c-common.c (valid_array_size_p): New function.
3789 * c-common.h (valid_array_size_p): Declare.
3790
3f8257db 37912015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
4ac93c7c
DH
3792
3793 PR bootstrap/68271
3794 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
3795
69f293c9
AM
37962015-11-11 Andrew MacLeod <amacleod@redhat.com>
3797
3798 * array-notation-common.c: Remove unused header files.
3799 * c-ada-spec.c: Likewise.
3800 * c-cilkplus.c: Likewise.
3801 * c-common.c: Likewise.
3802 * c-cppbuiltin.c: Likewise.
3803 * c-dump.c: Likewise.
3804 * c-format.c: Likewise.
3805 * c-gimplify.c: Likewise.
3806 * c-indentation.c: Likewise.
3807 * c-lex.c: Likewise.
3808 * c-omp.c: Likewise.
3809 * c-opts.c: Likewise.
3810 * c-pch.c: Likewise.
3811 * c-ppoutput.c: Likewise.
3812 * c-pragma.c: Likewise.
3813 * c-pretty-print.c: Likewise.
3814 * c-semantics.c: Likewise.
3815 * c-ubsan.c: Likewise.
3816 * cilk.c: Likewise.
3817 * stub-objc.c: Likewise.
3818
3a40d81d
NS
38192015-11-09 Thomas Schwinge <thomas@codesourcery.com>
3820 Cesar Philippidis <cesar@codesourcery.com>
3821 James Norris <jnorris@codesourcery.com>
3822 Julian Brown <julian@codesourcery.com>
3823 Nathan Sidwell <nathan@codesourcery.com>
3824
3825 * c-pragma.c (oacc_pragmas): Add "routine".
3826 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
3827
ee45a32d
EB
38282015-11-08 Eric Botcazou <ebotcazou@adacore.com>
3829
3830 * c-common.c (c_common_attributes): Add scalar_storage_order.
3831 (handle_scalar_storage_order_attribute): New function.
3832 * c-pragma.c (global_sso): New variable.
3833 (maybe_apply_pragma_scalar_storage_order): New function.
3834 (handle_pragma_scalar_storage_order): Likewise.
3835 (init_pragma): Register scalar_storage_order.
3836 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
3837 * c.opt (Wscalar-storage-order): New warning.
3838 (fsso-struct=): New option.
3839
eb11eb15
MS
38402015-11-08 Martin Sebor <msebor@redhat.com>
3841
3842 * c.opt (Wplacement-new): Add a period to the end of a sentence.
3843
0aad0198
RS
38442015-11-07 Richard Sandiford <richard.sandiford@arm.com>
3845
3846 * c-common.c: Don't undef DEF_BUILTIN.
3847
8a645150
DM
38482015-11-06 David Malcolm <dmalcolm@redhat.com>
3849
3850 * c-common.c (c_cpp_error): Convert parameter from location_t to
3851 rich_location *. Eliminate the "column_override" parameter and
3852 the call to diagnostic_override_column.
3853 Update the "done_lexing" clause to set range 0
3854 on the rich_location, rather than overwriting a location_t.
3855 * c-common.h (c_cpp_error): Convert parameter from location_t to
3856 rich_location *. Eliminate the "column_override" parameter.
3857
7a5e4956
CP
38582015-11-05 Cesar Philippidis <cesar@codesourcery.com>
3859 Thomas Schwinge <thomas@codesourcery.com>
3860 James Norris <jnorris@codesourcery.com>
3861
3862 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
3863 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
3864 clauses with parallel and kernels and loops.
3865 * c-pragma.h (enum pragma_omp_clause): Add entries for
3866 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
3867 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
3868 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
3869 INDEPENDENT,SEQ}.
3870 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
3871
e2f5cc96
MS
38722015-11-05 Martin Sebor <msebor@redhat.com>
3873
3874 PR c++/67942
3875 * c.opt (-Wplacement-new): New option.
3876
e01d41e5
JJ
38772015-11-05 Jakub Jelinek <jakub@redhat.com>
3878
3879 * c-common.h (c_finish_omp_atomic): Add TEST argument.
3880 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
3881 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
3882 save_expr or create_tmp_var* if TEST is true.
3883 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
3884 Don't call add_stmt here.
3885 (struct c_omp_check_loop_iv_data): New type.
3886 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
3887 c_omp_check_loop_iv_exprs): New functions.
3888 (c_omp_split_clauses): Adjust for lastprivate being allowed on
3889 distribute.
3890 (c_omp_declare_simd_clauses_to_numbers): Change
3891 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
3892 (c_omp_declare_simd_clauses_to_decls): Similarly change those
3893 from numbers to PARM_DECLs.
3894
595278be
MM
38952015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
3896
3897 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
3898 flag_checking.
3899
3f8257db 39002015-11-03 Bernd Schmidt <bschmidt@redhat.com>
c85158de
MS
3901
3902 PR c++-common/67882
b3d5bc62
JJ
3903 * c-common.h (fold_offsetof_1): Add argument.
3904 * c-common.c (fold_offsetof_1): Diagnose more invalid
c85158de
MS
3905 offsetof expressions that reference elements past the end of
3906 an array.
3907
4bf9e5a8
TS
39082015-11-03 Thomas Schwinge <thomas@codesourcery.com>
3909 Chung-Lin Tang <cltang@codesourcery.com>
3910
3911 * c-pragma.c (oacc_pragmas): Add "atomic".
3912 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
3913
3b1661a9
ES
39142015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3915
3916 * c-common.c (handle_target_clones_attribute): New.
3917 (c_common_attribute_table): Add handle_target_clones_attribute.
3918 (handle_always_inline_attribute): Add check on target_clones attribute.
3919 (handle_target_attribute): Ditto.
3920
2adfab87
AM
39212015-10-29 Andrew MacLeod <amacleod@redhat.com>
3922
3923 * array-notation-common.c: Reorder #include's and remove duplicates.
3924 * c-ada-spec.c: Likewise.
3925 * c-cilkplus.c: Likewise.
3926 * c-common.c: Likewise.
3927 * c-cppbuiltin.c: Likewise.
3928 * c-dump.c: Likewise.
3929 * c-format.c: Likewise.
3930 * c-gimplify.c: Likewise.
3931 * c-indentation.c: Likewise.
3932 * c-lex.c: Likewise.
3933 * c-omp.c: Likewise.
3934 * c-opts.c: Likewise.
3935 * c-pch.c: Likewise.
3936 * c-ppoutput.c: Likewise.
3937 * c-pragma.c: Likewise.
3938 * c-pretty-print.c: Likewise.
3939 * c-semantics.c: Likewise.
3940 * c-ubsan.c: Likewise.
3941 * cilk.c: Likewise.
3942 * stub-objc.c: Likewise.
3943
d90ec4f2
JM
39442015-10-28 Jason Merrill <jason@redhat.com>
3945
3946 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
3947
88bae6f4
TS
39482015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3949 James Norris <jnorris@codesourcery.com>
3950 Cesar Philippidis <cesar@codesourcery.com>
3951
3952 PR c/64765
3953 PR c/64880
3954 * c-common.h (c_oacc_split_loop_clauses): Declare function.
3955 * c-omp.c (c_oacc_split_loop_clauses): New function.
3956
b1726d6c
MS
39572015-10-21 Martin Sebor <msebor@redhat.com>
3958
3959 PR driver/68043
3960 * c.opt: End each sentence that describes an option with a period.
3961
fa60eeb9
MP
39622015-10-20 Marek Polacek <polacek@redhat.com>
3963
3964 * array-notation-common.c (is_cilkplus_vector_p): Define.
3965 * c-common.h (is_cilkplus_vector_p): Declare.
3966
95979049
MP
39672015-10-20 Marek Polacek <polacek@redhat.com>
3968
3969 * c.opt (std=gnu++11): Do not describe as experimental.
3970 (std=gnu++14): Likewise.
3971
2a9fb712
JM
39722015-10-19 Jason Merrill <jason@redhat.com>
3973
3974 * c-cppbuiltin.c (c_cpp_builtins): Define
3975 __cpp_nontype_template_args.
3976
13b380a3
JM
39772015-10-19 Jason Merrill <jason@redhat.com>
3978
3979 * c-cppbuiltin.c (c_cpp_builtins): Define
3980 __cpp_enumerator_attributes, __cpp_fold_expressions,
3981 __cpp_unicode_characters.
3982
d9a6bd32
JJ
39832015-10-13 Jakub Jelinek <jakub@redhat.com>
3984 Aldy Hernandez <aldyh@redhat.com>
3985
3986 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
3987 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
3988 (c_define_builtins): Likewise.
3989 * c-common.h (enum c_omp_clause_split): Add
3990 C_OMP_CLAUSE_SPLIT_TASKLOOP.
3991 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
3992 (c_finish_omp_for): Add ORIG_DECLV argument.
3993 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
3994 201511 instead of 201307.
3995 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
3996 OMP_CRITICAL_CLAUSES to it.
3997 (c_finish_omp_ordered): Add CLAUSES argument, set
3998 OMP_ORDERED_CLAUSES to it.
3999 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
4000 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
4001 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
4002 constructs and new OpenMP 4.5 clauses. Clear
4003 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
4004 verification code.
4005 * c-pragma.c (omp_pragmas_simd): Add taskloop.
4006 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
4007 (enum pragma_omp_clause): Add
4008 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
4009 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
4010
624d31fe
RS
40112015-10-05 Richard Sandiford <richard.sandiford@arm.com>
4012
4013 * c-lex.c (interpret_float): Use real_equal instead of
4014 REAL_VALUES_EQUAL.
4015
b8fd7909
JM
40162015-10-04 Jason Merrill <jason@redhat.com>
4017
4018 Implement N4514, C++ Extensions for Transactional Memory.
4019 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
4020 (c_common_attribute_table): Add transaction_safe_dynamic.
4021 transaction_safe now affects type identity.
4022 (handle_tm_attribute): Handle transaction_safe_dynamic.
4023 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
4024 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
4025 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
4026 (D_TRANSMEM): New.
4027 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
4028 * c-pretty-print.c (pp_c_attributes_display): Don't print
4029 transaction_safe in C++.
4030
12651878
MP
40312015-10-02 Marek Polacek <polacek@redhat.com>
4032
4033 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
4034
3e3b8d63
MP
40352015-10-02 Marek Polacek <polacek@redhat.com>
4036
4037 PR c/64249
4038 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
4039 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
4040 * c.opt (Wduplicated-cond): New option.
4041
0d1a8f75
JM
40422015-10-01 Joseph Myers <joseph@codesourcery.com>
4043
4044 * c.opt (std=c11): Do not describe as experimental.
4045 (std=gnu11): Likewise.
4046 (std=iso9899:2011): Likewise.
4047
3e32ee19
NS
40482015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4049
4050 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
4051 (DEF_FUNCTION_TYPE_VAR_11): Delete.
4052
974348ee
MP
40532015-09-25 Marek Polacek <polacek@redhat.com>
4054
4055 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
4056 (ubsan_instrument_shift): Likewise.
4057
15dbc1a6
MP
40582015-09-25 Marek Polacek <polacek@redhat.com>
4059
4060 PR sanitizer/64906
4061 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
4062
6b95d7cc
PP
40632015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
4064
4065 * c-indentation.c (should_warn_for_misleading_indentation):
4066 Compare next_stmt_vis_column with guard_line_first_nws instead
4067 of with guard_line_vis_column.
4068
c1822f9c
MLI
40692015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
4070
4071 PR c/49654
4072 PR c/49655
4073 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
4074 options and options not valid for the current language.
4075
d5398058
PP
40762015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
4077
4078 * c-indentation.c (should_warn_for_misleading_indentation):
4079 Float out and consolidate the calls to get_visual_column that
4080 are passed guard_exploc as an argument. Compare
4081 next_stmt_vis_column with guard_line_first_nws instead of with
4082 body_line_first_nws.
4083
6b333269
NS
40842015-09-22 Nathan Sidwell <nathan@codesourcery.com>
4085
4086 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
4087 Wnamespaces): New C++ warnings.
4088
a75f1574
JM
40892015-09-22 Jason Merrill <jason@redhat.com>
4090
4091 * c-common.h (abi_compat_version_crosses): New.
4092 (warn_abi_version): Declare.
4093 * c-common.c: Define it.
4094 * c-opts.c (c_common_post_options): Handle it.
4095 flag_abi_compat_version defaults to 8.
4096
bdaaa8b7
VV
40972015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
4098
4099 Complete the implementation of N4230, Nested namespace definition.
4100 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
4101 __cpp_nested_namespace_definitions.
4102
eaa797e8
MLI
41032015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
4104
4105 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
4106
c4914de6
MLI
41072015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
4108
4109 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
4110 when warning.
4111 * c-pragma.h (pragma_lex): Add optional loc argument.
4112
fcb87c50
MM
41132015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
4114
4115 * c-format.c (check_format_arg): Adjust to use common block size in all
4116 object pools.
4117
31bdd08a
DM
41182015-09-15 David Malcolm <dmalcolm@redhat.com>
4119
4120 * c-format.c (location_from_offset): Update for change in
4121 signature of location_get_source_line.
4122 * c-indentation.c (get_visual_column): Likewise.
4123 (line_contains_hash_if): Likewise.
4124
aa9f4b4c
MP
41252015-09-14 Marek Polacek <polacek@redhat.com>
4126
4127 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
4128 setting various warnings.
4129
aa256c4a
MP
41302015-09-14 Marek Polacek <polacek@redhat.com>
4131
4132 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
4133 a negative value.
4134
0f876f22
MW
41352015-09-11 Mark Wielaard <mjw@redhat.com>
4136
4137 PR c/28901
4138 * c.opt (Wunused-variable): Option from common.opt.
4139 (Wunused-const-variable): New option.
4140
273aa49e
PC
41412015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4142
4143 PR c++/53184
4144 * c.opt ([Wsubobject-linkage]): Add.
4145
1807ffc1
MS
41462015-09-03 Martin Sebor <msebor@redhat.com>
4147
4148 PR c/66516
4149 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
4150 functions.
4151 * c-common.c (reject_gcc_builtin): Define.
4152
38942840
BI
41532015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
4154
4155 PR middle-end/60586
4156 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
4157 prototype.
4158 * c-gimplify.c (c_gimplify_expr): Added a call to the function
4159 cilk_gimplify_call_params_in_spawned_fn.
4160 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
4161 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
4162 unwrapping.
4163
c316b5e4
MP
41642015-08-25 Marek Polacek <polacek@redhat.com>
4165
4166 PR middle-end/67330
4167 * c-common.c (handle_weak_attribute): Don't check whether the
4168 visibility can be changed here.
4169
584a7c46
MLI
41702015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4171
4172 * c-lex.c (c_lex_with_flags): Use explicit locations.
4173
a79683d5
TS
41742015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
4175
4176 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
4177 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
4178
61717a45
FXC
41792015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4180
4181 PR middle-end/36757
4182 * c-common.c (check_builtin_function_arguments): Add check
4183 for BUILT_IN_SIGNBIT argument.
4184
329524f5
PC
41852015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
4186
4187 PR c++/67160
4188 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
4189 in c++1z mode.
4190
4ee55665
MP
41912015-08-17 Marek Polacek <polacek@redhat.com>
4192
4193 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
4194 with whitespaces before qualifier names.
4195
b893e375
MP
41962015-08-12 Marek Polacek <polacek@redhat.com>
4197
4198 PR c++/55095
4199 * c-common.c (maybe_warn_shift_overflow): Properly handle
4200 left-shifting 1 into the sign bit.
4201
c2d89095
MLI
42022015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4203
4204 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
4205
971e17ff
AS
42062015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
4207 Braden Obrzut <admin@maniacsvault.net>
4208 Jason Merrill <jason@redhat.com>
4209
4210 Add C++ Concepts TS support.
4211 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
4212 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
4213 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
4214 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
4215 * c-opts.c (set_std_cxx1z): Set flag_concepts.
4216 * c.opt (fconcepts): New.
4217
b3d5bc62
JJ
42182015-08-02 Martin Sebor <msebor@redhat.com>
4219
4220 * c.opt (-Wframe-address): New warning option.
4221
8ebca419
PP
42222015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
4223
4224 * c-indentation.c (should_warn_for_misleading_indentation):
4225 Improve heuristics.
4226
1a1e101f
PP
42272015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
4228
4229 * c-indentation.c (get_visual_column): Add parameter first_nws,
4230 use it. Update comment documenting the function.
4231 (is_first_nonwhitespace_on_line): Remove.
4232 (should_warn_for_misleading_indentation): Replace usage of
4233 of is_first_nonwhitespace_on_line with get_visual_column.
4234
992118a1
PP
42352015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
4236
4237 * c-indentation.h (struct token_indent_info): Define.
4238 (get_token_indent_info): Define.
4239 (warn_for_misleading_information): Declare.
4240 * c-common.h (warn_for_misleading_information): Remove.
4241 * c-identation.c (warn_for_misleading_indentation):
4242 Change declaration to take three token_indent_infos. Adjust
4243 accordingly.
4244 * c-identation.c (should_warn_for_misleading_indentation):
4245 Likewise. Bail out early if the body is a compound statement.
4246 (guard_tinfo_to_string): Define.
4247
e8fa3817
JM
42482015-07-30 Jason Merrill <jason@redhat.com>
4249
4250 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
4251 '*' for reference decay.
4252
173864e8
MP
42532015-07-30 Marek Polacek <polacek@redhat.com>
4254
4255 * c-common.c (warn_tautological_cmp): Bail for float types.
4256
f2afe6dd
MP
42572015-07-27 Marek Polacek <polacek@redhat.com>
4258
4259 PR bootstrap/67030
4260 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
4261
05b28fd6
MP
42622015-07-27 Marek Polacek <polacek@redhat.com>
4263
4264 PR c++/66555
4265 PR c/54979
4266 * c-common.c (find_array_ref_with_const_idx_r): New function.
4267 (warn_tautological_cmp): New function.
4268 * c-common.h (warn_tautological_cmp): Declare.
4269 * c.opt (Wtautological-compare): New option.
4270
5a5062b8
MP
42712015-07-23 Marek Polacek <polacek@redhat.com>
4272
4273 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
4274 (ubsan_instrument_shift): Likewise.
4275
dc891fe7
MP
42762015-07-23 Marek Polacek <polacek@redhat.com>
4277
4278 PR sanitizer/66908
4279 * c-ubsan.c: Include gimplify.h.
4280 (ubsan_instrument_division): Unshare OP0 and OP1.
4281 (ubsan_instrument_shift): Likewise.
4282
451b5e48
MP
42832015-07-20 Marek Polacek <polacek@redhat.com>
4284 Richard Sandiford <richard.sandiford@arm.com>
4285
4286 PR c++/55095
4287 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
4288 Use EXPR_LOC_OR_LOC.
4289 (maybe_warn_shift_overflow): New function.
4290 * c-common.h (maybe_warn_shift_overflow): Declare.
4291 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
4292 * c.opt (Wshift-overflow): New option.
4293
fb0b2914
ML
42942015-07-16 Martin Liska <mliska@suse.cz>
4295
4296 * c-format.c (static void check_format_info_main): Use
4297 object_allocator instead of pool_allocator.
4298 (check_format_arg): Likewise.
4299 (check_format_info_main): Likewise.
4300
903f5c23
AM
43012015-07-15 Andrew MacLeod <amacleod@redhat.com>
4302
4303 * c-opts.c: Remove multiline #include comment.
4304
026c3cfd
AH
43052015-07-12 Aldy Hernandez <aldyh@redhat.com>
4306
4307 * c-common.c: Fix double word typos.
4308
bb49ee66
EB
43092015-07-10 Eric Botcazou <ebotcazou@adacore.com>
4310
4311 * c-ada-spec.h (cpp_operation): Revert latest change.
4312 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
4313 constructors and destructors.
4314
1916bcb5
AM
43152015-07-09 Andrew MacLeod <amacleod@redhat.com>
4316
4317 * c-common.h: Adjust includes for flags.h changes.
4318 * stub-objc.c: Likewise.
026c3cfd 4319
a9dcd529
EB
43202015-07-08 Eric Botcazou <ebotcazou@adacore.com>
4321
4322 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
4323 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
4324
b03b462f
JJ
43252015-07-08 Jakub Jelinek <jakub@redhat.com>
4326
4327 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
4328 are to be removed, return NULL rather than original clauses list.
4329
c7131fb2
AM
43302015-07-07 Andrew MacLeod <amacleod@redhat.com>
4331
4332 * array-notation-common.c: Adjust includes.
4333 * c-ada-spec.c: Likewise.
4334 * c-cilkplus.c: Likewise.
4335 * c-common.h: Likewise.
4336 * c-cppbuiltin.c: Likewise.
4337 * c-dump.c: Likewise.
4338 * c-format.c: Likewise.
4339 * c-gimplify.c: Likewise.
4340 * c-indentation.c: Likewise.
4341 * c-lex.c: Likewise.
4342 * c-omp.c: Likewise.
4343 * c-opts.c: Likewise.
4344 * c-pch.c: Likewise.
4345 * c-ppoutput.c: Likewise.
4346 * c-pragma.c: Likewise.
4347 * c-pretty-print.c: Likewise.
4348 * c-semantics.c: Likewise.
4349 * c-ubsan.c: Likewise.
4350 * cilk.c: Likewise.
4351 * stub-objc.c: Likewise.
4352
2a7fb83f
EB
43532015-07-07 Eric Botcazou <ebotcazou@adacore.com>
4354
4355 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
4356 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
4357
a03c9bf1
JM
43582015-07-01 Jason Merrill <jason@redhat.com>
4359
36a85135
JM
4360 * c-common.h (D_CXX11): Rename from D_CXX0X.
4361 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
4362 * c-common.c: Adjust.
4363
e7fa68d5
JM
4364 * c-opts.c (c_common_post_options): Default to C++14.
4365
a03c9bf1
JM
4366 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
4367
fe95b036
ESR
43682015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
4369
4370 Implement N4197 - Adding u8 character literals
b3d5bc62 4371 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
a64be36b 4372 CPP_CHAR.
b3d5bc62 4373 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
a64be36b 4374 CPP_UTF8CHAR_USERDEF tokens.
b3d5bc62 4375 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
a64be36b
EB
4376 and CPP_UTF8CHAR tokens.
4377 (lex_charconst): Treat CPP_UTF8CHAR token.
fe95b036 4378
da2e71c9
MLI
43792015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4380
4381 PR fortran/66605
4382 * c-common.c (do_warn_unused_parameter): Move here.
4383 * c-common.h (do_warn_unused_parameter): Declare.
4384
b155cfd9
MP
43852015-06-29 Marek Polacek <polacek@redhat.com>
4386
4387 PR c/66322
4388 * c-common.c (check_case_bounds): Add bool * parameter. Set
4389 OUTSIDE_RANGE_P.
4390 (c_add_case_label): Add bool * parameter. Pass it down to
4391 check_case_bounds.
4392 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
4393 warning here.
4394 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
4395 declarations.
4396
31521951
MP
43972015-06-27 Marek Polacek <polacek@redhat.com>
4398
4399 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
4400 or VECTOR_INTEGER_TYPE_P throughout.
4401 * c-gimplify.c: Likewise.
4402
22d03525
MP
44032015-06-26 Marek Polacek <polacek@redhat.com>
4404
4405 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
4406 * c-common.c (c_fully_fold_internal): Likewise.
4407 (c_alignof_expr): Likewise.
4408 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
4409 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
b1726d6c 4410 * cilk.c (create_parm_list): Likewise.
22d03525 4411
af05e6e5
MP
44122015-06-26 Marek Polacek <polacek@redhat.com>
4413
4414 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
4415
f0889939
AM
44162015-06-25 Andrew MacLeod <amacleod@redhat.com>
4417
4418 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
4419 * c-gimplify.c: Likewise.
4420 * c-pragma.c: Likewise.
4421 * c-ubsan.c: Likewise.
4422 * cilk.c: Likewise.
4423
ca752f39
RS
44242015-06-25 Richard Sandiford <richard.sandiford@arm.com>
4425
4426 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
4427 ggc_hasher.
4428
16a16ec7
AM
44292015-06-25 Andrew MacLeod <amacleod@redhat.com>
4430
4431 * cilk.c: Move calls.h after tm.h in the include chain.
4432
0ae9bd27
MP
44332015-06-25 Marek Polacek <polacek@redhat.com>
4434
4435 * array-notation-common.c: Use VAR_P throughout.
4436 * c-ada-spec.c: Likewise.
4437 * c-common.c: Likewise.
4438 * c-format.c: Likewise.
4439 * c-gimplify.c: Likewise.
4440 * c-omp.c: Likewise.
4441 * c-pragma.c: Likewise.
4442 * c-pretty-print.c: Likewise.
4443 * cilk.c: Likewise.
4444
62f9079a
MP
44452015-06-25 Marek Polacek <polacek@redhat.com>
4446
4447 * cilk.c (extract_free_variables): Use is_global_var.
4448
0fa16060
RS
44492015-06-23 Richard Sandiford <richard.sandiford@arm.com>
4450
4451 * c-common.c: Don't include target-def.h.
4452
a68ae2e1
MP
44532015-06-23 Marek Polacek <polacek@redhat.com>
4454
4455 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
4456 when comparing INTEGER_CSTs.
4457
c6a2f2d9
PMR
44582015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
4459
4460 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
4461 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
4462 (dump_ada_template): Skip partially specialized types.
4463
6b4db501
MM
44642015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
4465
4466 * c-common.c (scalar_to_vector): Use std::swap instead of manually
4467 swapping.
4468
abb226c9
AM
44692015-06-17 Andrew MacLeod <amacleod@redhat.com>
4470
4471 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
4472 * c-ada-spec.c: Likewise.
4473 * c-cilkplus.c: Likewise.
4474 * c-common.c: Likewise.
4475 * c-common.h: Likewise.
4476 * c-cppbuiltin.c: Likewise.
4477 * c-dump.c: Likewise.
4478 * c-format.c: Likewise.
4479 * c-gimplify.c: Likewise.
4480 * c-indentation.c: Likewise.
4481 * c-lex.c: Likewise.
4482 * c-omp.c: Likewise.
4483 * c-opts.c: Likewise.
4484 * c-pch.c: Likewise.
4485 * c-ppoutput.c: Likewise.
4486 * c-pragma.c: Likewise.
4487 * c-pretty-print.c: Likewise.
4488 * c-semantics.c: Likewise.
4489 * c-ubsan.c: Likewise.
4490 * cilk.c: Likewise.
4491 * stub-objc.c: Likewise.
4492
076fecad
PP
44932015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
4494
4495 PR c++/65168
4496 * c-common.c (c_common_truthvalue_conversion): Warn when
4497 converting an address of a reference to a truth value.
4498
13fdf2e2
AM
44992015-06-08 Andrew MacLeod <amacleod@redhat.com>
4500
4501 * array-notation-common.c : Adjust include files.
4502 * c-ada-spec.c : Likewise.
4503 * c-cilkplus.c : Likewise.
4504 * c-common.c : Likewise.
4505 * c-common.h : Likewise.
4506 * c-cppbuiltin.c : Likewise.
4507 * c-dump.c : Likewise.
4508 * c-format.c : Likewise.
4509 * c-gimplify.c : Likewise.
4510 * c-indentation.c : Likewise.
4511 * c-lex.c : Likewise.
4512 * c-omp.c : Likewise.
4513 * c-opts.c : Likewise.
4514 * c-pch.c : Likewise.
4515 * c-ppoutput.c : Likewise.
4516 * c-pragma.c : Likewise.
4517 * c-pretty-print.c : Likewise.
4518 * c-semantics.c : Likewise.
4519 * c-ubsan.c : Likewise.
4520 * cilk.c : Likewise.
4521 * stub-objc.c : Likewise.
4522
a1661b90
MP
45232015-06-08 Marek Polacek <polacek@redhat.com>
4524
4525 PR c/66415
4526 * c-format.c (location_from_offset): Return LOC if LINE is null.
4527
d7438551
AH
45282015-06-05 Aldy Hernandez <aldyh@redhat.com>
4529
4530 * c-common.h (c_parse_final_cleanups): New prototype.
4531 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
4532
b3d5bc62
JJ
45332015-06-04 Sriraman Tallam <tmsriram@google.com>
4534
4535 * c-common.c (noplt): New attribute.
4536 (handle_noplt_attribute): New handler.
4537
ecb9f223
AM
45382015-06-04 Andrew MacLeod <amacleod@redhat.com>
4539
4540 * array-notation-common.c: Adjust includes for restructured coretypes.h.
4541 * c-ada-spec.c: Likewise.
4542 * c-cilkplus.c: Likewise.
4543 * c-common.c: Likewise.
4544 * c-common.h: Likewise.
4545 * c-cppbuiltin.c: Likewise.
4546 * c-dump.c: Likewise.
4547 * c-format.c: Likewise.
4548 * c-gimplify.c: Likewise.
4549 * c-indentation.c: Likewise.
4550 * c-lex.c: Likewise.
4551 * c-omp.c: Likewise.
4552 * c-opts.c: Likewise.
4553 * c-pch.c: Likewise.
4554 * c-ppoutput.c: Likewise.
4555 * c-pragma.c: Likewise.
4556 * c-pretty-print.c: Likewise.
4557 * c-semantics.c: Likewise.
4558 * c-ubsan.c: Likewise.
4559 * cilk.c: Likewise.
4560 * stub-objc.c: Likewise.
4561
6ac48155
DM
45622015-06-02 David Malcolm <dmalcolm@redhat.com>
4563
4564 PR c/66220:
4565 * c-indentation.c (should_warn_for_misleading_indentation): Use
4566 expand_location rather than expand_location_to_spelling_point.
4567 Don't warn if the guarding statement is more indented than the
4568 next/body stmts.
4569
773ce42e
DM
45702015-06-02 David Malcolm <dmalcolm@redhat.com>
4571
4572 * c-indentation.c (warn_for_misleading_indentation): Bail out
4573 immediately if -Wmisleading-indentation isn't enabled.
4574
4fef8379
ML
45752015-06-01 Martin Liska <mliska@suse.cz>
4576
4577 * c-format.c (check_format_arg):Use new type-based pool allocator.
4578 (check_format_info_main) Likewise.
4579
1edfb384
EB
45802015-05-31 Eric Botcazou <ebotcazou@adacore.com>
4581
4582 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
4583 (has_nontrivial_methods): Likewise.
4584
9677ef52
MP
45852015-05-25 Marek Polacek <polacek@redhat.com>
4586
4587 * c-ubsan.c (ubsan_instrument_shift): Use type0.
4588
fd5c817a
MP
45892015-05-22 Marek Polacek <polacek@redhat.com>
4590
4591 PR c/47043
4592 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
4593
a2f45fe6 45942015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
581edfa3
TS
4595
4596 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
4597 STACK_GROWS_DOWNWARD.
4598
a2f45fe6 45992015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
62f9f30b
TS
4600
4601 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
4602 STACK_GROWS_DOWNWARD rather than if it is defined.
4603
0fee2ac2 46042015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
b1726d6c 4605
0fee2ac2
MLI
4606 PR c/52952
4607 * c-format.c (location_column_from_byte_offset): New.
4608 (location_from_offset): New.
4609 (struct format_wanted_type): Add offset_loc field.
4610 (check_format_info): Move handling of location for extra arguments
4611 closer to the point of warning.
4612 (check_format_info_main): Pass the result of location_from_offset
4613 to warning_at.
4614 (format_type_warning): Pass the result of location_from_offset
4615 to warning_at.
4616
cf4ef6f7
MP
46172015-05-20 Marek Polacek <polacek@redhat.com>
4618
4619 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
4620
3a65ee74
MP
46212015-05-20 Marek Polacek <polacek@redhat.com>
4622
4623 * c-ada-spec.c (dump_sloc): Use DECL_P.
4624
21b634ae
MP
46252015-05-20 Marek Polacek <polacek@redhat.com>
4626
4627 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
4628 * c-common.c: Likewise.
4629
0e50b624
DM
46302015-05-19 David Malcolm <dmalcolm@redhat.com>
4631
4632 * c-common.h (fe_file_change): Strengthen param from
4633 const line_map * to const line_map_ordinary *.
4634 (pp_file_change): Likewise.
4635 * c-lex.c (fe_file_change): Likewise.
4636 (cb_define): Use linemap_check_ordinary when invoking
4637 SOURCE_LINE.
4638 (cb_undef): Likewise.
4639 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
4640 invoking cb_file_change.
4641 (c_finish_options): Likewise.
4642 (push_command_line_include): Likewise.
4643 (cb_file_change): Strengthen param "new_map" from
4644 const line_map * to const line_map_ordinary *.
4645 * c-ppoutput.c (cb_define): Likewise for local "map".
4646 (pp_file_change): Likewise for param "map" and local "from".
4647
fab27f52
MM
46482015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
4649
4650 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
4651
2fe1d762
TV
46522015-05-18 Tom de Vries <tom@codesourcery.com>
4653
4654 * c-common.c (build_va_arg_1): New function.
4655 (build_va_arg): Add address operator to va_list operand if necessary.
4656
7a37fa90
MM
46572015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
4658
4659 PR c/48956
4660 * c-common.c (int_safely_convertible_to_real_p): Define.
4661 (unsafe_conversion_p): Check conversions involving complex types.
4662 (conversion_warning): Add new warning message for conversions which
4663 discard imaginary component.
4664 * c-common.h: (enum conversion_safety): Add new enumerator for such
4665 conversions.
4666
3aa3c9fc
MP
46672015-05-14 Marek Polacek <polacek@redhat.com>
4668
4669 PR c/66066
4670 PR c/66127
4671 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
4672 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
4673 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
4674 use it. If FOR_INT_CONST, require that all evaluated operands be
4675 INTEGER_CSTs.
4676
c3388e62
DM
46772015-05-12 David Malcolm <dmalcolm@redhat.com>
4678
4679 * c-common.h (warn_for_misleading_indentation): New prototype.
4680 * c-indentation.c: New file.
4681 * c.opt (Wmisleading-indentation): New option.
4682
c7b38fd5
TV
46832015-05-12 Tom de Vries <tom@codesourcery.com>
4684
4685 PR tree-optimization/66010
4686 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
4687
381bf11e
JM
46882015-05-09 Jason Merrill <jason@redhat.com>
4689
edff0c06
JM
4690 * c-opts.c (c_common_post_options): Also clear
4691 cpp_opts->cpp_warn_cxx11_compat.
4692
129211bc
JM
4693 * c-common.h (enum cxx_dialect): Add cxx_unset.
4694 * c-common.c (cxx_dialect): Initialize to cxx_unset.
4695 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
4696
381bf11e
JM
4697 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
4698 (std=gnu++0x): Mark as Undocumented.
4699 (std=gnu++1y): Add deprecated message.
4700
fe191308
JM
47012015-05-08 Jason Merrill <jason@redhat.com>
4702
765189ff
JM
4703 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
4704 * c-opts.c: Adjust.
4705
fe191308
JM
4706 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
4707
755e528f
MP
47082015-05-08 Marek Polacek <polacek@redhat.com>
4709
4710 PR c/64918
4711 * c.opt (Woverride-init-side-effects): New option.
4712
0173bd2a
MP
47132015-05-07 Marek Polacek <polacek@redhat.com>
4714
4715 PR c/65179
4716 * c-common.c (c_fully_fold_internal): Warn when left shifting a
4717 negative value.
4718 * c.opt (Wshift-negative-value): New option.
4719 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
4720 when -Wextra and C99/C++11 mode.
4721
e0f0d3b9
MP
47222015-05-07 Marek Polacek <polacek@redhat.com>
4723 Martin Uecker <uecker@eecs.berkeley.edu>
4724
4725 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
4726 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
4727
8243e2a9
JM
47282015-05-05 Jason Merrill <jason@redhat.com>
4729
4730 * c.opt (Wterminate): New.
4731
577cd070
MP
47322015-04-30 Marek Polacek <polacek@redhat.com>
4733
4734 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
4735 require that the non-constant be of a boolean type.
4736
0373796b
JT
47372015-04-29 Josh Triplett <josh@joshtriplett.org>
4738
e0f0d3b9
MP
4739 * c-common.c (handle_section_attribute): Refactor to reduce
4740 nesting and distinguish between error cases.
0373796b 4741
716c0ba6
MP
47422015-04-29 Marek Polacek <polacek@redhat.com>
4743
4744 PR c/64610
4745 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
4746 with 0/1.
4747
8848828b
JJ
47482015-04-29 Jakub Jelinek <jakub@redhat.com>
4749
4750 * c-common.h (omp_clause_mask): Unconditionally define as a class.
4751 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
4752 HOST_BITS_PER_WIDE_INT.
4753
ecd0e562
TV
47542015-04-28 Tom de Vries <tom@codesourcery.com>
4755
4756 PR tree-optimization/65887
4757 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
4758
2a877204 47592015-04-28 Eric Botcazou <ebotcazou@adacore.com>
e0f0d3b9 4760 Pierre-Marie de Rodat <derodat@adacore.com>
2a877204
EB
4761
4762 * c-ada-spec.c (in_function): Delete.
4763 (dump_generic_ada_node): Do not change in_function and remove the
4764 redundant code dealing with it.
4765 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
4766 (print_ada_methods): Output the static member functions in a nested
4767 package after the regular methods as well as associated renamings.
4768
4853031e
MP
47692015-04-24 Marek Polacek <polacek@redhat.com>
4770
4771 PR c/65830
4772 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
4773 and OPT_Wshift_count_overflow.
4774
8c2b7f79
MP
4775 PR c/63357
4776 * c-common.c (warn_logical_operator): Warn if the operands have the
4777 same expressions.
4778
b8787813
MP
47792015-04-24 Marek Polacek <polacek@redhat.com>
4780
4781 PR c/61534
4782 * c-common.c (warn_logical_operator): Bail if either operand comes
4783 from a macro expansion.
4784
8fba1830
BRF
47852015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4786
4787 PR target/55143
4788 * c-common.c (c_default_pointer_mode): Add definition.
4789 * c-common.h (c_default_pointer_mode): Add declaration.
4790
17958621
JJ
47912015-03-11 Jakub Jelinek <jakub@redhat.com>
4792
4793 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
4794 on record_builtin_type argument.
4795
7ccb1a11
JJ
47962015-03-10 Jakub Jelinek <jakub@redhat.com>
4797
4798 PR c/65120
4799 * c-common.c (warn_logical_not_parentheses): Don't warn for
4800 !x == 0 or !x != 0.
4801
04fd785e
MP
48022015-03-07 Marek Polacek <polacek@redhat.com>
4803
4804 PR sanitizer/65280
4805 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
4806 before trying to figure out whether we have a flexible array member.
4807
a4e26206 48082015-03-06 Eric Botcazou <ebotcazou@adacore.com>
8e745a17 4809 Jonathan Wakely <jwakely.gcc@gmail.com>
a4e26206
EB
4810
4811 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
4812
0d2489f4
EB
48132015-03-05 Eric Botcazou <ebotcazou@adacore.com>
4814
4815 PR ada/65319
4816 * c-ada-spec.c (print_destructor): Remove obsolete code.
4817
83ed54d7
EB
48182015-03-01 Eric Botcazou <ebotcazou@adacore.com>
4819
4820 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
4821 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
4822 DECL_TEMPLATE_RESULT emulations.
4823 (dump_ada_template)): Add guard for TYPE_METHODS.
4824
7631f0e2
MP
48252015-02-27 Marek Polacek <polacek@redhat.com>
4826
4827 PR c/65040
4828 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
4829
d1783ae5
KT
48302015-02-27 Kai Tietz <ktietz@redhat.com>
4831
4832 PR c/35330
4833 * c-pragma.c (handle_pragma_weak): Do not try to create
4834 weak/alias of declarations not being function, or variable
4835 declarations.
4836
56a9f6bc
TS
48372015-02-24 Thomas Schwinge <thomas@codesourcery.com>
4838
4839 PR libgomp/64625
4840 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4841 Remove macros.
4842 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
4843
3d5cb23d
MP
48442015-02-16 Marek Polacek <polacek@redhat.com>
4845
4846 PR c/65066
4847 * c-format.c (check_format_types): Handle null param.
4848
fa008882
MP
48492015-02-13 Marek Polacek <polacek@redhat.com>
4850
4851 PR c/65040
4852 * c-format.c (check_format_types): Don't warn about different
4853 signedness if the original value is in the range of WANTED_TYPE.
4854
785f21af
JM
48552015-02-12 Jason Merrill <jason@redhat.com>
4856
4857 PR c++/64956
4858 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
4859 to the current highest version.
4860 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
4861
4886ec8e
JJ
48622015-02-04 Jakub Jelinek <jakub@redhat.com>
4863
4864 PR c/64824
4865 PR c/64868
4866 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
4867 instead of RDIV_EXPR. Use build_binary_op instead of
4868 build2_loc.
4869
40fecdd6
JM
48702015-01-30 Joseph Myers <joseph@codesourcery.com>
4871
4872 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
4873 to pass input_location as first argument.
4874
a0c88d06
TV
48752015-01-23 Tom de Vries <tom@codesourcery.com>
4876
4877 PR libgomp/64672
4878 * c.opt (fopenacc): Mark as LTO option.
4879
1506ae0e
TV
48802015-01-23 Tom de Vries <tom@codesourcery.com>
4881
4882 PR libgomp/64707
4883 * c.opt (fopenmp): Mark as LTO option.
4884
31be63ab
JJ
48852015-01-21 Jakub Jelinek <jakub@redhat.com>
4886
4887 PR c/63307
b1726d6c 4888 * cilk.c (fill_decls_vec): Only put decls into vector v.
31be63ab
JJ
4889 (compare_decls): Fix up formatting.
4890
48912015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
4892
4893 PR c/63307
4894 * cilk.c: Include vec.h.
4895 (struct cilk_decls): New structure.
4896 (wrapper_parm_cb): Split this function to...
4897 (fill_decls_vec): ...this...
4898 (create_parm_list): ...and this.
4899 (compare_decls): New function.
4900 (for_local_cb): Remove.
4901 (wrapper_local_cb): Ditto.
4902 (build_wrapper_type): For now first traverse and fill vector of
4903 declarations then sort it and then deal with sorted vector.
4904 (cilk_outline): Ditto.
4905 (declare_one_free_variable): Ditto.
4906
6875457f
JM
49072015-01-21 Jason Merrill <jason@redhat.com>
4908
4909 PR c++/64629
4910 * c-format.c (check_format_arg): Call decl_constant_value.
4911
185c9e56
ML
49122015-01-19 Martin Liska <mliska@suse.cz>
4913
4914 * c-common.c (handle_noicf_attribute): New function.
4915
41dbbb37
TS
49162015-01-15 Thomas Schwinge <thomas@codesourcery.com>
4917 Bernd Schmidt <bernds@codesourcery.com>
4918 James Norris <jnorris@codesourcery.com>
4919 Cesar Philippidis <cesar@codesourcery.com>
4920 Ilmir Usmanov <i.usmanov@samsung.com>
4921 Jakub Jelinek <jakub@redhat.com>
4922
4923 * c.opt (fopenacc): New option.
4924 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
4925 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
4926 New macros.
4927 * c-common.h (c_finish_oacc_wait): New prototype.
4928 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
4929 (c_finish_oacc_wait): New function.
4930 * c-pragma.c (oacc_pragmas): New variable.
4931 (c_pp_lookup_pragma, init_pragma): Handle it.
4932 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
4933 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
4934 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
4935 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
4936 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
4937 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
4938 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
4939 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
4940 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
4941 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
4942 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
4943 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
4944 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
4945 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
4946 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
4947 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
4948 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
4949 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
4950 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
4951 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
4952 PRAGMA_OACC_CLAUSE_WORKER.
4953
3f8257db 49542015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
5434dc07
MD
4955
4956 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
4957 for the new option fstack-protector_explicit.
4958 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
4959 (handle_stack_protect_attribute): New function.
4960
3f8257db 49612015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
de1b5c17
MU
4962
4963 * c.opt: New option -Warray-bounds=.
4964
adfac8df
JJ
49652015-01-09 Michael Collison <michael.collison@linaro.org>
4966
4967 * array-notation-common.c: Include hash-set.h, machmode.h,
4968 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4969 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
4970 * c-ada-spec.c: Ditto.
4971 * c-cilkplus.c: Ditto.
4972 * c-common.c: Include input.h due to flattening of tree.h.
4973 Define macro GCC_C_COMMON_C.
4974 * c-common.h: Flatten tree.h header files into c-common.h.
4975 Remove include of tree-core.h.
4976 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4977 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4978 fold-const.h, wide-int.h, and inchash.h due to
4979 flattening of tree.h.
4980 * c-dump.c: Ditto.
4981 * c-format.c: Flatten tree.h header files into c-common.h.
4982 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
4983 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4984 fold-const.h, wide-int.h, and inchash.h due to
4985 flattening of tree.h.
4986 * c-dump.c: Include hash-set.h, machmode.h,
4987 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4988 fold-const.h, wide-int.h, and inchash.h due to
4989 flattening of tree.h.
4990 * c-format.c: Include hash-set.h, machmode.h,
4991 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4992 fold-const.h, wide-int.h, inchash.h and real.h due to
4993 flattening of tree.h.
4994 * c-gimplify.c: Include hash-set.h, machmode.h,
4995 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
4996 fold-const.h, wide-int.h, and inchash.h due to
4997 flattening of tree.h.
4998 * cilk.c: Ditto.
4999 * c-lex.c: Ditto.
5000 * c-omp.c: Ditto.
5001 * c-opts.c: Ditto.
5002 * c-pch.c: Ditto.
5003 * c-ppoutput.c: Ditto.
5004 * c-pragma.c: Ditto.
5005 * c-pretty-print.c: Ditto.
5006 * c-semantics.c: Ditto.
5007 * c-ubsan.c: Ditto.
5008 * stub-objc.c: Ditto.
5009
f5481fc4
JM
50102015-01-08 Jason Merrill <jason@redhat.com>
5011
5012 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
5013 do_ubsan_in_current_function.
5014 (ubsan_maybe_instrument_reference_or_call): Likewise.
5015 * c-ubsan.h: Declare it.
5016
de35aa66
MS
50172015-01-08 Mike Stump <mikestump@comcast.net>
5018
5019 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
5020
4a9a42ab
MP
50212015-01-07 Marek Polacek <polacek@redhat.com>
5022
5023 PR c/64440
5024 * c-common.c (c_fully_fold_internal): Warn for division and modulo
5025 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
5026
2f42e5de
TS
50272015-01-05 Trevor Saunders <tsaunders@mozilla.com>
5028
5029 PR c++/31397
5030 * c.opt (Wsuggest-override): New option.
5031
5624e564
JJ
50322015-01-05 Jakub Jelinek <jakub@redhat.com>
5033
5034 Update copyright years.
5035
5bd012f8
MP
50362015-01-05 Marek Polacek <polacek@redhat.com>
5037
5038 PR c/64423
5039 * c-common.c (warn_array_subscript_with_type_char): Add location_t
5040 parameter. Use it.
5041 * c-common.h (warn_array_subscript_with_type_char): Update
5042 declaration.
5043
a7fa8d18
ESR
50442014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
5045
5046 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
5047 Control macro with flag_sized_deallocation.
5048
3f8257db 50492014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
768952be
MU
5050
5051 * c.opt (Wdiscarded-array-qualifiers): New option.
5052
1f8d3e84
JJ
50532014-12-19 Jakub Jelinek <jakub@redhat.com>
5054
5055 PR preprocessor/63831
5056 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
5057 and __has_cpp_attribute here.
5058 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
5059 c_common_has_attribute.
5060 * c-common.h (c_common_has_attribute): New prototype.
5061 * c-lex.c (init_c_lex): Set cb->has_attribute to
5062 c_common_has_attribute instead of cb_has_attribute.
5063 (get_token_no_padding): New function.
5064 (cb_has_attribute): Renamed to ...
5065 (c_common_has_attribute): ... this. No longer static. Use
5066 get_token_no_padding, require ()s, don't build TREE_LIST
5067 unnecessarily, fix up formatting, adjust diagnostics, call
5068 init_attributes.
5069
20b06add
JM
50702014-12-15 Jason Merrill <jason@redhat.com>
5071
5072 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
5073 (-Wsized-deallocation): New.
5074 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
5075 to on in C++14 and up.
5076
94a073b2
JM
50772014-12-11 Jason Merrill <jason@redhat.com>
5078
acaa5911
JM
5079 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
5080
94a073b2
JM
5081 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
5082 we aren't complaining about VLAs.
5083
7fb66c15
MP
50842014-12-06 Marek Polacek <polacek@redhat.com>
5085
5086 PR tree-optimization/64183
5087 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
5088 shift-expression if it is integer_type_node. Use types_compatible_p.
5089
b731b390
JJ
50902014-11-29 Jakub Jelinek <jakub@redhat.com>
5091
5092 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
5093 last argument from create_tmp_var_raw and create_tmp_var calls.
5094 * cilk.c (gimplify_cilk_spawn): Likewise.
5095 * c-omp.c (c_finish_omp_atomic): Likewise.
5096
6a4da643
MP
50972014-11-28 Marek Polacek <polacek@redhat.com>
5098
5099 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
5100 instead of unsigned_type_node.
5101
541e35a6
MP
51022014-11-28 Marek Polacek <polacek@redhat.com>
5103
5104 PR c/63862
5105 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
5106 to op1_utype.
5107 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
5108 expression to unsigned_type_node.
5109
dcc97066
MW
51102014-11-20 Mark Wielaard <mjw@redhat.com>
5111
5112 PR debug/38757
5113 * c-opts.c (set_std_c89): Set lang_hooks.name.
5114 (set_std_c99): Likewise.
5115 (set_std_c11): Likewise.
5116 (set_std_cxx98): Likewise.
5117 (set_std_cxx11): Likewise.
5118 (set_std_cxx14): Likewise.
5119 (set_std_cxx1z): Likewise.
5120
aa7da51a
JJ
51212014-11-21 Jakub Jelinek <jakub@redhat.com>
5122
5123 PR target/63764
5124 * c-common.h (convert_vector_to_pointer_for_subscript): Change
5125 return type to bool.
009a3480 5126 * c-common.c: Include gimple-expr.h.
aa7da51a
JJ
5127 (convert_vector_to_pointer_for_subscript): Change return type to
5128 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
5129 and copy it into a TARGET_EXPR and use that instead of *vecp
5130 directly.
5131
538dd0b7
DM
51322014-11-19 David Malcolm <dmalcolm@redhat.com>
5133
5134 Merger of git branch "gimple-classes-v2-option-3".
5135 * ChangeLog.gimple-classes: New.
5136 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
5137 from being just a vec<gimple> to a vec<gbind *>.
5138
c39a5e99
JJ
51392014-11-18 Jakub Jelinek <jakub@redhat.com>
5140
5141 PR sanitizer/63813
5142 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
5143 argument to ptype, set type to TREE_TYPE (ptype). Don't call
5144 get_pointer_alignment for non-pointers. Use ptype, or if it is
5145 reference type, corresponding pointer type, as type of kind
5146 argument.
5147 (ubsan_maybe_instrument_reference,
5148 ubsan_maybe_instrument_member_call): Adjust callers.
5149
8537a4a9
MP
51502014-11-15 Marek Polacek <polacek@redhat.com>
5151
5152 PR middle-end/63884
5153 * array-notation-common.c (is_sec_implicit_index_fn): Return false
5154 for NULL fndecl.
5155 (extract_array_notation_exprs): Return for NULL node.
5156
2079956a
JM
51572014-11-12 Joseph Myers <joseph@codesourcery.com>
5158
5159 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
5160 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
5161
1304953e
JJ
51622014-11-12 Jakub Jelinek <jakub@redhat.com>
5163
5164 PR c/59708
5165 * c-common.c (check_builtin_function_arguments): Handle
5166 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
5167
e5e44252
AK
51682014-11-10 Andi Kleen <ak@linux.intel.com>
5169
5170 PR c/60804
5171 * c-common.h (check_no_cilk): Declare.
5172 * cilk.c (get_error_location): New function.
5173 (check_no_cilk): Dito.
5174
e64b984d
AK
51752014-11-10 Andi Kleen <ak@linux.intel.com>
5176
5177 * cilk.c (recognize_spawn): Use expression location
5178 for error message.
5179
13c21655
PC
51802014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
5181
5182 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
5183
42fd12b1
ESR
51842014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
5185
5186 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
5187 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
5188 (__cpp_range_based_for, __cpp_initializer_lists,
5189 __cpp_delegating_constructors, __cpp_nsdmi,
5190 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
5191 for C++11; (__cpp_attribute_deprecated): Remove in favor of
5192 __has_cpp_attribute.
5193 * c-lex.c (cb_has_attribute): New callback CPP function;
5194 (init_c_lex): Set has_attribute callback.
5195
6f450181
RB
51962014-11-04 Richard Biener <rguenther@suse.de>
5197
5198 * c-common.c (shorten_compare): Do not shorten mixed
5199 DFP and non-DFP compares.
5200
26f0e1d6
ESR
52012014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
5202
5203 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
5204 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
5205 Commentary and rearrangement of tests.
5206 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
5207 Commentary and rearrangement of tests.
5208 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
5209 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
5210
ef4bddc2
RS
52112014-10-29 Richard Sandiford <richard.sandiford@arm.com>
5212
5213 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
5214 enum from machine_mode.
5215
c582198b
AM
52162014-10-28 Andrew MacLeod <amacleod@redhat.com>
5217
adfac8df
JJ
5218 * c-common.c: Adjust include files.
5219 * c-gimplify.c: Ditto.
5220 * cilk.c: Ditto.
5221 * c-pragma.c: Ditto.
5222 * c-ubsan.c: Ditto.
c582198b 5223
60393bbc
AM
52242014-10-27 Andrew MacLeod <amacleod@redhat.com>
5225
5226 * c-gimplify.c: Adjust include files.
5227
d723bb7c
MLI
52282014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
5229
5230 PR c++/53061
5231 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
5232 c_common_initialize_diagnostics.
5233 * c-common.h: Likewise.
5234
90f3520e
MP
52352014-10-24 Marek Polacek <polacek@redhat.com>
5236
5237 PR c/56980
5238 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
5239 print "struct"/"union"/"enum" for typedefed names.
5240
59d7607a
MP
52412014-10-23 Marek Polacek <polacek@redhat.com>
5242
5243 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
5244 in unsigned type.
5245
d95a2703
JJ
52462014-10-22 Jakub Jelinek <jakub@redhat.com>
5247 Yury Gribov <y.gribov@samsung.com>
5248
5249 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5250 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
5251 instead of flag_sanitize_recover as bool flag.
5252
8e6ef852
KY
52532014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
5254
5255 * cilk.c: Revert previous change.
5256
948cf550
IZ
52572014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
5258
5259 PR c/63307
5260 * cilk.c: Include vec.h.
5261 (struct cilk_decls): New structure.
5262 (wrapper_parm_cb): Split this function to...
5263 (fill_decls_vec): ...this...
5264 (create_parm_list): ...and this.
5265 (compare_decls): New function.
5266 (for_local_cb): Remove.
5267 (wrapper_local_cb): Ditto.
5268 (build_wrapper_type): For now first traverse and fill vector of
5269 declarations then sort it and then deal with sorted vector.
5270 (cilk_outline): Ditto.
5271 (declare_one_free_variable): Ditto.
5272
92574c7c
MP
52732014-10-17 Marek Polacek <polacek@redhat.com>
5274
5275 * c-opts.c (c_common_post_options): Set warn_implicit_int.
5276 * c.opt (Wimplicit-int): Initialize to -1.
5277
83685514
AM
52782014-10-16 Andrew MacLeod <amacleod@redhat.com>
5279
5280 * c-pragma.c: Adjust include files.
5281 * c-semantics.c: Likewise.
5282
5b8300ea
DD
52832014-10-16 DJ Delorie <dj@redhat.com>
5284
5285 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
5286 multiples of bytes.
5287
5f83e90b
JM
52882014-10-14 Jason Merrill <jason@redhat.com>
5289
5290 PR c++/63455
5291 * c-common.h (CPP_PREPARSED_EXPR): New.
5292 (N_CP_TTYPES): Adjust.
5293
d73326ca
MP
52942014-10-15 Marek Polacek <polacek@redhat.com>
5295
5296 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
5297
78a7c317
DD
52982014-10-14 DJ Delorie <dj@redhat.com>
5299
5300 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
5301 types, not just __int128.
5302 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
5303 types, not just __int128.
5304 (cpp_atomic_builtins): Round pointer sizes up.
5305 (type_suffix): Use type precision, not specific types.
5306 * c-common.c (c_common_reswords): Remove __int128 special case.
5307 (c_common_type_for_size): Check for all __intN types, not just
5308 __int128.
5309 (c_common_type_for_mode): Likewise.
5310 (c_common_signed_or_unsigned_type): Likewise.
5311 (c_build_bitfield_integer_type): Likewise.
5312 (c_common_nodes_and_builtins): Likewise.
5313 (keyword_begins_type_specifier): Likewise.
5314 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
5315 __intN variants.
5316
2a22f99c
TS
53172014-10-12 Trevor Saunders <tsaunders@mozilla.com>
5318
5319 * c-common.c: Use hash_table instead of hashtab.
5320
2a8ef767
ESR
53212014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
5322
adfac8df 5323 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2a8ef767
ESR
5324 C++11 section.
5325
3c9aabbd
MG
53262014-10-03 Marc Glisse <marc.glisse@inria.fr>
5327
5328 PR c++/54427
5329 PR c++/57198
5330 PR c++/58845
5331 * c-common.c (warn_logical_operator): Punt for vectors.
5332
a15f7cb8
ESR
53332014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
5334
5335 Implement SD-6: SG10 Feature Test Recommendations
5336 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
5337 macros and the __has_header macro.
5338
8d0cf15e
JM
53392014-09-30 Jason Merrill <jason@redhat.com>
5340
dd5d5481
JM
5341 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
5342 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
5343 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
5344
b752325e
JM
5345 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
5346 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
5347
8d0cf15e
JM
5348 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
5349 * c-common.c (c_common_reswords): Remove __is_convertible_to.
5350
083e891e
MP
53512014-09-24 Marek Polacek <polacek@redhat.com>
5352
5353 PR c/61405
5354 PR c/53874
5355 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
5356
7861b648
AK
53572014-09-23 Andi Kleen <ak@linux.intel.com>
5358
5359 * c-common.c (handle_no_reorder_attribute): New function.
5360 (c_common_attribute_table): Add no_reorder attribute.
5361
9a79452d
JM
53622014-09-22 Joseph Myers <joseph@codesourcery.com>
5363
5364 * c-cppbuiltin.c (c_cpp_builtins): Define
5365 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
5366 modes.
5367
dd69f047
JM
53682014-09-18 Joseph Myers <joseph@codesourcery.com>
5369
5370 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
5371 for supported floating-point modes.
5372
737a4826
MLI
53732014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5374
5375 * c.opt (Wpsabi): Use LangEnabledBy.
5376 * c-opts.c (c_common_handle_option): Do not handle here.
5377
8cc4b7a2
JM
53782014-09-12 Joseph Myers <joseph@codesourcery.com>
5379
5380 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
5381 macros for floating-point modes.
5382
179b5a55
MG
53832014-09-11 Marc Glisse <marc.glisse@inria.fr>
5384
5385 PR target/58757
5386 * c-cppbuiltin.c (builtin_define_float_constants): Correct
5387 __*_DENORM_MIN__ without denormals.
5388
570a11fe
JJ
53892014-09-10 Jakub Jelinek <jakub@redhat.com>
5390
5391 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
5392 ubsan_instrument_vla, ubsan_instrument_return): Adjust
5393 ubsan_create_data callers.
5394 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
5395 index is constant or BIT_AND_EXPR with constant mask and is
5396 small enough for the bound.
5397 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
5398 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
5399
b559c810
MLI
54002014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5401
5402 * c.opt: Add CppReason to various flags.
5403 (Wdate-time): Re-sort.
5404 * c-common.c: Include c-common.h earlier.
5405 (struct reason_option_codes_t): Delete.
5406 (c_option_controlling_cpp_error): Prefix global type and struct
5407 with cpp_.
5408
1ef33fd4
MLI
54092014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5410
5411 * c.opt (Wnormalized): New.
5412 (Wnormalized=): Use Enum and Reject Negative.
5413 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
5414
66bb34c0
JM
54152014-09-08 Joseph Myers <joseph@codesourcery.com>
5416
5417 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
5418 digits of floating-point modes if -fbuilding-libgcc.
5419
53d68b9f
JM
54202014-09-05 Joseph Myers <joseph@codesourcery.com>
5421
5422 * c-cppbuiltin.c (c_cpp_builtins): Also define
5423 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
5424 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
5425 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
5426 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
5427 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
5428 __LIBGCC_STACK_GROWS_DOWNWARD__,
5429 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
5430 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
5431 __LIBGCC_DWARF_FRAME_REGISTERS__,
5432 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
5433 __LIBGCC_STACK_POINTER_REGNUM__ and
5434 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
5435 (builtin_define_with_value): Handle backslash-escaping in string
5436 macro values.
5437
f65586dc
RB
54382014-09-05 Richard Biener <rguenther@suse.de>
5439
5440 PR middle-end/63148
5441 * c-format.c (check_format_arg): Properly handle
5442 effectively signed POINTER_PLUS_EXPR offset.
5443
2b71f4a4
MLI
54442014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5445
5446 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
5447 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
5448 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
5449 and Init.
5450 * c-opts.c (c_common_handle_option): Do not handle here.
5451 (sanitize_cpp_opts): Likewise.
5452 * c-common.c (struct reason_option_codes_t): Handle
5453 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
5454
d2e4feca
MP
54552014-09-03 Marek Polacek <polacek@redhat.com>
5456
5457 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
5458
9a771876
JJ
54592014-09-02 Jakub Jelinek <jakub@redhat.com>
5460 Balaji V. Iyer <balaji.v.iyer@intel.com>
5461 Igor Zamyatin <igor.zamyatin@intel.com>
5462
5463 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
5464 * c-common.c (c_common_reswords): Added _Cilk_for.
5465 * c-common.h (enum rid): Added RID_CILK_FOR.
5466 (cilk_for_number_of_iterations): Add declaration.
5467 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
5468 CILK_FOR.
5469 * c-pragma.c (init_pragma): Register "grainsize" pragma.
5470 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
5471
81b5d104
MLI
54722014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5473
5474 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
5475 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
5476 Wundef): Use CPP, Var and Init.
5477 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
5478
b753b37b
MLI
54792014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5480
5481 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
5482 * c-opts.c (c_common_handle_option): Do not handle here.
5483
028aee17
JM
54842014-08-25 Jason Merrill <jason@redhat.com>
5485
5486 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
5487 -std=c++14 and -std=gnu++14, rather than the reverse.
5488 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
5489 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
5490 * c-common.h (cxx_dialect): Remove cxx1y.
5491
e4276ba5
ESR
54922014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
5493
5494 * c-common.h (enum cxx_dialect): Add cxx14.
5495 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
5496 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
5497 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
5498
a545cacd
JM
54992014-08-22 Jason Merrill <jason@redhat.com>
5500
5501 * c.opt (std=gnu++17): Fix alias.
5502
59ea0364
MP
55032014-08-22 Marek Polacek <polacek@redhat.com>
5504
5505 PR c++/62199
5506 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
5507 check for vector types. Drop LHS argument.
5508 * c-common.h (warn_logical_not_parentheses): Adjust.
5509
596e808c
MLI
55102014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5511
5512 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
5513 (Wmultichar): Likewise.
5514 (Wdate-time): Use C-family languages instead of Common. Use CPP
5515 and Var.
5516 * c-opts.c (c_common_handle_option): Do not handle the above
5517 options here.
5518 (sanitize_cpp_opts): Likewise.
5519
18767f65
MLI
55202014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
5521
5522 PR fortran/44054
5523 * c-opts.c: Include tree-diagnostics.h.
5524 (c_diagnostic_finalizer): New.
5525 (c_common_initialize_diagnostics): Use it.
5526
b4413594
MLI
55272014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5528
5529 PR preprocessor/51303
5530 * c-common.c (struct reason_option_codes_t option_codes):
5531 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
5532
43f9a13c
MLI
55332014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
5534
5535 PR c/60975
5536 PR c/53063
5537 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
5538 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
5539 (c_common_post_options): Call init_global_opts_from_cpp.
5540 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
5541
04159acf
MP
55422014-08-19 Marek Polacek <polacek@redhat.com>
5543
5544 PR c++/62153
5545 * c-common.c (maybe_warn_bool_compare): New function.
5546 * c-common.h (maybe_warn_bool_compare): Declare.
5547 * c.opt (Wbool-compare): New option.
5548
35aff4fb
MP
55492014-08-19 Marek Polacek <polacek@redhat.com>
5550
5551 * c.opt (Wc99-c11-compat): New option.
5552
177cce46
MP
55532014-08-19 Marek Polacek <polacek@redhat.com>
5554
5555 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
5556 to warn_c90_c99_compat.
5557 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
5558 to -1.
5559
6ae9194f
MLI
55602014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
5561 Steven Bosscher <steven@gcc.gnu.org>
5562
5563 PR c/52952
5564 * c-format.c: Add extra_arg_loc and format_string_loc to struct
5565 format_check_results.
5566 (check_function_format): Use true and add comment for boolean
5567 argument.
5568 (finish_dollar_format_checking): Use explicit location when warning.
5569 (check_format_info): Likewise.
5570 (check_format_arg): Set extra_arg_loc and format_string_loc.
5571 (check_format_info_main): Use explicit location when warning.
5572 (check_format_types): Pass explicit location.
5573 (format_type_warning): Likewise.
5574
8e54f6d3
MLI
55752014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5576
5577 PR fortran/44054
5578 * c-format.c: Handle Fortran flags.
5579
cd4e76fc
IZ
55802014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
5581
5582 PR other/61962
5583 * array-notation-common.c (find_rank): Added handling for other
5584 types of references.
5585
f3bede71
MP
55862014-08-10 Marek Polacek <polacek@redhat.com>
5587
5588 PR c/51849
5589 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
5590 * c.opt (Wc90-c99-compat): Add option.
5591
9f25a338
TS
55922014-08-07 Trevor Saunders <tsaunders@mozilla.com>
5593
5594 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
5595
62e4eb35
MP
55962014-08-03 Marek Polacek <polacek@redhat.com>
5597
5598 * c-common.c (check_case_value): Add location_t parameter. Use it.
5599 (c_add_case_label): Pass loc to check_case_value.
5600
b787e7a2
TS
56012014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5602
5603 * cilk.c: Use hash_map instead of pointer_map.
5604
6e2830c3
TS
56052014-08-02 Trevor Saunders <tsaunders@mozilla.com>
5606
5607 * c-gimplify.c: Use hash_set instead of pointer_set.
5608
a7ee52fb
IZ
56092014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
5610
5611 PR middle-end/61455
5612 * array-notation-common.c (extract_array_notation_exprs): Handling
5613 of DECL_EXPR added.
5614
944fa280
JJ
56152014-08-01 Jakub Jelinek <jakub@redhat.com>
5616
5617 * c-common.h (min_align_of_type): Removed prototype.
5618 * c-common.c (min_align_of_type): Removed.
5619 * c-ubsan.h (ubsan_maybe_instrument_reference,
5620 ubsan_maybe_instrument_member_call): New prototypes.
5621 * c-ubsan.c: Include stor-layout.h and builtins.h.
5622 (ubsan_maybe_instrument_reference_or_call,
5623 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
5624 functions.
5625
b4dfdc11
MG
56262014-07-31 Marc Glisse <marc.glisse@inria.fr>
5627
5628 PR c++/60517
5629 * c.opt (-Wreturn-local-addr): Move to common.opt.
5630
a41844e5
JM
56312014-07-30 Jason Merrill <jason@redhat.com>
5632
5633 PR c++/61659
5634 PR c++/61687
5635 Revert:
5636 * c.opt (-fuse-all-virtuals): New.
5637
976d5a22
TT
56382014-07-30 Tom Tromey <tromey@redhat.com>
5639
5640 PR c/59855
5641 * c.opt (Wdesignated-init): New option.
5642 * c-common.c (c_common_attribute_table): Add "designated_init".
5643 (handle_designated_init): New function.
5644
cdc94aca
MP
56452014-07-24 Marek Polacek <polacek@redhat.com>
5646
5647 PR c/57653
5648 * c-opts.c (c_finish_options): If -imacros is in effect, return.
5649
f41373b6
DS
56502014-07-16 Dodji Seketeli <dodji@redhat.com>
5651
5652 PR preprocessor/60723 - missing system-ness marks for macro tokens
5653 * c-ppoutput.c (struct print::prev_was_system_token): New data
5654 member.
5655 (init_pp_output): Initialize it.
5656 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
5657 (do_line_change): Return a flag saying if a line marker was
5658 emitted or not.
5659 (scan_translation_unit): Detect if the system-ness of the token we
5660 are about to emit is different from the one of the previously
5661 emitted token. If so, emit a line marker. Avoid emitting useless
5662 adjacent line markers. Avoid emitting line markers for tokens
5663 originating from the expansion of built-in macros.
5664 (scan_translation_unit_directives_only): Adjust.
5665
4d661eaa
MP
56662014-07-15 Marek Polacek <polacek@redhat.com>
5667
5668 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
5669 TYPE_MAX_VALUE is NULL.
5670
b108f48f
JJ
56712014-07-14 Jakub Jelinek <jakub@redhat.com>
5672
5673 PR middle-end/61294
5674 * c.opt (Wmemset-transposed-args): New warning.
5675
c0221884
JM
56762014-07-10 Jason Merrill <jason@redhat.com>
5677
5678 PR c++/61659
5679 PR c++/61687
5680 * c.opt (-fuse-all-virtuals): New.
5681
63dfbb95
RB
56822014-07-09 Richard Biener <rguenther@suse.de>
5683
5684 PR c-family/61741
5685 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
5686 using unsigned arithmetic if overflow does not wrap instead of
5687 if overflow is undefined.
5688
773ec47f
MP
56892014-07-06 Marek Polacek <polacek@redhat.com>
5690
5691 PR c/6940
5692 * c.opt (Wsizeof-array-argument): New option.
5693
00a7ba58
JJ
56942014-07-03 Jakub Jelinek <jakub@redhat.com>
5695
b1726d6c 5696 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
00a7ba58
JJ
5697 comments->count <= 1, as comments->entries might be NULL.
5698
52ec0ea3
MP
56992014-07-01 Marek Polacek <polacek@redhat.com>
5700
5701 * c.opt (Wint-conversion): New option.
5702
d5c3d343
MP
57032014-07-01 Marek Polacek <polacek@redhat.com>
5704
5705 PR c/58286
5706 * c.opt (Wincompatible-pointer-types): New option.
5707
6e7ceb17
PC
57082014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
5709
5710 PR c++/51400
5711 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
5712 Do not discard TYPE_QUALS of type.
5713
da73100b
JM
57142014-06-26 Jason Merrill <jason@redhat.com>
5715
5716 * c-common.h (enum cxx_dialect): Add cxx1z.
5717 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
5718 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
5719
08eedf75
TJ
57202014-06-26 Teresa Johnson <tejohnson@google.com>
5721
5722 * c-common.h (get_dump_info): Declare.
5723 * c-gimplify.c (c_genericize): Use saved dump files.
5724 * c-opts.c (c_common_parse_file): Begin and end dumps
5725 once around parsing invocation.
5726 (get_dump_info): New function.
5727
7b56b2f8
MP
57282014-06-23 Marek Polacek <polacek@redhat.com>
5729 Andrew MacLeod <amacleod@redhat.com>
5730
5731 PR c/61553
5732 * c-common.c (get_atomic_generic_size): Don't segfault if the
5733 type doesn't have a size.
5734
0e37a2f3
MP
57352014-06-20 Marek Polacek <polacek@redhat.com>
5736
5737 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
5738 (ubsan_walk_array_refs_r): New function.
5739 (c_genericize): Instrument array bounds.
5740 * c-ubsan.c: Include "internal-fn.h".
5741 (ubsan_instrument_division): Mark instrumented arrays as having
5742 side effects. Adjust ubsan_type_descriptor call.
5743 (ubsan_instrument_shift): Likewise.
5744 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
5745 (ubsan_instrument_bounds): New function.
5746 (ubsan_array_ref_instrumented_p): New function.
5747 (ubsan_maybe_instrument_array_ref): New function.
5748 * c-ubsan.h (ubsan_instrument_bounds): Declare.
5749 (ubsan_array_ref_instrumented_p): Declare.
5750 (ubsan_maybe_instrument_array_ref): Declare.
5751
57522014-06-20 Hale Wang <hale.wang@arm.com>
dd6fe7d4
HW
5753
5754 PR lto/61123
5755 * c.opt (fshort-enums): Add to LTO.
5756 * c.opt (fshort-wchar): Likewise.
5757
5c3d09f7
MP
57582014-06-16 Marek Polacek <polacek@redhat.com>
5759
5760 PR c/60439
5761 * c.opt (Wswitch-bool): Add Var.
5762
9cf32741
JJ
57632014-06-12 Jakub Jelinek <jakub@redhat.com>
5764
5765 PR middle-end/61486
5766 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
5767 #pragma omp target teams or
5768 #pragma omp {,target }teams distribute simd.
5769
62984918
JM
57702014-06-12 Jason Merrill <jason@redhat.com>
5771
5772 * c.opt (Wabi=, fabi-compat-version): New.
5773 * c-opts.c (c_common_handle_option): Handle -Wabi=.
5774 (c_common_post_options): Handle flag_abi_compat_version default.
5775 Disallow -fabi-compat-version=1.
5776 * c-common.h (abi_version_crosses): New.
5777
f961457f
JH
57782014-06-11 Jan Hubicka <hubicka@ucw.cz>
5779
adfac8df 5780 * c-common.c (handle_section_attribute): Update handling for
f961457f
JH
5781 section names that are no longer trees.
5782
92d28cbb
JJ
57832014-06-10 Jakub Jelinek <jakub@redhat.com>
5784
5785 PR fortran/60928
5786 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
5787 (omp_pragmas): ... back here.
5788
742938c9
MP
57892014-06-05 Marek Polacek <polacek@redhat.com>
5790
5791 PR c/49706
5792 * c-common.c (warn_logical_not_parentheses): New function.
5793 * c-common.h (warn_logical_not_parentheses): Declare.
5794 * c.opt (Wlogical-not-parentheses): New option.
5795
9d548dfb
MP
57962014-06-04 Marek Polacek <polacek@redhat.com>
5797
5798 PR c/30020
5799 * c-common.c (check_case_bounds): Add location parameter.
5800 Use it.
5801 (c_add_case_label): Pass loc to check_case_bounds.
5802
fedfecef
MP
58032014-06-03 Marek Polacek <polacek@redhat.com>
5804
5805 PR c/60439
5806 * c.opt (Wswitch-bool): New option.
5807
f6a7cffc
TS
58082014-05-22 Thomas Schwinge <thomas@codesourcery.com>
5809
040d18b6
TS
5810 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
5811 Remove prototypes.
5812 (record_types_used_by_current_var_decl): Move prototype to where
5813 it belongs.
5814
f6a7cffc
TS
5815 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
5816 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
5817 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
5818
632f2871
RS
58192014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5820
5821 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
5822 * c-common.c (c_common_nodes_and_builtins): Don't initialize
5823 void_zero_node.
5824 * c-pretty-print.c (pp_c_void_constant): New function.
5825 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
5826 (c_pretty_printer::expression): Handle VOID_CST.
5827 * cilk.c (extract_free_variables): Likewise.
5828 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
5829 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
5830
766090c2
TS
58312014-05-17 Trevor Saunders <tsaunders@mozilla.com>
5832
5833 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
5834 * c-pragma.c (push_alignment): Adjust.
5835 (handle_pragma_push_options): Likewise.
5836
661a0813
MP
58372014-05-09 Marek Polacek <polacek@redhat.com>
5838
5839 PR c/50459
5840 * c-common.c (check_user_alignment): Return -1 if alignment is error
5841 node.
5842 (handle_aligned_attribute): Don't call default_conversion on
5843 FUNCTION_DECLs.
5844 (handle_vector_size_attribute): Likewise.
5845 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
5846 (handle_sentinel_attribute): Call default_conversion and allow even
5847 integral types as an argument.
5848
2793eeab
MP
58492014-05-08 Marek Polacek <polacek@redhat.com>
5850
5851 PR c/61053
5852 * c-common.c (min_align_of_type): New function factored out from...
5853 (c_sizeof_or_alignof_type): ...here.
5854 * c-common.h (min_align_of_type): Declare.
5855
f827930a
MP
58562014-05-08 Marek Polacek <polacek@redhat.com>
5857
5858 PR c/61077
5859 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
5860 parameter type of main.
5861
ca49b74e
DD
58622014-05-07 DJ Delorie <dj@redhat.com>
5863
5864 * c-cppbuiltin.c (print_bits_of_hex): New.
5865 (builtin_define_type_minmax): Print values using hex so as not to
5866 require a pre-computed list of string values.
5867
1d60af08
KZ
58682014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
5869 Mike Stump <mikestump@comcast.net>
5870 Richard Sandiford <rdsandiford@googlemail.com>
5871
5872 * c-ada-spec.c: Include wide-int.h.
5873 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
5874 (dump_generic_ada_node): Use wide-int interfaces.
5875 * c-common.c: Include wide-int-print.h.
5876 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
5877 (pointer_int_sum): Use wide-int interfaces.
5878 (c_common_nodes_and_builtins): Use make_int_cst.
5879 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
5880 (handle_alloc_size_attribute): Use wide-int interfaces.
5881 (get_nonnull_operand): Likewise.
5882 * c-format.c (get_constant): Use tree_fits_uhwi_p.
5883 * c-lex.c: Include wide-int.h.
5884 (narrowest_unsigned_type): Take a widest_int rather than two
5885 HOST_WIDE_INTs.
5886 (narrowest_signed_type): Likewise.
5887 (interpret_integer): Update accordingly. Use wide-int interfaces.
5888 (lex_charconst): Use wide-int interfaces.
5889 * c-pretty-print.c: Include wide-int.h.
5890 (pp_c_integer_constant): Use wide-int interfaces.
5891 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
5892 INT_CST_LT_UNSIGNED.
5893
b15458be
RB
58942014-05-06 Richard Biener <rguenther@suse.de>
5895
5896 * c-opts.c (c_common_post_options): For -freestanding,
5897 -fno-hosted and -fno-builtin disable pattern recognition
5898 if not enabled explicitely.
5899
6577374e
MP
59002014-05-02 Marek Polacek <polacek@redhat.com>
5901
5902 * c.opt (Wsizeof-pointer-memaccess): Describe option.
5903
d00887e8
MP
59042014-05-01 Marek Polacek <polacek@redhat.com>
5905
5906 PR c/43245
5907 * c.opt (Wdiscarded-qualifiers): Add.
5908
f8ed5150
MP
59092014-04-30 Marek Polacek <polacek@redhat.com>
5910
5911 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
5912 INT_MIN / -1 sanitization only for integer types.
5913
45484dcf
MP
59142014-04-25 Marek Polacek <polacek@redhat.com>
5915
5916 PR c/18079
5917 * c-common.c (handle_noinline_attribute): Warn if the attribute
5918 conflicts with always_inline attribute.
5919 (handle_always_inline_attribute): Warn if the attribute conflicts
5920 with noinline attribute.
5921
38e514c0
MP
59222014-04-25 Marek Polacek <polacek@redhat.com>
5923
5924 PR c/60156
5925 * c-common.c (check_main_parameter_types): Warn about variadic main.
5926
44875f92
MS
59272014-04-24 Mike Stump <mikestump@comcast.net>
5928
5929 * c.opt (Wshadow-ivar): Default to on.
5930
dcaaa5a0
DP
59312014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
5932
5933 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
5934
c07d7c02
MP
59352014-04-23 Marek Polacek <polacek@redhat.com>
5936
5937 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
5938
1c33c9b7
JJ
59392014-04-22 Jakub Jelinek <jakub@redhat.com>
5940
5941 PR sanitizer/60275
5942 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
5943 if flag_sanitize_undefined_trap_on_error.
5944 (ubsan_instrument_division, ubsan_instrument_shift,
5945 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
5946 if !flag_sanitize_recover.
5947
793c625f
MG
59482014-04-22 Marc Glisse <marc.glisse@inria.fr>
5949
5950 PR libstdc++/43622
5951 * c-common.c (registered_builtin_types): Make non-static.
5952 * c-common.h (registered_builtin_types): Declare.
5953
b0f1bf36
RB
59542014-04-14 Richard Biener <rguenther@suse.de>
5955 Marc Glisse <marc.glisse@inria.fr>
5956
5957 PR c/60819
5958 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
5959 apply may-alias the scalar pointer type when applicable.
5960
3b07fa4a
IZ
59612014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
5962
5963 PR middle-end/60467
5964 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
5965 as possible argument for Cilk_spawn.
5966
cbbd2b1c
TB
59672014-04-11 Tobias Burnus <burnus@net-b.de>
5968
5969 PR c/60194
5970 * c.opt (Wformat-signedness): Add
5971 * c-format.c(check_format_types): Use it.
5972
6415bd5d
JM
59732014-04-11 Jason Merrill <jason@redhat.com>
5974
5975 PR c++/57926
5976 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5977 default_conversion for an array argument.
5978
6525783a
MP
59792014-04-08 Marek Polacek <polacek@redhat.com>
5980
5981 PR sanitizer/60745
5982 * c-ubsan.c: Include asan.h.
5983 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
5984
880a467b
NS
59852014-04-03 Nathan Sidwell <nathan@codesourcery.com>
5986
5987 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
5988
7b59ff2d
MP
59892014-04-02 Marek Polacek <polacek@redhat.com>
5990
5991 * c-common.h (c_expand_expr): Remove declaration.
5992
8edbfaa6
JJ
59932014-03-28 Jakub Jelinek <jakub@redhat.com>
5994
5995 PR c++/60689
5996 * c-common.c (add_atomic_size_parameter): When creating new
5997 params vector, push the size argument first.
5998
07d72e1d
JJ
59992014-03-26 Jakub Jelinek <jakub@redhat.com>
6000
6001 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
6002 ubsan_instrument_vla, ubsan_instrument_return): Adjust
6003 ubsan_create_data callers.
6004
b35e0fa0
JJ
60052014-03-22 Jakub Jelinek <jakub@redhat.com>
6006
6007 PR debug/60603
6008 * c-opts.c (c_finish_options): Restore cb_file_change call to
6009 <built-in>.
6010
39a1ebb3
JJ
60112014-03-13 Jakub Jelinek <jakub@redhat.com>
6012
6013 PR middle-end/36282
6014 * c-pragma.c (apply_pragma_weak): Only look at
6015 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
6016 DECL_ASSEMBLER_NAME_SET_P (decl).
6017 (maybe_apply_pending_pragma_weaks): Exit early if
6018 vec_safe_is_empty (pending_weaks) rather than only when
6019 !pending_weaks.
6020 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
6021 set assembler name back to NULL afterwards.
6022
a07f6ed2
JM
60232014-03-11 Jason Merrill <jason@redhat.com>
6024
6025 * c.opt: Add -std=gnu++14.
6026
75b107f5
IB
60272014-03-11 Ian Bolton <ian.bolton@arm.com>
6028
6029 * c-opts.c (c_common_post_options): Don't override
6030 -ffp-contract=fast if unsafe-math-optimizations is on.
6031
f42c637e
PM
60322014-03-08 Paulo Matos <paulo@matos-sorge.com>
6033
22b15758 6034 * c.opt: Enable LTO FE for fshort-double.
f42c637e 6035
70e24808
JM
60362014-03-07 Jason Merrill <jason@redhat.com>
6037
6038 * c.opt: Add -std=c++14.
6039
3af9c5e9
MP
60402014-03-06 Marek Polacek <polacek@redhat.com>
6041
6042 PR c/60197
6043 * cilk.c (contains_cilk_spawn_stmt): New function.
6044 (contains_cilk_spawn_stmt_walker): Likewise.
6045 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
6046 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
6047
b3bdf019
JJ
60482014-03-03 Jakub Jelinek <jakub@redhat.com>
6049
6050 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
6051 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
6052 even when flag_preprocess_only.
6053
ca7e759d
JM
60542014-02-26 Jason Merrill <jason@redhat.com>
6055
6056 PR c++/59231
6057 PR c++/11586
6058 * c-common.c (shorten_compare): Don't check
6059 c_inhibit_evaluation_warnings.
6060
28e41874
JJ
60612014-02-19 Jakub Jelinek <jakub@redhat.com>
6062
cca615af
JJ
6063 PR c/37743
6064 * c-common.c (c_common_nodes_and_builtins): When initializing
6065 c_uint{16,32,64}_type_node, also set corresponding
6066 uint{16,32,64}_type_node to the same value.
6067
28e41874
JJ
6068 PR c++/60267
6069 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
6070 for PRAGMA_IVDEP if flag_preprocess_only.
6071
c2bf53a1
JJ
60722014-02-12 Jakub Jelinek <jakub@redhat.com>
6073
6074 PR c/60101
6075 * c-common.c (merge_tlist): If copy is true, call new_tlist,
6076 if false, add ADD itself, rather than vice versa.
6077 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
6078 copy. For SAVE_EXPR, only call merge_tlist once.
6079
8fcbce72
JJ
60802014-02-08 Jakub Jelinek <jakub@redhat.com>
6081
6082 PR middle-end/60092
6083 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
6084 and tree_to_uhwi.
6085 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
6086 functions.
6087 (c_common_attribute_table): Add alloc_align and assume_aligned
6088 attributes.
6089
0a756a3f
MP
60902014-02-06 Marek Polacek <polacek@redhat.com>
6091
6092 PR c/60087
6093 * c-common.c (warn_for_sign_compare): Call warning_at with location
6094 instead of warning.
6095
7ec4847a
MP
60962014-02-05 Marek Polacek <polacek@redhat.com>
6097
6098 PR c/53123
6099 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
6100 statement.
6101
66f20604
MP
61022014-02-04 Marek Polacek <polacek@redhat.com>
6103
6104 PR c/60036
6105 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
6106 SAVE_EXPR.
6107
5d77fb19
MG
61082014-02-03 Marc Glisse <marc.glisse@inria.fr>
6109
6110 PR c++/53017
6111 PR c++/59211
6112 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
6113 handle_vector_size_attribute, handle_nonnull_attribute): Call
6114 default_conversion on the attribute argument.
6115 (handle_nonnull_attribute): Increment the argument number.
6116
81e5eca8
MP
61172014-01-31 Marek Polacek <polacek@redhat.com>
6118
6119 PR c/59963
6120 * c-common.c (add_atomic_size_parameter): Pass vNULL to
6121 build_function_call_vec.
6122 (resolve_overloaded_builtin): Likewise.
6123 * c-common.h (build_function_call_vec): Adjust declaration.
6124
68fca595
MP
61252014-01-30 Marek Polacek <polacek@redhat.com>
6126
6127 PR c/59940
6128 * c-common.h (unsafe_conversion_p): Adjust declaration.
6129 (warnings_for_convert_and_check): Likewise.
6130 (convert_and_check): Likewise.
6131 * c-common.c (unsafe_conversion_p): Add location parameter. Call
6132 expansion_point_location_if_in_system_header on it.
6133 (warnings_for_convert_and_check): Add location parameter. Call
6134 expansion_point_location_if_in_system_header on it. Use it.
6135 (convert_and_check): Add location parameter. Use it.
6136 (conversion_warning): Likewise.
6137 (c_add_case_label): Adjust convert_and_check calls.
6138 (scalar_to_vector): Adjust unsafe_conversion_p calls.
6139
b72271b9
BI
61402014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
6141
6142 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
6143 flag_cilkplus.
6144 * c-pragma.c (init_pragma): Likewise.
6145 * c.opt: Likewise.
6146
393e8e8b
MP
61472014-01-23 Marek Polacek <polacek@redhat.com>
6148
6149 PR c/59846
6150 * c-common.c (shorten_compare): Add location_t parameter.
6151 * c-common.h (shorten_binary_op): Adjust declaration.
6152
f04dda30
MP
61532014-01-23 Marek Polacek <polacek@redhat.com>
6154
6155 PR c/58346
6156 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
6157 * c-common.h: Declare it.
6158
621955cb
EB
61592014-01-20 Eric Botcazou <ebotcazou@adacore.com>
6160
6161 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
6162 * c-ada-spec.c (dump_ads): Likewise.
6163 (cpp_check): Likewise.
6164 (dump_ada_specs): Likewise.
6165
61662014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
67bf2939
LA
6167
6168 PR c++/49718
6169 * c-common.c (handle_no_instrument_function_attribute): Allow
6170 no_instrument_function attribute in class member
6171 definition/declaration.
6172
241f845a
JJ
61732014-01-15 Jakub Jelinek <jakub@redhat.com>
6174
6175 PR c/58943
6176 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
6177 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
6178 being COMPOUND_EXPR.
6179 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
6180 operand a SAVE_EXPR and second MODIFY_EXPR.
6181
e83b8e2e
JJ
61822014-01-09 Jakub Jelinek <jakub@redhat.com>
6183
6184 PR target/58115
6185 * c-pch.c (c_common_write_pch): Call
6186 prepare_target_option_nodes_for_pch.
6187
23a5b65a
RS
61882014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6189
6190 Update copyright years
6191
f9030485
RS
61922014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
6193
6194 * array-notation-common.c, c-cilkplus.c: Use the standard form for
6195 the copyright notice.
6196
f2aa696b
EB
61972013-12-28 Eric Botcazou <ebotcazou@adacore.com>
6198
6199 * c-ada-spec.c (print_constructor): New function.
6200 (print_destructor): Retrieve the origin of the destructor.
6201 (print_ada_declaration): Revamp handling of constructors/destructors.
6202
3f8257db 62032013-12-23 Stuart Hastings <stuart@apple.com>
1f26ac87
JM
6204 Bill Maddox <maddox@google.com>
6205 Jason Merrill <jason@redhat.com>
6206
6207 * c.opt: Add -fdeclone-ctor-dtor.
6208 * c-opts.c (c_common_post_options): Default to on iff -Os.
6209
41958c28
BI
62102013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
6211
6212 * c-common.c (c_common_attribute_table): Added "cilk simd function"
6213 attribute.
6214 * c-pragma.h (enum pragma_cilk_clause): Remove.
6215 (enum pragma_omp_clause): Added the following fields:
6216 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
6217 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
6218 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
6219 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
6220 PRAGMA_CILK_CLAUSE_UNIFORM.
6221
b1726d6c 6222
12893402
BI
62232013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
6224
6225 * cilk.c (cilk_outline): Made this function non-static.
6226 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
6227 (create_cilk_wrapper): Added a new parameter: a function pointer.
6228 (c_install_body_w_frame_cleanup): Remove
6229 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
6230 * c-common.h (cilk_outline): New prototype.
6231 (gimplify_cilk_spawn): Removed two parameters.
6232 (cilk_install_body_with_frame_cleanup): New prototype.
6233 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
6234 CILK_SPAWN_STMT case.
6235
085b42ed
BS
62362013-12-11 Bernd Schmidt <bernds@codesourcery.com>
6237
2ce064c3
BS
6238 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
6239
085b42ed
BS
6240 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
6241 (int_array_type_node): Remove.
6242 * c-common.c (c_common_nodes_and_builtins): Don't build it.
6243
9e36c9ed
MP
62442013-12-05 Marek Polacek <polacek@redhat.com>
6245
6246 PR c/52023
6247 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
6248 [ADJUST_FIELD_ALIGN].
6249
296674db
JM
62502013-12-04 Joseph Myers <joseph@codesourcery.com>
6251
6252 PR c/52023
6253 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
6254 and check field alignment if set.
6255 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
6256 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
6257
b1726d6c 62582013-12-04 Jakub Jelinek <jakub@redhat.com>
31e071ae
MP
6259 Marek Polacek <polacek@redhat.com>
6260
6261 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
6262 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
6263
d7947e19
L
62642013-11-29 H.J. Lu <hongjiu.lu@intel.com>
6265
6266 PR c/59309
6267 * cilk.c (gimplify_cilk_spawn): Properly handle function without
6268 arguments.
6269
fad7652e
JJ
62702013-11-29 Jakub Jelinek <jakub@redhat.com>
6271
6272 PR c/59280
6273 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
6274 goto invalid. If it is error_mark_node, don't issue further
6275 diagnostics.
6276
8b5e1202
SO
62772013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
6278
6279 * c.opt (Wopenmp-simd): New.
6280
0a508bb6
JJ
62812013-11-22 Jakub Jelinek <jakub@redhat.com>
6282
6283 * c-ubsan.h (ubsan_instrument_return): New prototype.
6284 * c-ubsan.c (ubsan_instrument_return): New function.
6285
2fb9a547
AM
62862013-11-22 Andrew MacLeod <amacleod@redhat.com>
6287
6288 * c-common.c: Add required include files from gimple.h.
6289 * c-gimplify.c: Likewise
6290 * cilk.c: Likewise
6291
8400e75e
DM
62922013-11-22 David Malcolm <dmalcolm@redhat.com>
6293
6294 * c-common.c (unsafe_conversion_p): Remove use of
6295 EXPR_LOC_OR_HERE macro.
6296 (conversion_warning): Likewise.
6297 (warnings_for_convert_and_check): Likewise.
6298 (warn_for_collisions_1): Likewise.
6299 (shorten_compare): Likewise, and remove use of in_system_header
6300 macro, using the location from the former.
6301 * c-lex.c (dump_one_header): Remove use of input_filename macro.
6302 (cb_def_pragma): Remove use of in_system_header macro.
6303 (lex_string): Likewise.
6304 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
6305
eb1ce453
KZ
63062013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6307 Mike Stump <mikestump@comcast.net>
6308 Richard Sandiford <rdsandiford@googlemail.com>
6309
6310 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
6311 instead of TREE_INT_CST_LOW, in cases where there is a protecting
6312 tree_fits_shwi_p or tree_fits_uhwi_p.
6313 (dump_generic_ada_node): Likewise.
6314 * c-format.c (check_format_arg): Likewise.
6315 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6316
6b3b8c27
KZ
63172013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6318
6319 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
6320
49b0aa18
JC
63212013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
6322
6323 PR c/53001
6324 * c-common.c (unsafe_conversion_p): Make this function
6325 return an enumeration with more detail.
6326 (conversion_warning): Use the new return type of
6327 unsafe_conversion_p to separately warn either about conversions
6328 that lower floating point number precision or about the other
6329 kinds of conversions.
6330 * c-common.h (enum conversion_safety): New enumeration.
8e745a17
JJ
6331 (unsafe_conversion_p): switching return type to
6332 conversion_safety enumeration.
49b0aa18
JC
6333 * c.opt: Adding new warning -Wfloat-conversion and
6334 enabling it with -Wconversion.
6335
b826515a
BS
63362013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
6337
8e745a17
JJ
6338 * c-opts.c: Include plugin.h.
6339 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
b826515a 6340
b9a55b13
MP
63412013-11-19 Marek Polacek <polacek@redhat.com>
6342
6343 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
6344 call.
6345 (ubsan_instrument_shift): Likewise.
6346 (ubsan_instrument_vla): Likewise.
6347
7d362f6c
RS
63482013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6349
6350 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
6351 cast to unsigned type.
6352
386b1f1f
RS
63532013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6354
6355 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
6356 tree_low_cst.
6357 (complete_array_type): Update comment to refer to tree_to_[su]hwi
6358 rather than tree_low_cst.
6359
ae7e9ddd
RS
63602013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6361
6362 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
6363 tree_to_uhwi throughout.
6364
9439e9a1
RS
63652013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6366
6367 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
6368 tree_low_cst (..., 0) with tree_to_shwi throughout.
6369
cc269bb6
RS
63702013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6371
6372 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
6373 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
6374
9541ffee
RS
63752013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
6376
6377 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
6378 host_integerp (..., 0) with tree_fits_shwi_p throughout.
6379
c02065fc
AH
63802013-11-15 Aldy Hernandez <aldyh@redhat.com>
6381
6382 * c-cilkplus.c: New file.
6383 * c-common.c (readonly_error): Add location argument.
6384 * c-common.h (readonly_error): Same.
6385 (c_finish_cilk_clauses): Protoize.
6386 (c_check_cilk_loop): Same.
6387 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
6388 Do not fail on error_mark_node.
6389 Abstract increment canonicalization to here...
6390 (c_omp_for_incr_canonicalize_ptr): New.
6391 c-pragma.c (init_pragma): Register "simd" pragma.
6392 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
6393 (enum pragma_cilk_clause): New.
6394
9cc65f15
RS
63952013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
6396
6397 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
6398 wchar_type and host_integerp checks.
6399
18f429e2
AM
64002013-11-14 Andrew MacLeod <amacleod@redhat.com>
6401
6402 * c-common.c: Likewise.
6403 * c-gimplify.c: Likewise.
6404 * cilk.c: Likewise.
6405
d8a2d370
DN
64062013-11-14 Diego Novillo <dnovillo@google.com>
6407
6408 * c-common.c: Include fold-const.h.
6409 Include stor-layout.h.
6410 Include calls.h.
6411 Include stringpool.h.
6412 Include attribs.h.
6413 Include varasm.h.
6414 Include trans-mem.h.
6415 * c-cppbuiltin.c: Include stor-layout.h.
6416 Include stringpool.h.
6417 * c-format.c: Include stringpool.h.
6418 * c-lex.c: Include stringpool.h.
6419 Include stor-layout.h.
6420 * c-pragma.c: Include stringpool.h.
6421 Include attribs.h.
6422 Include varasm.h.
6423 Include gcc-symtab.h.
6424 * c-pretty-print.c: Include stor-layout.h.
6425 Include attribs.h.
6426 * cilk.c: Include stringpool.h.
6427 Include calls.h.
6428
38b7bc7f
JM
64292013-11-13 Joseph Myers <joseph@codesourcery.com>
6430
6431 * c-common.h (enum rid): Add RID_AUTO_TYPE.
6432 * c-common.c (c_common_reswords): Add __auto_type.
6433 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
6434
45b0be94
AM
64352013-11-12 Andrew MacLeod <amacleod@redhat.com>
6436
18f429e2
AM
6437 * c-common.c: Include gimplify.h.
6438 * c-gimplify.c: Likewise.
6439 * cilk.c: Likewise.
6440 * c-omp.c: Include gimple-expr.h instead of gimple.h.
6441 * c-ubsan.c: Don't include gimple.h.
45b0be94 6442
582d9b50
JM
64432013-11-12 Joseph Myers <joseph@codesourcery.com>
6444
6445 * c-common.c (c_common_reswords): Add _Thread_local.
6446
6b28e197
JM
64472013-11-09 Joseph Myers <joseph@codesourcery.com>
6448
6449 * c-common.c (atomic_size_supported_p): New function.
6450 (resolve_overloaded_atomic_exchange)
6451 (resolve_overloaded_atomic_compare_exchange)
6452 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
6453 Use it instead of comparing size with a local list of sizes.
6454
267bac10
JM
64552013-11-07 Andrew MacLeod <amacleod@redhat.com>
6456 Joseph Myers <joseph@codesourcery.com>
6457
6458 * c-common.h (enum rid): Add RID_ATOMIC.
6459 * c-common.c (c_common_reswords): Add _Atomic.
6460 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
6461 (keyword_is_type_qualifier): Accept RID_ATOMIC.
6462 * c-format.c (check_format_types): Check for extra _Atomic
6463 qualifiers in format argument.
6464 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
6465 (pp_c_type_qualifier_list): Mention _Atomic in comment.
6466
5157b91e
TB
64672013-11-06 Tobias Burnus <burnus@net-b.de>
6468
6469 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
6470
6dbe0958
JM
64712013-11-06 Joseph Myers <joseph@codesourcery.com>
6472
6473 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
6474 standards modes.
6475 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
6476 to mean lack of IEEE 754 support.
6477
e8ff5196
TB
64782013-11-05 Tobias Burnus <burnus@net-b.de>
6479
6480 * c.opt (-Wdate-time): New option
6481 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
6482
254a0760
JM
64832013-11-05 Joseph Myers <joseph@codesourcery.com>
6484
6485 * c-cppbuiltin.c (cpp_iec_559_value): Test
6486 flag_excess_precision_cmdline not flag_excess_precision.
6487
6d7f7e0a
TB
64882013-11-05 Tobias Burnus <burnus@net-b.de>
6489
6490 * c.opt (fopenmp-simd): New option.
6491 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
6492 (omp_pragmas): ... this new struct.
6493 (c_pp_lookup_pragma): Also walk omp_pragmas.
6494 (init_pragma): Init pragmas for -fopenmp-simd.
6495
55a7f02f
MP
64962013-11-04 Marek Polacek <polacek@redhat.com>
6497
6498 PR c++/58979
6499 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
6500
9193fb05
JM
65012013-11-04 Joseph Myers <joseph@codesourcery.com>
6502
6503 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
6504 New functions.
6505 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
6506
94159ecf
EB
65072013-11-04 Eric Botcazou <ebotcazou@adacore.com>
6508
6509 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
6510 (dump_ada_specs): Adjust prototype of second callback.
6511 * c-ada-spec.c (cpp_check): New global variable.
6512 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
6513 (print_generic_ada_decl): Likewise.
6514 (has_static_fields): Change return type to bool and add guard.
6515 (has_nontrivial_methods): New predicate.
6516 (is_tagged_type): Change return type to bool.
6517 (separate_class_package): Call has_nontrivial_methods.
6518 (pp_ada_tree_identifier): Minor tweaks.
6519 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
6520 (dump_ada_array_domains): Likewise.
6521 (dump_ada_array_type): Likewise.
6522 (dump_template_types): Remove cpp_check parameter and do not pass it to
6523 dump_generic_ada_node.
6524 (dump_ada_template): Likewise.
6525 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
6526 recursively.
6527 (print_ada_methods): Change return type to integer. Remove cpp_check
6528 parameter and do not pass it down.
6529 (dump_nested_types): Remove cpp_check parameter and do not pass it to
6530 dump_generic_ada_node.
6531 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
6532 accessing methods.
6533 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
6534 down. Use has_nontrivial_methods to recognize C++ classes. Use return
6535 value of print_ada_methods.
6536 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
6537 Set cpp_check to it before invoking dump_ada_nodes.
6538 (dump_ada_specs): Likewise.
6539
b906f4ca
MP
65402013-11-03 Marek Polacek <polacek@redhat.com>
6541
6542 * c-ubsan.c: Don't include hash-table.h.
6543 (ubsan_instrument_vla): New function.
6544 * c-ubsan.h: Declare it.
6545
5e20cdc9
DM
65462013-10-31 David Malcolm <dmalcolm@redhat.com>
6547
6548 Automated part of renaming of symtab_node_base to symtab_node.
6549
6550 Patch autogenerated by rename_symtab.py from
6551 https://github.com/davidmalcolm/gcc-refactoring-scripts
6552 revision 58bb219cc090b2f4516a9297d868c245495ee622
6553
6554 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
6555 symtab_node_base to symtab_node.
6556
7057e645
ESR
65572013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
6558
8e745a17 6559 Implement C++14 digit separators.
7057e645
ESR
6560 * c-lex.c (interpret_float): Remove digit separators from scratch string
6561 before building real literal.
6562
193ea7bc
JJ
65632013-10-30 Jakub Jelinek <jakub@redhat.com>
6564
6565 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
6566
939b37da
BI
65672013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
6568
6569 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
6570 fields.
6571 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
6572 enabled.
6573 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
6574 (insert_cilk_frame): New prototype.
6575 (cilk_init_builtins): Likewise.
6576 (gimplify_cilk_spawn): Likewise.
6577 (c_cilk_install_body_w_frame_cleanup): Likewise.
6578 (cilk_detect_spawn_and_unwrap): Likewise.
6579 (cilk_set_spawn_marker): Likewise.
6580 (build_cilk_sync): Likewise.
6581 (build_cilk_spawn): Likewise.
6582 * cilk.c: New file.
6583
67348ccc
DM
65842013-10-29 David Malcolm <dmalcolm@redhat.com>
6585
6586 Patch autogenerated by refactor_symtab.py from
6587 https://github.com/davidmalcolm/gcc-refactoring-scripts
6588 revision 58bb219cc090b2f4516a9297d868c245495ee622
6589
6590 * c-gimplify.c (c_genericize): Update for conversion of symtab types
6591 to a true class hierarchy.
6592 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
6593
d570872d
RS
65942013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
6595
6596 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
6597
98906124
JL
65982013-10-26 Jeff Law <law@redhat.com>
6599
adfac8df
JJ
6600 * c-common.c (c_define_builtins): Remove mudflap support.
6601 * c.opt: Ignore and warn for mudflap options.
98906124 6602
d73749df 66032013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
6604
6605 PR other/33426
6606 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
6607 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
6608
3f04b1bb
JM
66092013-10-23 Jason Merrill <jason@redhat.com>
6610
6611 * c-format.c (gcc_cxxdiag_char_table): Add %X.
6612
acf0174b
JJ
66132013-10-11 Jakub Jelinek <jakub@redhat.com>
6614
acd15a28
JJ
6615 * c-common.h (omp_clause_mask::operator !=): New method.
6616 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
6617 instead of if (mask & something) tests everywhere.
6618
acf0174b
JJ
6619 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
6620 201307 instead of 201107.
6621 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
6622 (c_common_attribute_table): Add "omp declare target" and
6623 "omp declare simd" attributes.
6624 (handle_omp_declare_target_attribute,
6625 handle_omp_declare_simd_attribute): New functions.
6626 * c-omp.c: Include c-pragma.h.
6627 (c_finish_omp_taskgroup): New function.
6628 (c_finish_omp_atomic): Add swapped argument, if true,
6629 build the operation first with rhs, lhs arguments and use NOP_EXPR
6630 build_modify_expr.
6631 (c_finish_omp_for): Add code argument, pass it down to make_code.
6632 (c_omp_split_clauses): New function.
6633 (c_split_parallel_clauses): Removed.
6634 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
6635 c_omp_declare_simd_clauses_to_decls): New functions.
6636 * c-common.h (omp_clause_mask): New type.
6637 (OMP_CLAUSE_MASK_1): Define.
6638 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
6639 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
6640 omp_clause_mask::operator |, omp_clause_mask::operator &,
6641 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
6642 omp_clause_mask::operator ==): New methods.
6643 (enum c_omp_clause_split): New.
6644 (c_finish_omp_taskgroup): New prototype.
6645 (c_finish_omp_atomic): Add swapped argument.
6646 (c_finish_omp_for): Add code argument.
6647 (c_omp_split_clauses): New prototype.
6648 (c_split_parallel_clauses): Removed.
6649 (c_omp_declare_simd_clauses_to_numbers,
6650 c_omp_declare_simd_clauses_to_decls): New prototypes.
6651 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
6652 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
6653 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
6654 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
6655 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
6656 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
6657 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
6658 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
6659 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
6660 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
6661 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
6662 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
6663 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
6664 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
6665 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
6666 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
6667 PRAGMA_OMP_CLAUSE_UNIFORM.
6668
826cacfe
MG
66692013-10-09 Marc Glisse <marc.glisse@inria.fr>
6670
6671 PR tree-optimization/20318
6672 * c-common.c (handle_returns_nonnull_attribute): New function.
6673 (c_common_attribute_table): Add returns_nonnull.
6674
2284b034
MG
66752013-10-03 Marc Glisse <marc.glisse@inria.fr>
6676
6677 PR c++/19476
6678 * c.opt (fcheck-new): Move to common.opt.
6679
b56e9788
MP
66802013-09-25 Marek Polacek <polacek@redhat.com>
6681 Jakub Jelinek <jakub@redhat.com>
6682
6683 PR sanitizer/58413
6684 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
6685 an expression if we can prove it is correct.
6686 (ubsan_instrument_division): Likewise. Remove unnecessary
6687 check.
6688
ce6923c5
MP
66892013-09-18 Marek Polacek <polacek@redhat.com>
6690
6691 PR sanitizer/58411
6692 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
6693 Declare it.
6694 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
6695
fb5610fb
IS
66962013-09-14 Iain Sandoe <iain@codesourcery.com>
6697
6698 PR target/48094
6699 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
6700 fobjc-gc, freplace-objc-classes): Accept for LTO.
6701
88b0e79e
JC
67022013-09-13 Jacek Caban <jacek@codeweavers.com>
6703
6704 * c-target.def: New hook
6705
c9b0866a
PC
67062013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6707
6708 PR c++/43452
6709 * c.opt (Wdelete-incomplete): Add.
6710
0af94e6f
JR
67112013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
6712
6713 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
6714 (vector_types_compatible_elements_p): New function.
6715 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
6716 declaration.
6717 (vector_types_compatible_elements_p): Declare.
6718
7c26172c
GDR
67192013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6720
6721 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
6722 a virtual member function.
6723 (pp_simple_type_specifier): Remove.
6724 (pp_c_type_specifier): Likewise.
6725 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
6726 Rename from pp_c_type_specifier. Adjust.
6727 (c_pretty_printer::c_pretty_printer): Do not assign to
6728 simple_type_specifier.
6729
20059c8b
GDR
67302013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6731
6732 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
6733 member function.
6734 (c_pretty_printer::storage_class_specifier): Likewise.
6735 (c_pretty_printer::initializer): Likewise.
6736 (pp_declaration): Remove.
6737 (pp_declaration_specifiers): Likewise.
6738 (pp_abstract_declarator): Likewise.
6739 (pp_declarator): Likewise.
6740 (pp_type_id): Likewise.
6741 (pp_statement): Likewise.
6742 (pp_constant): Likewise.
6743 (pp_id_expression): Likewise.
6744 (pp_primary_expression): Likewise.
6745 (pp_unary_expression): Likewise.
6746 (pp_multiplicative_expression): Likewise.
6747 (pp_conditional_expression): Likewise.
6748 (pp_assignment_expression): Likewise.
6749 (pp_expression): Likewise.
6750 (pp_c_type_id): Likewise.
6751 (pp_c_storage_class_specifier): Likewise.
6752 * c-pretty-print.c (pp_c_type_cast): Tidy.
6753 (pp_c_pointer): Likewise.
6754 (pp_c_type_specifier): Likewise.
6755 (pp_c_parameter_type_list): Likewise.
6756 (pp_c_function_definition): Likewise.
6757 (pp_c_init_declarator): Likewise.
6758 (pp_c_initializer_list): Likewise.
6759 (pp_c_constructor_elts): Likewise.
6760 (c_pretty_printer::direct_abstract_declarator): Likewise.
6761 (c_pretty_printer::declaration_specifiers): Likewise.
6762 (c_pretty_printer::primary_expression): Likewise.
6763 (c_pretty_printer::postfix_expression): Likewise.
6764 (c_pretty_printer::type_id): Rename from pp_c_type_id.
6765 (c_pretty_printer::storage_class_specifier): Rename from
6766 pp_c_storage_class_specifier.
6767 (c_pretty_printer::initializer): Rename from pp_c_initializer.
6768 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
6769 storage_class_specifier, initializer, offset_list, flags.
6770
de5a5fa1
MP
67712013-08-30 Marek Polacek <polacek@redhat.com>
6772
6773 * c-ubsan.c: New file.
6774 * c-ubsan.h: New file.
6775
8f0e4d72
GDR
67762013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
6777
6778 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
6779 member function.
6780 (c_pretty_printer::declaration_specifiers): Likewise.
6781 (c_pretty_printer::declarator): Likewise.
6782 (c_pretty_printer::abstract_declarator): Likewise.
6783 (c_pretty_printer::direct_abstract_declarator): Likewise.
6784 (c_pretty_printer::direct_declarator): Likewise.
6785 (c_pretty_printer::function_specifier): Likewise.
6786 (pp_declaration): Adjust.
6787 (pp_declaration_specifiers): Likewise.
6788 (pp_abstract_declarator): Likewise.
6789 (pp_direct_declarator): Likewise.
6790 (pp_function_specifier): Likewise.
6791 (pp_direct_abstract_declarator): Remove as unused.
6792 (pp_c_declaration): Remove.
6793 (pp_c_declaration_specifiers): Likewise.
6794 (pp_c_declarator): Likewise.
6795 (pp_c_direct_declarator): Likewise.
6796 (pp_c_function_specifier): Likewise.
6797 (pp_c_direct_abstract_declarator): Likewise.
6798 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
6799 from pp_c_abstract_declarator. Adjust.
6800 (c_pretty_printer::direct_abstract_declarator): Rename from
6801 pp_c_direct_abstract_declarator. Adjust.
6802 (c_pretty_printer::function_specifier): Rename from
6803 pp_c_function_specifier. Adjust.
6804 (c_pretty_printer::declaration_specifiers): Rename from
6805 pp_c_declaration_specifiers. Adjust.
6806 (c_pretty_printer::direct_declarator): Rename from
6807 pp_c_direct_declarator. Adjust.
6808 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
6809 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
6810 (c_pretty_printer::c_pretty_printer): Do not assign to
6811 declaration, declaration_specifiers, declarator,
6812 direct_declarator, direct_abstract_declarator, function_specifier.
6813
00d34d3a
GDR
68142013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
6815
6816 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
6817 virtual member function.
6818 (c_pretty_printer::multiplicative_expression): Likewise.
6819 (c_pretty_printer::conditional_expression): Likewise.
6820 (c_pretty_printer::assignment_expression): Likewise.
6821 (c_pretty_printer::expression): Likewise.
6822 (pp_unary_expression): Adjust.
6823 (pp_multiplicative_expression): Likewise.
6824 (pp_assignment_expression): Likewise.
6825 (pp_conditional_expression): Likewise.
6826 (pp_expression): Likewise.
6827 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
6828 from pp_c_unary_expression. Adjust.
6829 (c_pretty_printer::multiplicative_expression): Rename from
6830 pp_c_multiplicative_expression. Adjust.
6831 (c_pretty_printer::conditional_expression): Rename from
6832 pp_c_conditional_expression. Adjust.
6833 (c_pretty_printer::assignment_expression): Rename from
6834 pp_c_assignment_expression. Adjust.
6835 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
6836 (c_pretty_printer::c_pretty_printer): Do not assign to
6837 unary_expression, multiplicative_expression,
6838 conditional_expression, expression.
6839
fb22178f
GDR
68402013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6841
6842 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
6843 virtual member function.
6844 (pp_postfix_expression): Adjust.
6845 (pp_c_postfix_expression): Remove.
6846 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
6847 from pp_c_postfix_expression. Adjust.
6848 (c_pretty_printer::c_pretty_printer): Do not assign to
6849 postfix_expression.
6850
7ecc2600
GDR
68512013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6852
6853 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
6854 virtua member function.
6855 (pp_primary_expression): Adjust.
6856 (pp_c_primary_expression): Remove.
6857 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
6858 from pp_c_primary_expression. Adjust.
6859 (pp_c_initializer_list): Use pp_primary_expression.
6860 (c_pretty_printer::c_pretty_printer): Do not assign to
6861 primary_expression.
6862
0691175f
GDR
68632013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6864
6865 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
6866 * c-pretty-print.c (M_): Remove.
6867 (c_pretty_printer::translate_string): Define.
6868 (pp_c_type_specifier): Use it.
6869 (pp_c_primary_expression): Likewise.
6870 (pp_c_expression): Likewise.
6871
66dfe4c4
GDR
68722013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6873
6874 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
6875 virtual function.
6876 (pp_c_id_expression): Remove.
6877 (pp_id_expression): Adjust.
6878 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
6879 pp_c_id_expression. Adjust.
6880 (pp_c_postfix_expression): Use pp_id_expression.
6881 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
6882
ca43e9d5
GDR
68832013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
6884
6885 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
6886 member function.
6887 (pp_constant): Adjust.
6888 (pp_c_constant): Remove.
6889 * c-pretty-print.c (c_pretty_printer::constant): Rename from
6890 pp_c_constant. Adjust.
6891 (pp_c_constant)
6892 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
6893 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
6894
da6ca2b5
GDR
68952013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
6896
6897 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
6898 (c_pretty_printer::c_pretty_printer): Declare.
6899 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
6900 c_pretty_printer_init. Adjust.
6901 (print_c_tree): Do not call c_pretty_printer_init.
6902 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
6903
65a372f4
AC
69042013-08-09 Arnaud Charlet <charlet@adacore.com>
6905
6906 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
6907
fd9b0f32
PC
69082013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
6909
6910 PR c++/58080
6911 * c-common.c (pointer_int_sum): Add bool parameter.
6912 * c-common.h (pointer_int_sum): Adjust declaration.
6913
e0aec1e9
GDR
69142013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
6915
6916 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
6917 c_pretty_printer variable.
6918
b066401f
GDR
69192013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
6920
6921 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
6922 (pp_base): Remove.
6923 (pp_c_base): Likewise. Adjust users.
6924 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
6925 (pp_c_whitespace): Do not call pp_base.
6926 (pp_c_left_paren): Likewise.
6927 (pp_c_right_paren): Likewise.
6928 (pp_c_left_brace): Likewise.
6929 (pp_c_right_brace): Likewise.
6930 (pp_c_left_bracket): Likewise.
6931 (pp_c_right_bracket): Likewise.
6932 (pp_c_dot): Likewise.
6933 (pp_c_ampersand): Likewise.
6934 (pp_c_star): Likewise.
6935 (pp_c_arrow): Likewise.
6936 (pp_c_semicolon): Likewise.
6937 (pp_c_complement): Likewise.
6938 (pp_c_exclamation): Likewise.
6939 (pp_c_direct_declarator): Likewise.
6940 (pp_c_ws_string): Likewise.
6941 (pp_c_identifier): Likewise.
6942 (pp_c_statement): Likewise.
6943 (print_c_tree): Likewise.
6944
65e5a578
ESR
69452013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
6946
6947 PR c++/58072
6948 * c-common.c (c_parse_error): Catch user-defined literal tokens and
6949 provide useful error strings.
6950
137a1a27
GDR
69512013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6952
6953 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
6954 printer functions instead of pp_string or operators and punctuators.
6955 (dump_generic_ada_node): Likewise.
6956 * c-pretty-print.c (pp_c_type_specifier): Likewise.
6957 (pp_c_relational_expression): Likewise.
6958 (pp_c_logical_or_expression): Likewise.
6959
07838b13
GDR
69602013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
6961
6962 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
6963 functions instead of pp_character.
6964 (pp_ada_tree_identifier): Likewise.
6965 (dump_ada_double_name): Likewise.
6966 (dump_ada_function_declaration): Likewise.
6967 (dump_ada_array_domains): Likewise.
6968 (dump_template_types): Likewise.
6969 (dump_generic_ada_node): Likewise.
6970 (print_ada_declaration): Likewise.
6971 (print_ada_struct_decl): Likewise.
6972 * c-pretty-print.c (pp_c_integer_constant): Likewise.
6973
433cc7b0
TT
69742013-07-23 Tom Tromey <tromey@redhat.com>
6975
6976 * c-common.h (enum rid) <RID_GENERIC>: New constant.
6977 * c-common.c (c_common_reswords): Add _Generic.
6978
688010ba
OB
69792013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
6980
6981 * c-common.c: Fix typos.
6982 * c-common.h: Likewise.
6983
2a99e5e6
LL
69842013-07-13 Lubos Lunak <l.lunak@suse.cz>
6985
6986 PR c++/55203
6987 * c-common.c (c_common_attribute_table): Add warn_unused.
6988 (handle_warn_unused_attribute): New.
6989
c26302d5
JJ
69902013-07-10 Jakub Jelinek <jakub@redhat.com>
6991
6992 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
6993 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
6994
dfeadaa0
PC
69952013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
6996
6997 PR c++/57869
6998 * c.opt: Add Wconditionally-supported.
6999
6a2fa4b2
GS
70002013-07-08 Graham Stott <graham.stott@btinternet.com>
7001
adfac8df 7002 * array-notation-common.c (length_mismatch_in_expr_p): Delete
6a2fa4b2
GS
7003 unused variables l_length and l_node.
7004
ecdbd01a 70052013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
7006
7007 PR c/57821
7008 * c-common.c (complete_array_type): Delay folding first index
7009 like other indices. When folding, check for index overflow.
7010
bedc293e
MG
70112013-06-27 Marc Glisse <marc.glisse@inria.fr>
7012
7013 PR c++/57509
7014 * c-common.h (c_build_vec_perm_expr): New complain argument.
7015 * c-common.c (c_build_vec_perm_expr): Likewise.
7016 Use save_expr also in C++.
7017
604b2bfc
GDR
70182013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
7019
7020 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
7021 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7022 * c-opts.c (c_common_post_options): Likewise.
7023
dfeadaa0 70242013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
7025
7026 * array-notation-common.c (length_mismatch_in_expr): Changed the
7027 parameter type's from a dynamic array to a vec_tree. Also removed
7028 the size parameters.
7029 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
7030 the change above.
7031
2ce86d2e
BI
70322013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
7033
7034 * c-common.h (struct cilkplus_an_parts): New structure.
7035 (struct cilkplus_an_loop_parts): Likewise.
7036 (cilkplus_extract_an_triplets): New prototype.
7037 (fix_sec_implicit_args): Likewise.
7038 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
7039 (fix_sec_implicit_args): Likewise.
604b2bfc 7040
07a6825b
BI
70412013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
7042
7043 * array-notation-common.c (find_inv_trees): Removed an unwanted
7044 typecasting.
7045 * c-common.h (struct inv_list::additional_tcodes): Changed type from
7046 enum rid to enum tree_code.
7047
08346abd
JH
70482013-06-11 Jan Hubicka <jh@suse.cz>
7049
7050 * c-common.c (handle_alias_ifunc_attribute): Do not set
7051 DECL_EXTERNAL for weakref variables.
7052 * c-pragma.c (handle_pragma_weak): Make sure aliases
7053 are not declared as external.
7054
d60f1706
BI
70552013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
7056
7057 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
7058 function from c/c-array-notation.c.
7059 (is_cilkplus_reduce_builtin): Likewise.
7060 (find_rank): Likewise.
7061 (extract_array_notation_exprs): Likewise.
7062 (replace_array_notations): Likewise.
7063 (find_inv_trees): Likewise.
7064 (replace_inv_trees): Likewise.
7065 (contains_array_notation_expr): Likewise.
7066 (find_correct_array_notation_type): Likewise.
7067 * c-common.h (struct inv_list): Moved this struct from the file
7068 c/c-array-notation.c and added a new field called additional tcodes.
7069 (length_mismatch_in_expr_p): New prototype.
7070 (is_cilkplus_reduce_builtin): Likewise.
7071 (find_rank): Likewise.
7072 (extract_array_notation_exprs): Likewise.
7073 (replace_array_notation): Likewise.
7074 (find_inv_trees): Likewise.
7075 (replace_inv_trees): Likewise.
7076 (find_correct_array_notation_type): Likewise.
dfeadaa0 7077
36536d79
BI
70782013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
7079
7080 * c-common.c (c_define_builtins): When cilkplus is enabled, the
7081 function array_notation_init_builtins is called.
7082 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
7083 * c-common.def (ARRAY_NOTATION_REF): New tree.
7084 * c-common.h (build_array_notation_expr): New function declaration.
7085 (build_array_notation_ref): Likewise.
7086 (extract_sec_implicit_index_arg): New extern declaration.
7087 (is_sec_implicit_index_fn): Likewise.
7088 (ARRAY_NOTATION_CHECK): New define.
7089 (ARRAY_NOTATION_ARRAY): Likewise.
7090 (ARRAY_NOTATION_START): Likewise.
7091 (ARRAY_NOTATION_LENGTH): Likewise.
7092 (ARRAY_NOTATION_STRIDE): Likewise.
7093 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
7094 ARRAY_NOTATION_REF.
7095 (pp_c_expression): Likewise.
7096 * c.opt (flag_enable_cilkplus): New flag.
7097 * array-notation-common.c: New file.
7098
f7716d57
JJ
70992013-05-14 Jakub Jelinek <jakub@redhat.com>
7100
7101 PR c++/57274
7102 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
7103
a5e0cd1d
MG
71042013-05-10 Marc Glisse <marc.glisse@inria.fr>
7105
7106 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
7107 vectors.
7108
f6bc1c4a
HS
71092013-05-07 Han Shen <shenhan@google.com>
7110
7111 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
7112
3f12f6e9
SKS
71132013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7114
7115 * c-common.c (check_user_alignment): Emit error for negative values.
7116
61949153
PC
71172013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7118
7119 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
7120
e93e18e9
PC
71212013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7122
7123 * c-cppbuiltin.c (c_cpp_builtins): Do not define
7124 __GXX_EXPERIMENTAL_CXX1Y__.
7125
44d90fe1 71262013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8e745a17 7127 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
44d90fe1
PC
7128
7129 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
7130 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
7131 to simply use OPT_Wpointer_arith.
7132 (c_sizeof_or_alignof_type): Likewise.
7133
13f39b2e
PC
71342013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
7135
7136 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
7137
4b84d650
JJ
71382013-04-12 Jakub Jelinek <jakub@redhat.com>
7139
7140 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
7141 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
7142 specifiers.
7143
fb037b5d
SB
71442013-04-07 Steven Bosscher <steven@gcc.gnu.org>
7145
7146 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
7147
4e856798
PC
71482013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
7149
7150 * c-common.c (pointer_int_sum): Remove dead code.
7151
4b1baac8
RS
71522013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
7153
7154 PR middle-end/56524
7155 * c-common.c (handle_optimize_attribute): Don't call
7156 save_optabs_if_changed.
7157
0b50e654
JJ
71582013-03-05 Jakub Jelinek <jakub@redhat.com>
7159
7160 PR middle-end/56461
7161 * c-pch.c (pch_init): Free target_validity at the end.
7162
48c41403
JJ
71632013-03-04 Jakub Jelinek <jakub@redhat.com>
7164
7165 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
7166
e664c61c
KS
71672013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
7168 Jakub Jelinek <jakub@redhat.com>
7169
7170 PR sanitizer/56454
7171 * c-common.c (handle_no_sanitize_address_attribute): New function.
7172 (c_common_attribute_table): Add no_sanitize_address attribute.
7173 (handle_no_address_safety_analysis_attribute): Add
7174 no_sanitize_address attribute, not no_address_safety_analysis
7175 attribute.
7176
a475fd3d 71772013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
7178
7179 PR target/52555
7180 * c-common.c (handle_optimize_attribute): Call
7181 save_optabs_if_changed.
7182
f6007d99
JJ
71832013-02-18 Jakub Jelinek <jakub@redhat.com>
7184 Steven Bosscher <steven@gcc.gnu.org>
7185
7186 PR pch/54117
7187 * c-opts.c (c_common_post_options): If debug info is enabled
7188 and non-dwarf*, refuse to load PCH files and when writing PCH
7189 file warn.
7190
cf35e2b1
JJ
71912013-02-05 Jakub Jelinek <jakub@redhat.com>
7192
7193 PR middle-end/56167
7194 * c-common.c (handle_error_attribute): Fix condition.
7195
32887460
JJ
71962013-01-30 Jakub Jelinek <jakub@redhat.com>
7197
7198 PR c++/55742
7199 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
7200
5af057d8
JM
72012013-01-18 Jason Merrill <jason@redhat.com>
7202
7203 PR target/54908
7204 * c.opt (-fextern-tls-init): New.
7205 * c-opts.c (c_common_post_options): Handle it.
7206
cc83c823
JJ
72072013-01-09 Jakub Jelinek <jakub@redhat.com>
7208
7209 PR c/48418
7210 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
7211 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
7212 and is either negative or bigger or equal to type precision
7213 of the first operand.
7214
a859517f
MP
72152012-12-03 Marek Polacek <polacek@redhat.com>
7216
7217 PR c/55570
7218 * c-common.c (check_user_alignment): Swap order of tests,
7219 check TREE_CODE first.
7220
2d7aa578
ESR
72212012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
7222
7223 PR c++/52654
7224 * c-common.h (overflow_type): New enum.
7225 (build_userdef_literal): Add overflow_type argument.
7226 (tree_userdef_literal): Add overflow_type.
7227 (USERDEF_LITERAL_OVERFLOW): New access macro.
7228 * c-common.c (build_userdef_literal): Add overflow_type
7229 argument.
7230 * c-lex.c (c_lex_with_flags): Add overflow_type to
7231 build_userdef_literal calls.
7232 (interpret_integer, interpret_float): Add overflow_type argument.
7233
cc3c4f62
RB
72342012-11-28 Richard Biener <rguenther@suse.de>
7235
7236 PR c/35634
7237 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
7238 here and use a type with proper overflow behavior for types that would
7239 need to be promoted for the arithmetic.
7240
77bc5132
JJ
72412012-11-23 Jakub Jelinek <jakub@redhat.com>
7242
7243 PR sanitizer/55435
7244 * c-common.c (handle_no_address_safety_analysis_attribute): New
7245 function.
7246 (c_common_attribute_table): Add no_address_safety_analysis.
7247
5dc99c46
SB
72482012-11-16 Simon Baldwin <simonb@google.com>
7249
7250 * c.opt: Add f[no-]canonical-system-headers.
7251 * c-opts.c (c_common_handle_option): Handle
7252 OPT_fcanonical_system_headers.
7253
a4a0016d
ESR
72542012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
7255
7256 PR c++/54413
7257 * c-opts.c (c_common_handle_option): Set new flags.
7258 * c.opt: Describe new flags.
7259
7dbb85a7
JM
72602012-11-09 Jason Merrill <jason@redhat.com>
7261
7262 * c.opt (Wabi-tag): New.
7263
ad7bac31
AK
72642012-11-09 Andi Kleen <ak@linux.intel.com>
7265
7266 PR 55139
7267 * c-common.c (get_atomic_generic_size): Mask with
8e745a17 7268 MEMMODEL_MASK
ad7bac31 7269
7332899a
MLI
72702012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7271
7272 PR c/53063
7273 * c.opt (Wformat): Make it Alias Wformat=1.
7274 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
7275 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
7276 LangEnabledBy.
7277 (Wformat=): RejectNegative. Use LangEnabledBy.
7278 (Wnonnull): Use LangEnabledBy.
7279 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
7280 * c-format.c (set_Wformat): Delete.
7281 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
8e745a17
JJ
7282 (maybe_read_dollar_number): Likewise.
7283 (avoid_dollar_number): Likewise.
7284 (finish_dollar_format_checking): Likewise.
7285 (check_format_info): Likewise.
7286 (check_format_info_main): Likewise.
7287 (check_format_types): Likewise.
7288 (format_type_warning): Likewise.
7289 * c-common.c (int): Likewise.
7290 (check_function_sentinel): Likewise.
7291 * c-common.h (warn_format,set_Wformat): Do not declare here.
7332899a 7292
34a180a6
MLI
72932012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7294
7295 PR c/53063
7296 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
7297 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
7298 Use LangEnabledBy.
7299 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
7300 common.opt.
7301 (Wvariadic-macros): Init(1).
7302 * c-opts.c (c_common_handle_option): Do not handle them
7303 explicitly.
7304 (c_common_post_options): Likewise.
7305 (sanitize_cpp_opts): warn_unused_macros is now
7306 cpp_warn_unused_macros.
7307 (push_command_line_include): Likewise.
7308 * c-common.c (warn_unknown_pragmas): Do not define.
7309 * c-common.h (warn_unknown_pragmas): Do not declare.
7310
3f46d6a5
MLI
73112012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
7312
7313 PR c/51294
7314 * c-common.c (conversion_warning): Handle conditional expressions.
7315
880661a4
JW
73162012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
7317
7318 PR c++/54930
7319 * c.opt (Wreturn_local_addr): Define new option.
7320
4514a96b
JM
73212012-10-25 Jason Merrill <jason@redhat.com>
7322
f14edc1a
JM
7323 * c.opt (Wvirtual-move-assign): New.
7324
4514a96b
JM
7325 * c.opt (Winherited-variadic-ctor): New.
7326
93100c6b
MG
73272012-10-25 Marc Glisse <marc.glisse@inria.fr>
7328
7329 PR c++/54427
7330 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
7331
1efcb8c6
JM
73322012-10-23 Joseph Myers <joseph@codesourcery.com>
7333
7334 * c-common.h (pch_cpp_save_state): Declare.
7335 * c-target.def (c_preinclude): New hook.
7336 * c-opts.c (done_preinclude): New.
7337 (push_command_line_include): Handle default preincluded header.
7338 (cb_file_change): Call pch_cpp_save_state when calling
7339 push_command_line_include.
7340 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
7341 (pch_cpp_save_state): New.
7342 (pch_init): Call pch_cpp_save_state conditionally, instead of
7343 calling cpp_save_state.
7344
4a0ae68e
MLI
73452012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
7346
7347 PR c/53063
7348 PR c/40989
7349 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
7350 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
7351 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
7352 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
7353 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
7354 * c-opts.c (c_common_handle_option): Remove explicit handling from
7355 here.
7356 (c_common_post_options): Likewise.
7357
67e4210b
EB
73582012-10-18 Eric Botcazou <ebotcazou@adacore.com>
7359
7360 * c-ada-spec.c (LOCATION_COL): Delete.
7361 (compare_location): New function.
7362 (compare_node): Use it.
7363 (compare_comment): Likewise.
7364
65d4f2cd
MLI
73652012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
7366
7367 PR c/53063
7368 PR c/40989
7369 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
7370 * c-opts.c (c_common_handle_option): Do not set them here. Add
7371 comment.
7372 (c_common_post_options): Likewise.
7373
909881cb
EB
73742012-10-16 Eric Botcazou <ebotcazou@adacore.com>
7375
7376 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
7377 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
7378 Remove POINTER_TYPE handling, add large unsigned handling and use
7379 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
7380
3a785c97
JJ
73812012-10-12 Jakub Jelinek <jakub@redhat.com>
7382
7383 PR c/54381
7384 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
7385 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
7386 locs and array of 3 trees instead of just single loc and single
7387 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
7388 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
7389 For *cmp* builtins that take two sources strings report warnings
7390 about first and second source, not about destination and source.
7391
5e54f81d
MG
73922012-10-12 Marc Glisse <marc.glisse@inria.fr>
7393
7394 PR c++/53055
7395 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
7396
f5b02f1e
EB
73972012-10-11 Eric Botcazou <ebotcazou@adacore.com>
7398
7399 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
7400 declaring something coming from another file.
7401
b46dbc6c
AC
74022012-10-10 Arnaud Charlet <charlet@adacore.com>
7403
f5b02f1e 7404 PR ada/54845
b46dbc6c
AC
7405 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
7406
5d9de0d0
PC
74072012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
7408
7409 PR c++/54194
7410 * c-common.c (warn_about_parentheses): Add location_t parameter;
7411 use EXPR_LOC_OR_LOC.
7412 * c-common.h: Update declaration.
7413
a212e43f
MG
74142012-10-09 Marc Glisse <marc.glisse@inria.fr>
7415
7416 PR c++/54427
7417 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
7418 more operations. Make error messages optional.
7419 * c-common.h (enum stv_conv): Moved from c-typeck.c.
7420 (scalar_to_vector): Declare.
7421
b1db7f91
JM
74222012-10-08 Jason Merrill <jason@redhat.com>
7423
7424 * c-common.c (c_common_reswords): Add thread_local.
7425
e28d52cf
DS
74262012-10-08 Dodji Seketeli <dodji@redhat.com>
7427
7428 PR c++/53528 C++11 attribute support
7429 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
7430 new functions.
7431 * c-common.c (check_cxx_fundamental_alignment_constraints): New
7432 static function.
7433 (handle_aligned_attribute): In choose strictest alignment
7434 among many. Use new check_cxx_fundamental_alignment_constraints.
7435 (handle_transparent_union_attribute): In c++11 attribute syntax,
7436 don't look through typedefs.
7437
3b78de56
AC
74382012-10-04 Arnaud Charlet <charlet@adacore.com>
7439
7440 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
7441 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
7442 out of dumpfile.h.
7443
6040bb5f
DC
74442012-09-25 Dehao Chen <dehao@google.com>
7445
7446 PR middle-end/54645
3b78de56 7447 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
7448 map when read in the pch.
7449
3f8257db 74502012-09-18 Arnaud Charlet <charlet@adacore.com>
0b07a57e
AC
7451
7452 * c-ada-spec.c: Style fixes.
7453
3f8257db 74542012-09-18 Thomas Quinot <quinot@adacore.com>
da5182be
TQ
7455
7456 * c.opt (-fada-spec-parent): Define new command line switch.
7457 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
7458 is specified, generate binding spec as a child of the specified unit.
7459
0ccb505d
PC
74602012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
7461 Manuel López-Ibáñez <manu@gcc.gnu.org>
7462
7463 PR c++/53210
7464 * c.opt ([Winit-self]): Enabled by -Wall in C++.
7465
c583af79
AC
74662012-08-23 Arnaud Charlet <charlet@adacore.com>
7467
7468 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
7469 for pointers, and add missing Convention C pragma.
7470 (print_ada_struct_decl): Add missing aliased keyword.
7471 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
7472
1a4049e7
JJ
74732012-08-17 Jakub Jelinek <jakub@redhat.com>
7474
7475 * c-common.c (sizeof_pointer_memaccess_warning): New function.
7476 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
7477 * c-opts.c (c_common_handle_option): Enable it for -Wall.
7478 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
7479 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
7480
70b5e7dc
RG
74812012-08-10 Richard Guenther <rguenther@suse.de>
7482
7483 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
7484
f8923f7e
SB
74852012-08-07 Steven Bosscher <steven@gcc.gnu.org>
7486
7487 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
7488 instead of separate pp_newline and pp_flush.
7489 (print_c_tree): Likewise.
7490
e45abe1f
RH
74912012-07-26 Richard Henderson <rth@redhat.com>
7492
7493 * c-common.c (handle_hot_attribute): Allow labels.
7494 (handle_cold_attribute): Likewise.
7495
332f1d24
JJ
74962012-07-20 Jakub Jelinek <jakub@redhat.com>
7497
7498 PR c++/28656
7499 * c-common.c (check_function_nonnull): Handle multiple nonnull
7500 attributes properly.
7501
7ee2468b
SB
75022012-07-16 Steven Bosscher <steven@gcc.gnu.org>
7503
7504 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
7505 * c-ada-spec.c: Likewise.
7506 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
7507
ee7b28eb
SB
75082012-07-14 Steven Bosscher <steven@gcc.gnu.org>
7509
7510 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
7511 Remove code conditional on it.
7512
6bdf3519
SB
75132012-07-11 Steven Bosscher <steven@gcc.gnu.org>
7514
7515 * c-gimplify.c: Do not include basic-block.h.
7516 * c-common.c: Do not include linfuncs.h.
7517
532aafad
SB
75182012-07-08 Steven Bosscher <steven@gcc.gnu.org>
7519
7520 * c-common.h: Include tree.h.
7521
8d0d1915
JM
75222012-07-02 Jason Merrill <jason@redhat.com>
7523
7524 PR c++/53524
7525 * c-common.c (get_priority): Call default_conversion.
7526
fbc873ad
UB
75272012-07-01 Uros Bizjak <ubizjak@gmail.com>
7528
7529 * c-pch.c (c_common_write_pch): Remove unused variables.
7530
d4a10d0a
SB
75312012-06-29 Steven Bosscher <steven@gcc.gnu.org>
7532
7533 * cppspec.c: Moved from gcc/ to here.
7534
6f3a2e23
KT
75352012-06-27 Kai Tietz <ktietz@redhat.com>
7536
7537 PR preprocessor/37215
7538 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
7539
8ca92d04
SB
75402012-06-21 Steven Bosscher <steven@gcc.gnu.org>
7541
7542 * c-common.h (c_common_print_pch_checksum): Remove.
7543 * c-pch.c: Do not include output.h.
7544 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
7545 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
7546 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
7547 (struct c_pch_header): Remove.
7548 (get_ident): Update gpch version.
7549 (pch_init): Do not print executable_checksum to asm_out_file.
7550 Do not fail if there is no asm_out_file to read back from. Set
7551 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
7552 (c_common_write_pch): Verify that nothing was written to asm_out_file
7553 since pch_init was called. Do not write a c_pch_header, and do not
7554 copy from asm_out_file to the PCH.
7555 (c_common_read_pch): Do not read a c_pch_header, and do not restore
7556 the content of asm_out_file from the PCH.
7557 (c_common_print_pch_checksum): Remove.
7558 * c-opts.c (c_common_init): Print out executable_checksum directly.
7559
70f42967
SB
75602012-06-19 Steven Bosscher <steven@gcc.gnu.org>
7561
7562 * c-target.def (objc_declare_unresolved_class_reference,
7563 objc_declare_class_definition): Add new hooks.
7564
a8781821
SB
75652012-06-19 Steven Bosscher <steven@gcc.gnu.org>
7566
7567 * c-lex.c: Do not include output.h.
7568 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
7569 Remove uses of ASM_OUTPUT_IDENT.
7570
9e1a8dd1
RR
75712012-06-15 Marc Glisse <marc.glisse@inria.fr>
7572
7573 PR c++/51033
7574 * c-common.h (c_build_vec_perm_expr): Move decl here.
7575 * c-common.c (c_build_vec_perm_expr): Move definition
7576 here.
7577
6f07a821
SB
75782012-06-06 Steven Bosscher <steven@gcc.gnu.org>
7579
7580 * c.opt (fconserve-space): Turn into a no-op.
7581
9faeb493 75822012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
7583
7584 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
7585 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
7586 both the start and end of the function.
7587
a4b7d13c
SB
75882012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7589
7590 * c-common.c: Do not include output.h.
7591 * c-pragma.c: Likewise.
7592
c265f413
SA
75932012-06-04 Steven Bosscher <steven@gcc.gnu.org>
7594
7595 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
7596 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
7597 (lang_decl_name): Handle namespace decls.
7598
be7a421e
SB
75992012-05-31 Steven Bosscher <steven@gcc.gnu.org>
7600
7601 * c-ada-spec.c: Do not include output.h.
7602 * c-semantics.c: Likewise.
7603
65de6659
JM
76042012-05-29 Joseph Myers <joseph@codesourcery.com>
7605
7606 * c-common.c: Fix typo.
7607
ca5f4331
MM
76082012-05-29 Michael Matz <matz@suse.de>
7609
7610 * c-common.h (c_expand_decl): Remove prototype.
7611
4f7f7aca
MLI
76122012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
7613
7614 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
7615 * c-opts.c (c_common_handle_option): Remove code handling
7616 warn_missing_braces.
7617
4a792f9b
PC
76182012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
7619
7620 PR c++/25137
7621 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
7622 -Wmissing_braces.
7623
650dc14a
DS
76242012-05-22 Dodji Seketeli <dodji@redhat.com>
7625
7626 PR c++/53322
7627 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
7628
9b095bf1
MLI
76292012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7630
7631 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
7632 * c-opts.c (c_common_handle_option): Do not handle explicitly
7633 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
7634
0b2c4be5
DS
76352012-05-16 Dodji Seketeli <dodji@redhat.com>
7636
7637 PR preprocessor/7263
7638 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
7639 to cpp_classify_number. For diagnostics, use the precise location
7640 instead of the global input_location.
7641
a1bde5af
PC
76422012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
7643
d02924ef 7644 PR c++/11856
a1bde5af
PC
7645 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
7646
d1ede5f4
BS
76472012-05-14 Bernd Schmidt <bernds@codesourcery.com>
7648
a1bde5af 7649 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 7650
f2bc201f
MLI
76512012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
7652
7653 PR 53063
7654 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
7655 Wreorder): Use LangEnabledBy.
7656 * c-opts.c (c_common_handle_option): Do not enable them
7657 explicitly. Call lang-specific generated functions.
7658 (c_common_post_options): Do not set them here.
7659
95744782
MLI
76602012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
7661
7662 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
7663 Wmissing-field-initializers,Wmissing-parameter-type,
7664 Wold-style-declaration,Woverride-init): Use EnabledBy.
7665 * c-opts.c (c_common_post_options): Do not set here explicitly.
7666
7d5a5747
MLI
76672012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
7668
7669 PR 53063
7670 * c-opts.c (c_common_handle_option): Use handle_generated_option
7671 to enable sub-options.
7672
5a3c9cf2
PC
76732012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
7674
7675 PR c++/53158
7676 * c-common.c (warnings_for_convert_and_check): Use warning_at.
7677
3ac8781c
RG
76782012-05-10 Richard Guenther <rguenther@suse.de>
7679
7680 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
7681 adjust commentary about TYPE_IS_SIZETYPE types.
7682
1e537948
MLI
76832012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7684
7685 PR c++/53261
7686 * c-common.c (warn_logical_operator): Check that argument of
7687 integer_zerop is not NULL.
7688
f2c4a785
MLI
76892012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
7690
7691 PR c/43772
7692 * c-common.c (warn_logical_operator): Do not warn if either side
7693 is already true or false.
7694
50f305ca
MLI
76952012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7696
7697 PR c/51712
7698 * c-common.c (expr_original_type): New.
7699 (shorten_compare): Do not warn for enumeration types.
7700
0c3641b0
MLI
77012012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
7702
7703 * c.opt (fpermissive): Add Var(flag_permissive).
7704
7edaa4d2
MG
77052012-04-30 Marc Glisse <marc.glisse@inria.fr>
7706
7707 PR c++/51033
7708 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
7709 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
7710
b9c8da34
DS
77112012-04-30 Dodji Seketeli <dodji@redhat.com>
7712
7713 Add -Wvarargs option
7714 * c.opt (Wvarargs): Define new option.
7715
e6c69da0
MLI
77162012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7717
7718 * c-common.c (check_function_arguments): Replace
7719 Wmissing-format-attribute with Wsuggest-attribute=format.
7720
90137d8f
MLI
77212012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
7722
7723 * c.opt (Wsuggest-attribute=format): New. Alias of
7724 Wmissing-format-attribute.
7725 * c-format.c (decode_format_type): Replace
7726 Wmissing-format-attribute with Wsuggest-attribute=format.
7727 (check_function_format): Likewise.
7728
9faeb493 77292012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
7730
7731 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
7732 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
7733 * c.opt: Add Wliteral-suffix.
7734
c1771a20
MLI
77352012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
7736
7737 PR c/44774
7738 * c.opt (Wpedantic): New.
7739 (pedantic): Alias Wpedantic.
7740 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
7741 (c_common_post_options): Likewise.
7742 (sanitize_cpp_opts): Likewise.
7743 * c-lex.c (interpret_float): Likewise.
7744 * c-format.c (check_format_types): Likewise.
7745 * c-common.c (pointer_int_sum): Likewise.
7746 (c_sizeof_or_alignof_type): Likewise.
7747 (c_add_case_label): Likewise.
7748 (c_do_switch_warnings): Likewise.
7749 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
7750
04b391c1
JM
77512012-04-15 Jason Merrill <jason@redhat.com>
7752
7753 PR c++/52818
7754 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
7755 (C_STD_NAME): Distinguish between C++98 and C++11.
7756
ac868f29
EB
77572012-04-11 Eric Botcazou <ebotcazou@adacore.com>
7758
7759 PR target/52624
7760 * c-common.h (uint16_type_node): Rename into...
7761 (c_uint16_type_node): ...this.
7762 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
7763 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
7764
fd4116f4
MLI
77652012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
7766
7767 * c-common.c (warn_if_unused_value): Move definition to here.
7768 * c-common.h (warn_if_unused_value): Move declaration to here.
7769
573ac65e
WB
77702012-03-23 William Bader <williambader@hotmail.com>
7771
7772 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
7773
552b8185
JM
77742012-03-20 Jason Merrill <jason@redhat.com>
7775
7776 * c-common.h (enum cxx_dialect): Add cxx1y.
7777 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
7778 test.
7779 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
7780 * c-opts.c (c_common_post_options): Likewise.
7781 (set_std_cxx1y): New.
7782 (c_common_handle_option): Call it.
7783 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
7784
04398fa8
PC
77852012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
7786
7787 PR c++/14710
7788 * c.opt ([Wuseless-cast]): Add.
7789
d2a12ae7
RG
77902012-03-16 Richard Guenther <rguenther@suse.de>
7791
7792 * c-pretty-print.c (pp_c_initializer_list): Adjust.
7793
a12bf402
MLI
77942012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
7795
7796 PR c++/44783
7797 * c.opt (ftemplate-backtrace-limit) Add.
7798
5c30094f
RO
77992012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7800
7801 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
7802 handling.
7803 * c-pragma.c (handle_pragma_extern_prefix): Remove.
7804 (init_pragma): Don't register extern_prefix.
7805
21fa2faf
RG
78062012-03-12 Richard Guenther <rguenther@suse.de>
7807
7808 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
7809 (builtin_type_for_size): Likewise.
7810
e3793c6f
JJ
78112012-02-13 Jakub Jelinek <jakub@redhat.com>
7812
7813 PR c++/52215
7814 * c-common.c (sync_resolve_params): Don't decide whether to convert
7815 or not based on TYPE_SIZE comparison, convert whenever arg_type
7816 is unsigned INTEGER_TYPE.
7817
93286335
PC
78182012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
7819
7820 PR c/52118
7821 * c.opt ([Wunused-local-typedefs]): Fix description.
7822
7a421706
MS
78232012-01-24 Mike Stump <mikestump@comcast.net>
7824
7825 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
7826 exactly.
7827
ba9b1f11
RG
78282012-01-18 Richard Guenther <rguenther@suse.de>
7829
7830 * c-opts.c (c_common_post_options): Reset LTO flags if
7831 we are about to generate a PCH.
7832
465406be
PC
78332012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
7834
7835 PR c++/51777
7836 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
7837 use pp_unsigned_wide_integer.
7838
aee15221
RG
78392012-01-10 Richard Guenther <rguenther@suse.de>
7840
7841 PR middle-end/51806
7842 * c-opts.c (c_common_handle_option): Move -Werror handling
7843 to language independent code.
7844
5720c0dc
RG
78452012-01-05 Richard Guenther <rguenther@suse.de>
7846
7847 PR middle-end/51764
7848 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
7849 from common.opt.
7850
73ac190a
PC
78512011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
7852
7853 PR c++/51316
7854 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
7855 of array types with an unknown bound.
7856
48b0b196
JM
78572011-12-20 Joseph Myers <joseph@codesourcery.com>
7858
7859 * c-common.c (flag_isoc99): Update comment to refer to C11.
7860 (flag_isoc1x): Change to flag_isoc11.
7861 * c-common.h (flag_isoc99): Update comment to refer to C11.
7862 (flag_isoc1x): Change to flag_isoc11.
7863 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
7864 C11.
7865 * c-opts.c (set_std_c1x): Change to set_std_c11.
7866 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
7867 Call set_std_c11.
7868 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
7869 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
7870 * c.opt (std=c1x): Change to std=c11. Document as non-draft
7871 standard.
7872 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
7873 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
7874 (std=gnu1x): Make alias of std=gnu11.
7875
d58d6eb5
JM
78762011-12-19 Jason Merrill <jason@redhat.com>
7877
7878 PR c++/51228
7879 * c-common.c (handle_transparent_union_attribute): Check the first
7880 field if the type is complete.
7881
b3908fcc
JW
78822011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
7883
7884 PR libstdc++/51365
7885 * c-common.c (RID_IS_FINAL): Add.
7886 * c-common.h (RID_IS_FINAL): Add.
7887
fea3ca91
IS
78882011-11-30 Iain Sandoe <iains@gcc.gnu.org>
7889
7890 * c.opt (fgnu-runtime): Provide full description.
7891 (fnext-runtime): Likewise.
7892 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
7893
62bad7cd
AM
78942011-11-28 Andrew MacLeod <amacleod@redhat.com>
7895
7896 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
7897 predefines in one place. Add LOCK_FREE predefines.
7898 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
7899 new func.
7900
c466c4ff
AM
79012011-11-24 Andrew MacLeod <amacleod@redhat.com>
7902
7903 PR c/51256
9faeb493 7904 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 7905 conditions
9faeb493
UB
7906 (resolve_overloaded_atomic_exchange,
7907 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
7908 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
7909 error_mark_node for error conditions.
9faeb493 7910
a5952633
RG
79112011-11-08 Richard Guenther <rguenther@suse.de>
7912
7913 PR middle-end/51010
7914 c-family/
7915
0a35513e
AH
79162011-11-07 Richard Henderson <rth@redhat.com>
7917 Aldy Hernandez <aldyh@redhat.com>
7918 Torvald Riegel <triegel@redhat.com>
7919
7920 Merged from transactional-memory.
7921
7922 * c-common.c (handle_tm_wrap_attribute,
7923 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
7924 (struct c_common_reswords): Added __transaction* keywords.
7925 (struct c_common_attribute_table): Added transaction* and tm_regparm
7926 attributes.
7927 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
7928 masks.
7929 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
7930 find_tm_attribute): Declare.
7931
6d87092d
JM
79322011-11-07 Jason Merrill <jason@redhat.com>
7933
7934 PR c++/35688
7935 * c-common.c, c-common.h: Revert yesterday's changes.
7936
8e7860a1
JM
79372011-11-06 Jason Merrill <jason@redhat.com>
7938
7939 PR c++/35688
7940 * c-common.c (decl_has_visibility_attr): Split out from...
7941 (c_determine_visibility): ...here.
7942 * c-common.h: Declare it.
7943
d19fa6b5
JM
79442011-11-06 Joseph Myers <joseph@codesourcery.com>
7945
7946 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
7947 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
7948 type.
7949 (check_user_alignment): New. Split out of
7950 handle_aligned_attribute. Disallow integer constants with
7951 noninteger types. Conditionally allow zero.
7952 (handle_aligned_attribute): Use check_user_alignment.
7953 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
7954
86951993
AM
79552011-11-06 Andrew MacLeod <amacleod@redhat.com>
7956 Richard Henderson <rth@redhat.com>
7957
7958 Merged from cxx-mem-model.
7959
7960 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 7961 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
7962 parameters that are the same type size.
7963 (get_atomic_generic_size): New. Find size of generic
7964 atomic function parameters and do typechecking.
7965 (add_atomic_size_parameter): New. Insert size into parameter list.
7966 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
7967 either __atomic_exchange_n or external library call.
9faeb493 7968 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 7969 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 7970 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
7971 __atomic_load_n or an external library call.
7972 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
7973 __atomic_store_n or an external library call.
7974 (resolve_overloaded_builtin): Handle new __atomic builtins.
7975
cf9e9959
EB
79762011-11-04 Eric Botcazou <ebotcazou@adacore.com>
7977
7978 PR c++/50608
7979 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
7980 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
7981 <INDIRECT_REF>: Return the argument.
7982 <ARRAY_REF>: Remove special code for negative offset.
7983 Call fold_build_pointer_plus instead of size_binop.
7984 (fold_offsetof): Remove STOP_REF argument and adjust.
7985 * c-common.h (fold_offsetof_1): Declare.
7986 (fold_offsetof): Remove STOP_REF argument.
7987
25339f10
JM
79882011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
7989
7990 PR c++/50810
7991 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
7992 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
7993 Wnarrowing for C++0x and C++98.
7994 * c.opt ([Wnarrowing]): Update.
7995
89401152
PC
79962011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
7997
7998 PR c++/44277
7999 * c.opt: Add Wzero-as-null-pointer-constant.
8000
97e3ad20
JM
80012011-10-31 Jason Merrill <jason@redhat.com>
8002
15694fdd
JM
8003 * c.opt (-fdeduce-init-list): Off by default.
8004
97e3ad20
JM
8005 PR c++/50920
8006 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
8007 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
8008 and -Wc++11-compat.
8009 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
8010
fb9120e3
RAV
80112011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
8012
8013 PR c++/30066
8014 * c.opt (fvisibility-inlines-hidden): Description change.
8015
3ce4f9e4
ESR
80162011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
8017
8018 Implement C++11 user-defined literals.
8019 * c-common.c (build_userdef_literal): New.
8020 * c-common.def: New tree code.
8021 * c-common.h (tree_userdef_literal): New tree struct and accessors.
8022 * c-lex.c (interpret_float): Add suffix parm.
8023 (c_lex_with_flags): Build literal tokens.
8024
5f53c243
PC
80252011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
8026
8027 PR c++/50841
8028 Revert:
8029 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
8030
8031 PR c++/50810
8032 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8033 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8034 Wnarrowing for C++0x and C++98.
8035 * c.opt ([Wnarrowing]): Update.
8036
263734e1
PC
80372011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
8038
8039 PR c++/50810
8040 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
8041 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
8042 Wnarrowing for C++0x and C++98.
8043 * c.opt ([Wnarrowing]): Update.
8044
d2e312d7
PC
80452011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
8046
8047 PR c++/45385
8048 * c-common.c (conversion_warning): Remove code looking for
8049 artificial operands.
8050
d17687f6
DS
80512011-10-18 Dodji Seketeli <dodji@redhat.com>
8052
8053 PR bootstrap/50760
8054 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 8055 !NO_IMPLICIT_EXTERN_C.
d17687f6 8056
fc8396e9
PC
80572011-10-17 Michael Spertus <mike_spertus@symantec.com>
8058
8059 * c-common.c (c_common_reswords): Add __bases,
8060 __direct_bases.
8061 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
8062
80632011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
8064
8065 PR c++/50757
8066 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
8067
847e697a
TT
80682011-10-15 Tom Tromey <tromey@redhat.com>
8069 Dodji Seketeli <dodji@redhat.com>
8070
8071 * c.opt (fdebug-cpp): New option.
8072 * c-opts.c (c_common_handle_option): Handle the option.
8073 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
8074 output stream in parameter. Factorized from ...
8075 (maybe_print_line): ... this. Dump location debug information when
8076 -fdebug-cpp is in effect.
8077 (print_line_1): New static function. Takes an output stream in
8078 parameter. Factorized from ...
8079 (print_line): ... here. Dump location information when -fdebug-cpp
8080 is in effect.
8081 (scan_translation_unit): Dump location information when
8082 -fdebug-cpp is in effect.
8083
92582b75
TT
80842011-10-15 Tom Tromey <tromey@redhat.com>
8085 Dodji Seketeli <dodji@redhat.com>
8086
8087 * c.opt (ftrack-macro-expansion): New option. Handle it with and
8088 without argument.
8089 * c-opts.c (c_common_handle_option)<case
8090 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
8091 cases. Handle -ftrack-macro-expansion with and without argument.
8092
46427374
TT
80932011-10-15 Tom Tromey <tromey@redhat.com>
8094 Dodji Seketeli <dodji@redhat.com>
8095
8096 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
8097 (print_line, cb_define, do_line_change): Adjust to avoid touching
8098 the internals of struct line_map. Use the public API instead.
8099 * c-pch.c (c_common_read_pch): Likewise.
8100 * c-lex.c (fe_file_change): Likewise.
8101
fc8396e9
PC
81022011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
8103
8104 PR c++/17212
8105 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
8106
81072011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
8108
8109 PR c++/33067
8110 * c-pretty-print.c (pp_c_floating_constant): Output
8111 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
8112
e79983f4
MM
81132011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
8114
8115 * c-common.c (def_builtin_1): Delete old interface with two
8116 parallel arrays to hold standard builtin declarations, and replace
8117 it with a function based interface that can support creating
8118 builtins on the fly in the future. Change all uses, and poison
8119 the old names. Make sure 0 is not a legitimate builtin index.
8120 * c-omp.c (c_finish_omp_barrier): Ditto.
8121 (c_finish_omp_taskwait): Ditto.
8122 (c_finish_omp_flush): Ditto.
8123
6637388f
TG
81242011-10-11 Tristan Gingold <gingold@adacore.com>
8125
8126 * c.opt: (fallow-parameterless-variadic-functions): New.
8127
3797cb21
DS
81282011-09-08 Dodji Seketeli <dodji@redhat.com>
8129
8130 PR c++/33255 - Support -Wunused-local-typedefs warning
8131 * c-common.h (struct c_language_function::local_typedefs): New
8132 field.
9faeb493
UB
8133 (record_locally_defined_typedef, maybe_record_typedef_use)
8134 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 8135 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
8136 (maybe_record_typedef_use)
8137 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
8138 * c.opt: Declare new -Wunused-local-typedefs flag.
8139
693ddb1b
EB
81402011-09-06 Eric Botcazou <ebotcazou@adacore.com>
8141
8142 PR middle-end/50266
8143 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
8144 computations.
8145
830c740f
RG
81462011-09-05 Richard Guenther <rguenther@suse.de>
8147
8148 * c-common.c (complete_array_type): Use ssize_int (-1) instead
8149 of integer_minus_one_node for empty array upper bounds.
8150
892a371f
DS
81512011-08-28 Dodji Seketeli <dodji@redhat.com>
8152
8153 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
8154 it's the first time it's being called on this main TU.
8155
0e3fdb48
RB
81562011-08-24 Richard Guenther <rguenther@suse.de>
8157
8158 PR c/49396
8159 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
8160
81612011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
8162
8163 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
8164 defined in cpp_init_builtins and c_cpp_builtins.
8165
d4a83c10
JM
81662011-08-19 Joseph Myers <joseph@codesourcery.com>
8167
8168 * c-common.c (c_common_reswords): Add __builtin_complex.
8169 * c-common.h (RID_BUILTIN_COMPLEX): New.
8170
bbceee64
JM
81712011-08-18 Joseph Myers <joseph@codesourcery.com>
8172
8173 * c-common.c (c_common_reswords): Add _Noreturn.
8174 (keyword_is_function_specifier): Handle RID_NORETURN.
8175 * c-common.h (RID_NORETURN): New.
8176
3f8257db 81772011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
0e3a99ae
AS
8178
8179 * c-common.c (unsafe_conversion_p): New function. Check if it is
8180 unsafe to convert an expression to the type.
8181 (conversion_warning): Adjust, use unsafe_conversion_p.
8182 * c-common.h (unsafe_conversion_p): New function declaration.
8183
20906c66
JJ
81842011-08-02 Jakub Jelinek <jakub@redhat.com>
8185
8186 * c-common.h (c_finish_omp_atomic): Adjust prototype.
8187 (c_finish_omp_taskyield): New prototype.
8188 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
8189 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
8190 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
8191 or RHS1 have side-effects, evaluate those too in the right spot,
8192 if it is a decl and LHS is also a decl, error out if they
8193 aren't the same.
8194 (c_finish_omp_taskyield): New function.
8195 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
8196 * c-pragma.c (omp_pragmas): Add taskyield.
8197 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
8198 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
8199 PRAGMA_OMP_CLAUSE_MERGEABLE.
8200
770e5a2e
DS
82012011-07-25 Dodji Seketeli <dodji@redhat.com>
8202
8203 * c-common.h (set_underlying_type): Remove parm name from
8204 declaration.
8205
1baae426
RG
82062011-07-25 Romain Geissler <romain.geissler@gmail.com>
8207
8208 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 8209
fcb21722
JM
82102011-07-22 Jason Merrill <jason@redhat.com>
8211
76f86d00
JM
8212 PR c++/49793
8213 * c.opt (Wnarrowing): New.
8214
3a636414
JM
8215 PR c++/30112
8216 * c-common.h: Declare c_linkage_bindings.
8217 * c-pragma.c (handle_pragma_redefine_extname): Use it.
8218
fcb21722
JM
8219 PR c++/49813
8220 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
8221 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
8222 as flag_isoc99 for 'restrict'.
8223 (pp_c_specifier_qualifier_list): Likewise for _Complex.
8224
02614448
ILT
82252011-07-21 Ian Lance Taylor <iant@google.com>
8226
8227 PR middle-end/49705
8228 * c-common.c (c_disable_warnings): New static function.
8229 (c_enable_warnings): New static function.
8230 (c_fully_fold_internal): Change local unused_p to bool. Call
8231 c_disable_warnings and c_enable_warnings rather than change
8232 c_inhibit_evaluation_warnings.
8233
34429675
JM
82342011-07-20 Jason Merrill <jason@redhat.com>
8235
8236 PR c++/6709 (DR 743)
8237 PR c++/42603 (DR 950)
8238 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
8239 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
8240 (CPP_DECLTYPE): New.
8241 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
8242
5d49b6a7
RG
82432011-07-19 Richard Guenther <rguenther@suse.de>
8244
8245 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
8246 * c-omp.c (c_finish_omp_for): Likewise.
8247
e84a58ff
EB
82482011-07-12 Eric Botcazou <ebotcazou@adacore.com>
8249
8250 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
8251 body on the next line.
8252
329af3c7
JM
82532011-07-08 Jason Merrill <jason@redhat.com>
8254
4063e61b
JM
8255 PR c++/45437
8256 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
8257
329af3c7
JM
8258 PR c++/49673
8259 * c-common.c (c_apply_type_quals_to_decl): Don't check
8260 TYPE_NEEDS_CONSTRUCTING.
8261
1a072294
RG
82622011-07-06 Richard Guenther <rguenther@suse.de>
8263
8264 * c-common.c (c_common_nodes_and_builtins):
8265 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
8266
fce5dddd
RG
82672011-07-05 Richard Guenther <rguenther@suse.de>
8268
8269 * c-common.c (c_common_nodes_and_builtins): Build all common
8270 tree nodes first.
8271
45d439ac
JJ
82722011-06-27 Jakub Jelinek <jakub@redhat.com>
8273
56300785
JJ
8274 * c-common.h (c_tree_chain_next): New static inline function.
8275
45d439ac
JJ
8276 * c-common.c (check_builtin_function_arguments): Handle
8277 BUILT_IN_ASSUME_ALIGNED.
8278
e0a8ecf2
AM
82792011-06-21 Andrew MacLeod <amacleod@redhat.com>
8280
8281 * c-common.c: Add sync_ or SYNC__ to builtin names.
8282 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
8283
82842011-06-20 Pierre Vittet <piervit@pvittet.com>
8285
8286 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
8287 handler.
8288 (gen_pragma_handler): New union.
8289 (internal_pragma_handler): New type.
8290 (c_register_pragma_with_data)
8291 (c_register_pragma_with_expansion_and_data): New functions.
8292
8293 * c-pragma.c (registered_pragmas, c_register_pragma_1)
8294 (c_register_pragma, c_register_pragma_with_expansion)
8295 (c_invoke_pragma_handler): Changed to work with
8296 internal_pragma_handler.
8297 (c_register_pragma_with_data)
8298 (c_register_pragma_with_expansion_and_data): New functions.
8299
677f3fa8
JM
83002011-06-14 Joseph Myers <joseph@codesourcery.com>
8301
8302 * c-common.c: Include common/common-target.h.
8303 (handle_section_attribute): Use
8304 targetm_common.have_named_sections.
8305 * c-cppbuiltin.c: Include common/common-target.h.
8306 (c_cpp_builtins): Use targetm_common.except_unwind_info.
8307
d7fc8c14
RG
83082011-06-10 Richard Guenther <rguenther@suse.de>
8309
8310 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
8311 to print a IDENTIFIER_NODE.
8312
10e48e39
RO
83132011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8314 Joseph Myers <joseph@codesourcery.com>
8315
8316 * c.opt (fbuilding-libgcc): New option.
8317 * c-cppbuiltin.c (c_cpp_builtins): Define
8318 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
8319
6976ae51
JM
83202011-06-07 Jason Merrill <jason@redhat.com>
8321
3ff60975
JM
8322 * c-common.c (max_tinst_depth): Lower default to 900.
8323
6976ae51
JM
8324 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
8325
009db074
RG
83262011-06-07 Richard Guenther <rguenther@suse.de>
8327
8328 * c-common.c (c_common_nodes_and_builtins): Do not set
8329 size_type_node or call set_sizetype.
8330
b4592b92
DS
83312011-06-07 Dodji Seketeli <dodji@redhat.com>
8332
8333 PR debug/49130
8334 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 8335 type when using pointer comparison to compare types.
b4592b92 8336
014ab419
JW
83372011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
8338
8339 * c.opt: Add -Wdelete-non-virtual-dtor.
8340 * c-opts.c (c_common_handle_option): Include it in -Wall.
8341
4f60111f
NF
83422011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
8343
8344 PR bootstrap/49190
8345
8346 Revert:
8347 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8348
8349 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
8350 not tree_common.
8351
4cc4f2f4
JJ
83522011-05-27 Jakub Jelinek <jakub@redhat.com>
8353
8354 PR c++/49165
8355 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
8356 C++ don't call c_common_truthvalue_conversion on void type arms.
8357
38e01f9e
NF
83582011-05-27 Nathan Froyd <froydnj@codesourcery.com>
8359
8360 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
8361 (stmt_list_stack): Define.
8362 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
8363 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
8364
92e948a8
NF
83652011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8366
8367 * c-common.c (warning_candidate_p): Check for BLOCKs.
8368
a2fc3e63
NF
83692011-05-26 Nathan Froyd <froydnj@codesourcery.com>
8370
8371 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
8372 not tree_common.
8373
0957c029
JJ
83742011-05-25 Jakub Jelinek <jakub@redhat.com>
8375
8376 * c-common.c (def_fn_type): Remove extra va_end.
8377
828fb3ba
JM
83782011-05-23 Jason Merrill <jason@redhat.com>
8379
8380 PR c++/48106
8381 * c-common.c (c_common_get_narrower): New.
8382 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
8383
dde05067
NF
83842011-05-23 Nathan Froyd <froydnj@codesourcery.com>
8385
8386 * c-common.h (check_function_arguments): Tweak prototype of
8387 check_function_arguments.
8388 * c-common.c (check_function_arguments): Likewise. Adjust
8389 calls to check_function_nonnull, check_function_format, and
8390 check_function_sentinel.
8391 (check_function_sentinel): Take a FUNCTION_TYPE rather than
8392 separate attributes and typelist arguments. Use
8393 FOREACH_FUNCTION_ARGS to iterate over argument types.
8394
3c0d13bf
PC
83952011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
8396
8397 * c-common.c (c_common_reswords): Reorder.
8398 * c-common.h (rid): Likewise.
8399
8242dd04
NF
84002011-05-10 Nathan Froyd <froydnj@codesourcery.com>
8401
8402 * c-common.c (def_fn_type): Don't call build_function_type, call
8403 build_function_type_array or build_varargs_function_type_array
8404 instead.
8405 (c_common_nodes_and_builtins): Likewise.
8406
3d528853
NF
84072011-05-05 Nathan Froyd <froydnj@codesourcery.com>
8408
8409 * c-common.c (c_add_case_label): Omit the loc argument to
8410 build_case_label.
8411 * c-common.h (build_case_label): Remove.
8412 * c-semantics.c (build_case_label): Remove.
8413
a04a722b
JM
84142011-05-05 Joseph Myers <joseph@codesourcery.com>
8415
8416 * c-objc.h (objc_start_method_definition): Update prototype.
8417 * stub-objc.c (objc_start_method_definition): Add extra parameter.
8418
e19a18d4
NF
84192011-05-04 Nathan Froyd <froydnj@codesourcery.com>
8420
8421 * c-common.c (check_main_parameter_types): Reindent. Don't use
8422 TYPE_ARG_TYPES directly.
8423 (handle_nonnull_attribute): Likewise.
8424 (sync_resolve_params): Likewise.
8425 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
8426 to check_format_string.
8427 (handle_format_attribute): Likewise.
8428 (check_format_string): Take a function type to examine instead of
8429 a type list. Use a function_arg_iterator to step through argument
8430 types.
8431
c62c040f
RG
84322011-05-04 Richard Guenther <rguenther@suse.de>
8433
8434 * c-common.c (fix_string_type): Use size_int for index type bounds.
8435 (start_fname_decls): Do not pass NULL to build_int_cst.
8436 (c_init_attributes): Likewise.
8437 * c-lex.c (c_lex_with_flags): Likewise.
8438
c12ff9d8
JM
84392011-04-27 Jason Merrill <jason@redhat.com>
8440
8441 * c-common.c (make_tree_vector_from_list): New.
8442 * c-common.h: Declare it.
8443
304dfbe3
RG
84442011-04-26 Richard Guenther <rguenther@suse.de>
8445
8446 PR preprocessor/48248
8447 * c-ppoutput.c (maybe_print_line): Always optimize newlines
8448 for output size with -P.
8449
3c0d13bf
PC
84502011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8451
8452 * c-common.c (struct c_common_resword): Add __underlying_type.
8453 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
8454
04695783
JM
84552011-04-20 Jim Meyering <meyering@redhat.com>
8456
8457 * c-format.c (init_dollar_format_checking): Remove useless
8458 if-before-free.
8459
0dc33c3c
NP
84602011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
8461
8462 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 8463 (objc_detect_field_duplicates): New.
0dc33c3c 8464 * stub-objc.c: Likewise.
3c0d13bf 8465
c59633d9
NP
84662011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8467
8468 * stub-objc.c (objc_declare_protocols): Renamed to
8469 objc_declare_protocol.
8470 * c-objc.h: Likewise.
3c0d13bf 8471
32dabdaf
NP
84722011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
8473
8474 * stub-objc.c (objc_declare_class): Updated argument name.
8475
81f653d6
NF
84762011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8477
8478 * c-common.h (c_common_init_ts): Declare.
8479 * c-common.c (c_common_init_ts): Define.
8480
eb345401
NP
84812011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8482
8483 * c-objc.h (objc_build_message_expr): Updated prototype.
8484 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 8485
a358e188
MJ
84862011-04-12 Martin Jambor <mjambor@suse.cz>
8487
8488 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
8489 of cgraph_node.
8490
e6313a78
RG
84912011-04-11 Richard Guenther <rguenther@suse.de>
8492
8493 * c-common.c (complete_array_type): Build a range type of
8494 proper type.
8495
dcf0c47e
NF
84962011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8497
8498 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
8499 (handle_type_generic_attribute): Likewise.
8500
1ee44b26
JM
85012011-04-07 Jason Merrill <jason@redhat.com>
8502
8503 PR c++/48450
8504 * c-common.c (c_common_truthvalue_conversion): Don't ignore
8505 conversion from C++0x scoped enum.
8506
acce4e77
JM
85072011-04-06 Joseph Myers <joseph@codesourcery.com>
8508
8509 * c-target-def.h: New file.
8510 * c-target.def: New file.
8511 * c-target.h: New file.
8512 * c-common.c (targetcm): Don't define here.
8513 * c-common.h (default_handle_c_option): Declare.
8514 * c-format.c: Include c-target.h instead of target.h.
8515 * c-opts.c: Include c-target.h instead of target.h. Explicitly
8516 include tm.h.
8517 (default_handle_c_option): Move from targhooks.c.
8518
e2eefb55
JJ
85192011-03-29 Jakub Jelinek <jakub@redhat.com>
8520
8521 PR preprocessor/48248
8522 * c-ppoutput.c (print): Add src_file field.
8523 (init_pp_output): Initialize it.
8524 (maybe_print_line): Don't optimize by adding up to 8 newlines
8525 if map->to_file and print.src_file are different file.
8526 (print_line): Update print.src_file.
8527
ba78087b
KT
85282011-03-25 Kai Tietz <ktietz@redhat.com>
8529
8530 * c-ada-spec.c (compare_comment): Use filename_cmp
8531 instead of strcmp for filename.
8532
0edf1bb2
JL
85332011-03-25 Jeff Law <law@redhat.com>
8534
adfac8df 8535 * c-common.c (def_fn_type): Add missing va_end.
0edf1bb2 8536
c7dc8804
JM
85372011-03-25 Jason Merrill <jason@redhat.com>
8538
8539 * c.opt: Add -std=c++03.
8540
d1d879b1
EB
85412011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8542
8543 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
8544
3f8257db 85452011-03-17 Kai Tietz <ktietz@redhat.com>
62d784f7
KT
8546
8547 PR target/12171
5050afdf
KT
8548 * c-pretty-print.c (pp_c_specifier_qualifier_list):
8549 Display allowed attributes for function pointer types.
8550 (pp_c_attributes_display): New function to display
8551 attributes having affects_type_identity flag set to true.
8552 * c-pretty-print.h (pp_c_attributes_display): New prototype.
8553
62d784f7
KT
8554 * c-common.c (c_common_attribute_table):
8555 Add new element.
8556 (c_common_format_attribute_table): Likewise.
8557
82d37118
JM
85582011-03-18 Jason Merrill <jason@redhat.com>
8559
49a000c3
JM
8560 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
8561 * c-common.h: Don't declare it here.
8562 * c-common.c: Or define it here.
8563 * c-opts.c (c_common_handle_option): Or set it here.
8564
82d37118
JM
8565 PR c++/35315
8566 * c-common.c (handle_transparent_union_attribute): Don't
8567 make a duplicate type in C++.
8568
17bc631c
JM
85692011-03-15 Jason Merrill <jason@redhat.com>
8570
8571 * c-common.c (max_constexpr_depth): New.
8572 * c-common.h: Declare it.
8573 * c-opts.c (c_common_handle_option): Set it.
8574 * c.opt (fconstexpr-depth): New option.
8575
1b9b91a6
JM
85762011-03-11 Jason Merrill <jason@redhat.com>
8577
f231b5ff
JM
8578 * c-common.c (attribute_takes_identifier_p): Add missing const.
8579
1b9b91a6
JM
8580 PR c++/46803
8581 * c-common.c (attribute_takes_identifier_p): Assume that an
8582 unknown attribute takes an identifier.
8583
a19e4d44
NF
85842011-03-07 Nathan Froyd <froydnj@codesourcery.com>
8585
8586 PR c/47786
8587 * c-common.c (c_type_hash): Call list_length instead of iterating
8588 through DECL_CHAIN. Rename 'i' to 'n_elements'.
8589
982d62f6
JJ
85902011-02-19 Jakub Jelinek <jakub@redhat.com>
8591
8592 PR c/47809
8593 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
8594
0a256240
NP
85952011-02-17 Iain Sandoe <iains@gcc.gnu.org>
8596
8597 * c.opt (fobjc-abi-version=) New.
8598 (fobjc-nilcheck): New.
8599
ba9e6dd5
NF
86002011-02-03 Nathan Froyd <froydnj@codesourcery.com>
8601
8602 PR c++/46890
8603 * c-common.h (keyword_is_decl_specifier): Declare.
8604 * c-common.c (keyword_is_decl_specifier): Define.
8605 (keyword_is_function_specifier): New function.
8606
7273813a
JJ
86072011-01-26 Jakub Jelinek <jakub@redhat.com>
8608
8609 PR c/47473
8610 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
8611 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
8612 REAL_TYPE.
8613
908ef79b
AC
86142011-01-26 Arnaud Charlet <charlet@adacore.com>
8615
8616 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
8617
237e9384
JJ
86182011-01-26 Jakub Jelinek <jakub@redhat.com>
8619
8620 PR pch/47430
8621 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
8622 after init_c_lex if pch_file is set.
8623
47ea1edf
DK
86242011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
8625
d4dba752 8626 PR c++/43601
47ea1edf
DK
8627 * c.opt (-fkeep-inline-dllexport): New switch.
8628
2aa9c6ae
RG
86292011-01-12 Richard Guenther <rguenther@suse.de>
8630
8631 PR middle-end/32511
8632 * c-common.c (handle_weak_attribute): Warn instead of error
8633 on declaring an inline function weak.
8634
7bd11157
TT
86352011-01-05 Tom Tromey <tromey@redhat.com>
8636
8637 * c-common.h (lvalue_error): Update.
8638 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
8639 not error.
8640
0e66e494 86412010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 8642
b4f588c4
NP
8643 PR objc/47075
8644 * c-objc.h (objc_finish_message_expr): Added argument to
8645 prototype.
8646
f4da8dce
NF
86472010-12-22 Nathan Froyd <froydnj@codesourcery.com>
8648
8649 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
8650 Use prototype_p.
8651
46270f14
NP
86522010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
8653
8654 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 8655 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 8656
4816c593
NF
86572010-12-10 Nathan Froyd <froydnj@codesourcery.com>
8658
8659 * c-common.h (readonly_error): Declare.
8660 * c-common.c (readonly_error): Define.
8661
7a6daeb0
NF
86622010-12-09 Nathan Froyd <froydnj@codesourcery.com>
8663
8664 * c-common.h (invalid_indirection_error): Declare.
8665 * c-common.c (invalid_indirection_error): Define.
8666
892f6119
RG
86672010-12-03 Richard Guenther <rguenther@suse.de>
8668
8669 PR c/46745
8670 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
8671 (pp_c_unary_expression): Likewise.
8672 (pp_c_expression): Likewise.
8673
6c39e757
NP
86742010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
8675
8676 * c-common.h (objc_finish_function): New.
8677 (objc_non_volatilized_type): Removed.
8678 (objc_type_quals_match): Removed.
8679 * stub-objc.c (objc_finish_function): New.
8680 (objc_non_volatilized_type): Removed.
8681 (objc_type_quals_match): Removed.
9faeb493 8682
7c475d11
JM
86832010-11-30 Joseph Myers <joseph@codesourcery.com>
8684
8685 * c-common.h (parse_optimize_options): Declare.
8686 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
8687 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
8688
71f3e391
JM
86892010-11-29 Joseph Myers <joseph@codesourcery.com>
8690
8691 * c-opts.c (check_deps_environment_vars): Use getenv instead of
8692 GET_ENVIRONMENT.
8693 * c-pch.c (O_BINARY): Don't define here.
8694 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
8695
d5fabb58
JM
86962010-11-25 Joseph Myers <joseph@codesourcery.com>
8697
8698 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
8699 targetm.except_unwind_info.
8700
299404a1
JM
87012010-11-23 Joseph Myers <joseph@codesourcery.com>
8702
8703 * c-opts.c (c_common_handle_option): Pass location to
8704 set_struct_debug_option.
8705
c98cd5bf
JM
87062010-11-23 Joseph Myers <joseph@codesourcery.com>
8707
8708 * c-common.c (visibility_options): Move from ../opts.c.
8709 * c-common.h (struct visibility_flags, visibility_options):
8710 Declare here.
8711 * c-opts.c (finish_options): Rename to c_finish_options.
8712 (c_common_init): Update call to finish_options.
8713
a9546771
NP
87142010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
8715
8716 PR objc/34033
8717 * c-lex.c (lex_string): Check that each string in an Objective-C
8718 string concat sequence starts with either one or zero '@', and
8719 that there are no spurious '@' signs at the end.
8720
24a57808
JM
87212010-11-20 Joseph Myers <joseph@codesourcery.com>
8722
8723 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
8724 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
8725 HANDLE_PRAGMA_VISIBILITY.
8726 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
8727 HANDLE_PRAGMA_VISIBILITY): Don't define.
8728 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
8729
a9aa2c3a
NF
87302010-11-20 Nathan Froyd <froydnj@codesourcery.com>
8731
8732 PR c++/16189
8733 PR c++/36888
8734 PR c++/45331
8735 * c-common.h (keyword_begins_type_specifier): Declare.
8736 (keyword_is_storage_class_specifier): Declare.
8737 (keyword_is_type_qualifier): Declare.
8738 * c-common.c (keyword_begins_type_specifier): New function.
8739 (keyword_is_storage_class_specifier): New function.
8740 (keyword_is_type_qualifier): Declare.
8741
5386338c
JM
87422010-11-19 Joseph Myers <joseph@codesourcery.com>
8743
8744 PR c/46547
8745 * c-common.c (in_late_binary_op): Define.
8746 (c_common_truthvalue_conversion): Check in_late_binary_op before
8747 calling c_save_expr.
8748 * c-common.h (in_late_binary_op): Declare.
8749
69ccdddb
JM
87502010-11-19 Joseph Myers <joseph@codesourcery.com>
8751
8752 * c-opts.c (c_common_handle_option): Update calls to
8753 set_struct_debug_option.
8754
6b192a09
NP
87552010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
8756
8757 * c-common.h (objc_declare_protocols): Added additional argument.
8758 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 8759
fb52b50a
NF
87602010-11-18 Nathan Froyd <froydnj@codesourcery.com>
8761
8762 PR c/33193
8763 * c-common.h (build_real_imag_expr): Declare.
8764 * c-semantics.c (build_real_imag_expr): Define.
8765
b37421c6
JM
87662010-11-17 Joseph Myers <joseph@codesourcery.com>
8767
8768 * c-opts.c (c_common_parse_file): Take no arguments.
8769 * c-common.h (c_common_parse_file): Update prototype.
8770
07078664
JJ
87712010-11-16 Jakub Jelinek <jakub@redhat.com>
8772
8773 PR c++/46401
8774 * c-common.c (warning_candidate_p): Don't track non-const calls
8775 or STRING_CSTs.
8776
c6a13190
ILT
87772010-11-15 Ian Lance Taylor <iant@google.com>
8778
8779 * c-lex.c (init_c_lex): Set macro debug callbacks if
8780 flag_dump_go_spec is set.
8781
925e8657
NP
87822010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
8783
8784 * c-common.h (objc_build_incr_expr_for_property_ref): New.
8785 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
8786
bb0a9581
NF
87872010-11-15 Nathan Froyd <froydnj@codesourcery.com>
8788
8789 PR preprocessor/45038
8790 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
8791 dialects.
8792
c5fa0890
JM
87932010-11-12 Joseph Myers <joseph@codesourcery.com>
8794
8795 * c-common.h (c_family_lang_mask): Declare.
8796 * c-opts.c (c_family_lang_mask): Make extern.
8797 * c-pragma.c (handle_pragma_diagnostic): Use
8798 control_warning_option.
8799
a4d8c676
JM
88002010-11-12 Joseph Myers <joseph@codesourcery.com>
8801
8802 * c-common.c (parse_optimize_options): Update call to
8803 decode_options.
8804 * c-common.h (c_common_handle_option): Update prototype.
8805 * c-opts.c (c_common_handle_option): Take location_t parameter and
8806 pass it to other functions.
8807
f954bd2c
JM
88082010-11-11 Joseph Myers <joseph@codesourcery.com>
8809
8810 * c-opts.c (warning_as_error_callback): Remove.
8811 (c_common_initialize_diagnostics): Don't call
8812 register_warning_as_error_callback.
8813 (c_common_handle_option): Handle -Werror=normalized= here.
8814
d8a07487
JM
88152010-11-10 Joseph Myers <joseph@codesourcery.com>
8816
8817 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
8818 in diagnostic.
8819 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
8820 letter.
8821 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
8822 Remove trailing '.' from diagnostics.
8823 * c.opt (Wwrite-strings_: Avoid '`' in help text.
8824
d5478783
JM
88252010-11-10 Joseph Myers <joseph@codesourcery.com>
8826
8827 * c-common.c (parse_optimize_options): Pass global_dc to
8828 decode_options.
8829 * c-opts.c (c_common_handle_option): Pass &global_options to
8830 set_Wstrict_aliasing.
8831 * c.opt (v): Don't mark Common or document here.
8832
91ebb981
IS
88332010-11-06 Iain Sandoe <iains@gcc.gnu.org>
8834
8835 PR target/44981
8836 * c-format.c (format_type): New type gcc_objc_string_format_type.
8837 (valid_stringptr_type_p): New.
8838 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 8839 (check_format_string): Pass expected type, use
91ebb981
IS
8840 valid_stringptr_type_p (), check that the format string types are
8841 consistent with the format specification.
8842 (decode_format_attr): Warn if NSString is used outside objective-c.
8843 (format_types_orig): Add NSString.
8844 (format_name): New.
8845 (format_flags): New.
8846 (check_format_arg): Handle format strings requiring an external parser.
8847 first_target_format_type: New variable.
8848 (handle_format_attribute): Set up first_target_format_type, pass the
8849 expected format arg string type to check_format_string().
8850 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
8851 * stub-objc.c (objc_string_ref_type_p): New.
8852 (objc_check_format_arg): New.
8853
bede2adc
NP
88542010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
8855
9faeb493 8856 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
8857 * c-common.h (objc_build_class_component_ref): New.
8858 * stub-objc.c (objc_build_class_component_ref): New.
8859
9a179d01
NP
88602010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8861
8862 * c.opt (Wproperty-assign-default): New option.
8863
22d8d616
NP
88642010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
8865
8866 Implemented -fobjc-std=objc1 flag.
8867 * c.opt (fobjc-std=objc1): New option.
8868
2debdb4f
NP
88692010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
8870
8871 Implemented format and noreturn attributes for Objective-C methods.
8872 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
8873 attribute for Objective-C methods.
8874
ec52b111
JM
88752010-10-31 Jason Merrill <jason@redhat.com>
8876
8877 * c-common.c (conversion_warning, warn_for_collisions_1): Use
8878 EXPR_LOC_OR_HERE.
8879
46a88c12
NP
88802010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
8881
8882 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
8883 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
8884 (objc_add_property_declaration): Removed arguments for copies and
8885 ivar.
8886 (objc_build_getter_call): Renamed to
8887 objc_maybe_build_component_ref.
8888 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8889 (objc_is_property_ref): New.
8890 * c-common.c (c_common_reswords): Removed copies and ivar.
8891 * stub-objc.c (objc_add_property_declaration): Removed arguments
8892 for copies and ivar.
8893 (objc_build_getter_call): Renamed to
8894 objc_maybe_build_component_ref.
8895 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
8896 (objc_is_property_ref): New.
9faeb493 8897
1e4bf85b
AC
88982010-10-29 Arnaud Charlet <charlet@adacore.com>
8899 Matthew Gingell <gingell@adacore.com>
8900
8901 * c-ada-spec.c (separate_class_package): New function.
8902 (pp_ada_tree_identifier): Prefix references to C++ classes with the
8903 name of their enclosing package.
8904 (print_ada_declaration): Use separate_class_package.
8905
81f0bab2
JM
89062010-10-27 Jason Merrill <jason@redhat.com>
8907
2b08f2c5
JM
8908 * c-common.c (c_common_reswords): Add __is_literal_type.
8909 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
8910
81f0bab2
JM
8911 * c-common.c (check_case_value): Remove special C++ code.
8912
200290f2
NP
89132010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8914
8915 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
8916 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
8917 and RID_LAST_PATTR.
8918 (objc_add_property_declaration): Added additional arguments.
8919 (objc_property_attribute_kind): Removed.
8920 (objc_set_property_attr): Removed.
8921 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
8922 copy and nonatomic.
8923 * stub-objc.c (objc_add_property_declaration): Added additional
8924 arguments.
8925 (objc_set_property_attr): Removed.
9faeb493 8926
f614132b
NP
89272010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
8928
8929 * c-common.h (objc_add_property_variable): Renamed to
8930 objc_add_property_declaration. Added location argument.
8931 * stub-objc.c (objc_add_property_variable): Same change.
b1726d6c 8932
b8a18805
NP
89332010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
8934
8935 * c-common.h (objc_maybe_printable_name): New.
8936 * stub-objc.c (objc_maybe_printable_name): New.
8937
3f8257db
JJ
89382010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
8939 Andrew Pinski <pinskia@gmail.com>
30cd1c5d
AS
8940
8941 * c-common.h (c_common_mark_addressable_vec): Declare.
8942 * c-common.c (c_common_mark_addressable_vec): New function.
8943
249a82c4
NP
89442010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8945
8946 * c-common.h (objc_set_method_type): Removed.
8947 (objc_add_method_declaration): Added boolean argument.
8948 (objc_start_method_definition): Same change.
8949 (objc_build_method_signature): Same change.
8950 * stub-objc.c (objc_set_method_type): Removed.
8951 (objc_add_method_declaration): Added boolean argument.
8952 (objc_start_method_definition): Same change.
8953 (objc_build_method_signature): Same change.
8954
977e30bc
NP
89552010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
8956
8957 * c-common.h (finish_file): Removed.
8958 (objc_write_global_declarations): New.
8959 * c-opts.c (c_common_parse_file): Do not call finish_file.
8960 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 8961
da57d1b9
NP
89622010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8963
8964 Implemented parsing @synthesize and @dynamic for
8965 Objective-C/Objective-C++.
8966 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
8967 (objc_add_synthesize_declaration): New.
8968 (objc_add_dynamic_declaration): New.
8969 * c-common.c (c_common_reswords): Add synthesize and dynamic.
8970 * stub-objc.c (objc_add_synthesize_declaration): New.
8971 (objc_add_dynamic_declaration): New.
9faeb493 8972
0069111f
MM
89732010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
8974
8975 PR target/46041
8976 * c-cppbuiltin.c (mode_has_fma): Move function here from
8977 builtins.c. Don't use the fma optab, instead just use the
8978 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
8979 using -save-temps.
8980
e426b47b
NP
89812010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
8982
8983 Merge from 'apple/trunk' branch on FSF servers.
0069111f 8984
3f8257db 8985 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
e426b47b 8986
9faeb493 8987 Radar 4330422
e426b47b
NP
8988 * c-common.h (objc_non_volatilized_type): New declaration
8989 * stub-objc.c (objc_non_volatilized_type): New stub.
8990
90fbfdc3
NP
89912010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
8992
e426b47b 8993 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3 8994
3f8257db 8995 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
90fbfdc3 8996
9faeb493 8997 Radar 4133425
90fbfdc3 8998 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 8999 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 9000
c37d8c30
IS
90012010-10-17 Iain Sandoe <iains@gcc.gnu.org>
9002
9003 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
9004 * c-common.h (enum rid): Add RID_AT_PACKAGE.
9005 (objc_ivar_visibility_kind): New enum.
9006 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 9007 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
9008 visibility enum.
9009
1b1562a5
MM
90102010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9011
9012 * c-cppbuiltin.c (builtin_define_float_constants): Emit
9013 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
9014 has the appropriate fma builtins.
9015 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
9016
668ea4b1
IS
90172010-10-14 Iain Sandoe <iains@gcc.gnu.org>
9018
1b1562a5 9019 merge from FSF apple 'trunk' branch.
3f8257db 9020 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 9021
668ea4b1
IS
9022 Radars 4436866, 4505126, 4506903, 4517826
9023 * c-common.c (c_common_resword): Define @property and its attributes.
9024 * c-common.h: Define property attribute enum entries.
9025 (OBJC_IS_PATTR_KEYWORD): New.
9026 (objc_property_attribute_kind): New enum.
9027 Declare objc_set_property_attr (), objc_add_property_variable (),
9028 objc_build_getter_call () and objc_build_setter_call ().
9029 * stub-objc.c (objc_set_property_attr): New stub.
9030 (objc_add_property_variable): Likewise.
9031 (objc_build_getter_call): Likewise.
9032 (objc_build_setter_call) Likewise.
1b1562a5 9033
a1178b30
IS
90342010-10-13 Iain Sandoe <iains@gcc.gnu.org>
9035
1b1562a5 9036 merge from FSF apple 'trunk' branch.
3f8257db 9037 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
a1178b30
IS
9038
9039 Radar 3803157 (method attributes)
9040 * c-common.c (handle_deprecated_attribute): Recognize
9041 objc methods as valid declarations.
9042 * c-common.h: Declare objc_method_decl ().
1b1562a5 9043 * stub-objc.c (objc_method_decl): New stub.
a1178b30 9044
a75bfaa6
JM
90452010-10-08 Joseph Myers <joseph@codesourcery.com>
9046
9047 * c-common.c (parse_optimize_options): Call
9048 decode_cmdline_options_to_array_default_mask before
9049 decode_options. Update arguments to decode_options.
9050 * c-common.h (c_common_init_options_struct): Declare.
9051 * c-opts.c (c_common_init_options_struct): New. Split out from
9052 c_common_init_options.
9053
f05b9d93
NP
90542010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
9055
9056 Implemented fast enumeration for Objective-C.
9057 * c-common.h (objc_finish_foreach_loop): New.
9058 * stub-objc.c (objc_finish_foreach_loop): New.
9059
1ebe4b4f
JM
90602010-10-05 Joseph Myers <joseph@codesourcery.com>
9061
9062 * c-common.h (struct diagnostic_context): Don't declare here.
9063 (c_common_initialize_diagnostics): Declare using
9064 diagnostic_context typedef.
9065 * c-opts.c (c_common_handle_option): Pass global_dc to
9066 handle_generated_option.
9067
d4d24ba4
JM
90682010-10-04 Joseph Myers <joseph@codesourcery.com>
9069
9070 * c-opts.c (c_common_handle_option): Pass &global_options_set to
9071 handle_generated_option.
9072
478a1c5b
ILT
90732010-10-03 Ian Lance Taylor <iant@google.com>
9074
9075 * c.opt (-fplan9-extensions): New option.
9076
82a1c2fe
FXC
90772010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9078
9079 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
9080 Remove.
9081 (c_cpp_builtins): Call functions from cppbuiltin.c instead
9082 of duplicating code.
9083
92902b1b
IS
90842010-09-30 Iain Sandoe <iains@gcc.gnu.org>
9085
9086 * c-common.c: Add two new entries for @optional
9087 and @required keywords.
9088
9089 merge from FSF 'apple/trunk' branch.
3f8257db 9090 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
92902b1b
IS
9091
9092 Radar 4386773
9093 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
9094 objective-c keywords.
9095 (objc_set_method_opt): New declaration.
9096 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 9097
46625112
JM
90982010-09-30 Joseph Myers <joseph@codesourcery.com>
9099
9100 * c-common.c (handle_optimize_attribute): Pass &global_options to
9101 cl_optimization_save and cl_optimization_restore.
9102 * c-opts.c (c_common_handle_option): Pass &global_options to
9103 handle_generated_option.
9104 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
9105 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
9106 &global_options to cl_optimization_restore.
9107
49b91f05
NP
91082010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
9109
9110 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
9111 Objective-C/Objective-C++ keywords.
9112
13ed556f 91132010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 9114
9faeb493
UB
9115 Merge from 'apple/trunk' branch on FSF servers.
9116
3f8257db 9117 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
a6341d57
NP
9118
9119 Radar 4281748
9120 * c-common.h (objc_check_global_decl): New declaration.
9121 * stub-objc.c (objc_check_global_decl): New stub.
9122
f0036cca
JM
91232010-09-29 Joseph Myers <joseph@codesourcery.com>
9124
9125 * c.opt: Don't use VarExists.
9126
e3339d0f
JM
91272010-09-29 Joseph Myers <joseph@codesourcery.com>
9128
9129 * c-common.c (c_cpp_error): Update names of diagnostic_context
9130 members.
9131 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
9132 cl_optimization members.
9133 * c-opts.c (warning_as_error_callback, c_common_handle_option,
9134 sanitize_cpp_opts, finish_options): Update names of cpp_options
9135 members.
9136
1973201f
NP
91372010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
9138
9139 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
9140 (objc_is_reserved_word): Removed.
9141 * c-common.c: Updated comments.
9142 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
9143 objc_is_reserved_word.
9144 * stub-objc.c (objc_is_reserved_word): Removed.
9145
f7e71da5
IS
91462010-09-28 Iain Sandoe <iains@gcc.gnu.org>
9147
9faeb493 9148 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
9149 include attributes.
9150 (objc_start_method_definition): Likewise.
9151 (objc_build_keyword_decl): Likewise.
9152 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
9153 (objc_start_method_definition): Likewise.
9154 (objc_build_keyword_decl): Likewise.
9155
c165dca7
IS
91562010-09-28 Iain Sandoe <iains@gcc.gnu.org>
9157
9158 * c-common.h (objc_start_class_interface): Adjust prototype.
9159 (objc_start_category_interface): Likewise.
9160 (objc_start_protocol): Likewise.
9161 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
9162 (objc_start_class_interface): Likewise.
9163 (objc_start_category_interface): Likewise.
9164
7458026b
ILT
91652010-09-27 Ian Lance Taylor <iant@google.com>
9166
9167 * c-common.c (c_common_attribute_table): Add no_split_stack.
9168 (handle_no_split_stack_attribute): New static function.
9169
b581b85b
NP
91702010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
9171
9faeb493 9172 Merge from 'apple/trunk' branch on FSF servers.
b581b85b 9173
3f8257db 9174 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
b581b85b 9175
9faeb493 9176 Radar 4229905
b581b85b
NP
9177 * c-common.h (objc_have_common_type): New declaration.
9178 * stub-objc.c (objc_have_common_type): New stub.
9179
9180 2005-06-22 Ziemowit Laski <zlaski@apple.com>
9181
9182 Radar 4154928
9183 * c-common.h (objc_common_type): New prototype.
9faeb493 9184 * stub-objc.c (objc_common_type): New stub.
b581b85b 9185
46a4da10
JH
91862010-09-24 Jan Hubicka <jh@suse.cz>
9187
9188 * c-common.c (handle_leaf_attribute): New function.
9189 (struct attribute_spec c_common_att): Add leaf.
9190
e200444e
JM
91912010-09-22 Joseph Myers <joseph@codesourcery.com>
9192
9193 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
9194 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
9195 -dump, -dump=, -imacros, -imacros=, -include, -include=,
9196 -include-barrier, -include-directory, -include-directory=,
9197 -include-directory-after, -include-directory-after=,
9198 -include-prefix, -include-prefix=, -include-with-prefix,
9199 -include-with-prefix=, -include-with-prefix-after,
9200 -include-with-prefix-after=, -include-with-prefix-before,
9201 -include-with-prefix-before=, -no-integrated-cpp,
9202 -no-line-commands, -no-standard-includes, -no-warnings, -output,
9203 -output=, -pedantic, -pedantic-errors, -preprocess,
9204 -print-missing-file-dependencies, -trace-includes, -traditional,
9205 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
9206 -user-dependencies, -verbose, -write-dependencies,
9207 -write-user-dependencies, no-integrated-cpp, traditional): New.
9208
29a80ea6
NP
92092010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
9210
9211 PR objc/23710
ac1fc2fc
NP
9212 * c-common.h (objc_start_method_definition): Return bool instead
9213 of void.
9214 * stub-objc.c (objc_start_method_definition): Return bool instead
9215 of void.
9216
92172010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
9218
9219 PR objc/25965
9220 * c-common.h (objc_get_interface_ivars): New declaration.
9221 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 9222
de621752
ILT
92232010-09-15 Ian Lance Taylor <iant@google.com>
9224
9225 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 9226 messages. Remove period at end of warning message.
de621752 9227
ba885ec5
NS
92282010-09-09 Nathan Sidwell <nathan@codesourcery.com>
9229
9230 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
9231 (handle_alias_attribute): ... here.
9232 (handle_ifunc_attribute): New.
9233
c5ee1358
MM
92342010-09-06 Mark Mitchell <mark@codesourcery.com>
9235
9236 * c-common.h (do_warn_double_promotion): Declare.
9237 * c-common.c (do_warn_double_promotion): Define.
9238
0a0b3574
MM
92392010-09-05 Mark Mitchell <mark@codesourcery.com>
9240
9241 * c.opt (Wdouble-promotion): New.
9242
d1779886
JM
92432010-09-02 Joseph Myers <joseph@codesourcery.com>
9244
9245 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
9246 fvtable-thunks, fxref): Mark no longer supported in help text.
9247
2d2bd949
JM
92482010-09-02 Joseph Myers <joseph@codesourcery.com>
9249
9250 * c.opt (Wimport, fall-virtual, falt-external-templates,
9251 fdefault-inline, fenum-int-equiv, fexternal-templates,
9252 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
9253 fname-mangling-version-, fnew-abi, fnonnull-objects,
9254 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
9255 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
9256 applicable.
9257 (fhandle-exceptions): Mark with Alias and Warn.
9258 * c-opts.c (c_common_handle_option): Don't handle options marked
9259 as ignored.
9260
5de8299c
JM
92612010-09-02 Joseph Myers <joseph@codesourcery.com>
9262
9263 * c.opt (Wcomments, Werror-implicit-function-declaration,
9264 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
9265 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
9266 aliases.
9267 * c-common.c (option_codes): Use OPT_Wcomment instead of
9268 OPT_Wcomments.
9269 * c-opts.c (warning_as_error_callback, c_common_handle_option):
9270 Don't handle options marked as aliases.
9271
0ceb0201
RG
92722010-08-25 Richard Guenther <rguenther@suse.de>
9273
9274 * c-common.c (c_common_get_alias_set): Remove special
9275 handling for pointers.
9276
ac47786e
NF
92772010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9278
9279 * c-common.c: Use FOR_EACH_VEC_ELT.
9280 * c-gimplify.c: Likewise.
9281 * c-pragma.c: Likewise.
9282
c878765b
JM
92832010-08-16 Joseph Myers <joseph@codesourcery.com>
9284
9285 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
9286 RejectDriver.
9287 (MMDX): Change back to MMD. Mark NoDriverArg instead of
9288 RejectDriver.
9289 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
9290 instead of OPT_MDX and OPT_MMDX.
9291
603349bf
JM
92922010-08-16 Joseph Myers <joseph@codesourcery.com>
9293
9294 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
9295
644fa7ac
JM
92962010-08-12 Joseph Myers <joseph@codesourcery.com>
9297
9298 * c.opt (MD, MMD): Change to MDX and MMDX.
9299 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
9300
481e1176
JM
93012010-08-11 Joseph Myers <joseph@codesourcery.com>
9302
9303 * c-opts.c (c_common_handle_option): Call handle_generated_option
9304 instead of handle_option.
9305
ac8dc9f7
NF
93062010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9307
9308 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
9309 (maybe_apply_renaming_pragma): Delete unneeded declarations.
9310
4f8c876d
NF
93112010-08-08 Nathan Froyd <froydnj@codesourcery.com>
9312
9313 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
9314 (pending_redefine_extname): Change type to a VEC.
9315 (add_to_renaming_pragma_list): Update for new type of
9316 pending_redefine_extname.
ac8dc9f7 9317 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 9318
3b0c690e
AC
93192010-08-04 Arnaud Charlet <charlet@adacore.com>
9320
9321 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
9322 visited.
9323 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
9324 decide whether a type has already been declared/seen.
9325 Do not go to the original type.
9326 (dump_nested_types): New parameter forward.
9327 Generate forward declaration if needed and mark type as visited.
9328 (print_ada_declaration): Call dump_nested_types if not already done.
9329 Mark types as visited.
9330
1890bccc
JM
93312010-08-03 Joseph Myers <joseph@codesourcery.com>
9332
9333 * c.opt (-print-pch-checksum): Remove option.
9334 * c-opts.c (c_common_handle_option): Don't handle
9335 OPT_print_pch_checksum.
9336
5f20c657
JM
93372010-07-27 Joseph Myers <joseph@codesourcery.com>
9338
9339 * c-common.h (c_common_handle_option): Update prototype and return
9340 value type.
9341 * c-opts.c (c_common_handle_option): Update prototype and return
9342 value type. Update calls to handle_option and
9343 enable_warning_as_error.
9344
f551f80c
JJ
93452010-07-27 Jakub Jelinek <jakub@redhat.com>
9346
9347 PR c/45079
9348 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
9349
61ff2bdc
JM
93502010-07-27 Joseph Myers <joseph@codesourcery.com>
9351
9352 * c-common.h (c_common_missing_argument): Remove.
9353 * c-opts.c (c_common_missing_argument): Remove.
9354 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
9355 idirafter, imacros, include, isysroot, isystem, iquote): Add
9356 MissingArgError.
9357 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
9358
7a9bf9a4
JM
93592010-07-27 Joseph Myers <joseph@codesourcery.com>
9360
9361 * c-common.h (c_common_option_lang_mask,
9362 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
9363 New.
9364 (c_common_init_options): Update prototype.
9365 * c-opts.c (c_common_option_lang_mask): New.
9366 (c_common_initialize_diagnostics): Split out of
9367 c_common_init_options.
9368 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
9369 New.
9370 (c_common_init_options): Update prototype. Use decoded options in
9371 search for -lang-asm.
9372
910ad8de
NF
93732010-07-15 Nathan Froyd <froydnj@codesourcery.com>
9374
9375 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9376 * c-format.c: Likewise.
9377
718f9c0f
MLI
93782010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
9379
9380 * c-common.h: Include diagnostic-core.h. Error if already
9381 included.
9382 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
9383
4d451982
MLI
93842010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
9385
adfac8df 9386 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4d451982
MLI
9387 Do not include expr.h
9388 (vector_mode_valid_p): Move here.
9389
119fe915
SB
93902010-06-21 DJ Delorie <dj@redhat.com>
9391
9392 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
9393 allow these pragmas anywhere.
9394
93952010-06-14 Jakub Jelinek <jakub@redhat.com>
9396
9397 PR bootstrap/44509
9398 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
9399 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
9400 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
9401 ggc_strdup instead of xstrdup.
9402
94032010-06-10 Jakub Jelinek <jakub@redhat.com>
9404
9405 * c-cppbuiltin.c: Include cpp-id-data.h.
9406 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
9407 (lazy_hex_fp_value): New function.
9408 (builtin_define_with_hex_fp_value): Provide definitions lazily.
9409
6662d794
MLI
94102010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
9411
9412 * c-gimplify.c: Do not include tree-flow.h
9413
38f8b050
JR
94142010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
9415
9416 PR other/44034
9417 * c-common.c: Rename targetm member:
9418 targetm.enum_va_list -> targetm.enum_va_list_p
9419
9589f23e
AS
94202010-06-28 Anatoly Sokolov <aesok@post.ru>
9421
9422 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
9423
3b06d379
SB
94242010-06-28 Steven Bosscher <steven@gcc.gnu.org>
9425
9426 * c-cppbuiltin.c: Do not include except.h.
9427
d166d4c3
AK
94282010-06-24 Andi Kleen <ak@linux.intel.com>
9429
9faeb493
UB
9430 * c-common.c (warn_for_omitted_condop): New.
9431 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 9432
70cb8be6
JM
94332010-06-21 Joseph Myers <joseph@codesourcery.com>
9434
9435 * c.opt (lang-objc): Remove.
9436 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
9437
a4c97feb
JR
94382010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
9439
9440 * c-opts.c: Include "tm_p.h".
9441
6e2f1956
JM
94422010-06-20 Joseph Myers <joseph@codesourcery.com>
9443
9444 * c-common.c (parse_optimize_options): Update call to
9445 decode_options.
9446
bc87224e
NF
94472010-06-18 Nathan Froyd <froydnj@codesourcery.com>
9448
9449 * c-common.c (record_types_used_by_current_var_decl): Adjust for
9450 new type of types_used_by_cur_var_decl.
9451
b49cf425
JR
94522010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
9453
9454 PR bootstrap/44512
9455 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
9456 for C++ standard compliance.
9457
59f9c2ed
JM
94582010-06-16 Jason Merrill <jason@redhat.com>
9459
9460 * c.opt: Add -Wnoexcept.
9461
33766b66
RG
94622010-06-16 Richard Guenther <rguenther@suse.de>
9463
9464 PR c/44555
9465 * c-common.c (c_common_truthvalue_conversion): Remove
9466 premature and wrong optimization concering ADDR_EXPRs.
9467
eff7e30c
AC
94682010-06-15 Arnaud Charlet <charlet@adacore.com>
9469
9470 * c-ada-spec.c (dump_sloc): Remove column info.
9471 (is_simple_enum): New function.
9472 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
9473 enum types when relevant.
9474
6312e84d
MLI
94752010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9476
9faeb493 9477 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
9478 location.
9479
1cb42611
JM
94802010-06-10 Joseph Myers <joseph@codesourcery.com>
9481
9482 * c-opts.c (c_common_handle_option): Don't handle
9483 OPT_fshow_column.
9484
a9429e29
LB
94852010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9486
9487 * c-pragma.c (push_alignment): Use typed GC allocation.
9488 (handle_pragma_push_options): Likewise.
9489
9490 * c-common.c (parse_optimize_options): Likewise.
9491
9492 * c-common.h (struct sorted_fields_type): Add variable_size GTY
9493 option.
9494
5498f011
JM
94952010-06-07 Joseph Myers <joseph@codesourcery.com>
9496
9497 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
9498 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
9499 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
9500 flag_signed_bitfields, warn_strict_null_sentinel,
9501 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
9502 flag_gen_declaration, flag_no_gnu_keywords,
9503 flag_implement_inlines, flag_implicit_templates,
9504 flag_implicit_inline_templates, flag_optional_diags,
9505 flag_elide_constructors, flag_default_inline, flag_rtti,
9506 flag_conserve_space, flag_access_control, flag_check_new,
9507 flag_new_for_scope, flag_weak, flag_working_directory,
9508 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
9509 flag_enforce_eh_specs, flag_threadsafe_statics,
9510 flag_pretty_templates): Remove.
9511 * c-common.h (flag_preprocess_only, flag_nil_receivers,
9512 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
9513 flag_replace_objc_classes, flag_undef, flag_no_builtin,
9514 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
9515 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
9516 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
9517 flag_no_gnu_keywords, flag_implement_inlines,
9518 flag_implicit_templates, flag_implicit_inline_templates,
9519 flag_optional_diags, flag_elide_constructors, flag_default_inline,
9520 flag_rtti, flag_conserve_space, flag_access_control,
9521 flag_check_new, flag_new_for_scope, flag_weak,
9522 flag_working_directory, flag_use_cxa_atexit,
9523 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
9524 flag_threadsafe_statics, flag_pretty_templates,
9525 warn_strict_null_sentinel): Remove.
9526 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
9527 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
9528 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
9529 fimplicit-inline-templates, fimplicit-templates,
9530 flax-vector-conversions, fms-extensions, fnil-receivers,
9531 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
9532 frtti, fshort-double, fshort-enums, fshort-wchar,
9533 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
9534 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
9535 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
9536 gen-decls, undef): Use Var.
9537 (fdefault-inline, foptional-diags): Document as doing nothing.
9538 * c-opts.c (c_common_handle_option): Remove cases for options now
9539 using Var. Mark ignored options as such.
9540
39dabefd
SB
95412010-06-05 Steven Bosscher <steven@gcc.gnu.org>
9542
9faeb493 9543 * c-common.c: Moved to here from parent directory.
39dabefd
SB
9544 * c-common.def: Likewise.
9545 * c-common.h: Likewise.
9546 * c-cppbuiltin.c: Likewise.
9547 * c-dump.c: Likewise.
9548 * c-format.c: Likewise.
9549 * c-format.h : Likewise.
9550 * c-gimplify.c: Likewise.
9551 * c-lex.c: Likewise.
9552 * c-omp.c: Likewise.
9553 * c.opt: Likewise.
9554 * c-opts.c: Likewise.
9555 * c-pch.c: Likewise.
9556 * c-ppoutput.c: Likewise.
9557 * c-pragma.c: Likewise.
9558 * c-pragma.h: Likewise.
9559 * c-pretty-print.c: Likewise.
9560 * c-pretty-print.h: Likewise.
9561 * c-semantics.c: Likewise.
9562 * stub-objc.c: Likewise.
9563
9564 * c-common.c: Include gt-c-family-c-common.h.
9565 * c-pragma.c: Include gt-c-family-c-pragma.h.
9566\f
85ec4feb 9567Copyright (C) 2010-2018 Free Software Foundation, Inc.
39dabefd
SB
9568
9569Copying and distribution of this file, with or without modification,
9570are permitted in any medium without royalty provided the copyright
9571notice and this notice are preserved.