Mercurial > hg > CbC > CbC_gcc
comparison gcc/c-family/ChangeLog @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 2018-10-17 Joseph Myers <joseph@codesourcery.com> | |
2 | |
3 * c-common.c (flag_isoc2x): New variable. | |
4 * c-common.h (clk_c): Update comment to reference C2X. | |
5 (flag_isoc99, flag_isoc11): Update comments to reference future | |
6 standard versions in general. | |
7 (flag_isoc2x): Declare. | |
8 * c-opts.c (set_std_c2x): New function. | |
9 (c_common_handle_option): Handle -std=c2x and -std=gnu2x. | |
10 (set_std_c89, set_std_c99, set_std_c11, set_std_c17): Set | |
11 flag_isoc2x to 0. | |
12 * c.opt (Wc11-c2x-compat, std=c2x, std=gnu2x): New options. | |
13 | |
14 2018-10-17 Joseph Myers <joseph@codesourcery.com> | |
15 | |
16 * c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017) | |
17 (std=iso9899:2018): Document C17 as published in 2018. | |
18 | |
19 2018-10-12 Christophe Lyon <christophe.lyon@linaro.org> | |
20 | |
21 PR c++/87364 | |
22 * c-pretty-print.c (c_pretty_printer::constant): Fix typo. | |
23 | |
24 2018-10-11 Will Wray <wjwray@gmail.com> | |
25 | |
26 PR c++/87364 | |
27 * c-pretty-print.h (pp_c_type_cast): Prototype. | |
28 (pp_c_integer_constant): Likewise. | |
29 * c-pretty-print.c (pp_c_type_cast): No longer static. | |
30 (pp_c_integer_constant): Likewise. | |
31 (pp_c_enumeration_constant): Fix loop termination when finding | |
32 name of constant. No longer returns a value. Call | |
33 pp_c_integer_constant. | |
34 (c_pretty_printer::constant): Update for changes to | |
35 pp_c_enumeration_constant. | |
36 | |
37 2018-10-11 Jakub Jelinek <jakub@redhat.com> | |
38 | |
39 * c-lex.c (c_common_has_attribute): Return 201803 instead of 20180312 | |
40 for no_unique_address. | |
41 | |
42 2018-10-09 David Malcolm <dmalcolm@redhat.com> | |
43 | |
44 * c-common.c (c_option_controlling_cpp_error): Rename to... | |
45 (c_option_controlling_cpp_diagnostic): ...this, and convert | |
46 "reason" from int to enum. | |
47 (c_cpp_error): Rename to... | |
48 (c_cpp_diagnostic): ...this, converting level and reason to enums. | |
49 * c-common.h (c_cpp_error): Rename to... | |
50 (c_cpp_diagnostic): ...this, converting level and reason to enums. | |
51 * c-opts.c (c_common_init_options): Update for renaming. | |
52 | |
53 2018-10-08 Richard Sandiford <richard.sandiford@arm.com> | |
54 | |
55 PR c/87286 | |
56 * c-common.c (vector_types_compatible_elements_p): Use | |
57 INTEGRAL_TYPE_P instead of checking only for INTEGER_TYPE. | |
58 | |
59 2018-10-04 Vinay Kumar <vinay.kumar@blackfigtech.com> | |
60 | |
61 * c-attribs.c (get_priority): Add a warning flag warn_prio_ctor_dtor | |
62 to generate constructor destructor priority warning. | |
63 * c.opt (-Wprio-ctor-dtor): New option. | |
64 | |
65 2018-10-01 Jason Merrill <jason@redhat.com> | |
66 | |
67 * c-lex.c (c_common_has_attribute): Add no_unique_address. | |
68 | |
69 2018-10-01 Eric Botcazou <ebotcazou@adacore.com> | |
70 | |
71 * c-ada-spec.c (get_underlying_decl): Get to the main type variant. | |
72 (dump_ada_node): Add const keyword. | |
73 | |
74 2018-09-25 Martin Liska <mliska@suse.cz> | |
75 | |
76 * c-common.c (c_common_truthvalue_conversion): | |
77 Remove Pascal from documentation. | |
78 | |
79 2018-09-21 Eric Botcazou <ebotcazou@adacore.com> | |
80 | |
81 * c-ada-spec.c: Include diagnostic.h. | |
82 (dump_ada_declaration) <RECORD_TYPE>: Issue a warning on packed layout. | |
83 | |
84 2018-09-19 Marek Polacek <polacek@redhat.com> | |
85 | |
86 * c.opt (Wclass-conversion): New. | |
87 | |
88 2018-09-17 David Malcolm <dmalcolm@redhat.com> | |
89 | |
90 * c-format.c (range_label_for_format_type_mismatch::get_text): | |
91 Update for new param. | |
92 | |
93 2018-09-17 David Malcolm <dmalcolm@redhat.com> | |
94 | |
95 * c-format.c (format_warning_at_char): Update for introduction of | |
96 format_string_diagnostic_t. | |
97 (format_type_warning): Likewise. | |
98 | |
99 2018-09-17 Martin Jambor <mjambor@suse.cz> | |
100 | |
101 PR c/63886 | |
102 * c.opt (Wabsolute-value): New. | |
103 | |
104 2018-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
105 | |
106 * c-common.c (complete_flexible_array_elts): New helper function. | |
107 * c-common.h (complete_flexible_array_elts): Declare. | |
108 | |
109 2018-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
110 | |
111 * c-common.c (braced_list_to_string): Remove eval parameter. | |
112 Add some more checks. Always create zero-terminated STRING_CST. | |
113 * c-common.h (braced_list_to_string): Adjust prototype. | |
114 | |
115 2018-08-27 David Malcolm <dmalcolm@redhat.com> | |
116 | |
117 PR 87091 | |
118 * c-common.c (c_cpp_error): Update for conversion of show_caret_p | |
119 to a tri-state. | |
120 (maybe_suggest_missing_token_insertion): Likewise. | |
121 (maybe_add_include_fixit): Add param "override_location". If set, | |
122 and source-printing is enabled, then override the rich_location's | |
123 primary location with that of the insertion point for the fix-it | |
124 hint, marking it with SHOW_LINES_WITHOUT_RANGE. | |
125 * c-common.h (extern void maybe_add_include_fixit): Add bool | |
126 param. | |
127 * c-format.c (selftest::test_type_mismatch_range_labels): Update | |
128 for conversion of show_caret_p to a tri-state. | |
129 * c-warn.c (warn_for_restrict): Likewise. | |
130 * known-headers.cc | |
131 (suggest_missing_header::~suggest_missing_header): Update call to | |
132 maybe_add_include_fixit to suggest overriding the location, as it | |
133 is for a note. | |
134 | |
135 2018-08-27 Martin Liska <mliska@suse.cz> | |
136 | |
137 * c-common.c (check_function_restrict): Use new function | |
138 fndecl_built_in_p and remove check for FUNCTION_DECL if | |
139 possible. | |
140 (check_builtin_function_arguments): Likewise. | |
141 (reject_gcc_builtin): Likewise. | |
142 * c-warn.c (sizeof_pointer_memaccess_warning): Likewise. | |
143 | |
144 2018-08-26 Marek Polacek <polacek@redhat.com> | |
145 | |
146 PR c++/87029, Implement -Wredundant-move. | |
147 * c.opt (Wredundant-move): New option. | |
148 | |
149 2018-08-21 Marek Polacek <polacek@redhat.com> | |
150 | |
151 PR c++/86981, Implement -Wpessimizing-move. | |
152 * c.opt (Wpessimizing-move): New option. | |
153 | |
154 2018-08-20 David Malcolm <dmalcolm@redhat.com> | |
155 | |
156 PR other/84889 | |
157 * c-attribs.c (common_handle_aligned_attribute): Add | |
158 auto_diagnostic_group instance. | |
159 * c-indentation.c (warn_for_misleading_indentation): Likewise. | |
160 * c-opts.c (c_common_post_options): Likewise. | |
161 * c-warn.c (warn_logical_not_parentheses): Likewise. | |
162 (warn_duplicated_cond_add_or_warn): Likewise. | |
163 (warn_for_multistatement_macros): Likewise. | |
164 | |
165 2018-08-20 Nathan Sidwell <nathan@acm.org> | |
166 | |
167 * c-ada-spec.c (macro_length, dump_ada_macros): Adjust macro parm | |
168 access. | |
169 | |
170 2018-08-17 Nathan Sidwell <nathan@acm.org> | |
171 | |
172 * c-cppbuiltin.c (struct lazy_hex_fp_value_struct): Remove macro | |
173 field. | |
174 (laxy_hex_fp_value_count): Make unsigned. | |
175 (lazy_hex_fp_value): Provided with macro & lazy number. Directly | |
176 manipulate the macro. | |
177 (builtin_defin_with_hex_fp_value): Adjust callback name, use | |
178 cpp_define_lazily. | |
179 | |
180 2018-08-17 David Malcolm <dmalcolm@redhat.com> | |
181 | |
182 * c-format.c (enum format_type): Add gcc_dump_printf_format_type. | |
183 (gcc_dump_printf_length_specs): New. | |
184 (gcc_dump_printf_flag_pairs): New. | |
185 (gcc_dump_printf_flag_specs): New. | |
186 (gcc_dump_printf_char_table): New. | |
187 (format_types_orig): Add entry for "gcc_dump_printf". | |
188 (init_dynamic_diag_info): Set up length_char_specs and | |
189 conversion_specs for gcc_dump_printf_format_type. | |
190 (handle_format_attribute): Handle gcc_dump_printf_format_type. | |
191 | |
192 2018-08-17 Nathan Sidwell <nathan@acm.org> | |
193 | |
194 * c-ada-spec.c (macro_length, dump_ada_macros): Constify. | |
195 | |
196 * c-ada-spec.c: Don't #include "cpp-id-data.h" | |
197 * c-cppbuiltin.c: Likewise. | |
198 | |
199 2018-08-17 Martin Liska <mliska@suse.cz> | |
200 | |
201 * c.opt: Remove Warn, Init and Report for options with | |
202 Ignore/Deprecated flag. Warning is done automatically for | |
203 Deprecated flags. | |
204 | |
205 2018-08-16 David Malcolm <dmalcolm@redhat.com> | |
206 | |
207 PR c++/70693 | |
208 * c-common.c (selftest::c_family_tests): Call | |
209 selftest::c_indentation_c_tests. | |
210 * c-common.h (selftest::c_indentation_c_tests): New decl. | |
211 * c-indentation.c: Include "selftest.h". | |
212 (next_tab_stop): Add "tab_width" param, rather than accessing | |
213 cpp_opts. | |
214 (get_visual_column): Likewise. Clarify comment. Bulletproof | |
215 against reading past the end of the line. | |
216 (get_first_nws_vis_column): Add "tab_width" param. | |
217 (detect_intervening_unindent): Likewise. | |
218 (should_warn_for_misleading_indentation): Read tab width from | |
219 cpp_opts and pass around. | |
220 (selftest::test_next_tab_stop): New test. | |
221 (selftest::assert_get_visual_column_succeeds): New function. | |
222 (ASSERT_GET_VISUAL_COLUMN_SUCCEEDS): New macro. | |
223 (selftest::assert_get_visual_column_fails): New function. | |
224 (ASSERT_GET_VISUAL_COLUMN_FAILS): New macro. | |
225 (selftest::test_get_visual_column): New test. | |
226 (selftest::c_indentation_c_tests): New function. | |
227 | |
228 2018-08-16 Nathan Sidwell <nathan@acm.org> | |
229 | |
230 * c-ada-spec.c (count_ada_macro): Use cpp_user_macro_p. | |
231 (store_ada_macro): Likewise. | |
232 * c-ppoutput.c (cb_used_define, dump_macro): Likewise. | |
233 * c-spellcheck.cc (should-suggest_as_macro_p): Likewise, | |
234 | |
235 2018-08-15 David Malcolm <dmalcolm@redhat.com> | |
236 | |
237 * c-format.c: Include "selftest-diagnostic.h" and | |
238 "gcc-rich-location.h". | |
239 (format_warning_at_char): Pass NULL for new label params of | |
240 format_warning_va. | |
241 (class indirection_suffix): New class. | |
242 (class range_label_for_format_type_mismatch): New class. | |
243 (format_type_warning): Move logic for generating "*" suffix to | |
244 class indirection_suffix. Create "fmt_label" and "param_label" | |
245 to show their types, and pass them to the | |
246 format_warning_at_substring calls. | |
247 (selftest::test_type_mismatch_range_labels): New test. | |
248 (selftest::c_format_c_tests): Call it. | |
249 | |
250 2018-08-13 Martin Sebor <msebor@redhat.com> | |
251 | |
252 PR tree-optimization/71625 | |
253 * c-common.c (braced_list_to_string): New function. | |
254 * c-common.h (braced_list_to_string): Declare it. | |
255 | |
256 2018-08-08 Nathan Sidwell <nathan@acm.org> | |
257 | |
258 * c-common.c (try_to_locate_new_include_inertion_point): Use | |
259 linemap_included_from_linemap. | |
260 * c-lex.c (fe_file_change): Use linemap_included_from. | |
261 * c-ppoutput.c (pp_file_change): Likewise. | |
262 | |
263 2018-08-01 Martin Sebor <msebor@redhat.com> | |
264 | |
265 PR tree-optimization/86650 | |
266 * c-family/c-format.c (gcc_tdiag_char_table): Update comment for "%G". | |
267 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Same. | |
268 (init_dynamic_diag_info): Update from "gcall *" to "gimple *". | |
269 * c-format.h (T89_G): Update to be "gimple *" rather than | |
270 "gcall *". | |
271 (local_gcall_ptr_node): Rename... | |
272 (local_gimple_ptr_node): ...to this. | |
273 | |
274 2018-07-31 David Malcolm <dmalcolm@redhat.com> | |
275 | |
276 * c-format.c (PP_FORMAT_CHAR_TABLE): New macro, based on existing | |
277 table entries for gcc_diag_char_table, and the 'Z' entry from | |
278 gcc_tdiag_char_table, changing the "chain" entry for 'Z' from | |
279 &gcc_tdiag_char_table[0] to &gcc_diag_char_table[0]. | |
280 (gcc_diag_char_table): Use PP_FORMAT_CHAR_TABLE, implicitly | |
281 adding missing "Z" for this table. Remove erroneous "G" and "K" | |
282 entries. | |
283 (gcc_tdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". | |
284 (gcc_cdiag_char_table): Use PP_FORMAT_CHAR_TABLE. | |
285 (gcc_cxxdiag_char_table): Use PP_FORMAT_CHAR_TABLE. Remove "v". | |
286 | |
287 2018-07-31 Richard Earnshaw <rearnsha@arm.com> | |
288 | |
289 * c-common.c (speculation_safe_resolve_call): New function. | |
290 (speculation_safe_resolve_params): New function. | |
291 (speculation_safe_resolve_return): New function. | |
292 (resolve_overloaded_builtin): Handle __builtin_speculation_safe_value. | |
293 * c-cppbuiltin.c (c_cpp_builtins): Add pre-define for | |
294 __HAVE_SPECULATION_SAFE_VALUE. | |
295 | |
296 2018-07-20 David Malcolm <dmalcolm@redhat.com> | |
297 | |
298 * c-common.c (c_cpp_error): Remove redundant "line_table" | |
299 parameter from call to rich_location::set_range. | |
300 (maybe_suggest_missing_token_insertion): Likewise. | |
301 | |
302 2018-07-20 Martin Sebor <msebor@redhat.com> | |
303 | |
304 PR middle-end/82063 | |
305 * gcc/c-family/c.opt (-Warray-bounds): Remove redundant -Wall. | |
306 | |
307 2018-07-20 Martin Sebor <msebor@redhat.com> | |
308 | |
309 PR middle-end/82063 | |
310 * c-common.h (c_common_handle_option): Change function argument | |
311 to HOST_WIDE_INT. | |
312 * c-opts.c (c_common_init_options): Same. | |
313 (c_common_handle_option): Same. Remove special handling of | |
314 OPT_Walloca_larger_than_ and OPT_Wvla_larger_than_. | |
315 * c.opt (-Walloc-size-larger-than, -Walloca-larger-than): Change | |
316 options to take a HOST_WIDE_INT argument and accept a byte-size | |
317 suffix. Initialize. | |
318 (-Wvla-larger-than): Same. | |
319 (-Wno-alloc-size-larger-than, -Wno-alloca-larger-than): New. | |
320 (-Wno-vla-larger-than): Same. | |
321 | |
322 2018-07-12 Jakub Jelinek <jakub@redhat.com> | |
323 | |
324 * c-attribs.c (c_common_attribute_table): Add | |
325 "omp declare target implicit" attribute. | |
326 | |
327 2018-07-12 Richard Biener <rguenther@suse.de> | |
328 | |
329 PR c/86453 | |
330 * c-attribs.c (handle_packed_attribute): Do not build a variant | |
331 type with TYPE_PACKED, instead ignore the attribute if we may | |
332 not apply to the original type. | |
333 | |
334 2018-07-10 Jakub Jelinek <jakub@redhat.com> | |
335 | |
336 PR c++/86443 | |
337 * c-omp.c (c_omp_check_loop_iv_r, c_omp_check_loop_iv): Allow declv | |
338 to contain TREE_LIST for both the original class iterator and the | |
339 "last" helper var. | |
340 | |
341 2018-07-07 Eric Botcazou <ebotcazou@adacore.com> | |
342 | |
343 * c-ada-spec.c (to_ada_name): Remove index parameter. | |
344 (pp_ada_tree_identifier): Likewise. | |
345 (dump_ada_macros): Adjust call to to_ada_name. | |
346 (struct overloaded_name_hash): Delete. | |
347 (struct overloaded_name_hasher): Likewise. | |
348 (overloaded_names): Likewise. | |
349 (compute_overloading_index): Likewise. | |
350 (dump_ada_decl_name): Do not call compute_overloading_index and | |
351 adjust calls to pp_ada_tree_identifier. | |
352 (dump_ada_double_name): Adjust calls to pp_ada_tree_identifier. | |
353 (dump_ada_import): Add spc parameter and switch to aspect syntax. | |
354 (dump_ada_function_declaration): Adjust call to pp_ada_tree_identifier. | |
355 (dump_ada_enum_type): Remove type and display_convention parameters. | |
356 Adjust calls to pp_ada_tree_identifier. | |
357 (dump_ada_node): Likewise and for dump_ada_structure. | |
358 (dump_nested_type) <ENUMERAL_TYPE>: Adjust call to dump_ada_enum_type | |
359 and tidy up. | |
360 <RECORD_TYPE>: Adjust call to dump_ada_structure and switch to aspect | |
361 syntax. | |
362 (print_constructor): Adjust call to pp_ada_tree_identifier. | |
363 (print_destructor): Likewise. | |
364 (dump_ada_declaration): Switch to aspect syntax. | |
365 (dump_ada_structure): Likewise and tidy up. Replace display_convention | |
366 parameter with nested parameter. | |
367 (dump_ads): Emit pragma Ada_2012 in lieu of pragma Ada_2005. | |
368 (dump_ada_specs): Do not delete overloaded_names table. | |
369 | |
370 2018-07-06 Peter Bergner <bergner@linux.ibm.com> | |
371 | |
372 PR target/86324 | |
373 * c-attribs.c (handle_mode_attribute): Call translate_mode_attribute | |
374 target hook. | |
375 | |
376 2018-07-05 Nathan Sidwell <nathan@acm.org> | |
377 | |
378 * c-lex.c (fe_file_change): Check SYSTEM_IMPLICIT_EXTERN_C not | |
379 NO_IMPLICIT_EXTERN_C. | |
380 | |
381 2018-06-28 Martin Liska <mliska@suse.cz> | |
382 | |
383 * cppspec.c: Include opt-suggestions.h. | |
384 | |
385 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com> | |
386 Thomas Schwinge <thomas@codesourcery.com> | |
387 Cesar Philippidis <cesar@codesourcery.com> | |
388 | |
389 * c-pragma.h (enum pragma_omp_clause): Add | |
390 PRAGMA_OACC_CLAUSE_{FINALIZE,IF_PRESENT}. Remove | |
391 PRAGMA_OACC_CLAUSE_PRESENT_OR_{COPY,COPYIN,COPYOUT,CREATE}. | |
392 | |
393 2018-06-20 Jakub Jelinek <jakub@redhat.com> | |
394 | |
395 PR c++/86210 | |
396 * c-common.c (check_nonnull_arg): Use fold_for_warn. Adjust obsolete | |
397 comment. | |
398 | |
399 2018-06-18 Martin Sebor <msebor@redhat.com> | |
400 | |
401 PR middle-end/85602 | |
402 * c-warn.c (sizeof_pointer_memaccess_warning): Check for attribute | |
403 nonstring. | |
404 | |
405 2018-06-16 Kugan Vivekanandarajah <kuganv@linaro.org> | |
406 | |
407 * c-common.c (c_common_truthvalue_conversion): Handle ABSU_EXPR. | |
408 | |
409 2018-06-13 Jason Merrill <jason@redhat.com> | |
410 | |
411 * c-opts.c (c_common_post_options): Warn about useless -Wabi. | |
412 (c_common_handle_option) [OPT_Wabi_]: Remove flag_abi_compat_version | |
413 handling. | |
414 | |
415 PR c++/86094 - wrong code with defaulted move ctor. | |
416 * c-opts.c (c_common_post_options): Bump the current ABI version to | |
417 13. Set warn_abi_version and flag_abi_compat_version to the current | |
418 version rather than 0. Fix defaulting flag_abi_compat_version from | |
419 warn_abi_version. | |
420 | |
421 2018-06-12 Martin Sebor <msebor@redhat.com> | |
422 | |
423 PR c/85931 | |
424 * c-warn.c (sizeof_pointer_memaccess_warning): Avoid warning when | |
425 sizeof source and destination yields the same value. | |
426 | |
427 2018-06-12 Martin Liska <mliska@suse.cz> | |
428 | |
429 * c.opt: Make MPX-related options as Deprecated. | |
430 | |
431 2018-06-08 David Malcolm <dmalcolm@redhat.com> | |
432 | |
433 * c-pretty-print.c (c_pretty_printer::statement): Use TDF_NONE | |
434 rather than 0. | |
435 | |
436 2018-06-08 Martin Liska <mliska@suse.cz> | |
437 | |
438 * c-attribs.c (handle_bnd_variable_size_attribute): Remove support | |
439 for MPX (macros, related functions, fields in cgraph_node, ...). | |
440 (handle_bnd_legacy): Likewise. | |
441 (handle_bnd_instrument): Likewise. | |
442 * c.opt: Likewise. | |
443 | |
444 2018-06-06 Jakub Jelinek <jakub@redhat.com> | |
445 | |
446 PR c++/86068 | |
447 * c-cppbuiltin.c (c_cpp_builtins): Fix a typo, set | |
448 __cpp_transactional_memory to 201500 instead of 210500. | |
449 | |
450 2018-06-06 Jason Merrill <jason@redhat.com> | |
451 | |
452 PR c++/85710 - ICE with -Wmemset-elt-size. | |
453 * c-warn.c (warn_for_memset): Don't crash on incomplete element type. | |
454 | |
455 2018-06-01 Jason Merrill <jason@redhat.com> | |
456 | |
457 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_deduction_guides to | |
458 201703. | |
459 | |
460 2018-06-01 Eric Botcazou <ebotcazou@adacore.com> | |
461 | |
462 * c-ada-spec.c (dump_ada_declaration) <TYPE_DECL>: Generate a forward | |
463 declaration for a typedef independently of whether the declaration of | |
464 the subtype is generated. | |
465 | |
466 2018-05-31 Martin Sebor <msebor@redhat.com> | |
467 | |
468 PR c/82063 | |
469 * c.opt (-Wno-alloc-size-larger-than): New option. | |
470 | |
471 2018-04-22 David Pagan <dave.pagan@oracle.com> | |
472 | |
473 PR c/55976 | |
474 * c-opts.c (c_common_post_options): Set default for warn_return_type | |
475 for C++/C++ with ObjC extensions only. For C, makes it possible to | |
476 differentiate between default (no option), -Wreturn-type, and | |
477 -Wno-return-type. | |
478 | |
479 2018-05-29 Jason Merrill <jason@redhat.com> | |
480 | |
481 * c.opt (Winit-list-lifetime): New flag. | |
482 | |
483 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
484 | |
485 * c-lex.c (get_fileinfo): Use splay_tree_compare_strings and | |
486 splay_tree_delete_pointers. | |
487 | |
488 2018-05-26 Jakub Jelinek <jakub@redhat.com> | |
489 | |
490 PR bootstrap/85921 | |
491 * c-warn.c (diagnose_mismatched_attributes): Remove unnecessary | |
492 noinline variable to workaround broken kernel headers. | |
493 | |
494 2018-05-18 Jason Merrill <jason@redhat.com> | |
495 | |
496 * c.opt (Wdeprecated-copy): New flag. | |
497 | |
498 2018-05-17 Martin Liska <mliska@suse.cz> | |
499 | |
500 * c-warn.c (overflow_warning): Do not use | |
501 space in between 'G_' and '('. | |
502 | |
503 2018-05-09 Jason Merrill <jason@redhat.com> | |
504 | |
505 * c-common.c (valid_array_size_p): Add complain parameter. | |
506 * c-common.h: ...which defaults to true. | |
507 | |
508 2018-05-11 Jakub Jelinek <jakub@redhat.com> | |
509 | |
510 PR c/85696 | |
511 * c-omp.c (c_omp_predetermined_sharing): Return | |
512 OMP_CLAUSE_DEFAULT_SHARED for artificial vars with integral type. | |
513 | |
514 2018-05-11 Martin Liska <mliska@suse.cz> | |
515 | |
516 PR sanitizer/85556 | |
517 * c-attribs.c (handle_no_sanitize_attribute): Iterate all | |
518 TREE_LIST values. | |
519 | |
520 2018-05-10 Jakub Jelinek <jakub@redhat.com> | |
521 | |
522 PR c++/85662 | |
523 * c-common.h (fold_offsetof_1): Removed. | |
524 (fold_offsetof): Add TYPE argument defaulted to size_type_node and | |
525 CTX argument defaulted to ERROR_MARK. | |
526 * c-common.c (fold_offsetof_1): Renamed to ... | |
527 (fold_offsetof): ... this. Remove wrapper function. Add TYPE | |
528 argument, convert the pointer constant to TYPE and use size_binop | |
529 with PLUS_EXPR instead of fold_build_pointer_plus if type is not | |
530 a pointer type. Adjust recursive calls. | |
531 | |
532 2018-05-10 Eric Botcazou <ebotcazou@adacore.com> | |
533 | |
534 PR c++/85400 | |
535 * c-attribs.c (handle_visibility_attribute): Do not set no_add_attrs. | |
536 | |
537 2018-05-07 Nathan Sidwell <nathan@acm.org> | |
538 | |
539 * c.opt (ffor-scope): Remove functionality, issue warning. | |
540 | |
541 2018-05-03 Nathan Sidwell <nathan@acm.org> | |
542 | |
543 * c.opt (ffriend-injection): Remove functionality, issue warning. | |
544 | |
545 2018-05-01 David Malcolm <dmalcolm@redhat.com> | |
546 | |
547 PR c/84258 | |
548 * c-format.c (struct format_check_results): Add field | |
549 "number_non_char". | |
550 (check_format_info): Initialize it, and warn if encountered. | |
551 (check_format_arg): Distinguish between wide char and | |
552 everything else when detecting arrays of non-char. | |
553 | |
554 2018-04-30 David Malcolm <dmalcolm@redhat.com> | |
555 | |
556 * c-format.c (get_corrected_substring): Update for | |
557 location_get_source_line returning a char_span. Use a char_span | |
558 when handling the prefix of the correction. | |
559 * c-indentation.c (get_visual_column): Update for | |
560 location_get_source_line returning a char_span. | |
561 (get_first_nws_vis_column): Likewise. | |
562 | |
563 2018-03-29 David Malcolm <dmalcolm@redhat.com> | |
564 | |
565 PR c++/84269 | |
566 * known-headers.cc (get_stdlib_header_for_name): Add various names | |
567 from <assert.h>, <string.h>, and <memory.h>; add more names from | |
568 <stdio.h>. | |
569 | |
570 2018-03-27 Jakub Jelinek <jakub@redhat.com> | |
571 | |
572 PR c++/85061 | |
573 * c-common.c (fold_offsetof_1) <case COMPOUND_EXPR>: Assert that | |
574 get_base_address of the second operand is a VAR_P, rather than the | |
575 operand itself, and use gcc_checking_assert instead of gcc_assert. | |
576 | |
577 2018-03-23 Marek Polacek <polacek@redhat.com> | |
578 | |
579 PR c++/85045 | |
580 * c-pretty-print.c (c_pretty_printer::multiplicative_expression) | |
581 <case RDIV_EXPR>: Tweak condition. | |
582 | |
583 2018-03-20 Eric Botcazou <ebotcazou@adacore.com> | |
584 | |
585 * c-ada-spec.c (pp_ada_tree_identifier): Deal specifically with _Bool. | |
586 | |
587 2018-03-16 Jakub Jelinek <jakub@redhat.com> | |
588 | |
589 PR c/84909 | |
590 * c-warn.c (conversion_warning): Replace "to to" with "to" in | |
591 diagnostics. | |
592 | |
593 PR c/84910 | |
594 * c-warn.c (diagnose_mismatched_attributes): Remove trailing space from | |
595 diagnostics. | |
596 | |
597 2018-03-16 Richard Biener <rguenther@suse.de> | |
598 | |
599 PR c/84873 | |
600 * c-gimplify.c (c_gimplify_expr): Revert previous change. Instead | |
601 unshare the possibly folded expression. | |
602 | |
603 2018-03-15 Richard Biener <rguenther@suse.de> | |
604 | |
605 PR c/84873 | |
606 * c-gimplify.c (c_gimplify_expr): Do not fold expressions. | |
607 | |
608 2018-03-13 Martin Sebor <msebor@redhat.com> | |
609 | |
610 PR tree-optimization/84725 | |
611 * c-attribs.c (handle_nonstring_attribute): Allow attribute nonstring | |
612 with all three narrow character types, including their qualified forms. | |
613 | |
614 2018-03-12 Martin Sebor <msebor@redhat.com> | |
615 | |
616 PR tree-optimization/83456 | |
617 * gcc/c-family/c-common.c (check_function_restrict): Return bool. | |
618 Restore checking of bounded built-in functions. | |
619 (check_function_arguments): Also return the result | |
620 of warn_for_restrict. | |
621 * gcc/c-family/c-common.c (check_function_restrict): Return bool. | |
622 * gcc/c-family/c-warn.c (warn_for_restrict): Return bool. | |
623 | |
624 2018-03-02 Marek Polacek <polacek@redhat.com> | |
625 | |
626 PR c++/84171 | |
627 * c-warn.c (warn_for_sign_compare): Bail out if any of the operands | |
628 is erroneous. | |
629 | |
630 2018-03-02 Thomas Schwinge <thomas@codesourcery.com> | |
631 | |
632 * c-attribs.c (c_common_attribute_table): Remove "cilk simd | |
633 function". | |
634 | |
635 2018-03-01 Marek Polacek <polacek@redhat.com> | |
636 | |
637 PR c++/84639 | |
638 * c-attribs.c (common_handle_aligned_attribute): Don't use invalid | |
639 alignment in computation. | |
640 | |
641 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> | |
642 | |
643 * c-ada-spec.c (dump_ada_node) <NULLPTR_TYPE>: New case. | |
644 <REAL_TYPE>: Deal specifically with _Float128/__float128. | |
645 | |
646 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> | |
647 | |
648 * c-ada-spec.c (dump_ada_double_name) <ENUMERAL_TYPE>: New case. | |
649 (is_char_array): Take a type instead of a declaration. | |
650 (dump_ada_array_type): Likewise. | |
651 (is_simple_enum): Minor tweak. | |
652 (dump_ada_enum_type): New function extracted from... | |
653 (dump_ada_node) <ENUMERAL_TYPE>: ...here. Invoke it. | |
654 <INTEGER_TYPE>: Remove unreachable code. | |
655 <RECORD_TYPE>: Likewise. Minor tweaks. | |
656 (dump_nested_type) <ARRAY_TYPE>: Adjust to above changes. | |
657 <ENUMERAL_TYPE>: New case. | |
658 <RECORD_TYPE>: Factor out common code. | |
659 (dump_ada_declaration) <ARRAY_TYPE>: Adjust to above changes. | |
660 Minor tweaks. Deal with enumeral types. | |
661 (dump_ada_structure): Minor tweaks. | |
662 | |
663 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> | |
664 | |
665 * c-ada-spec.c (dump_ada_node) <POINTER_TYPE>: Do not use generic | |
666 address for incomplete structures. | |
667 (dump_forward_type): Do not bail out for incomplete structures. | |
668 (dump_ada_declaration): Do not special-case incomplete structures | |
669 for subtypes. Dump them as null records for types. | |
670 | |
671 2018-02-28 Eric Botcazou <ebotcazou@adacore.com> | |
672 | |
673 * c-ada-spec.c (dump_ada_import): Use boolean and fix formatting. | |
674 (is_char_array): Fix formatting. | |
675 (dump_template_types): Likewise. | |
676 (dump_generic_ada_node): Rename into... | |
677 (dump_ada_node): ...this. | |
678 <POINTER_TYPE>: Remove superfluous space. Use generic address for | |
679 incomplete structures and not for empty structures. Do not use it | |
680 when forward declarations are needed. | |
681 (dump_forward_type): New function. | |
682 (dump_nested_types): Remove FORWARD parameter. Do not consider | |
683 TREE_VISITED and do not generate a forward declaration. Only dump | |
684 original nested types for nested declaration. | |
685 (dump_nested_type) <POINTER_TYPE>: Call dump_forward_type. | |
686 <ARRAY_TYPE>: Likewise if the component type is an anonymous pointer. | |
687 <RECORD_TYPE>: Do not consider TREE_VISITED. | |
688 (dump_ada_declaration): Use booleans and fix formatting throughout. | |
689 <TYPE_DECL>: Skip incomplete structures and not empty structures. | |
690 Call dump_forward_type instead of dump_nested_types for a typedef. | |
691 Remove superfluous check and adjust call to dump_nested_types. | |
692 <POINTER_TYPE>: Call dump_forward_type and fall through. | |
693 (dump_ada_struct_decl): Rename into... | |
694 (dump_ada_structure): ...this. Do not special-case empty structures. | |
695 | |
696 2018-02-27 Martin Sebor <msebor@redhat.com> | |
697 | |
698 PR c++/83871 | |
699 * c.opt (-Wmissing-attributes): New option. | |
700 | |
701 2018-02-21 Martin Liska <mliska@suse.cz> | |
702 | |
703 * c.opt (Wcatch-value=): Add IntegerRange. | |
704 | |
705 2018-02-15 Jason Merrill <jason@redhat.com> | |
706 | |
707 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_deduction_guides. | |
708 | |
709 2018-02-09 Nathan Sidwell <nathan@acm.org> | |
710 | |
711 PR c/84293 | |
712 * c-common.h (strict_aliasing_warning): Drop OTYPE arg, insert LOC | |
713 arg. | |
714 * c-warn.c (strict_aliasing_warning): Drop OTYPE arg, require LOC | |
715 arg. Adjust. | |
716 | |
717 2018-02-09 Martin Sebor <msebor@redhat.com> | |
718 | |
719 PR lto/84212 | |
720 * c.opt (-Wstringop-overflow, -Warray-bounds): Add LTO. | |
721 (-Walloc-size-larger-than, -Wformat-truncation=): Same. | |
722 (-Wmaybe-uninitialized, -Wnonnull, -Wrestrict): Same. | |
723 (-Wstrict-overflow, -Wsuggest-attribute): Same. | |
724 (-Wuninitialized): Same. | |
725 | |
726 2018-02-09 Eric Botcazou <ebotcazou@adacore.com> | |
727 | |
728 * c-ada-spec.c (dump_ada_declaration): Do not generate the 'constant' | |
729 keyword for components. | |
730 | |
731 2018-02-02 Paolo Carlini <paolo.carlini@oracle.com> | |
732 | |
733 * c-common.h (DECL_UNNAMED_BIT_FIELD): New. | |
734 | |
735 2018-02-02 Julia Koval <julia.koval@intel.com> | |
736 | |
737 * c-common.h (omp_clause_mask): Move to wide_int_bitmask.h. | |
738 | |
739 2018-01-29 Marek Polacek <polacek@redhat.com> | |
740 | |
741 PR c/83966 | |
742 * c-format.c (check_function_format): Check current_function_decl. | |
743 | |
744 2018-01-27 Jakub Jelinek <jakub@redhat.com> | |
745 | |
746 * c-cppbuiltin.c (c_cpp_builtins): Use ggc_strdup for the fp_suffix | |
747 argument. | |
748 (LAZY_HEX_FP_VALUES_CNT): Define. | |
749 (lazy_hex_fp_values): Allow up to LAZY_HEX_FP_VALUES_CNT lazy hex fp | |
750 values rather than just 12. | |
751 (builtin_define_with_hex_fp_value): Likewise. | |
752 | |
753 2018-01-18 Boris Kolpackov <boris@codesynthesis.com> | |
754 | |
755 PR other/70268 | |
756 * c.opt (-fmacro-prefix-map): New option. | |
757 * c-opts.c (c_common_handle_option): Handle it. | |
758 * c-lex.c (init_c_lex): Set remap_filename cpp callback. | |
759 * c-ppoutput.c (init_pp_output): Likewise. | |
760 | |
761 2018-01-17 David Malcolm <dmalcolm@redhat.com> | |
762 | |
763 PR c++/83814 | |
764 * c-common.c (fold_for_warn): Move to c/c-fold.c and cp/expr.c. | |
765 | |
766 2018-01-10 Eric Botcazou <ebotcazou@adacore.com> | |
767 | |
768 * c-ada-spec.c (dump_number): Add FLOAT_P parameter. | |
769 Skip 'f' and 'F' characters if it is true. | |
770 (store_ada_macro): Minor tweak. | |
771 (dump_ada_macros) <CPP_COMMENT>: Likewise. | |
772 <CPP_WSTRING>: Likewise. | |
773 <CPP_STRING>: Output '&' in the buffer if not the first string. | |
774 <CPP_NUMBER>: Adjust calls to dump_number. | |
775 | |
776 2018-01-10 David Malcolm <dmalcolm@redhat.com> | |
777 | |
778 PR c++/43486 | |
779 * c-common.c: Include "selftest.h". | |
780 (get_atomic_generic_size): Perform the test for integral type | |
781 before the range test for any integer constant, fixing indentation | |
782 of braces. Call fold_for_warn before testing for an INTEGER_CST. | |
783 (reject_gcc_builtin): Strip any location wrapper from EXPR. | |
784 (selftest::test_fold_for_warn): New function. | |
785 (selftest::c_common_c_tests): New function. | |
786 (selftest::c_family_tests): Call it, and | |
787 selftest::c_pretty_print_c_tests. | |
788 * c-common.h (selftest::c_pretty_print_c_tests): New decl. | |
789 * c-format.c (check_format_arg): Convert VAR_P check to a | |
790 fold_for_warn. | |
791 * c-pretty-print.c: Include "selftest.h". | |
792 (pp_c_cast_expression): Don't print casts for location wrappers. | |
793 (selftest::assert_c_pretty_printer_output): New function. | |
794 (ASSERT_C_PRETTY_PRINTER_OUTPUT): New macro. | |
795 (selftest::test_location_wrappers): New function. | |
796 (selftest::c_pretty_print_c_tests): New function. | |
797 * c-warn.c (warn_for_memset): Call fold_for_warn on the arguments. | |
798 | |
799 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> | |
800 Alan Hayward <alan.hayward@arm.com> | |
801 David Sherwood <david.sherwood@arm.com> | |
802 | |
803 * c-common.c (c_common_type_for_mode): Handle MODE_VECTOR_BOOL. | |
804 | |
805 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> | |
806 Alan Hayward <alan.hayward@arm.com> | |
807 David Sherwood <david.sherwood@arm.com> | |
808 | |
809 * c-ubsan.c (ubsan_instrument_shift): Treat GET_MODE_BITSIZE | |
810 as polynomial. | |
811 | |
812 2018-01-03 Richard Sandiford <richard.sandiford@linaro.org> | |
813 Alan Hayward <alan.hayward@arm.com> | |
814 David Sherwood <david.sherwood@arm.com> | |
815 | |
816 * c-common.c (vector_types_convertible_p, c_build_vec_perm_expr) | |
817 (convert_vector_to_array_for_subscript): Handle polynomial | |
818 TYPE_VECTOR_SUBPARTS. | |
819 (c_common_type_for_mode): Check valid_vector_subparts_p. | |
820 * c-pretty-print.c (pp_c_initializer_list): Handle polynomial | |
821 VECTOR_CST_NELTS. | |
822 | |
823 2018-01-03 Jakub Jelinek <jakub@redhat.com> | |
824 | |
825 Update copyright years. | |
826 | |
827 2017-12-22 Mike Stump <mikestump@comcast.net> | |
828 Eric Botcazou <ebotcazou@adacore.com> | |
829 | |
830 * c-pragma.c (init_pragma): Register pragma GCC unroll. | |
831 * c-pragma.h (enum pragma_kind): Add PRAGMA_UNROLL. | |
832 | |
833 2017-12-22 Alexandre Oliva <aoliva@redhat.com> | |
834 | |
835 PR debug/83527 | |
836 PR debug/83419 | |
837 * c-semantics.c (only_debug_stmts_after_p): New. | |
838 (pop_stmt_list): Clear side effects in debug-only stmt list. | |
839 Check for single nondebug stmt followed by debug stmts only. | |
840 | |
841 2017-12-21 Alexandre Oliva <aoliva@redhat.com> | |
842 | |
843 PR debug/83419 | |
844 * c-semantics.c (pop_stmt_list): Propagate side effects from | |
845 single nondebug stmt to container list. | |
846 | |
847 2017-12-19 Jakub Jelinek <jakub@redhat.com> | |
848 | |
849 * known-headers.cc (get_stdlib_header_for_name): Replace Yoda | |
850 conditions with typical order conditions. | |
851 | |
852 2017-12-18 Marek Polacek <polacek@redhat.com> | |
853 | |
854 * c-warn.c (warn_logical_operator): Return early if -Wlogical-op is | |
855 not in effect. | |
856 | |
857 2017-12-17 Martin Sebor <msebor@redhat.com> | |
858 | |
859 * c-attribs.c (common_handle_aligned_attribute): Avoid issuing | |
860 an error for attribute warn_if_not_aligned. | |
861 | |
862 2017-12-16 Martin Sebor <msebor@redhat.com> | |
863 | |
864 PR tree-optimization/78918 | |
865 * c-common.c (check_function_restrict): Avoid checking built-ins. | |
866 * c.opt (-Wrestrict): Include in -Wall. | |
867 | |
868 2017-12-15 Jakub Jelinek <jakub@redhat.com> | |
869 | |
870 * c-attribs.c (c_common_attribute_table, | |
871 c_common_format_attribute_table): Swap affects_type_identity | |
872 and handler fields, adjust comments. | |
873 | |
874 2017-12-14 Bernd Edlinger <bernd.edlinger@hotmail.de> | |
875 | |
876 * c.opt (Wcast-function-type): New warning option. | |
877 * c-lex.c (get_fileinfo): Avoid warning. | |
878 * c-ppoutput.c (scan_translation_unit_directives_only): Remove cast. | |
879 | |
880 2017-12-14 Qing Zhao <qing.zhao@oracle.com> | |
881 | |
882 PR middle_end/79538 | |
883 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): | |
884 Adjust the size of buf1 and buf2, add a new buf to avoid | |
885 format-overflow warning. | |
886 | |
887 2017-12-12 Alexandre Oliva <aoliva@redhat.com> | |
888 | |
889 * c-semantics.c (pop_stmt_list): Move begin stmt marker into | |
890 subsequent statement list. | |
891 | |
892 2017-12-07 Martin Sebor <msebor@redhat.com> | |
893 | |
894 PR c/81544 | |
895 PR c/81566 | |
896 * c-attribs.c (attr_aligned_exclusions): New array. | |
897 (attr_alloc_exclusions, attr_cold_hot_exclusions): Same. | |
898 (attr_common_exclusions, attr_const_pure_exclusions): Same. | |
899 (attr_gnu_inline_exclusions, attr_inline_exclusions): Same. | |
900 (attr_noreturn_exclusions, attr_returns_twice_exclusions): Same. | |
901 (attr_warn_unused_result_exclusions): Same. | |
902 (handle_hot_attribute, handle_cold_attribute): Simplify. | |
903 (handle_const_attribute): Warn on function returning void. | |
904 (handle_pure_attribute): Same. | |
905 (handle_aligned_attribute): Diagnose conflicting attribute | |
906 specifications. | |
907 * c-warn.c (diagnose_mismatched_attributes): Simplify. | |
908 | |
909 2017-12-06 David Malcolm <dmalcolm@redhat.com> | |
910 | |
911 PR c/83236 | |
912 * c-common.c (selftest::c_family_tests): Call | |
913 selftest::c_spellcheck_cc_tests. | |
914 * c-common.h (selftest::c_spellcheck_cc_tests): New decl. | |
915 * c-spellcheck.cc: Include "selftest.h". | |
916 (name_reserved_for_implementation_p): New function. | |
917 (should_suggest_as_macro_p): New function. | |
918 (find_closest_macro_cpp_cb): Move the check for NT_MACRO to | |
919 should_suggest_as_macro_p and call it. | |
920 (selftest::test_name_reserved_for_implementation_p): New function. | |
921 (selftest::c_spellcheck_cc_tests): New function. | |
922 * c-spellcheck.h (name_reserved_for_implementation_p): New decl. | |
923 | |
924 2017-12-06 David Malcolm <dmalcolm@redhat.com> | |
925 | |
926 * c-spellcheck.cc: New file, taken from macro-handling code in | |
927 spellcheck-tree.c. | |
928 * c-spellcheck.h: New file, taken from macro-handling code in | |
929 spellcheck-tree.h. | |
930 | |
931 2017-12-01 Jakub Jelinek <jakub@redhat.com> | |
932 | |
933 * c-attribs.c (c_common_attribute_table): Remove "cilk simd function" | |
934 attribute. | |
935 (handle_simd_attribute): Don't check for "cilk simd function" | |
936 attribute. Reindent, formatting changes. | |
937 | |
938 2017-11-30 Julia Koval <julia.koval@intel.com> | |
939 | |
940 * c-common.h (inv_list): Remove. | |
941 | |
942 2017-11-28 Jakub Jelinek <jakub@redhat.com> | |
943 | |
944 PR sanitizer/81275 | |
945 * c-common.c (c_switch_covers_all_cases_p_1, | |
946 c_switch_covers_all_cases_p): New functions. | |
947 * c-common.h (c_switch_covers_all_cases_p): Declare. | |
948 | |
949 2017-11-28 Julia Koval <julia.koval@intel.com> | |
950 Sebastian Peryt <sebastian.peryt@intel.com> | |
951 | |
952 * array-notation-common.c: Delete. | |
953 * c-cilkplus.c: Ditto. | |
954 * c-common.c (_Cilk_spawn, _Cilk_sync, _Cilk_for): Remove. | |
955 * c-common.def (ARRAY_NOTATION_REF): Remove. | |
956 * c-common.h (RID_CILK_SPAWN, build_array_notation_expr, | |
957 build_array_notation_ref, C_ORT_CILK, c_check_cilk_loop, | |
958 c_validate_cilk_plus_loop, cilkplus_an_parts, | |
959 cilk_ignorable_spawn_rhs_op, | |
960 cilk_recognize_spawn): Remove. | |
961 * c-gimplify.c (CILK_SPAWN_STMT): Remove. | |
962 * c-omp.c: Remove CILK_SIMD check. | |
963 * c-pragma.c: Ditto. | |
964 * c-pragma.h: Remove CILK related pragmas. | |
965 * c-pretty-print.c (c_pretty_printer::postfix_expression): Remove | |
966 ARRAY_NOTATION_REF condition. | |
967 (c_pretty_printer::expression): Ditto. | |
968 * c.opt (fcilkplus): Remove. | |
969 * cilk.c: Delete. | |
970 | |
971 2017-11-21 Marc Glisse <marc.glisse@inria.fr> | |
972 | |
973 * c-pretty-print.c (pp_c_additive_expression, | |
974 c_pretty_printer::expression): Handle POINTER_DIFF_EXPR. | |
975 | |
976 2017-11-21 Jakub Jelinek <jakub@redhat.com> | |
977 | |
978 * c-common.c (get_nonnull_operand): Use tree_to_uhwi. | |
979 | |
980 PR c++/83059 | |
981 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW | |
982 instead of tree_to_uhwi, formatting fix. | |
983 | |
984 2017-11-20 David Malcolm <dmalcolm@redhat.com> | |
985 | |
986 PR c/81404 | |
987 * known-headers.cc: New file, based on material from c/c-decl.c. | |
988 (suggest_missing_header): Copied as-is. | |
989 (get_stdlib_header_for_name): New, based on get_c_name_hint but | |
990 heavily edited to add C++ support. Add some knowledge about | |
991 <limits.h>, <stdint.h>, and <wchar.h>. | |
992 * known-headers.h: Likewise. | |
993 | |
994 2017-11-20 David Malcolm <dmalcolm@redhat.com> | |
995 | |
996 * c-common.h (enum lookup_name_fuzzy_kind): Move to name-hint.h. | |
997 (lookup_name_fuzzy): Likewise. Convert return type from | |
998 const char * to name_hint. Add location_t param. | |
999 * name-hint.h: New header. | |
1000 | |
1001 2017-11-19 Jakub Jelinek <jakub@redhat.com> | |
1002 | |
1003 PR c/66618 | |
1004 PR c/69960 | |
1005 * c-common.h (c_fully_fold): Add LVAL argument defaulted to false. | |
1006 | |
1007 2017-11-16 Joseph Myers <joseph@codesourcery.com> | |
1008 | |
1009 * c.opt (-std=c17, std=gnu17, -std=iso9899:2017): Refer to 2018 | |
1010 expected publication date of C17. | |
1011 (-std=c18, -std=gnu18, -std=iso9899:2018): New option aliases. | |
1012 | |
1013 2017-11-15 Joseph Myers <joseph@codesourcery.com> | |
1014 | |
1015 PR c/81156 | |
1016 * c-common.c (c_common_reswords): Add __builtin_tgmath. | |
1017 * c-common.h (enum rid): Add RID_BUILTIN_TGMATH. | |
1018 | |
1019 2017-11-10 Martin Sebor <msebor@redhat.com> | |
1020 | |
1021 PR c/81117 | |
1022 * c-common.c (catenate_strings): Use memcpy instead of strncpy. | |
1023 * c-warn.c (sizeof_pointer_memaccess_warning): Handle arrays. | |
1024 * c.opt (-Wstringop-truncation): New option. | |
1025 | |
1026 2017-11-06 Martin Liska <mliska@suse.cz> | |
1027 | |
1028 PR middle-end/82404 | |
1029 * c-opts.c (c_common_post_options): Set -Wreturn-type for C++ | |
1030 FE. | |
1031 * c.opt: Set default value of warn_return_type. | |
1032 | |
1033 2017-10-31 David Malcolm <dmalcolm@redhat.com> | |
1034 | |
1035 * c-common.c (binary_op_error): Update for renaming of | |
1036 error_at_rich_loc. | |
1037 (c_parse_error): Likewise. | |
1038 * c-warn.c (warn_logical_not_parentheses): Likewise for | |
1039 renaming of inform_at_rich_loc. | |
1040 (warn_for_restrict): Likewise for renaming of | |
1041 warning_at_rich_loc_n. | |
1042 | |
1043 2017-10-30 Joseph Myers <joseph@codesourcery.com> | |
1044 | |
1045 * c.opt (std=c17, std=gnu17, std=iso9899:2017): New options. | |
1046 * c-opts.c (set_std_c17): New function. | |
1047 (c_common_init_options): Use gnu17 as default C version. | |
1048 (c_common_handle_option): Handle -std=c17 and -std=gnu17. | |
1049 | |
1050 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com> | |
1051 | |
1052 * c-cppbuiltin.c (mode_has_fma): Add support for PowerPC KFmode. | |
1053 (c_cpp_builtins): If a machine has a fast fma _Float<N> and | |
1054 _Float<N>X variant, define __FP_FAST_FMA<N> and/or | |
1055 __FP_FAST_FMA<N>X. | |
1056 | |
1 2017-10-23 Marek Polacek <polacek@redhat.com> | 1057 2017-10-23 Marek Polacek <polacek@redhat.com> |
2 | 1058 |
3 PR c/82681 | 1059 PR c/82681 |
4 * c-warn.c (warnings_for_convert_and_check): Fix typos. | 1060 * c-warn.c (warnings_for_convert_and_check): Fix typos. |
5 | 1061 |
165 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17. | 1221 * c-common.h (enum cxx_dialect): Rename cxx1z to cxx17. |
166 * c-opts.c (set_std_cxx1z): Rename to ... | 1222 * c-opts.c (set_std_cxx1z): Rename to ... |
167 (set_std_cxx17): ... this. | 1223 (set_std_cxx17): ... this. |
168 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17 | 1224 (c_common_handle_option): Rename OPT_std_c__1z to OPT_std_c__17 |
169 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z | 1225 and OPT_std_gnu__1z to OPT_std_gnu__17. Adjust set_std_cxx1z |
170 caller. | 1226 caller. |
171 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust | 1227 (c_common_post_options): Use cxx17 instead of cxx1z. Adjust |
172 comments. | 1228 comments. |
173 | 1229 |
174 2017-09-12 H.J. Lu <hongjiu.lu@intel.com> | 1230 2017-09-12 H.J. Lu <hongjiu.lu@intel.com> |
175 | 1231 |
247 David Sherwood <david.sherwood@arm.com> | 1303 David Sherwood <david.sherwood@arm.com> |
248 | 1304 |
249 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode. | 1305 * c-cppbuiltin.c (c_cpp_builtins): Use opt_scalar_float_mode. |
250 | 1306 |
251 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> | 1307 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org> |
252 Alan Hayward <alan.hayward@arm.com> | 1308 Alan Hayward <alan.hayward@arm.com> |
253 David Sherwood <david.sherwood@arm.com> | 1309 David Sherwood <david.sherwood@arm.com> |
254 | 1310 |
255 * c-common.c (c_common_fixed_point_type_for_size): Use new mode | 1311 * c-common.c (c_common_fixed_point_type_for_size): Use new mode |
256 iterators. | 1312 iterators. |
257 * c-cppbuiltin.c (c_cpp_builtins): Likewise. | 1313 * c-cppbuiltin.c (c_cpp_builtins): Likewise. |
258 | 1314 |
710 Canonicalize canonical type hashing | 1766 Canonicalize canonical type hashing |
711 * c-common.c (complete_array_type): Use type_hash_canon. | 1767 * c-common.c (complete_array_type): Use type_hash_canon. |
712 | 1768 |
713 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> | 1769 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> |
714 | 1770 |
715 PR c++/80038 | 1771 PR c++/80038 |
716 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove | 1772 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): Remove |
717 prototype. | 1773 prototype. |
718 (cilk_install_body_pedigree_operations): Likewise. | 1774 (cilk_install_body_pedigree_operations): Likewise. |
719 * cilk.c (cilk_set_spawn_marker): Mark functions that should be | 1775 * cilk.c (cilk_set_spawn_marker): Mark functions that should be |
720 detatched. | 1776 detatched. |
1034 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options. | 2090 * c.opt (-Walloc-zero, -Walloc-size-larger-than): New options. |
1035 | 2091 |
1036 2016-12-08 Martin Sebor <msebor@redhat.com> | 2092 2016-12-08 Martin Sebor <msebor@redhat.com> |
1037 | 2093 |
1038 PR c/78165 | 2094 PR c/78165 |
1039 * c-pretty-print (pp_c_integer_constant): Avoid formatting type | 2095 * c-pretty-print (pp_c_integer_constant): Avoid formatting type |
1040 suffix. | 2096 suffix. |
1041 | 2097 |
1042 2016-12-07 Martin Sebor <msebor@redhat.com> | 2098 2016-12-07 Martin Sebor <msebor@redhat.com> |
1043 | 2099 |
1044 PR c/53562 | 2100 PR c/53562 |
1045 PR middle-end/77784 | 2101 PR middle-end/77784 |
1643 PR c++/77321 | 2699 PR c++/77321 |
1644 * c-common.c (warn_for_memset): Check type for null. | 2700 * c-common.c (warn_for_memset): Check type for null. |
1645 | 2701 |
1646 2016-08-22 Joseph Myers <joseph@codesourcery.com> | 2702 2016-08-22 Joseph Myers <joseph@codesourcery.com> |
1647 | 2703 |
1648 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and | 2704 * c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and |
1649 _FloatNx types for suffixes for built-in functions. | 2705 _FloatNx types for suffixes for built-in functions. |
1650 | 2706 |
1651 2016-08-19 Joseph Myers <joseph@codesourcery.com> | 2707 2016-08-19 Joseph Myers <joseph@codesourcery.com> |
1652 | 2708 |
1653 PR c/32187 | 2709 PR c/32187 |
1999 * c.opt (Wpsabi): Add Warning flag. | 3055 * c.opt (Wpsabi): Add Warning flag. |
2000 | 3056 |
2001 2016-06-10 Martin Sebor <msebor@redhat.com> | 3057 2016-06-10 Martin Sebor <msebor@redhat.com> |
2002 | 3058 |
2003 PR c/71392 | 3059 PR c/71392 |
2004 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept | 3060 * c-common.c (handle_nonnull_attribute): Accept |
2005 the nonnull attribute in type-generic builtins. | 3061 the nonnull attribute in type-generic builtins. |
2006 | 3062 |
2007 2016-06-09 Martin Sebor <msebor@redhat.com> | 3063 2016-06-09 Martin Sebor <msebor@redhat.com> |
2008 | 3064 |
2009 PR c/70883 | 3065 PR c/70883 |
2132 | 3188 |
2133 2016-04-28 Eduard Sanou <dhole@openmailbox.org> | 3189 2016-04-28 Eduard Sanou <dhole@openmailbox.org> |
2134 Matthias Klose <doko@debian.org> | 3190 Matthias Klose <doko@debian.org> |
2135 | 3191 |
2136 * c-common.c (get_source_date_epoch): New function, gets the environment | 3192 * c-common.c (get_source_date_epoch): New function, gets the environment |
2137 variable SOURCE_DATE_EPOCH and parses it as long long with error | 3193 variable SOURCE_DATE_EPOCH and parses it as long long with error |
2138 handling. | 3194 handling. |
2139 * c-common.h (get_source_date_epoch): Prototype. | 3195 * c-common.h (get_source_date_epoch): Prototype. |
2140 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch. | 3196 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch. |
2141 | 3197 |
2142 2015-04-27 Ryan Burn <contact@rnburn.com> | 3198 2015-04-27 Ryan Burn <contact@rnburn.com> |
2603 global_dc->colorize_source_p. | 3659 global_dc->colorize_source_p. |
2604 | 3660 |
2605 2015-11-12 James Norris <jnorris@codesourcery.com> | 3661 2015-11-12 James Norris <jnorris@codesourcery.com> |
2606 Joseph Myers <joseph@codesourcery.com> | 3662 Joseph Myers <joseph@codesourcery.com> |
2607 | 3663 |
2608 * c-pragma.c (oacc_pragmas): Add entry for declare directive. | 3664 * c-pragma.c (oacc_pragmas): Add entry for declare directive. |
2609 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE. | 3665 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE. |
2610 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and | 3666 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and |
2611 PRAGMA_OACC_CLAUSE_LINK. | 3667 PRAGMA_OACC_CLAUSE_LINK. |
2612 | 3668 |
2613 2015-11-11 Marek Polacek <polacek@redhat.com> | 3669 2015-11-11 Marek Polacek <polacek@redhat.com> |
8391 * stub-objc.c: Likewise. | 9447 * stub-objc.c: Likewise. |
8392 | 9448 |
8393 * c-common.c: Include gt-c-family-c-common.h. | 9449 * c-common.c: Include gt-c-family-c-common.h. |
8394 * c-pragma.c: Include gt-c-family-c-pragma.h. | 9450 * c-pragma.c: Include gt-c-family-c-pragma.h. |
8395 | 9451 |
8396 Copyright (C) 2010-2017 Free Software Foundation, Inc. | 9452 Copyright (C) 2010-2018 Free Software Foundation, Inc. |
8397 | 9453 |
8398 Copying and distribution of this file, with or without modification, | 9454 Copying and distribution of this file, with or without modification, |
8399 are permitted in any medium without royalty provided the copyright | 9455 are permitted in any medium without royalty provided the copyright |
8400 notice and this notice are preserved. | 9456 notice and this notice are preserved. |