https://gcc.gnu.org/g:4beae371c435df8d77a7f806f1a40b3d1c50e76f
commit r16-366-g4beae371c435df8d77a7f806f1a40b3d1c50e76f Author: GCC Administrator <gccadmin@gcc.gnu.org> Date: Sat May 3 00:18:18 2025 +0000 Daily bump. Diff: --- gcc/ChangeLog | 110 +++++++++++++++++++++++++++++ gcc/DATESTAMP | 2 +- gcc/c/ChangeLog | 11 +++ gcc/cobol/ChangeLog | 179 ++++++++++++++++++++++++++++++++++++++++++++++++ gcc/cp/ChangeLog | 19 +++++ gcc/testsuite/ChangeLog | 56 +++++++++++++++ libgcobol/ChangeLog | 10 +++ libsanitizer/ChangeLog | 8 +++ libstdc++-v3/ChangeLog | 25 +++++++ 9 files changed, 419 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 137e3880406f..afa194e0d052 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,113 @@ +2025-05-02 Andrew Pinski <quic_apin...@quicinc.com> + + PR rtl-optimization/120059 + * simplify-rtx.cc (simplify_with_subreg_not): Check the result + of simplify_gen_subreg. + +2025-05-02 Jakub Jelinek <ja...@redhat.com> + Andrew MacLeod <amacl...@redhat.com> + + PR c/117023 + * gimple-range-infer.cc (gimple_infer_range::gimple_infer_range): + For nonnull_if_nonzero attribute check also arg2 range if it doesn't + include zero and in that case call add_nonzero too. + +2025-05-02 Jeff Law <j...@ventanamicro.com> + + Revert: + 2025-04-21 Matthew Fortune <matthew.fort...@imgtec.com> + + * config/mips/mips.cc (mips_option_override): Error out for + -mmicromips -mmsa. + +2025-05-02 Jan Hubicka <hubi...@ucw.cz> + + PR target/119900 + * config/i386/i386.cc (ix86_can_change_mode_class): Add TODO + comment. + (ix86_rtx_costs): Make VEC_SELECT equivalent to SUBREG cost 1. + +2025-05-02 Jason Merrill <ja...@redhat.com> + + PR c++/120012 + * doc/invoke.texi: Document C++20 aggregate fix. + * common.opt: Likewise. + +2025-05-02 Jason Merrill <ja...@redhat.com> + + PR c++/60336 + * config/i386/i386.cc (ix86_warn_parameter_passing_abi): + If no target, check the current TU. + +2025-05-02 Richard Biener <rguent...@suse.de> + + * config/arc/arc.cc (TARGET_LRA_P): Remove define. + * config/gcn/gcn.cc (TARGET_LRA_P): Likewise. + +2025-05-02 Filip Kastl <fka...@suse.cz> + + PR middle-end/117091 + * tree-switch-conversion.cc (switch_decision_tree::analyze_switch_statement): + Remove warning about using different algorithms. + +2025-05-02 Filip Kastl <fka...@suse.cz> + + * tree-switch-conversion.cc (bit_test_cluster::find_bit_tests): + Modify the dynamic programming algorithm to take is_beneficial() + into account earlier. To do this efficiently, copy some logic + from is_beneficial() here. Add detailed comments about how the + DP algorithm works. + (bit_test_cluster::can_be_handled): Check that the cluster range + is >, not >= BITS_IN_WORD. Remove the + "vec<cluster *> &, unsigned, unsigned" overloaded variant since + we no longer need it. + (bit_test_cluster::is_beneficial): Add a comment that this + function is closely tied to m_max_case_bit_tests. Remove the + "vec<cluster *> &, unsigned, unsigned" overloaded variant since + we no longer need it. + * tree-switch-conversion.h: Remove the vec overloaded variants + of bit_test_cluster::is_beneficial and + bit_test_cluster::can_be_handled. + +2025-05-02 Filip Kastl <fka...@suse.cz> + + PR middle-end/117091 + * tree-switch-conversion.cc (bit_test_cluster::find_bit_tests_fast): + Remove function. + (bit_test_cluster::find_bit_tests_slow): Remove function. + (bit_test_cluster::find_bit_tests): We don't need to decide + between slow and fast so just put the modified (no longer) slow + algorithm here. + +2025-05-02 Jennifer Schmitz <jschm...@nvidia.com> + + * config/aarch64/aarch64-sve.md (vec_extract<mode><Vel>): + Prevent the emission of pfalse+lastb for VLS. + +2025-05-02 Andrew Pinski <quic_apin...@quicinc.com> + + PR tree-optimization/118617 + * tree-vect-generic.cc (expand_vector_conversion): Have 2 elements + as internal storage for converts. + * tree-vect-stmts.cc (vectorizable_conversion): Likewise. + +2025-05-02 Andrew Pinski <quic_apin...@quicinc.com> + + PR tree-optimization/118659 + * tree-ssanames.cc (get_known_nonzero_bits_1): Use + wi::bit_and_not instead of `a & ~b`. + +2025-05-02 Andrew Pinski <quic_apin...@quicinc.com> + + PR middle-end/118090 + * ccmp.cc (get_compare_parts): Remove the up argument. + (expand_ccmp_next): Update call to get_compare_parts. + (expand_ccmp_expr_1): Likewise. + +2025-05-02 Richard Biener <rguent...@suse.de> + + * common.opt.urls: Regenerate. + 2025-05-01 Jason Merrill <ja...@redhat.com> * doc/invoke.texi: Add -fabi-version detail. diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index 863251542a4a..2d838691e81a 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20250502 +20250503 diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 08e747ed6820..b7cdd11eb9ec 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,14 @@ +2025-05-02 Jakub Jelinek <ja...@redhat.com> + + PR c/120057 + * c-typeck.cc (check_constexpr_init): Handle RAW_DATA_CST. + +2025-05-02 Florian Weimer <fwei...@redhat.com> + + PR c/120055 + * c-typeck.cc (convert_arguments): Check if fundecl is null + before checking for builtin function declaration. + 2025-05-01 Christopher Bazley <chris.baz...@arm.com> PR c/119317 diff --git a/gcc/cobol/ChangeLog b/gcc/cobol/ChangeLog index d7d8596250e9..7cd2ae00804a 100644 --- a/gcc/cobol/ChangeLog +++ b/gcc/cobol/ChangeLog @@ -1,3 +1,182 @@ +2025-05-02 Jakub Jelinek <ja...@redhat.com> + + PR cobol/119364 + * structs.h (cbl_enabled_exception_type_node): New variable + declaration. + * structs.cc (cbl_enabled_exception_type_node): New variable. + (create_cbl_enabled_exception_t): New function. + (create_our_type_nodes): Initialize cbl_enabled_exception_type_node + using it. + * genapi.cc (stash_exceptions): Don't compare padding bits to + determine if the exceptions are the same as last time. Use + cbl_enabled_exception_type_node for target size and field offsets + and native_encode_expr to write each field into byte sequence. + +2025-05-02 Jakub Jelinek <ja...@redhat.com> + + PR cobol/119364 + * util.cc (is_numeric_edited): Use HOST_SIZE_T_PRINT_UNSIGNED + instead of "%zu" and cast corresponding argument to fmt_size_t. + (normalize_picture): Use GCC_PRISZ instead of "z" and pass address + of fmt_size_t var to sscanf and copy afterwards. + (cbl_refer_t::str): Use HOST_SIZE_T_PRINT_UNSIGNED instead of + "%zu" or GCC_PRISZ instead of "z" and cast corresponding argument + to fmt_size_t. + (struct move_corresponding_field): Likewise. + (valid_move): Likewise. + (ambiguous_reference): Likewise. + (parent_names): Likewise. + (find_corresponding::find_corresponding): Likewise. + (corresponding_fields): Likewise. + (unique_stack::push): Likewise. + (cobol_filename): Likewise. + * lexio.cc: Include config.h first. + (recognize_replacements): Use HOST_SIZE_T_PRINT_UNSIGNED instead of + "%zu" or GCC_PRISZ instead of "z" and cast corresponding argument + to fmt_size_t. + (check_source_format_directive): Likewise. + (parse_replacing_pair): Use size_t(0) instead of 0UL in span_t + construction. + (parse_replace_pairs): Use HOST_SIZE_T_PRINT_UNSIGNED instead of + "%zu" or GCC_PRISZ instead of "z" or HOST_SIZE_T_PRINT_DEC instead + of "%zd" and cast corresponding argument to fmt_size_t. + (parse_copy_directive): Likewise. + (parse_replace_last_off): Likewise. + (parse_replace_text): Likewise. + (bytespan_t::append): Likewise. + (cdftext::map_file): Likewise. + (cdftext::process_file): Likewise. + * symfind.cc (dump_symbol_map2): Likewise. + (dump_symbol_map_value): Likewise. + (build_symbol_map): Likewise. + (is_name::dump_key): Likewise. + (symbol_match2): Likewise. + (symbol_find): Likewise. + (symbol_find_of): Likewise. + * cdf.y: Likewise. + * symbols.cc: Include config.h first. + (cbl_field_t::set_attr): Return uint64_t rather than size_t + and replace size_t(attr) with uint64_t(attr). + (cbl_field_t::clear_attr): Likewise. + (symbol_field_capacity): Use HOST_SIZE_T_PRINT_UNSIGNED instead of + "%zu" or GCC_PRISZ instead of "z" or HOST_SIZE_T_PRINT_DEC instead + of "%zd" and cast corresponding argument to fmt_size_t. + (symbol_find_odo_debug): Likewise. + (symbols_dump): Likewise. + (calculate_capacity): Likewise. + (field_str): Likewise. + (symbols_update): Likewise. + (symbol_field_forward): Likewise. + (numeric_group_attrs): Return uint64_t rather than size_t and + change inherit variable to from size_t to uint64_t. + (new_literal_add): Use HOST_SIZE_T_PRINT_UNSIGNED instead of + "%zu" or GCC_PRISZ instead of "z" or HOST_SIZE_T_PRINT_DEC instead + of "%zd" and cast corresponding argument to fmt_size_t. + (temporaries_t::dump): Likewise. + (cbl_label_t::str): Likewise. + (symbol_label_add): Likewise. + (symbol_program_add): Likewise. + (symbol_forward_names): Likewise. + (symbol_forward_to): Likewise. + (cbl_file_key_t::deforward): Likewise. + (cbl_file_key_t::str): Likewise. + * gengen.cc (show_type): Use PRId64 instead of "ld". + (gg_unique_in_function): Use HOST_SIZE_T_PRINT_DEC instead of + %ld and cast corresponding argument to fmt_size_t. + * scan.l: Add %top section with #include "config.h". + * genmath.cc (parser_add): Use HOST_SIZE_T_PRINT_DEC instead of + %ld and cast corresponding argument to fmt_size_t. + (parser_subtract): Likewise. + * parse.y: Include "config.h" before <fstream>. Use + HOST_SIZE_T_PRINT_UNSIGNED instead of "%zu" and cast corresponding + argument to fmt_size_t. Change type of sign_attrs, group_sign and + type_implies from size_t to uint64_t. + (perform_t::ec_labels_t::new_label): Use HOST_SIZE_T_PRINT_UNSIGNED + instead of "%zu" or GCC_PRISZ instead of "z" or HOST_SIZE_T_PRINT_DEC + instead of "%zd" and cast corresponding argument to fmt_size_t. + (stringify_src_t::dump): Likewise. + (lang_check_failed): Likewise. + (numstr2i): Use GCC_PRISZ instead of "z" and pass address of temporary + with fmt_size_t type to sscanf and then copy it over. + (initialize_statement): Use HOST_SIZE_T_PRINT_UNSIGNED instead of + "%zu" or GCC_PRISZ instead of "z" or HOST_SIZE_T_PRINT_DEC instead + of "%zd" and cast corresponding argument to fmt_size_t. + (dump_inspect_oper): Likewise. + (new_literal): Likewise. + (literal_subscripts_valid): Likewise. + (eval_subject_t::label): Likewise. + * genapi.cc (level_88_helper): Likewise. + (parser_call_targets_dump): Likewise. + (combined_name): Use HOST_SIZE_T_PRINT_DEC instead of "%ld" + and cast corresponding argument to fmt_size_t. + (section_label): Likewise. + (paragraph_label): Likewise. + (leave_procedure): Likewise. + (parser_perform): Likewise. + (parser_perform_times): Likewise. + (internal_perform_through): Likewise. + (internal_perform_through_times): Likewise. + (parser_enter_program): Likewise. + (parser_init_list_size): Likewise. + (parser_init_list): Likewise. + (psa_FldLiteralN): Likewise. + (psa_FldBlob): Likewise. + (parser_assign): Likewise. + (parser_free): Pass p->field->name to dbgmsg. + (parser_division): Use HOST_SIZE_T_PRINT_DEC instead of "%ld" + and cast corresponding argument to fmt_size_t. + (perform_outofline_before_until): Likewise. + (perform_outofline_after_until): Likewise. + (perform_outofline_testafter_varying): Likewise. + (perform_outofline_before_varying): Likewise. + (perform_inline_testbefore_varying): Likewise. + (parser_inspect): Change n_operations parameter type from + unsigned long to size_t. + (parser_intrinsic_callv): Use HOST_SIZE_T_PRINT_DEC instead + of "%zd" and cast corresponding argument to fmt_size_t. + (parser_bitop): Use HOST_SIZE_T_PRINT_HEX_PURE instead of + "%lx" and cast corresponding argument to fmt_size_t. + (parser_bitwise_op): Likewise. + (parser_program_hierarchy): Use HOST_SIZE_T_PRINT_DEC instead of "%ld" + and cast corresponding argument to fmt_size_t. + (parser_set_handled): Use HOST_SIZE_T_PRINT_HEX_PURE instead of + "%lx" and cast corresponding argument to fmt_size_t. + (parser_set_numeric): Use HOST_SIZE_T_PRINT_DEC instead of "%ld" + and cast corresponding argument to fmt_size_t. + (psa_new_var_decl): Use HOST_SIZE_T_PRINT_DEC instead of "%ld" + and cast corresponding argument to fmt_size_t. + (parser_symbol_add): Use HOST_SIZE_T_PRINT_DEC instead of "%zd" + or HOST_SIZE_T_PRINT_HEX_PURE instead of "%lx" and cast corresponding + argument to fmt_size_t. + * cdf-copy.cc: Include "config.h" first. + * scan_ante.h (trim_location): Use HOST_SIZE_T_PRINT_UNSIGNED instead + of "%zu" or "%d" and cast corresponding argument to fmt_size_t. + * structs.cc (create_cblc_field_t): Use ULONGLONG instead of SIZE + for "attr". + * cbldiag.h (dbgmsg): Add ATTRIBUTE_PRINTF_1. + * gcobolspec.cc (lang_specific_driver): Use HOST_SIZE_T_PRINT_DEC + instead of "%ld" and cast corresponding argument to fmt_size_t. + * parse_ante.h (literal_of): Use HOST_SIZE_T_PRINT_UNSIGNED instead of + "%zu" or GCC_PRISZ instead of "z" or HOST_SIZE_T_PRINT_DEC instead + of "%zd" and cast corresponding argument to fmt_size_t. + (evaluate_elem_t::dump): Likewise. + (arith_t::another_pair): Likewise. + (current_t::end_program): Likewise. + (file_add): Likewise. + (implicit_paragraph): Likewise. + (implicit_section): Likewise. + (data_division_ready): Use HOST_SIZE_T_PRINT_DEC instead of "%d" + and cast corresponding argument to fmt_size_t. + * symbols.h (struct cbl_field_t): Change attr member type from size_t + to uint64_t. + (cbl_field_t::set_attr): Change return type from size_t to uint64_t. + (cbl_field_t::clear_attr): Likewise. + (function_descr_t::init): Use HOST_SIZE_T_PRINT_UNSIGNED instead of + "%zu" or GCC_PRISZ instead of "z" or HOST_SIZE_T_PRINT_DEC instead + of "%zd" and cast corresponding argument to fmt_size_t. + (cbl_perform_tgt_t::dump): Likewise. + (numeric_group_attrs): Change return type from size_t to uint64_t. + 2025-04-24 Robert Dubner <rdub...@symas.com> * genapi.cc: (initialize_variable_internal): Change TRACE1 formatting. diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d50293c5aad4..a99a1cccad08 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,22 @@ +2025-05-02 Jason Merrill <ja...@redhat.com> + + PR c++/115207 + * decl.cc (cp_finish_decl): Call layout_decl after CTAD. + +2025-05-02 Jason Merrill <ja...@redhat.com> + + PR c++/120012 + * cp-tree.h (struct lang_type): Add non_aggregate_pod. + (CLASSTYPE_NON_AGGREGATE_POD): New. + * class.cc (check_bases_and_members): Set it. + (check_non_pod_aggregate): Diagnose it. + +2025-05-02 Jakub Jelinek <ja...@redhat.com> + + PR c++/117827 + * init.cc (build_vec_init): Push to *cleanup_flags clearing of rval + instead of setting of iterator to maxindex. + 2025-05-01 Patrick Palka <ppa...@redhat.com> * constexpr.cc (explain_invalid_constexpr_fn): In the diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 354a2adc3cae..0c034bf5c8c3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,59 @@ +2025-05-02 Andrew Pinski <quic_apin...@quicinc.com> + + PR rtl-optimization/120059 + * gcc.dg/torture/pr120059-1.c: New test. + +2025-05-02 Jakub Jelinek <ja...@redhat.com> + + PR c/120057 + * gcc.dg/cpp/embed-18.c: New test. + * gcc.dg/pr120057-1.c: New test. + * gcc.dg/pr120057-2.c: New test. + +2025-05-02 Jakub Jelinek <ja...@redhat.com> + Andrew MacLeod <amacl...@redhat.com> + + PR c/117023 + * gcc.dg/tree-ssa/pr78154-2.c: New test. + +2025-05-02 Jason Merrill <ja...@redhat.com> + + PR c++/115207 + * g++.dg/cpp1z/class-deduction118.C: New test. + +2025-05-02 Jason Merrill <ja...@redhat.com> + + * g++.dg/cpp1y/constexpr-89285.C: Always diagnose reinterpret_cast. + * g++.dg/cpp23/constexpr-nonlit19.C: Remove ~A body. + +2025-05-02 Jason Merrill <ja...@redhat.com> + + PR c++/120012 + * g++.dg/abi/base-defaulted1.C: New test. + * g++.dg/abi/base-defaulted1a.C: New test. + +2025-05-02 Jason Merrill <ja...@redhat.com> + + PR c++/60336 + * g++.dg/abi/pr60336-8a.C: New test. + +2025-05-02 Filip Kastl <fka...@suse.cz> + + * gcc.dg/tree-ssa/switch-5.c: New test. + * gcc.dg/tree-ssa/switch-6.c: New test. + +2025-05-02 Florian Weimer <fwei...@redhat.com> + + * gcc.dg/Wdeprecated-non-prototype-6.c: New test. + +2025-05-02 Jennifer Schmitz <jschm...@nvidia.com> + + * gcc.target/aarch64/sve/extract_last_128.c: New test. + * gcc.target/aarch64/sve/extract_1.c: Adjust expected outcome. + * gcc.target/aarch64/sve/extract_2.c: Likewise. + * gcc.target/aarch64/sve/extract_3.c: Likewise. + * gcc.target/aarch64/sve/extract_4.c: Likewise. + 2025-05-01 Christopher Bazley <chris.baz...@arm.com> PR c/119317 diff --git a/libgcobol/ChangeLog b/libgcobol/ChangeLog index 9de17142fcb2..1bb6329918e6 100644 --- a/libgcobol/ChangeLog +++ b/libgcobol/ChangeLog @@ -1,3 +1,13 @@ +2025-05-02 Jakub Jelinek <ja...@redhat.com> + + PR cobol/119364 + * valconv.cc (__gg__realloc_if_necessary): Use (new_size>>16)>>16; + instead of new_size>>32; to avoid warnings on 32-bit hosts. + * common-defs.h (enum cbl_field_attr_t): Use uint64_t + as underlying type rather than size_t. + * gcobolio.h (cblc_field_t): Change attr member type from size_t + to unsigned long long. + 2025-04-21 Rainer Orth <r...@cebitec.uni-bielefeld.de> * configure.ac: Check for struct tm.tm_zone. diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index 6e54604bf4b6..9151572ce8bb 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,11 @@ +2025-05-02 Florian Weimer <fwei...@redhat.com> + Tom Stellard <tstel...@redhat.com> + + * sanitizer_common/sanitizer_common_interceptors_ioctl.inc: Cherry + picked from LLVM commit 59978b21ad9c65276ee8e14f26759691b8a65763. + * sanitizer_common/sanitizer_platform_limits_posix.cpp: Likewise. + * sanitizer_common/sanitizer_platform_limits_posix.h: Likewise. + 2025-01-06 Stefan Schulze Frielinghaus <stefa...@gcc.gnu.org> PR sanitizer/117725 diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e54841a8a52f..b849d545fcf6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,28 @@ +2025-05-02 Dhruv Chawla <dhr...@nvidia.com> + + * include/std/memory: Define __glibcxx_want_addressof_constexpr. + * testsuite/20_util/headers/memory/version.cc: Test for macro + value. + +2025-05-02 Jonathan Wakely <jwak...@redhat.com> + + * testsuite/23_containers/vector/allocator/default_init.cc: + Add a check using constant evaluation. + * testsuite/23_containers/vector/bool/allocator/default_init.cc: + Likewise. + * testsuite/util/testsuite_allocator.h (default_init_allocator): + Make all member functions and equality ops constexpr. + +2025-05-02 Jonathan Wakely <jwak...@redhat.com> + + * src/c++11/Makefile.am: Simplify existing prerequisites for wchar and + dual-abi targets that are built from other sources. Add similar + prerequisites for more wchar and dual-abi files. + * src/c++11/Makefile.in: Regenerate. + * src/c++17/Makefile.am [ENABLE_DUAL_ABI]: Add prerequisites for + dual-abi targets that are built from other sources. + * src/c++17/Makefile.in: Regenerate. + 2025-04-30 François Dumont <frs.dum...@gmail.com> Jonathan Wakely <jwak...@redhat.com>