https://gcc.gnu.org/g:40204d6f75209ff9a32674258c2654aa686e9845
commit r16-8435-g40204d6f75209ff9a32674258c2654aa686e9845 Author: GCC Administrator <[email protected]> Date: Fri Apr 3 00:16:27 2026 +0000 Daily bump. Diff: --- gcc/ChangeLog | 24 ++++++ gcc/DATESTAMP | 2 +- gcc/cobol/ChangeLog | 111 +++++++++++++++++++++++++ gcc/cp/ChangeLog | 13 +++ gcc/fortran/ChangeLog | 8 ++ gcc/testsuite/ChangeLog | 51 ++++++++++++ libgcobol/ChangeLog | 29 +++++++ libstdc++-v3/ChangeLog | 215 ++++++++++++++++++++++++++++++++++++++++++++++++ 8 files changed, 452 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0a8a74764e31..05008267962d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,27 @@ +2026-04-02 Andrew Pinski <[email protected]> + + PR tree-optimization/124746 + * tree-ssa-phiprop.cc (propagate_with_phi): Treat + and aggregate copy as it is a trapping load. + +2026-04-02 Andrew Pinski <[email protected]> + + * tree-ssa-phiprop.cc (propagate_with_phi): Move the + check for load from ptr before the checks of domination. + +2026-04-02 Lulu Cheng <[email protected]> + + * config/loongarch/loongarch-protos.h + (loongarch_parse_fmv_features): Modify parameter type. + * config/loongarch/loongarch-target-attr.cc + (loongarch_parse_fmv_features): Some errors have been + changed to warnings. + * config/loongarch/loongarch.cc + (loongarch_process_target_version_attr): Update parameters. + (loongarch_check_target_clone_version): Likewise. + (loongarch_option_same_function_versions): Likewise. + (TARGET_CHECK_TARGET_CLONE_VERSION): Define. + 2026-04-01 Tamar Christina <[email protected]> Roger Sayle <[email protected]> diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index b2c8b6a74c2a..aa616bdb404b 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20260402 +20260403 diff --git a/gcc/cobol/ChangeLog b/gcc/cobol/ChangeLog index 304ad29a61f4..a1741e4f2989 100644 --- a/gcc/cobol/ChangeLog +++ b/gcc/cobol/ChangeLog @@ -1,3 +1,114 @@ +2026-04-02 Robert Dubner <[email protected]> + + * cobol1.cc (cobol_langhook_handle_option): Handle OPT_Wrecording_mode. + * gcobol.1: Documentation of pre-program registers. + * genapi.cc (hijacker): Define new function hijacked code generation. + (RETURN_WHEN_HIJACKED): Macro for wrapping if(hijacked)return; + (hijacked): Either a boolean or false depending on ENABLE_HIJACKING. + (set_exception_environment): Use gg_pointer_to_array instead of + gg_get_address_of. + (parser_statement_end): Formatting. + (section_label): Change ALTER STATEMENT processing. + (pseudo_return_push): Expand TRACE1 message. + (pseudo_return_pop): Expand TRACE1 message; improved PERFORM processing. + (find_procedure): Change how cbl_proc_t is allocated; improved PERFORM + processing. + (parser_enter_section): Changed ALTER statement processing. + (parser_enter_paragraph): Likewise. + (parser_goto): Use SWITCH_EXPR instead of indirect jump. + (parser_perform): Likewise. + (internal_perform_through): Likewise. + (parser_enter_file): Use SWITCH_EXPR for implementing ENTRY statement. + (parser_leave_file): Build table of values for the SWITCH_EXPR. + (enter_program_common): Remove unused JMP *ptr. + (parser_enter_program): Code to hijack code generation for a function + "dubner" when ENABLE_HIJACKING is defined. + (build_dispatch_switch): Generalize builder of SWITCH_EXPR. + (build_alter_switch): Uses build_dispatch_switch. + (build_entry_switch): Likewise. + (build_perform_dispatcher): Likewise. + (parser_end_program): Wrap build_perform_dispatcher() in if(!hijacked). + (parser_init_list): Use RETURN_WHEN_HIJACKED; use gg_pointer_to_array() + instead of gg_get_address_of(). + (psa_FldLiteralN): Set TREE_READONLY(var_decl) = 1. + (parser_alphabet): use gg_pointer_to_array() instead of + gg_get_address_of(). + (parser_assign): Formatting. + (program_end_stuff): Call hijacking() when ENABLE_HIJACKING and the + program-id is "hijack"; use gg_pointer_to_array(). + (parser_exit): Handle if(hijacked); + (register_find): New static function to find XML-* COBOL variables. + (parser_xml_parse): Updated XML PARSE statement handling. + (initialize_the_data): Use RETURN_WHEN_HIJACKED. + (establish_using): Change first-time-through processing. + (parser_division): Change ENTRY statement processing. + (parser_see_stop_run): Changed RETURN-CODE per-function variable + processing. + (parser_label_label): Use RETURN_WHEN_HIJACKED. + (parser_label_goto): Likewise. + (parser_perform_inline_times): Honor cbl_field_t offset for the count + parameter. + (inspect_tally): Use __gg__inspect_format_1_sbc() for SBC characters. + (create_and_call): Use per-function RETURN-CODE. + (parser_entry_activate): Eliminate static tree variables. + (parser_entry): Use automatic tree variables. + (parser_program_hierarchy): Use RETURN_WHEN_HIJACKED and + gg_pointer_to_array(). + (build_temporaryN): New function compiled when ENABLE_HIJACKING. + (hijack_for_development): Changed to generate minimal GENERIC. + (actually_create_the_static_field): Use gg_structure_type_constructor + to create the constructor for the static cblc_field_t VAR_DECL. + (psa_FldLiteralA): Move where TREE attributes are established. + (parser_local_add): Use gg_pointer_to_array(). + (parser_symbol_add): Use RETURN_WHEN_HIJACKED(); use gg_pointer_to_array(). + * gengen.cc (gg_append_statement): #if 0 around some debugging code. + (gg_show_type): Expanded to display "static" and "readonly". + (gg_find_field_in_struct): Moved and rewritten. + (gg_get_structure_type_decl): New function. + (gg_start_building_a_union): Eliminated. + (gg_start_building_a_struct): Eliminated. + (gg_add_field_to_structure): Eliminated. + (gg_structure_type_constructor): New function. + (gg_get_struct_type_decl): Eliminated. + (gg_get_union_type_decl): Eliminated. + (gg_get_local_struct_type_decl): Eliminated. + (gg_get_filelevel_struct_type_decl): Eliminated. + (gg_get_filelevel_union_type_decl): Eliminated. + (gg_define_local_struct): Eliminated. + (gg_assign_to_structure): Eliminated. + (gg_define_array): Formatting. + (gg_pointer_to_array): Returns ADDR_EXPR for &array[0]; + (gg_goto): Comment reflecting why we aren't using it. + * gengen.h (SHORT_P): Alias for build_pointer_type(short_integer_type_node); + (struct gg_function_t): Changes mostly in support of SWITCH_EXPR. + (gg_get_local_struct_type_decl): Eliminated declaration. + (gg_get_filelevel_struct_type_decl): Likewise. + (gg_get_filelevel_union_type_decl): Likewise. + (gg_define_local_struct): Likewise. + (gg_get_structure_type_decl): New declaration. + (gg_structure_type_constructor): New declaration. + (gg_assign_to_structure): Eliminated declaration. + (gg_define_uchar_star): Changed declaration. + (gg_pointer_to_array): New declaration. + * genutil.cc: Removed unused globals; added var_decl_entry_index. + * genutil.h: Likewise. + * parse.y: Change program-id and REDEFINES handling. + * parse_ante.h: Likewise. + * scan_ante.h (is_refmod): Rewrite. + * structs.cc (create_cblc_field_t): Use gg_get_structure_type_decl(). + * symbols.cc (return_code_register): Use per-program COBOL registers. + (symbol_redefines_root): New function. + (symbols_update): Use per-program COBOL registers. + (symbol_table_init): Implement per-program registers. + (symbol_registers_add): Likewise. + (cbl_field_t::encode): Loosen COBOL level requirement. + * symbols.h (struct cbl_proc_t): SWITCH_EXPR-based PERFORM returns. + (symbol_redefines_root): New declaration. + (symbol_registers_add): New declaration. + (new_alphanumeric): New comment. + * util.cc (FOR_JIM): Remove some unused demonstration code. + (cbl_field_t::encode_numeric): Likewise. + 2026-03-02 Robert Dubner <[email protected]> PR cobol/119456 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ff1ecf67a111..daeeb0e13f5a 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,16 @@ +2026-04-02 Nathaniel Shead <[email protected]> + + PR c++/124477 + * module.cc (trees_in::read_function_def): Set DECL_ARGUMENTS if + installing and otherwise missing. + +2026-04-02 Marek Polacek <[email protected]> + + PR c++/124646 + PR c++/124645 + * call.cc (set_up_extended_ref_temp): Move setting DECL_EXTERNAL + to the !at_function_scope_p block. + 2026-04-01 Jakub Jelinek <[email protected]> * name-lookup.cc (push_local_extern_decl_alias): Diagnose annotations diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 8276e5ad3a50..bc0fe0d5cf6e 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,11 @@ +2026-04-02 Christopher Albert <[email protected]> + Paul Thomas <[email protected]> + + PR fortran/124751 + * trans-array.cc (gfc_conv_array_parameter): Build a packed + descriptor for assumed-rank actual arguments instead of reusing + stale metadata from the original descriptor. + 2026-04-01 Gonzalosilvalde <[email protected]> PR fortran/79330 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 80df77e6945c..00d22178d46a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,54 @@ +2026-04-02 Nathaniel Shead <[email protected]> + + PR c++/124477 + * g++.dg/modules/builtin-10_a.C: New test. + * g++.dg/modules/builtin-10_b.C: New test. + +2026-04-02 Andrew Pinski <[email protected]> + + PR testsuite/124548 + * g++.dg/coroutines/torture/func-params-07.C (main): Fix lifetime + issue of rvalue reference. + +2026-04-02 Marek Polacek <[email protected]> + + PR c++/124646 + PR c++/124645 + * g++.dg/reflect/members_of11.C: New test. + * g++.dg/reflect/members_of12.C: New test. + +2026-04-02 Andrew Pinski <[email protected]> + + PR tree-optimization/124746 + * gcc.dg/tree-ssa/pr124746-1.c: New test. + +2026-04-02 Uros Bizjak <[email protected]> + + * gcc.target/i386/pr124696.c: Compile only for int128 targets. + (dg-options): Use -Wno-psabi instead of -w + +2026-04-02 Christophe Lyon <[email protected]> + + PR target/124705 + * gcc.dg/tree-ssa/gen-vect-26.c: Disable loop peeling check for + arm*-*-. + * gcc.dg/tree-ssa/gen-vect-28.c: Likewise. + +2026-04-02 Lulu Cheng <[email protected]> + + * gcc.target/loongarch/attr-check-error-message8.c: Removed. + * gcc.target/loongarch/attr-check-error-message9.c: Removed. + * gcc.target/loongarch/attr-check-warning-message1.c: New test. + * gcc.target/loongarch/attr-check-warning-message2.c: New test. + * gcc.target/loongarch/attr-check-warning-message3.c: New test. + +2026-04-02 Christopher Albert <[email protected]> + Paul Thomas <[email protected]> + + PR fortran/124751 + * gfortran.dg/pr100194.f90: Run the testcase and add runtime + coverage for packed assumed-rank sections. + 2026-04-01 Jerry DeLisle <[email protected]> PR fortran/124739 diff --git a/libgcobol/ChangeLog b/libgcobol/ChangeLog index 0b701c420838..f522db177158 100644 --- a/libgcobol/ChangeLog +++ b/libgcobol/ChangeLog @@ -1,3 +1,32 @@ +2026-04-02 Robert Dubner <[email protected]> + + * Makefile.am: Include new libgcobol/inspect.cc file. + * Makefile.in: Likewise. + * charmaps.h: Remove global RETURN-CODE + * constants.cc (struct cblc_field_t): Eliminate various globals. + * gcobolio.h: Eliminate cblc_field_t::dummy member. + * libgcobol.cc (funky_find): Moved to inspect.cc. + (funky_find_wide): Likewise. + (funky_find_backward): Likewise. + (funky_find_wide_backward): Likewise. + (normalize_id): Likewise. + (match_lengths): Likewise. + (the_alpha_and_omega): Likewise. + (the_alpha_and_omega_backward): Likewise. + (inspect_backward_format_1): Likewise. + (__gg__inspect_format_1): Likewise. + (inspect_backward_format_2): Likewise. + (__gg__inspect_format_2): Likewise. + (normalize_for_inspect_format_4): Likewise. + (__gg__inspect_format_4): Likewise. + (__gg__is_canceled): Simplify establishing the function return code. + (__gg__pseudo_return_push): Work with integer indexes rather than + addresses. + (__gg__set_data_member): New function. + * xmlparse.cc (xml_event): Use passed variables rather than globals. + (__gg__xml_parse): Likewise. + * inspect.cc: New file. + 2026-02-26 Robert Dubner <[email protected]> * intrinsic.cc (__gg__trim): Rewritten to work properly, and avoid diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 422c23c6aa0a..ab9e329ac406 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,218 @@ +2026-04-02 Patrick Palka <[email protected]> + + * include/std/ranges (zip_view::size): Uglify 'sizes' + parameter. + +2026-04-02 Tomasz Kamiński <[email protected]> + + * include/bits/version.def (inplace_vector): Bump to 202603. + * include/bits/version.h: Regenerate. + * include/std/inplace_vector (inplace_vector::try_emplace_back) + (inplace_vector::try_push_back): Change return type to optional<_Tp&> + and adjust implementation accordingly. + (inplace_vector::try_append_range): Remove. + * include/debug/inplace_vector (inplace_vector::try_emplace_back) + (inplace_vector::try_push_back, inplace_vector::try_append_range): + Likewise. + * testsuite/23_containers/inplace_vector/modifiers/single_insert.cc: + Updated check for the optional<T&> return. Added test for type + convertible to optional<T&> + * testsuite/23_containers/inplace_vector/debug/invalidation/try_emplace_back.cc: + Use has_value() to check if engaged optional is returned. + * testsuite/23_containers/inplace_vector/debug/invalidation/try_push_back.cc: + Likewise. + * testsuite/23_containers/inplace_vector/modifiers/multi_insert.cc: + Remove try_append_range tests. + * testsuite/23_containers/inplace_vector/debug/invalidation/try_append_range.cc: + Removed. + * testsuite/23_containers/inplace_vector/version.cc: Updated expected + feature test macro value. + +2026-04-02 Jonathan Wakely <[email protected]> + + * include/std/version: Add Doxygen documentation comment. + +2026-04-02 Jonathan Wakely <[email protected]> + + * include/bits/regex_constants.h (format_default): Simplify + description of $n in Doxygen comment. + +2026-04-02 Jonathan Wakely <[email protected]> + + * include/bits/stl_pair.h (pair): Adjust Doxygen comment. + +2026-04-02 Jonathan Wakely <[email protected]> + + * include/bits/chrono.h (floor, ceil, round): Fix Doxygen + comments to use correct parameter name and describe return value + more accurately. + +2026-04-02 Jonathan Wakely <[email protected]> + + * include/bits/unordered_map.h (unordered_map::erase(K&&)): + Change parameter name to __x. + * include/bits/unordered_set.h (unordered_set::erase(K&&)) + (unordered_multiset::erase(K&&)): Likewise. + +2026-04-02 Jonathan Wakely <[email protected]> + + * include/bits/ostream.h (operator<<): Do not include deleted + overloads in @{ group. + * include/bits/stl_queue.h (priority_queue): Add @{ group around + constructors. + * include/bits/unordered_map.h: Remove stray @{. Move #endif to + encompass @} that is within the #if group. + +2026-04-02 Jonathan Wakely <[email protected]> + + * include/bits/move.h (swap): Remove @return from Doxygen + comment. + * include/bits/stl_algo.h (inplace_merge, shuffle) + (random_shuffle, partial_sort, nth_element, sort) + (stable_sort): Likewise. + * include/bits/stl_algobase.h (iter_swap, fill): Likewise. + * include/bits/stl_deque.h (_Deque_base::_M_initialize_map) + (deque::_M_range_initialize, deque::_M_fill_initialize): + Likewise. + * include/bits/stl_iterator_base_funcs.h (advance): Likewise. + * include/bits/stl_numeric.h (iota): Likewise. + * include/bits/stl_tempbuf.h (return_temporary_buffer): + Likewise. + * include/bits/stl_uninitialized.h (uninitialized_fill): + Likewise. + +2026-04-02 Jonathan Wakely <[email protected]> + + * include/ext/pb_ds/detail/gp_hash_table_map_/find_no_store_hash_fn_imps.hpp: + Add missing #endif. + +2026-04-02 Jonathan Wakely <[email protected]> + + * doc/doxygen/doxygroups.cc: Define variable_templates group. + * include/bits/binders.h: Fix @file name. + * include/bits/formatfwd.h: Add missing @cond + * include/bits/forward_list.h: Add closing backtick in comment. + * include/bits/out_ptr.h (out_ptr, inout_ptr): Fix names in + @param comments. + * include/bits/regex_constants.h: Escape backtick in comment. + * include/bits/stl_map.h: Add missing @{. + * include/bits/stl_set.h: Likewise. + * include/bits/stl_pair.h: Move declaration of complex into #if + group where it's used. Fix nesting of @cond and @endcond in #if + groups. + * include/std/functional: Move @cond inside #if group. + * include/std/type_traits: Likewise. + * libsupc++/exception: Fix typo'd backtick. + +2026-04-02 Jonathan Wakely <[email protected]> + + * doc/doxygen/user.cfg.in (INPUT): Add <debugging> header. + (EXCLUDE_SYMBOLS): Exclude include guards and other internal + macros from generated documentation. + (PREDEFINED): Update __cplusplus to C++26 value. Remove + unnecessary spaces in macro expansions. Add missing + _GLIBCXX_ABI_TAG_CXX11 macro. + +2026-04-02 Jonathan Wakely <[email protected]> + + * doc/doxygen/user.cfg.in: Update Doxygen config. + +2026-04-02 Jonathan Wakely <[email protected]> + + * include/bits/stl_map.h (map::try_emplace): Move #endif and use + Doxygen's @{ to document all three overloads. + (map::insert_or_assign): Use relevant feature test macro. + +2026-04-02 Tomasz Kamiński <[email protected]> + + * include/bits/version.def (submdspan): Update to 202603, + and list all papers in comment. + * include/bits/version.h: Regenerate. + * include/std/mdspan: Replaced std::strided_stride to + std::extent_slice, __is_strided_slice to __is_extent_slice, + _SliceKind::__unit_strided_slice to __unit_stride_slice. + * src/c++23/std.cc.in (std::extent_slice): Replaced + std::strided_slice to std::extent_slice. + * testsuite/23_containers/mdspan/submdspan/canonical_slices.cc: + Replaced all occurences of strided_slice to extent_slice. + * testsuite/23_containers/mdspan/submdspan/canonical_slices_neg.cc: + Likewise. + * testsuite/23_containers/mdspan/submdspan/strided_slice.cc: Move to... + * testsuite/23_containers/mdspan/submdspan/extent_slice.cc: ...here + and handle rename. + * testsuite/23_containers/mdspan/submdspan/strided_slice_neg.cc: Move to... + * testsuite/23_containers/mdspan/submdspan/extent_slice_neg.cc: ...here + and handle rename. + * testsuite/23_containers/mdspan/submdspan/selections/testcases.h: + Replaced all occurences of strided_slice to extent_slice. + * testsuite/23_containers/mdspan/submdspan/subextents.cc: Likewise. + * testsuite/23_containers/mdspan/submdspan/subextents_neg.cc: + Likewise. + * testsuite/23_containers/mdspan/submdspan/submdspan_mapping.cc: + Likewise. + * testsuite/23_containers/mdspan/submdspan/submdspan_neg.cc: Likewise. + +2026-04-02 Tomasz Kamiński <[email protected]> + + * include/std/mdspan (__mdspan::__static_slice_extent) + (__mdspan::__dynamic_slice_extent): Return unmodified extent + value for strided_slice. + (__mdspan::__substrides_generic, __mdspan::__substrides_standardized): + Multipliy stride, if more than one element is requested. + (__mdspan::__canonical_range_slice): Define. + (__mdspan::__slice_cast): Use __canonical_range_slice for range_slice + and two elements tuples. + (__mdspan::__check_inrange_index): Define. + (__mdspan::__check_valid_slice): Validate if slice.offset + + (slice.extent - 1) * slice.stride fits into extent of given + dimension. Check stride if slice.extent > 1. + * testsuite/23_containers/mdspan/submdspan/canonical_slices.cc: + Add test for range_slice. + * testsuite/23_containers/mdspan/submdspan/canonical_slices_neg.cc: + Add tests validating new conditions. + * testsuite/23_containers/mdspan/submdspan/selections/testcases.h: + Adjusted for change of meaing of strided_slice::extent. + * testsuite/23_containers/mdspan/submdspan/subextents.cc: + Adjusted for change of meaing of strided_slice::extent. And expanded + range_slice tests. + * testsuite/23_containers/mdspan/submdspan/subextents_neg.cc: + Adjusted for change of meaing of strided_slice::extent. + * testsuite/23_containers/mdspan/submdspan/submdspan_neg.cc: + Adjust test for stride value. + +2026-04-02 Tomasz Kamiński <[email protected]> + + * src/c++23/std.cc.in (range_slice): Export. + * include/std/mdspan (range_slice, __mdspan::__is_range_slice): + Define. + (__mdspan::__slice_cast): Handle strided_slice. + * testsuite/23_containers/mdspan/submdspan/subextents.cc: + Sanity tests for range_slice. + +2026-04-02 Jonathan Wakely <[email protected]> + + * Makefile.am (new-abi-baseline): New target. + * Makefile.in: Regenerate. + +2026-04-02 Jonathan Wakely <[email protected]> + + * include/std/format (dynamic_format): Check new value for + feature test macro. + +2026-04-02 Tomasz Kamiński <[email protected]> + + * src/c++23/std.cc.in (std::saturatint_cast): Fixed typo... + (std::saturating_cast): ...by exporting this. + +2026-04-02 Tomasz Kamiński <[email protected]> + + * src/c++23/std.cc.in (std::runtime_format, std::add_sat) + (std::sub_sat, std::mul_sat, std::div_sat, std::saturate_cast): + Replace exports with... + (std::dynamic_format, std::saturating_add, std::saturating_sub) + (std::saturating_mul, std::saturating_div, std::saturating_cast): + ...exports of new names. + 2026-04-01 Jakub Jelinek <[email protected]> * include/std/meta (std::meta::__detail::__statically_sized): New
