aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorGCC Administrator <gccadmin@gcc.gnu.org>2021-11-02 00:16:32 +0000
committerGCC Administrator <gccadmin@gcc.gnu.org>2021-11-02 00:16:32 +0000
commitcf82e8d964ab1551ca159be5b02e9e8f2dbc292d (patch)
tree4015ae01f853cc3b4afe60034e0c8dcac024d35e /gcc
parent6f34b9e4f1eb7aa3398aaf135cbb24680eaad1b1 (diff)
downloadgcc-cf82e8d964ab1551ca159be5b02e9e8f2dbc292d.zip
gcc-cf82e8d964ab1551ca159be5b02e9e8f2dbc292d.tar.gz
gcc-cf82e8d964ab1551ca159be5b02e9e8f2dbc292d.tar.bz2
Daily bump.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog200
-rw-r--r--gcc/DATESTAMP2
-rw-r--r--gcc/c-family/ChangeLog5
-rw-r--r--gcc/testsuite/ChangeLog48
4 files changed, 254 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4ff8e83..11d799c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,203 @@
+2021-11-01 Martin Liska <mliska@suse.cz>
+
+ * 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 <qing.zhao@oracle.com>
+
+ * 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 <tamar.christina@arm.com>
+
+ * 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<mode>): Add r->w dup.
+ * config/aarch64/aarch64.c (aarch64_rtx_costs): Add extra costs.
+
+2021-11-01 Tamar Christina <tamar.christina@arm.com>
+
+ * 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 <dmalcolm@redhat.com>
+
+ * 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 <aldyh@redhat.com>
+
+ * 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 <aldyh@redhat.com>
+
+ * 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 <amacleod@redhat.com>
+
+ 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 <ashimida@linux.alibaba.com>
+
+ * 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 <luoxhu@linux.ibm.com>
+
+ * 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 <luoxhu@linux.ibm.com>
+
+ * 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 <hubicka@ucw.cz>
* ipa-fnsummary.c: Include tree-dfa.h.
diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP
index bcf6fe0..f8892a4 100644
--- a/gcc/DATESTAMP
+++ b/gcc/DATESTAMP
@@ -1 +1 @@
-20211101
+20211102
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index 18ba338..22e3847 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -1,3 +1,8 @@
+2021-11-01 David Malcolm <dmalcolm@redhat.com>
+
+ * 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 <jakub@redhat.com>
* 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 8bc9e43..148118e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,51 @@
+2021-11-01 Martin Liska <mliska@suse.cz>
+
+ * g++.dg/ipa/modref-1.C: Fix test-suite pattern scanning.
+
+2021-11-01 qing zhao <qing.zhao@oracle.com>
+
+ * 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 <tamar.christina@arm.com>
+
+ * gcc.target/aarch64/vect-cse-codegen.c: New test.
+
+2021-11-01 Tamar Christina <tamar.christina@arm.com>
+
+ 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 <dmalcolm@redhat.com>
+
+ * 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 <amacleod@redhat.com>
+
+ * gcc.dg/pr103003.c: New.
+
2021-10-31 Jan Hubicka <hubicka@ucw.cz>
* g++.dg/ipa/modref-1.C: New test.