From cf82e8d964ab1551ca159be5b02e9e8f2dbc292d Mon Sep 17 00:00:00 2001 From: GCC Administrator Date: Tue, 2 Nov 2021 00:16:32 +0000 Subject: [PATCH] Daily bump. --- contrib/ChangeLog | 4 + gcc/ChangeLog | 200 ++++++++++++++++++++++++++++++++++++++++++++++++ gcc/DATESTAMP | 2 +- gcc/c-family/ChangeLog | 5 ++ gcc/testsuite/ChangeLog | 48 ++++++++++++ libcody/ChangeLog | 5 ++ libcpp/ChangeLog | 47 ++++++++++++ libstdc++-v3/ChangeLog | 22 ++++++ 8 files changed, 332 insertions(+), 1 deletion(-) diff --git a/contrib/ChangeLog b/contrib/ChangeLog index d36e6f1bbcf..3cdedff6270 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2021-11-01 David Malcolm + + * unicode/utf8-dump.py: New file. + 2021-10-20 H.J. Lu * gcc-changelog/git_commit.py (ignored_prefixes): Add libffi/. diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4ff8e834f55..11d799c1e2f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,203 @@ +2021-11-01 Martin Liska + + * opt-functions.awk: Add new sanity checking. + * optc-gen.awk: Add new argument to integer_range_info. + * params.opt: Update 2 params which have negative IntegerRange. + +2021-11-01 qing zhao + + * gimplify.c (gimplify_decl_expr): Do not add call to + __builtin_clear_padding when a variable is a gimple register + or it might not have padding. + (gimplify_init_constructor): Likewise. + +2021-11-01 Tamar Christina + + * config/arm/aarch-common-protos.h (struct vector_cost_table): Add + movi, dup and extract costing fields. + * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs, + thunderx_extra_costs, thunderx2t99_extra_costs, + thunderx3t110_extra_costs, tsv110_extra_costs, a64fx_extra_costs): Use + them. + * config/arm/aarch-cost-tables.h (generic_extra_costs, + cortexa53_extra_costs, cortexa57_extra_costs, cortexa76_extra_costs, + exynosm1_extra_costs, xgene1_extra_costs): Likewise + * config/aarch64/aarch64-simd.md (aarch64_simd_dup): Add r->w dup. + * config/aarch64/aarch64.c (aarch64_rtx_costs): Add extra costs. + +2021-11-01 Tamar Christina + + * cse.c (add_to_set): New. + (find_sets_in_insn): Register constants in sets. + (canonicalize_insn): Use auto_vec instead. + (cse_insn): Try materializing using vec_dup. + * rtl.h (simplify_context::simplify_gen_vec_select, + simplify_gen_vec_select): New. + * simplify-rtx.c (simplify_context::simplify_gen_vec_select): New. + +2021-11-01 David Malcolm + + * common.opt (fdiagnostics-escape-format=): New. + (diagnostics_escape_format): New enum. + (DIAGNOSTICS_ESCAPE_FORMAT_UNICODE): New enum value. + (DIAGNOSTICS_ESCAPE_FORMAT_BYTES): Likewise. + * diagnostic-format-json.cc (json_end_diagnostic): Add + "escape-source" attribute. + * diagnostic-show-locus.c + (exploc_with_display_col::exploc_with_display_col): Replace + "tabstop" param with a cpp_char_column_policy and add an "aspect" + param. Use these to compute m_display_col accordingly. + (struct char_display_policy): New struct. + (layout::m_policy): New field. + (layout::m_escape_on_output): New field. + (def_policy): New function. + (make_range): Update for changes to exploc_with_display_col ctor. + (default_print_decoded_ch): New. + (width_per_escaped_byte): New. + (escape_as_bytes_width): New. + (escape_as_bytes_print): New. + (escape_as_unicode_width): New. + (escape_as_unicode_print): New. + (make_policy): New. + (layout::layout): Initialize new fields. Update m_exploc ctor + call for above change to ctor. + (layout::maybe_add_location_range): Update for changes to + exploc_with_display_col ctor. + (layout::calculate_x_offset_display): Update for change to + cpp_display_width. + (layout::print_source_line): Pass policy + to cpp_display_width_computation. Capture cpp_decoded_char when + calling process_next_codepoint. Move printing of source code to + m_policy.m_print_cb. + (line_label::line_label): Pass in policy rather than context. + (layout::print_any_labels): Update for change to line_label ctor. + (get_affected_range): Pass in policy rather than context, updating + calls to location_compute_display_column accordingly. + (get_printed_columns): Likewise, also for cpp_display_width. + (correction::correction): Pass in policy rather than tabstop. + (correction::compute_display_cols): Pass m_policy rather than + m_tabstop to cpp_display_width. + (correction::m_tabstop): Replace with... + (correction::m_policy): ...this. + (line_corrections::line_corrections): Pass in policy rather than + context. + (line_corrections::m_context): Replace with... + (line_corrections::m_policy): ...this. + (line_corrections::add_hint): Update to use m_policy rather than + m_context. + (line_corrections::add_hint): Likewise. + (layout::print_trailing_fixits): Likewise. + (selftest::test_display_widths): New. + (selftest::test_layout_x_offset_display_utf8): Update to use + policy rather than tabstop. + (selftest::test_one_liner_labels_utf8): Add test of escaping + source lines. + (selftest::test_diagnostic_show_locus_one_liner_utf8): Update to + use policy rather than tabstop. + (selftest::test_overlapped_fixit_printing): Likewise. + (selftest::test_overlapped_fixit_printing_utf8): Likewise. + (selftest::test_overlapped_fixit_printing_2): Likewise. + (selftest::test_tab_expansion): Likewise. + (selftest::test_escaping_bytes_1): New. + (selftest::test_escaping_bytes_2): New. + (selftest::diagnostic_show_locus_c_tests): Call the new tests. + * diagnostic.c (diagnostic_initialize): Initialize + context->escape_format. + (convert_column_unit): Update to use default character width policy. + (selftest::test_diagnostic_get_location_text): Likewise. + * diagnostic.h (enum diagnostics_escape_format): New enum. + (diagnostic_context::escape_format): New field. + * doc/invoke.texi (-fdiagnostics-escape-format=): New option. + (-fdiagnostics-format=): Add "escape-source" attribute to examples + of JSON output, and document it. + * input.c (location_compute_display_column): Pass in "policy" + rather than "tabstop", passing to + cpp_byte_column_to_display_column. + (selftest::test_cpp_utf8): Update to use cpp_char_column_policy. + * input.h (class cpp_char_column_policy): New forward decl. + (location_compute_display_column): Pass in "policy" rather than + "tabstop". + * opts.c (common_handle_option): Handle + OPT_fdiagnostics_escape_format_. + * selftest.c (temp_source_file::temp_source_file): New ctor + overload taking a size_t. + * selftest.h (temp_source_file::temp_source_file): Likewise. + +2021-11-01 Aldy Hernandez + + * dbgcnt.def: Add debug counter for back_thread[12] and + back_threadfull[12]. + * passes.def: Pass "first" argument to each back threading pass. + * tree-ssa-threadbackward.c (back_threader::back_threader): Add + first argument. + (back_threader::debug_counter): New. + (back_threader::maybe_register_path): Call debug_counter. + +2021-11-01 Aldy Hernandez + + * tree-ssa-threadbackward.c (BT_NONE): New. + (BT_SPEED): New. + (BT_RESOLVE): New. + (back_threader::back_threader): Add flags. + Move loop initialization here. + (back_threader::~back_threader): New. + (back_threader::find_taken_edge_switch): Change solver and ranger + to pointers. + (back_threader::find_taken_edge_cond): Same. + (back_threader::find_paths_to_names): Same. + (back_threader::find_paths): Same. + (back_threader::dump): Same. + (try_thread_blocks): Merge into thread_blocks. + (back_threader::thread_blocks): New. + (do_early_thread_jumps): Merge into thread_blocks. + (do_thread_jumps): Merge into thread_blocks. + (back_threader::thread_through_all_blocks): Remove. + +2021-11-01 Andrew MacLeod + + PR tree-optimization/103003 + * value-relation.cc (dom_oracle::register_relation): If the 2 + ssa names are the same, don't register any relation. + +2021-11-01 Dan Li + + * config/aarch64/aarch64.c (aarch64_expand_epilogue): Remove + redundant check for calls_eh_return. + * config/aarch64/aarch64.md (*do_return): Likewise. + +2021-11-01 Xionghu Luo + + * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Rename + duplicate_loop_to_header_edge to + duplicate_loop_body_to_header_edge. + (cfg_hook_duplicate_loop_body_to_header_edge): Likewise. + * cfghooks.h (struct cfg_hooks): Likewise. + (cfg_hook_duplicate_loop_body_to_header_edge): Likewise. + * cfgloopmanip.c (duplicate_loop_body_to_header_edge): Likewise. + (clone_loop_to_header_edge): Likewise. + * cfgloopmanip.h (duplicate_loop_body_to_header_edge): Likewise. + * cfgrtl.c (struct cfg_hooks): Likewise. + * doc/loop.texi: Likewise. + * loop-unroll.c (unroll_loop_constant_iterations): Likewise. + (unroll_loop_runtime_iterations): Likewise. + (unroll_loop_stupid): Likewise. + (apply_opt_in_copies): Likewise. + * tree-cfg.c (struct cfg_hooks): Likewise. + * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise. + (try_peel_loop): Likewise. + * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise. + (gimple_duplicate_loop_body_to_header_edge): Likewise. + (tree_transform_and_unroll_loop): Likewise. + * tree-ssa-loop-manip.h (gimple_duplicate_loop_body_to_header_edge): + Likewise. + +2021-11-01 Xionghu Luo + + * cfgloopmanip.c (loop_version): Refactor loopify to + loop_version. Move condition generation after loopify. + (loopify): Delete. + * cfgloopmanip.h (loopify): Delete. + 2021-10-31 Jan Hubicka * ipa-fnsummary.c: Include tree-dfa.h. diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index bcf6fe0c2c6..f8892a4f3f7 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20211101 +20211102 diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 18ba338c591..22e3847b291 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2021-11-01 David Malcolm + + * c-lex.c (c_lex_with_flags): When complaining about non-printable + CPP_OTHER tokens, set the "escape on output" flag. + 2021-10-27 Jakub Jelinek * c-omp.c (c_omp_check_loop_iv_r): Don't clear 3rd bit for diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8bc9e437eb5..148118e2fb1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,51 @@ +2021-11-01 Martin Liska + + * g++.dg/ipa/modref-1.C: Fix test-suite pattern scanning. + +2021-11-01 qing zhao + + * c-c++-common/pr102281.c: New test. + * gcc.target/i386/auto-init-2.c: Adjust testing case. + * gcc.target/i386/auto-init-4.c: Likewise. + * gcc.target/i386/auto-init-6.c: Likewise. + * gcc.target/aarch64/auto-init-6.c: Likewise. + +2021-11-01 Tamar Christina + + * gcc.target/aarch64/vect-cse-codegen.c: New test. + +2021-11-01 Tamar Christina + + PR testsuite/103000 + * gcc.dg/vect/complex/fast-math-bb-slp-complex-add-double.c: + Force unroll. + * gcc.dg/vect/complex/fast-math-bb-slp-complex-add-float.c: likewise + * gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-float.c: + Likewise + * gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-half-float.c: + Likewise. + +2021-11-01 David Malcolm + + * c-c++-common/diagnostic-format-json-1.c: Add regexp to consume + "escape-source" attribute. + * c-c++-common/diagnostic-format-json-2.c: Likewise. + * c-c++-common/diagnostic-format-json-3.c: Likewise. + * c-c++-common/diagnostic-format-json-4.c: Likewise, twice. + * c-c++-common/diagnostic-format-json-5.c: Likewise. + * gcc.dg/cpp/warn-normalized-4-bytes.c: New test. + * gcc.dg/cpp/warn-normalized-4-unicode.c: New test. + * gcc.dg/encoding-issues-bytes.c: New test. + * gcc.dg/encoding-issues-unicode.c: New test. + * gfortran.dg/diagnostic-format-json-1.F90: Add regexp to consume + "escape-source" attribute. + * gfortran.dg/diagnostic-format-json-2.F90: Likewise. + * gfortran.dg/diagnostic-format-json-3.F90: Likewise. + +2021-11-01 Andrew MacLeod + + * gcc.dg/pr103003.c: New. + 2021-10-31 Jan Hubicka * g++.dg/ipa/modref-1.C: New test. diff --git a/libcody/ChangeLog b/libcody/ChangeLog index 1fa12d81610..3fec73f33cc 100644 --- a/libcody/ChangeLog +++ b/libcody/ChangeLog @@ -1,3 +1,8 @@ +2021-11-01 Martin Liska + + PR other/102657 + * Makefile.in: Add mostlyclean Makefile target. + 2021-10-21 Jonathan Wakely * netserver.cc (ListenInet6): Set pointer to null after diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 82e0ecae8bb..e0e71a40e05 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,50 @@ +2021-11-01 David Malcolm + + * charset.c (convert_escape): Use encoding_rich_location when + complaining about nonprintable unknown escape sequences. + (cpp_display_width_computation::::cpp_display_width_computation): + Pass in policy rather than tabstop. + (cpp_display_width_computation::process_next_codepoint): Add "out" + param and populate *out if non-NULL. + (cpp_display_width_computation::advance_display_cols): Pass NULL + to process_next_codepoint. + (cpp_byte_column_to_display_column): Pass in policy rather than + tabstop. Pass NULL to process_next_codepoint. + (cpp_display_column_to_byte_column): Pass in policy rather than + tabstop. + * errors.c (cpp_diagnostic_get_current_location): New function, + splitting out the logic from... + (cpp_diagnostic): ...here. + (cpp_warning_at): New function. + (cpp_pedwarning_at): New function. + * include/cpplib.h (cpp_warning_at): New decl for rich_location. + (cpp_pedwarning_at): Likewise. + (struct cpp_decoded_char): New. + (struct cpp_char_column_policy): New. + (cpp_display_width_computation::cpp_display_width_computation): + Replace "tabstop" param with "policy". + (cpp_display_width_computation::process_next_codepoint): Add "out" + param. + (cpp_display_width_computation::m_tabstop): Replace with... + (cpp_display_width_computation::m_policy): ...this. + (cpp_byte_column_to_display_column): Replace "tabstop" param with + "policy". + (cpp_display_width): Likewise. + (cpp_display_column_to_byte_column): Likewise. + * include/line-map.h (rich_location::escape_on_output_p): New. + (rich_location::set_escape_on_output): New. + (rich_location::m_escape_on_output): New. + * internal.h (cpp_diagnostic_get_current_location): New decl. + (class encoding_rich_location): New. + * lex.c (skip_whitespace): Use encoding_rich_location when + complaining about null characters. + (warn_about_normalization): Generate a source range when + complaining about improperly normalized tokens, rather than just a + point, and use encoding_rich_location so that the source code + is escaped on printing. + * line-map.c (rich_location::rich_location): Initialize + m_escape_on_output. + 2021-10-29 Tobias Burnus PR c++/102409 diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e1f2d4cbd58..fc7da180035 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,25 @@ +2021-11-01 Jonathan Wakely + + * include/debug/stl_iterator.h (__valid_range): Add constexpr + for C++20. Qualify call to avoid ADL. + (__get_distance, __can_advance, __unsafe, __base): Likewise. + * testsuite/25_algorithms/move/constexpr.cc: Also check with + std::reverse_iterator arguments. + +2021-11-01 Jonathan Wakely + + * include/std/span (span(Range&&)): Reorder constraints. + +2021-11-01 Jonathan Wakely + + PR libstdc++/103022 + * include/std/valarray (begin, end): Do not dereference an empty + valarray. Add noexcept and [[nodiscard]]. + * testsuite/26_numerics/valarray/range_access.cc: Check empty + valarray. Check iterator properties. Run as well as compiling. + * testsuite/26_numerics/valarray/range_access2.cc: Likewise. + * testsuite/26_numerics/valarray/103022.cc: New test. + 2021-10-29 Jonathan Wakely * testsuite/23_containers/stack/deduction.cc: Fix typo. -- 2.11.4.GIT