https://gcc.gnu.org/g:25456c0e6d18ecc40215a2ad945502edbab39e88
commit r15-528-g25456c0e6d18ecc40215a2ad945502edbab39e88 Author: GCC Administrator <gccadmin@gcc.gnu.org> Date: Thu May 16 00:17:25 2024 +0000 Daily bump. Diff: --- gcc/ChangeLog | 111 ++++++++++++++++++++++++++++++++++++ gcc/DATESTAMP | 2 +- gcc/analyzer/ChangeLog | 7 +++ gcc/c-family/ChangeLog | 7 +++ gcc/c/ChangeLog | 6 ++ gcc/cp/ChangeLog | 48 ++++++++++++++++ gcc/fortran/ChangeLog | 7 +++ gcc/m2/ChangeLog | 12 ++++ gcc/testsuite/ChangeLog | 147 ++++++++++++++++++++++++++++++++++++++++++++++++ libstdc++-v3/ChangeLog | 28 +++++++++ 10 files changed, 374 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 022465aadb1e..c929fdd43589 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,114 @@ +2024-05-15 Jeff Law <j...@ventanamicro.com> + + * config/riscv/riscv-string.cc: Add missing hunk from last change. + +2024-05-15 Christoph Müllner <christoph.muell...@vrull.eu> + + * config/riscv/riscv-string.cc (emit_strcmp_scalar_load_and_compare): + Use adjust_address() to calculate MEM-PLUS pattern. + +2024-05-15 Christoph Müllner <christoph.muell...@vrull.eu> + + * config/riscv/riscv-protos.h (riscv_expand_block_compare): New + prototype. + * config/riscv/riscv-string.cc (GEN_EMIT_HELPER2): New helper + for zero_extendhi. + (do_load_from_addr): Add support for HI and SI/64 modes. + (do_load): Add helper for zero-extended loads. + (emit_memcmp_scalar_load_and_compare): New helper to emit memcmp. + (emit_memcmp_scalar_result_calculation): Likewise. + (riscv_expand_block_compare_scalar): Likewise. + (riscv_expand_block_compare): New RISC-V expander for memory compare. + * config/riscv/riscv.md (cmpmemsi): New cmpmem expansion. + +2024-05-15 Marek Polacek <pola...@redhat.com> + + DR 1693 + PR c++/113760 + DR 569 + * doc/invoke.texi: Update -Wextra-semi documentation. + +2024-05-15 Jakub Jelinek <ja...@redhat.com> + + PR rtl-optimization/114902 + PR rtl-optimization/115092 + * combine.cc (simplify_compare_const): Don't optimize + GE op0 SIGNED_MIN or LT op0 SIGNED_MIN into NE op0 const0_rtx or + EQ op0 const0_rtx. + +2024-05-15 Richard Biener <rguent...@suse.de> + + PR tree-optimization/114589 + * tree-ssa-sink.cc (select_best_block): Remove profile-based + heuristics. Instead reject sink locations that sink + to post-dominators. Move empty latch check here from + statement_sink_location. Also consider early_bb for the + loop depth check. + (statement_sink_location): Remove superfluous check. Remove + empty latch check. + (pass_sink_code::execute): Compute/release post-dominators. + +2024-05-15 Richard Biener <rguent...@suse.de> + + PR middle-end/111422 + * cfgexpand.cc (add_scope_conflicts_2): Handle PHIs + by recursing to their arguments. + +2024-05-15 Wilco Dijkstra <wilco.dijks...@arm.com> + + * config/aarch64/aarch64-simd.md (aarch64_combine_internal<mode>): + Use UZP1 instead of INS. + (aarch64_combine_internal_be<mode>): Likewise. + +2024-05-15 Jan Hubicka <j...@suse.cz> + + * alias.cc (reference_alias_ptr_type_1): Use view_converted_memref_p. + * alias.h (view_converted_memref_p): Declare. + * tree-ssa-alias.cc (view_converted_memref_p): Export. + (ao_compare::compare_ao_refs): Use same_type_for_tbaa. + +2024-05-15 Christoph Müllner <christoph.muell...@vrull.eu> + + * config/riscv/riscv-string.cc (riscv_block_move_straight): + Hand over up to 2xXLEN bytes to move_by_pieces(). + +2024-05-15 Christoph Müllner <christoph.muell...@vrull.eu> + + * config/riscv/riscv-string.cc (riscv_block_move_straight): Add + parameter align. + (riscv_adjust_block_mem): Replace parameter length by align. + (riscv_block_move_loop): Add parameter align. + (riscv_expand_block_move_scalar): Set alignment properly if the + target has fast unaligned access. + +2024-05-15 Aldy Hernandez <al...@redhat.com> + + PR tree-optimization/114995 + * range-op-ptr.cc (range_operator::pointers_handled_p): Default to true. + +2024-05-15 Andrew Pinski <quic_apin...@quicinc.com> + + PR tree-optimization/114301 + * tree-cfg.cc (gimple_can_duplicate_bb_p): Check returns_twice + only on the last call statement rather than all. + +2024-05-15 Jeff Law <j...@ventanamicro.com> + + * config/riscv/riscv-string.cc + (riscv_expand_block_clear_zicboz_zic64b): Handle rv32 correctly. + +2024-05-15 Levy Hsu <ad...@levyhsu.com> + + PR target/107563 + * config/i386/i386-expand.cc (expand_vec_perm_psrlw_psllw_por): New + subroutine. + (ix86_expand_vec_perm_const_1): Call expand_vec_perm_psrlw_psllw_por. + +2024-05-15 Jeff Law <j...@ventanamicro.com> + + * config/riscv/riscv.md: Add pattern for sign extended shift-add + sequence with a masked input. + 2024-05-14 Dimitar Dimitrov <dimi...@dinux.eu> PR rtl-optimization/115013 diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index f67275af10fb..009b2a2312c8 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20240515 +20240516 diff --git a/gcc/analyzer/ChangeLog b/gcc/analyzer/ChangeLog index 5d00e5044aa5..e44f496712ee 100644 --- a/gcc/analyzer/ChangeLog +++ b/gcc/analyzer/ChangeLog @@ -1,3 +1,10 @@ +2024-05-15 David Malcolm <dmalc...@redhat.com> + + PR analyzer/114899 + * access-diagram.cc + (written_svalue_spatial_item::get_label_string): Bulletproof + against SSA_NAME_VAR being null. + 2024-05-03 David Malcolm <dmalc...@redhat.com> PR analyzer/111475 diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index adcfc2ebae78..fb09551a9b08 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,10 @@ +2024-05-15 Marek Polacek <pola...@redhat.com> + + DR 1693 + PR c++/113760 + DR 569 + * c.opt (Wextra-semi): Initialize to -1. + 2024-05-08 Marek Polacek <pola...@redhat.com> PR c++/113582 diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 60665fd9d4ae..2ffc57f939e7 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,9 @@ +2024-05-15 Jakub Jelinek <ja...@redhat.com> + + PR c/115103 + * c-typeck.cc (c_finish_omp_clauses): Diagnose grainsize + used together with num_tasks. + 2024-05-06 Qing Zhao <qing.z...@oracle.com> PR c/53548 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 620cca4b812c..7177fdb4022a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,51 @@ +2024-05-15 Marek Polacek <pola...@redhat.com> + + PR c++/114854 + * call.cc (convert_like_internal) <case ck_user>: Don't set + TARGET_EXPR_DIRECT_INIT_P. + +2024-05-15 Marek Polacek <pola...@redhat.com> + + DR 1693 + PR c++/113760 + DR 569 + * parser.cc (extra_semi_kind): New. + (maybe_warn_extra_semi): New. + (cp_parser_declaration): Call maybe_warn_extra_semi. + (cp_parser_member_declaration): Likewise. + +2024-05-15 Jakub Jelinek <ja...@redhat.com> + Jason Merrill <ja...@redhat.com> + + PR lto/113208 + * cp-tree.h (maybe_optimize_cdtor): Remove. + * decl2.cc (tentative_decl_linkage): Call maybe_make_one_only + for implicit instantiations of maybe in charge ctors/dtors + declared inline. + (import_export_decl): Don't call maybe_optimize_cdtor. + (c_parse_final_cleanups): Formatting fixes. + * optimize.cc (can_alias_cdtor): Adjust condition, for + HAVE_COMDAT_GROUP && DECL_ONE_ONLY && DECL_WEAK return true even + if not DECL_INTERFACE_KNOWN. + (maybe_clone_body): Don't clear DECL_SAVED_TREE, instead set it + to void_node. + (maybe_clone_body): Remove. + * decl.cc (cxx_comdat_group): For DECL_CLONED_FUNCTION_P + functions if SUPPORTS_ONE_ONLY return DECL_COMDAT_GROUP if already + set. + +2024-05-15 Jakub Jelinek <ja...@redhat.com> + + PR c/115103 + * semantics.cc (finish_omp_clauses): Diagnose grainsize + used together with num_tasks. + +2024-05-15 Patrick Palka <ppa...@redhat.com> + + PR c++/114994 + * tree.cc (lvalue_kind) <case MODOP_EXPR>: For a class + assignment, consider the result type. + 2024-05-14 Simon Martin <simon-l.mar...@laposte.net> PR c++/105760 diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index fbaee11d2628..3a27c1876176 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,10 @@ +2024-05-15 Jakub Jelinek <ja...@redhat.com> + + PR c/115103 + * openmp.cc (resolve_omp_clauses): Diagnose grainsize + used together with num_tasks or nogroup used together with + reduction. + 2024-05-13 Paul Thomas <pa...@gcc.gnu.org> PR fortran/113363 diff --git a/gcc/m2/ChangeLog b/gcc/m2/ChangeLog index a95f5324e023..3ae67746753e 100644 --- a/gcc/m2/ChangeLog +++ b/gcc/m2/ChangeLog @@ -1,3 +1,15 @@ +2024-05-15 Gaius Mulley <gaiusm...@gmail.com> + + PR modula2/115057 + * gm2-libs-iso/TextIO.mod (ReadRestLine): Use ReadChar to + skip unwanted characters as this calls IOChan.Look and updates + the cid result status. A Skip without a Look does not update + the status. Skip always sets read result to allRight. + * gm2-libs-iso/TextUtil.def (SkipSpaces): Improve comments. + (CharAvailable): Improve comments. + * gm2-libs-iso/TextUtil.mod (SkipSpaces): Improve comments. + (CharAvailable): Improve comments. + 2024-05-09 Gaius Mulley <gaiusm...@gmail.com> PR modula2/115003 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0a35342e7dcd..d8d4609b4bd9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,150 @@ +2024-05-15 David Malcolm <dmalc...@redhat.com> + + PR analyzer/114899 + * c-c++-common/analyzer/out-of-bounds-diagram-pr114899.c: New test. + +2024-05-15 Christoph Müllner <christoph.muell...@vrull.eu> + + * gcc.target/riscv/cmpmemsi-1.c: New test. + * gcc.target/riscv/cmpmemsi-2.c: New test. + * gcc.target/riscv/cmpmemsi-3.c: New test. + * gcc.target/riscv/cmpmemsi.c: New test. + +2024-05-15 Marek Polacek <pola...@redhat.com> + + PR c++/114854 + * g++.dg/cpp1y/nsdmi-aggr22.C: New test. + +2024-05-15 Marek Polacek <pola...@redhat.com> + + DR 1693 + PR c++/113760 + DR 569 + * g++.dg/diagnostic/semicolon1.C: New test. + * g++.dg/diagnostic/semicolon10.C: New test. + * g++.dg/diagnostic/semicolon11.C: New test. + * g++.dg/diagnostic/semicolon12.C: New test. + * g++.dg/diagnostic/semicolon13.C: New test. + * g++.dg/diagnostic/semicolon14.C: New test. + * g++.dg/diagnostic/semicolon15.C: New test. + * g++.dg/diagnostic/semicolon16.C: New test. + * g++.dg/diagnostic/semicolon17.C: New test. + * g++.dg/diagnostic/semicolon2.C: New test. + * g++.dg/diagnostic/semicolon3.C: New test. + * g++.dg/diagnostic/semicolon4.C: New test. + * g++.dg/diagnostic/semicolon5.C: New test. + * g++.dg/diagnostic/semicolon6.C: New test. + * g++.dg/diagnostic/semicolon7.C: New test. + * g++.dg/diagnostic/semicolon8.C: New test. + * g++.dg/diagnostic/semicolon9.C: New test. + +2024-05-15 Jakub Jelinek <ja...@redhat.com> + Jason Merrill <ja...@redhat.com> + + PR lto/113208 + * g++.dg/abi/comdat3.C: New test. + * g++.dg/abi/comdat4.C: New test. + +2024-05-15 Jakub Jelinek <ja...@redhat.com> + + PR rtl-optimization/114902 + PR rtl-optimization/115092 + * gcc.dg/pr114902.c: New test. + * gcc.dg/pr115092.c: New test. + +2024-05-15 Jakub Jelinek <ja...@redhat.com> + + PR c/115103 + * c-c++-common/gomp/clause-dups-1.c: Add 2 further expected errors. + * gfortran.dg/gomp/pr115103.f90: New test. + +2024-05-15 Richard Biener <rguent...@suse.de> + + PR tree-optimization/114589 + * gfortran.dg/streamio_9.f90: Use -ffloat-store to avoid + excess precision when not spilling. + * g++.dg/tree-ssa/pr114589.C: New testcase. + +2024-05-15 Gaius Mulley <gaiusm...@gmail.com> + + PR modula2/115057 + * gm2/isolib/run/pass/testrestline.mod: New test. + * gm2/isolib/run/pass/testrestline2.mod: New test. + * gm2/isolib/run/pass/testrestline3.mod: New test. + +2024-05-15 Marek Polacek <pola...@redhat.com> + + DR 2855 + * g++.dg/DRs/dr2855.C: New test. + +2024-05-15 Christoph Müllner <christoph.muell...@vrull.eu> + + * gcc.target/riscv/cmo-zicboz-zic64-1.c: Fix for rv32. + +2024-05-15 Wilco Dijkstra <wilco.dijks...@arm.com> + + * gcc.target/aarch64/ldp_stp_16.c: Update to check for UZP1. + * gcc.target/aarch64/pr109072_1.c: Likewise. + * gcc.target/aarch64/vec-init-14.c: Likewise. + * gcc.target/aarch64/vec-init-9.c: Likewise. + +2024-05-15 Rainer Orth <r...@cebitec.uni-bielefeld.de> + + PR ipa/85656 + * gcc.dg/ipa/ipa-icf-38.c: Require linker_plugin. + +2024-05-15 Rainer Orth <r...@cebitec.uni-bielefeld.de> + + * g++.target/i386/pr97054.C (dg-options): Add -fomit-frame-pointer. + +2024-05-15 Christoph Müllner <christoph.muell...@vrull.eu> + + * gcc.target/riscv/cpymem-32-ooo.c: Adjustments for overlapping + access. + * gcc.target/riscv/cpymem-32.c: Adjustments for code emitted by + by-pieces. + * gcc.target/riscv/cpymem-64-ooo.c: Adjustments for overlapping + access. + * gcc.target/riscv/cpymem-64.c: Adjustments for code emitted by + by-pieces. + +2024-05-15 Christoph Müllner <christoph.muell...@vrull.eu> + + * gcc.target/riscv/cpymem-32-ooo.c: Adjust for overlapping + access. + * gcc.target/riscv/cpymem-64-ooo.c: Likewise. + +2024-05-15 Christoph Müllner <christoph.muell...@vrull.eu> + + * gcc.target/riscv/cpymem-32-ooo.c: Adjust for unaligned access. + * gcc.target/riscv/cpymem-64-ooo.c: Likewise. + +2024-05-15 Christoph Müllner <christoph.muell...@vrull.eu> + + * gcc.target/riscv/cpymem-32-ooo.c: New test. + * gcc.target/riscv/cpymem-32.c: New test. + * gcc.target/riscv/cpymem-64-ooo.c: New test. + * gcc.target/riscv/cpymem-64.c: New test. + +2024-05-15 Jeff Law <j...@ventanamicro.com> + + * gcc.target/riscv/cmo-zicboz-zic64-1.c: Don't run on rv32. + +2024-05-15 Levy Hsu <ad...@levyhsu.com> + + PR target/107563 + * g++.target/i386/pr107563-a.C: New test. + * g++.target/i386/pr107563-b.C: New test. + +2024-05-15 Patrick Palka <ppa...@redhat.com> + + PR c++/114994 + * g++.dg/template/non-dependent32.C: New test. + +2024-05-15 Jeff Law <j...@ventanamicro.com> + + * gcc.target/riscv/shift-add-2.c: New test. + 2024-05-14 Simon Martin <simon-l.mar...@laposte.net> PR c++/105760 diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 37c2d41ab68b..b3e02cd4bc29 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,31 @@ +2024-05-15 Jonathan Wakely <jwak...@redhat.com> + + PR libstdc++/77704 + * include/bits/basic_ios.h (basic_ios::fill()): Do not modify + _M_fill and _M_fill_init in a const member function. + (basic_ios::fill(char_type)): Use _M_fill directly instead of + calling fill(). Set _M_fill_init to true. + * include/bits/basic_ios.tcc (basic_ios::init): Set _M_fill and + _M_fill_init here instead. + * testsuite/27_io/basic_ios/fill/char/1.cc: New test. + * testsuite/27_io/basic_ios/fill/wchar_t/1.cc: New test. + +2024-05-15 Jonathan Wakely <jwak...@redhat.com> + + * include/std/variant (__detail::__variant::__compare): New + function template. + (operator==, operator!=, operator<, operator>, operator<=) + (operator>=): Replace macro definition with handwritten function + calling __detail::__variant::__compare. + (operator<=>): Call __detail::__variant::__compare. + +2024-05-15 Jonathan Wakely <jwak...@redhat.com> + + PR libstdc++/89624 + * include/bits/atomic_base.h (memory_order): Use int as + underlying type. + * testsuite/29_atomics/atomic/89624.cc: New test. + 2024-05-14 Jonathan Wakely <jwak...@redhat.com> PR libstdc++/115015