https://gcc.gnu.org/g:52e56eef53b444b5b86c3492e5a7a079c010c1c9
commit r15-5768-g52e56eef53b444b5b86c3492e5a7a079c010c1c9 Author: GCC Administrator <gccadmin@gcc.gnu.org> Date: Fri Nov 29 00:19:27 2024 +0000 Daily bump. Diff: --- gcc/ChangeLog | 235 ++++++++++++++++++++++++++++++++++++++++++++++++ gcc/DATESTAMP | 2 +- gcc/analyzer/ChangeLog | 15 ++++ gcc/c-family/ChangeLog | 51 +++++++++++ gcc/c/ChangeLog | 29 ++++++ gcc/cp/ChangeLog | 90 +++++++++++++++++++ gcc/fortran/ChangeLog | 19 ++++ gcc/go/ChangeLog | 12 +++ gcc/rust/ChangeLog | 42 +++++++++ gcc/testsuite/ChangeLog | 121 +++++++++++++++++++++++++ libcpp/ChangeLog | 6 ++ libgomp/ChangeLog | 5 ++ libstdc++-v3/ChangeLog | 43 +++++++++ 13 files changed, 669 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2be87f2079cc..935bca772588 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,238 @@ +2024-11-28 Uros Bizjak <ubiz...@gmail.com> + + * config/i386/i386.md (*<any_shift:insn><mode>3_mask): Macroize + pattern from *ashl<mode>3_mask and *<any_shiftrt:insn><mode>3_mask + using any_shift code iterator. + (*<any_shift:insn><mode>3_mask_1): Macroize pattern + from *ashl<mode>3_mask_1 and *<any_shiftrt:insn><mode>3_mask_1 + using any_shift code iterator. + (*<any_shift:insn><mode>3_add): Macroize pattern + from *ashl<mode>3_add and *<any_shiftrt:insn><mode>3_add + using any_shift code iterator. + (*<any_shift:insn><mode>3_add_1): Macroize pattern + from *ashl<mode>3_add_1 and *<any_shiftrt:insn><mode>3_add_1 + using any_shift code iterator. + (*<insn><mode>3_sub): Macroize pattern + from *ashl<mode>3_sub and *<any_shiftrt:insn><mode>3_sub + using any_shift code iterator. + (*<any_shift:insn><mode>3_sub_1): Macroize pattern + from *ashl<mode>3_sub_1 and *<any_shiftrt:insn><mode>3_sub_1 + using any_shift code iterator. + +2024-11-28 Mariam Arutunian <mariamarutun...@gmail.com> + + * builtin-types.def (BT_FN_UINT8_UINT8_UINT8_CONST_SIZE): Define. + (BT_FN_UINT16_UINT16_UINT8_CONST_SIZE): Likewise. + (BT_FN_UINT16_UINT16_UINT16_CONST_SIZE): Likewise. + (BT_FN_UINT32_UINT32_UINT8_CONST_SIZE): Likewise. + (BT_FN_UINT32_UINT32_UINT16_CONST_SIZE): Likewise. + (BT_FN_UINT32_UINT32_UINT32_CONST_SIZE): Likewise. + (BT_FN_UINT64_UINT64_UINT8_CONST_SIZE): Likewise. + (BT_FN_UINT64_UINT64_UINT16_CONST_SIZE): Likewise. + (BT_FN_UINT64_UINT64_UINT32_CONST_SIZE): Likewise. + (BT_FN_UINT64_UINT64_UINT64_CONST_SIZE): Likewise. + * builtins.cc (associated_internal_fn): Handle CRC related builtins. + (expand_builtin_crc_table_based): New function. + (expand_builtin): Handle CRC related builtins. + * builtins.def (BUILT_IN_CRC8_DATA8): New builtin. + (BUILT_IN_CRC16_DATA8): Likewise. + (BUILT_IN_CRC16_DATA16): Likewise. + (BUILT_IN_CRC32_DATA8): Likewise. + (BUILT_IN_CRC32_DATA16): Likewise. + (BUILT_IN_CRC32_DATA32): Likewise. + (BUILT_IN_CRC64_DATA8): Likewise. + (BUILT_IN_CRC64_DATA16): Likewise. + (BUILT_IN_CRC64_DATA32): Likewise. + (BUILT_IN_CRC64_DATA64): Likewise. + (BUILT_IN_REV_CRC8_DATA8): New builtin. + (BUILT_IN_REV_CRC16_DATA8): Likewise. + (BUILT_IN_REV_CRC16_DATA16): Likewise. + (BUILT_IN_REV_CRC32_DATA8): Likewise. + (BUILT_IN_REV_CRC32_DATA16): Likewise. + (BUILT_IN_REV_CRC32_DATA32): Likewise. + (BUILT_IN_REV_CRC64_DATA8): Likewise. + (BUILT_IN_REV_CRC64_DATA16): Likewise. + (BUILT_IN_REV_CRC64_DATA32): Likewise. + (BUILT_IN_REV_CRC64_DATA64): Likewise. + * builtins.h (expand_builtin_crc_table_based): New function + declaration. + * doc/extend.texi: Add documentation for new CRC builtins. + +2024-11-28 Mariam Arutunian <mariamarutun...@gmail.com> + + * doc/md.texi (crc@var{m}@var{n}4, crc_rev@var{m}@var{n}4): Document. + * expr.cc (calculate_crc): New function. + (assemble_crc_table): Likewise. + (generate_crc_table): Likewise. + (calculate_table_based_CRC): Likewise. + (expand_crc_table_based): Likewise. + (gen_common_operation_to_reflect): Likewise. + (reflect_64_bit_value): Likewise. + (reflect_32_bit_value): Likewise. + (reflect_16_bit_value): Likewise. + (reflect_8_bit_value): Likewise. + (generate_reflecting_code_standard): Likewise. + (expand_reversed_crc_table_based): Likewise. + * expr.h (generate_reflecting_code_standard): New function declaration. + (expand_crc_table_based): Likewise. + (expand_reversed_crc_table_based): Likewise. + * internal-fn.cc: (crc_direct): Define. + (direct_crc_optab_supported_p): Likewise. + (expand_crc_optab_fn): New function + * internal-fn.def (CRC, CRC_REV): New internal functions. + * optabs.def (crc_optab, crc_rev_optab): New optabs. + Signed-off-by: Mariam Arutunian <mariamarutun...@gmail.com> + Co-authored-by: Joern Rennecke <joern.renne...@embecosm.com> + Co-authored-by: Jeff Law <j...@ventanamicro.com> + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR target/117642 + * doc/extend.texi: Remove documentation of warning for unimplemented + __sync_* operations, such warning has never been implemented. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c/117023 + * gimple-range-infer.cc (gimple_infer_range::gimple_infer_range): + Handle also nonnull_if_nonzero attributes. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c/117023 + * gimple.h (infer_nonnull_range_by_attribute): Add a tree * + argument defaulted to NULL. + * gimple.cc (infer_nonnull_range_by_attribute): Add op2 argument. + Handle also nonnull_if_nonzero attributes. + * tree.cc (get_nonnull_args): Fix comment typo. + * builtins.cc (validate_arglist): Handle nonnull_if_nonzero attribute. + * tree-ssa-ccp.cc (pass_post_ipa_warn::execute): Handle + nonnull_if_nonzero attributes. + * ubsan.cc (instrument_nonnull_arg): Adjust + infer_nonnull_range_by_attribute caller. If it returned true and + filed in non-NULL arg2, check that arg2 is non-zero as another + condition next to checking that arg is zero. + * doc/extend.texi (nonnull_if_nonzero): Document new attribute. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + * config/rs6000/rs6000.h (struct machine_function): Add + asm_redzone_clobber_seen member. + * config/rs6000/rs6000-logue.cc (rs6000_stack_info): Force + info->push_p if cfun->machine->asm_redzone_clobber_seen. + * config/rs6000/rs6000.cc (TARGET_REDZONE_CLOBBER): Redefine. + (rs6000_redzone_clobber): New function. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + * target.def (redzone_clobber): New target hook. + * varasm.cc (decode_reg_name_and_count): Return -5 for + "redzone". + * cfgexpand.cc (expand_asm_stmt): Handle redzone clobber. + * config/i386/i386.h (struct machine_function): Add + asm_redzone_clobber_seen member. + * config/i386/i386.cc (ix86_compute_frame_layout): Don't + use red zone if cfun->machine->asm_redzone_clobber_seen. + (ix86_redzone_clobber): New function. + (TARGET_REDZONE_CLOBBER): Redefine. + * doc/extend.texi (Clobbers and Scratch Registers): Document + the "redzone" clobber. + * doc/tm.texi.in: Add @hook TARGET_REDZONE_CLOBBER. + * doc/tm.texi: Regenerate. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c++/116416 + * flag-types.h (enum zero_init_padding_bits_kind): New type. + * tree.h (CONSTRUCTOR_ZERO_PADDING_BITS): Define. + * common.opt (fzero-init-padding-bits=): New option. + * expr.cc (categorize_ctor_elements_1): Handle + CONSTRUCTOR_ZERO_PADDING_BITS or + flag_zero_init_padding_bits == ZERO_INIT_PADDING_BITS_ALL. Fix + up *p_complete = -1; setting for unions. + (complete_ctor_at_level_p): Handle unions differently for + flag_zero_init_padding_bits == ZERO_INIT_PADDING_BITS_STANDARD. + * gimple-fold.cc (type_has_padding_at_level_p): Fix up UNION_TYPE + handling, return also true for UNION_TYPE with no FIELD_DECLs + and non-zero size, handle QUAL_UNION_TYPE like UNION_TYPE. + * doc/invoke.texi (-fzero-init-padding-bits=@var{value}): Document. + +2024-11-28 Tamar Christina <tamar.christ...@arm.com> + + PR tree-optimization/117557 + * tree-vect-stmts.cc (vectorizable_store): Flatten the ncopies and + vec_num loops. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR tree-optimization/117358 + * gimple-fold.cc (gimple_fold_builtin_memory_op): Punt if stmt has no + vdef in ssa form. + (gimple_fold_builtin_bcmp): Punt if stmt has no vuse in ssa form. + (gimple_fold_builtin_bcopy): Punt if stmt has no vdef in ssa form. + (gimple_fold_builtin_bzero): Likewise. + (gimple_fold_builtin_memset): Likewise. Use return false instead of + return NULL_TREE. + (gimple_fold_builtin_strcpy): Punt if stmt has no vdef in ssa form. + (gimple_fold_builtin_strncpy): Likewise. + (gimple_fold_builtin_strchr): Punt if stmt has no vuse in ssa form. + (gimple_fold_builtin_strstr): Likewise. + (gimple_fold_builtin_strcat): Punt if stmt has no vdef in ssa form. + (gimple_fold_builtin_strcat_chk): Likewise. + (gimple_fold_builtin_strncat): Likewise. + (gimple_fold_builtin_strncat_chk): Likewise. + (gimple_fold_builtin_string_compare): Likewise. + (gimple_fold_builtin_fputs): Likewise. + (gimple_fold_builtin_memory_chk): Likewise. + (gimple_fold_builtin_stxcpy_chk): Likewise. + (gimple_fold_builtin_stxncpy_chk): Likewise. + (gimple_fold_builtin_stpcpy): Likewise. + (gimple_fold_builtin_snprintf_chk): Likewise. + (gimple_fold_builtin_sprintf_chk): Likewise. + (gimple_fold_builtin_sprintf): Likewise. + (gimple_fold_builtin_snprintf): Likewise. + (gimple_fold_builtin_fprintf): Likewise. + (gimple_fold_builtin_printf): Likewise. + (gimple_fold_builtin_realloc): Likewise. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c/117802 + * builtins.cc (fold_builtin_iseqsig): Handle BITINT_TYPE like + INTEGER_TYPE. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + * timevar.cc: Include "make-unique.h". + (timer::named_items::make_json): Convert return type to unique_ptr. + Avoid naked "new". + (make_json_for_timevar_time_def): Likewise. + (timer::timevar_def::make_json): Likewise. + (timer::make_json): Likewise. + * timevar.h (timer::make_json): Likewise. + (timer::timevar_def::make_json): Likewise. + * tree-diagnostic-client-data-hooks.cc: Update for above changes. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/104896 + * common/config/ia64/ia64-common.cc (ia64_handle_option): Replace + "%<%s%>" with "%qs" in message wording. + * common/config/rs6000/rs6000-common.cc (rs6000_handle_option): + Likewise. + * config/aarch64/aarch64.cc (aarch64_validate_sls_mitigation): + Likewise. + (aarch64_override_options): Likewise. + (aarch64_process_target_attr): Likewise. + * config/arm/aarch-common.cc (aarch_validate_mbranch_protection): + Likewise. + * config/pru/pru.cc (pru_insert_attributes): Likewise. + * config/riscv/riscv-target-attr.cc + (riscv_target_attr_parser::parse_arch): Likewise. + * omp-general.cc (oacc_verify_routine_clauses): Likewise. + * tree-ssa-uninit.cc (maybe_warn_read_write_only): Likewise. + (maybe_warn_pass_by_reference): Likewise. + 2024-11-27 Uros Bizjak <ubiz...@gmail.com> PR target/36503 diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index 7c44885e94f2..c38b4a0a46e0 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20241128 +20241129 diff --git a/gcc/analyzer/ChangeLog b/gcc/analyzer/ChangeLog index efaafbb6272c..8203a01deb44 100644 --- a/gcc/analyzer/ChangeLog +++ b/gcc/analyzer/ChangeLog @@ -1,3 +1,18 @@ +2024-11-28 David Malcolm <dmalc...@redhat.com> + + * engine.cc (strongly_connected_components::to_json): Avoid naked + "new". + * infinite-loop.cc (infinite_loop::to_json): Convert return type + to unique_ptr. Avoid naked "new". + * sm-signal.cc (signal_delivery_edge_info_t::to_json): Delete + unused function. + * supergraph.cc (supernode::to_json): Avoid naked "new". + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/104896 + * sm-malloc.cc: Replace "%<%s%>" with "%qs" in message wording. + 2024-11-23 Lewis Hyatt <lhy...@gmail.com> * checker-event.cc (checker_event::dump): Support printing either diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index e6d0b4dd2c88..a1dbe5843252 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,54 @@ +2024-11-28 Marek Polacek <pola...@redhat.com> + + PR c++/113798 + * c-cppbuiltin.cc (c_cpp_builtins): Predefine + __cpp_pack_indexing=202311L for C++26. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c/117023 + * c-attribs.cc (handle_nonnull_if_nonzero_attribute): New + function. + (c_common_gnu_attributes): Add nonnull_if_nonzero attribute. + (handle_nonnull_attribute): Fix comment typo. + * c-common.cc (struct nonnull_arg_ctx): Add other member. + (check_function_nonnull): Also check nonnull_if_nonzero attributes. + (check_nonnull_arg): Use different warning wording if pctx->other + is non-zero. + (check_function_arguments): Initialize ctx.other. + +2024-11-28 Joseph Myers <josmy...@redhat.com> + + PR c/117757 + * c-gimplify.cc (c_gimplify_expr): Check for error_operand_p + before calling TYPE_MAIN_VARIANT for shifts. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/82892 + * c-common.h (get_option_for_builtin_define): New decl. + * c-cppbuiltin.cc (get_option_for_builtin_define): New. + * known-headers.cc: Include "opts.h". + (suggest_missing_option::suggest_missing_option): New. + (suggest_missing_option::~suggest_missing_option): New. + * known-headers.h (class suggest_missing_option): New. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c++/87850 + * c-common.cc: Include "gcc-rich-location.h". + (maybe_emit_indirection_note): New function. + * c-common.h (maybe_emit_indirection_note): New decl. + (compatible_types_for_indirection_note_p): New decl. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/104896 + * c-lex.cc (c_common_lex_availability_macro): Replace "%<%s%>" + with "%qs" in message wording. + * c-opts.cc (c_common_handle_option): Likewise. + * c-warn.cc (warn_parm_array_mismatch): Likewise. + 2024-11-27 Florian Weimer <fwei...@redhat.com> * c-opts.cc (c_common_post_options): Initialize diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 01d45103f0e1..c6ff2c777698 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,32 @@ +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c++/116416 + * c-parser.cc (c_parser_braced_init): Set CONSTRUCTOR_ZERO_PADDING_BITS + for flag_isoc23 empty initializers. + * c-typeck.cc (constructor_zero_padding_bits): New variable. + (struct constructor_stack): Add zero_padding_bits member. + (really_start_incremental_init): Save and clear + constructor_zero_padding_bits. + (push_init_level): Save constructor_zero_padding_bits. Or into it + CONSTRUCTOR_ZERO_PADDING_BITS from previous value if implicit. + (pop_init_level): Set CONSTRUCTOR_ZERO_PADDING_BITS if + constructor_zero_padding_bits and restore + constructor_zero_padding_bits. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/82892 + * c-decl.cc (lookup_name_fuzzy): Provide hints for missing + command-line options. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c++/87850 + * c-typeck.cc (compatible_types_for_indirection_note_p): New + function. + (convert_for_assignment): Call maybe_emit_indirection_note for + pointer vs non-pointer diagnostics. + 2024-11-27 Joseph Myers <josmy...@redhat.com> PR c/91193 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 420b8d254080..221269fa946d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,93 @@ +2024-11-28 Marek Polacek <pola...@redhat.com> + + PR c++/113798 + * constexpr.cc (potential_constant_expression_1) <case PACK_INDEX_EXPR>: + New case. + * cp-objcp-common.cc (cp_common_init_ts): Mark PACK_INDEX_TYPE and + PACK_INDEX_EXPR. + * cp-tree.def (PACK_INDEX_TYPE): New. + (PACK_INDEX_EXPR): New. + * cp-tree.h (WILDCARD_TYPE_P): Also check PACK_INDEX_TYPE. + (PACK_INDEX_CHECK): Define. + (PACK_INDEX_P): Define. + (PACK_INDEX_PACK): Define. + (PACK_INDEX_INDEX): Define. + (PACK_INDEX_PARENTHESIZED_P): Define. + (make_pack_index): Declare. + (pack_index_element): Declare. + * cxx-pretty-print.cc (cxx_pretty_printer::expression) <case + PACK_INDEX_EXPR>: New case. + (cxx_pretty_printer::type_id) <case PACK_INDEX_TYPE>: New case. + * error.cc (dump_type) <case PACK_INDEX_TYPE>: New case. + (dump_type_prefix): Handle PACK_INDEX_TYPE. + (dump_type_suffix): Likewise. + (dump_expr) <case PACK_INDEX_EXPR>: New case. + * mangle.cc (write_type) <case PACK_INDEX_TYPE>: New case. + * module.cc (trees_out::type_node) <case PACK_INDEX_TYPE>: New case. + (trees_in::tree_node) <case PACK_INDEX_TYPE>: New case. + * parser.cc (cp_parser_next_tokens_are_pack_index_p): New. + (cp_parser_pack_index): New. + (cp_parser_primary_expression): Handle a C++26 pack-index-expression. + (cp_parser_unqualified_id): Handle a C++26 pack-index-specifier. + (cp_parser_nested_name_specifier_opt): See if a pack-index-specifier + follows. + (cp_parser_qualifying_entity): Handle a C++26 pack-index-specifier. + (cp_parser_decltype_expr): Set id_expression_or_member_access_p for + pack indexing. + (cp_parser_mem_initializer_id): Handle a C++26 pack-index-specifier. + (cp_parser_simple_type_specifier): Likewise. + (cp_parser_base_specifier): Likewise. + * pt.cc (iterative_hash_template_arg) <case PACK_INDEX_TYPE, + PACK_INDEX_EXPR>: New case. + (find_parameter_packs_r) <case PACK_INDEX_TYPE, PACK_INDEX_EXPR>: New + case. + (make_pack_index): New. + (tsubst_pack_index): New. + (tsubst): Avoid tsubst on PACK_INDEX_TYPE. + <case TYPENAME_TYPE>: Add a call to error. + <case PACK_INDEX_TYPE>: New case. + (tsubst_expr) <case PACK_INDEX_EXPR>: New case. + (dependent_type_p_r): Return true for PACK_INDEX_TYPE. + (type_dependent_expression_p): Recurse on PACK_INDEX_PACK for + PACK_INDEX_EXPR. + * ptree.cc (cxx_print_type) <case PACK_INDEX_TYPE>: New case. + * semantics.cc (finish_parenthesized_expr): Set + PACK_INDEX_PARENTHESIZED_P for PACK_INDEX_EXPR. + (finish_type_pack_element): Adjust error messages. + (pack_index_element): New. + * tree.cc (cp_tree_equal) <case PACK_INDEX_EXPR>: New case. + (cp_walk_subtrees) <case PACK_INDEX_TYPE, PACK_INDEX_EXPR>: New case. + * typeck.cc (structural_comptypes) <case PACK_INDEX_TYPE>: New case. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c++/78620 + PR c++/117256 + * init.cc (build_zero_init_1): Set CONSTRUCTOR_ZERO_PADDING_BITS. + (build_value_init_noctor): Likewise. + * constexpr.cc (cxx_eval_store_expression): Propagate + CONSTRUCTOR_ZERO_PADDING_BITS flag. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/82892 + * name-lookup.cc (suggest_alternatives_for_1): Provide hints for + missing command-line options. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c++/87850 + * call.cc (convert_like_real): Call maybe_emit_indirection_note + for "invalid conversion" diagnostic. + * typeck.cc (compatible_types_for_indirection_note_p): New + function. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/104896 + * cvt.cc (maybe_warn_nodiscard): Replace "%<%s%>" with "%qs" in + message wording. + 2024-11-27 Jason Merrill <ja...@redhat.com> * module.cc (trees_out::core_bools): Check vague_linkage_p. diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 5d2be55a36c4..c844cbb07781 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,22 @@ +2024-11-28 Steven G. Kargl <kar...@comcast.net> + + PR fortran/117765 + * resolve.cc (pure_subroutine): Check for an impure subroutine + call in a BLOCK construct nested within a DO CONCURRENT block. + +2024-11-28 Harald Anlauf <anl...@gmx.de> + + PR fortran/117791 + * trans-io.cc (gfc_trans_transfer): When an array index depends on + a function evaluation or an expression, do not use optimized array + I/O of an array section and fall back to normal scalarization. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/104896 + * resolve.cc (resolve_operator): Replace "%<%s%>" with "%qs" in + message wording. + 2024-11-27 Paul Thomas <pa...@gcc.gnu.org> PR fortran/84674 diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index c70df8f98909..016ae9cebbca 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,15 @@ +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/104896 + * gofrontend/embed.cc (Gogo::initializer_for_embeds): Replace + "%<%s%>" with "%qs" in message wording. + * gofrontend/expressions.cc + (Selector_expression::lower_method_expression): Likewise. + * gofrontend/gogo.cc (Gogo::set_package_name): Likewise. + (Named_object::export_named_object): Likewise. + * gofrontend/parse.cc (Parse::struct_type): Likewise. + (Parse::parameter_list): Likewise. + 2024-11-22 Andrew Pinski <quic_apin...@quicinc.com> PR bootstrap/117737 diff --git a/gcc/rust/ChangeLog b/gcc/rust/ChangeLog index b989067dddfd..dc7357ca676f 100644 --- a/gcc/rust/ChangeLog +++ b/gcc/rust/ChangeLog @@ -1,3 +1,45 @@ +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/104896 + * backend/rust-compile-expr.cc + (CompileExpr::compile_integer_literal): Replace "%<%s%>" with + "%qs" in message wording. + (CompileExpr::compile_float_literal): Likewise. + * backend/rust-compile-intrinsic.cc (Intrinsics::compile): + Likewise. + * backend/rust-tree.cc (maybe_warn_nodiscard): Likewise. + * checks/lints/rust-lint-scan-deadcode.h: Likewise. + * lex/rust-lex.cc (Lexer::parse_partial_unicode_escape): Likewise. + (Lexer::parse_raw_byte_string): Likewise. + * lex/rust-token.cc (Token::get_str): Likewise. + * metadata/rust-export-metadata.cc + (PublicInterface::write_to_path): Likewise. + * parse/rust-parse.cc + (peculiar_fragment_match_compatible_fragment): Likewise. + (peculiar_fragment_match_compatible): Likewise. + * resolve/rust-ast-resolve-path.cc (ResolvePath::resolve_path): + Likewise. + * resolve/rust-ast-resolve-toplevel.h: Likewise. + * resolve/rust-ast-resolve-type.cc (ResolveRelativeTypePath::go): + Likewise. + * rust-session-manager.cc (validate_crate_name): Likewise. + (Session::load_extern_crate): Likewise. + * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): + Likewise. + (TypeCheckExpr::resolve_fn_trait_call): Likewise. + * typecheck/rust-hir-type-check-implitem.cc + (TypeCheckImplItemWithTrait::visit): Likewise. + * typecheck/rust-hir-type-check-item.cc + (TypeCheckItem::validate_trait_impl_block): Likewise. + * typecheck/rust-hir-type-check-struct.cc + (TypeCheckStructExpr::visit): Likewise. + * typecheck/rust-tyty-call.cc (TypeCheckCallExpr::visit): + Likewise. + * typecheck/rust-tyty.cc (BaseType::bounds_compatible): Likewise. + * typecheck/rust-unify.cc (UnifyRules::emit_abi_mismatch): + Likewise. + * util/rust-attributes.cc (AttributeChecker::visit): Likewise. + 2024-11-22 Andrew Pinski <quic_apin...@quicinc.com> PR bootstrap/117737 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b3f887692930..c92c73b1e145 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,124 @@ +2024-11-28 Steven G. Kargl <kar...@comcast.net> + + PR fortran/117765 + * gfortran.dg/impure_fcn_do_concurrent.f90: Update test to catch + calls to an impure subroutine. + +2024-11-28 Harald Anlauf <anl...@gmx.de> + + PR fortran/117791 + * gfortran.dg/bounds_check_array_io.f90: New test. + +2024-11-28 Marek Polacek <pola...@redhat.com> + + PR c++/113798 + * g++.dg/cpp26/feat-cxx26.C (__cpp_pack_indexing): Add test. + +2024-11-28 Marek Polacek <pola...@redhat.com> + + PR c++/113798 + * g++.dg/cpp26/pack-indexing1.C: New test. + * g++.dg/cpp26/pack-indexing2.C: New test. + * g++.dg/cpp26/pack-indexing3.C: New test. + * g++.dg/cpp26/pack-indexing4.C: New test. + * g++.dg/cpp26/pack-indexing5.C: New test. + * g++.dg/cpp26/pack-indexing6.C: New test. + * g++.dg/cpp26/pack-indexing7.C: New test. + * g++.dg/cpp26/pack-indexing8.C: New test. + * g++.dg/cpp26/pack-indexing9.C: New test. + * g++.dg/cpp26/pack-indexing10.C: New test. + * g++.dg/cpp26/pack-indexing11.C: New test. + * g++.dg/modules/pack-index-1_a.C: New test. + * g++.dg/modules/pack-index-1_b.C: New test. + +2024-11-28 Mariam Arutunian <mariamarutun...@gmail.com> + + * gcc.dg/crc-builtin-rev-target32.c: New test. + * gcc.dg/crc-builtin-rev-target64.c: New test. + * gcc.dg/crc-builtin-target32.c: New test. + * gcc.dg/crc-builtin-target64.c: New test. + Signed-off-by: Mariam Arutunian <mariamarutun...@gmail.com> + Co-authored-by: Joern Rennecke <joern.renne...@embecosm.com> + Co-authored-by: Jeff Law <j...@ventanamicro.com> + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR target/116675 + * gcc.target/i386/pr116675.c: Add -save-temps to dg-options. + Scan for pand\t rather than pand. + +2024-11-28 Thomas Schwinge <tschwi...@baylibre.com> + + * g++.dg/tree-ssa/empty-loop.C: Address UNRESOLVED. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c/117023 + * gcc.dg/nonnull-8.c: New test. + * gcc.dg/nonnull-9.c: New test. + * gcc.dg/nonnull-10.c: New test. + * c-c++-common/ubsan/nonnull-6.c: New test. + * c-c++-common/ubsan/nonnull-7.c: New test. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + * gcc.target/powerpc/asm-redzone-1.c: New test. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + * gcc.dg/asm-redzone-1.c: New test. + * gcc.target/i386/asm-redzone-1.c: New test. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c++/78620 + PR c++/117256 + * g++.dg/cpp0x/zero-init1.C: New file. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c++/116416 + * gcc.dg/plugin/infoleak-1.c (test_union_2b, test_union_4b): Expect + diagnostics. + * gcc.dg/c23-empty-init-5.c: New test. + * gcc.dg/gnu11-empty-init-1.c: New test. + * gcc.dg/gnu11-empty-init-2.c: New test. + * gcc.dg/gnu11-empty-init-3.c: New test. + * gcc.dg/gnu11-empty-init-4.c: New test. + +2024-11-28 Tamar Christina <tamar.christ...@arm.com> + + PR tree-optimization/117557 + * gcc.target/aarch64/pr117557.c: New test. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR tree-optimization/117358 + * gcc.c-torture/compile/pr117358.c: New test. + +2024-11-28 Jakub Jelinek <ja...@redhat.com> + + PR c/117802 + * gcc.dg/builtin-iseqsig-1.c: New test. + * gcc.dg/bitint-118.c: New test. + +2024-11-28 Joseph Myers <josmy...@redhat.com> + + PR c/117757 + * gcc.dg/pr117757-1.c: New test. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/82892 + * c-c++-common/spellcheck-missing-option.c: New test. + +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c++/87850 + * c-c++-common/indirection-fixits.c: New test. + * g++.dg/template/error60.C: Add fix-it hint to expected output. + * g++.dg/template/error60a.C: Likewise. + 2024-11-27 Jan Hubicka <hubi...@ucw.cz> * g++.dg/tree-ssa/empty-loop.C: xfail optimization at cddce2 and check diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index e15f63d033aa..ef9208060e78 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,9 @@ +2024-11-28 David Malcolm <dmalc...@redhat.com> + + PR c/104896 + * pch.cc (cpp_valid_state): Replace "%<%s%>" with "%qs" in message + wording. + 2024-11-27 Jason Merrill <ja...@redhat.com> * files.cc (_cpp_stack_file): Handle -include of header unit more diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 82533d6e9048..b09e42356eb8 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2024-11-28 Thomas Schwinge <tschwi...@baylibre.com> + + * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c + [!__cplusplus]: Don't 'typedef int bool;'. + 2024-11-21 Rainer Orth <r...@cebitec.uni-bielefeld.de> * testsuite/libgomp.c/alloc-pinned-3.c [!__linux__] diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index dbfe48479c0d..e13cb56d1f14 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,46 @@ +2024-11-28 Jonathan Wakely <jwak...@redhat.com> + + * include/std/stacktrace (basic_stacktrace::_M_impl::_M_resize): + Use std::_Destroy to destroy removed elements. + +2024-11-28 Jonathan Wakely <jwak...@redhat.com> + + * python/libstdcxx/v6/printers.py: Reorder registrations. + +2024-11-28 Jonathan Wakely <jwak...@redhat.com> + + PR libstdc++/117822 + * include/std/stacktrace (stacktrace(stacktrace&&, const A&)): + Fix typo in qualified-id for is_always_equal trait. + * testsuite/19_diagnostics/stacktrace/stacktrace.cc: Test + allocator-extended constructors and allocator propagation. + +2024-11-28 Jonathan Wakely <jwak...@redhat.com> + + * include/bits/stl_relops.h (rel_ops): Add deprecated attribute. + * testsuite/20_util/headers/utility/using_namespace_std_rel_ops.cc: + Add dg-warning for -Wdeprecated warnings. + * testsuite/20_util/rel_ops.cc: Likewise. + * testsuite/util/testsuite_containers.h: Disable -Wdeprecated + warnings when using rel_ops. + +2024-11-28 Jonathan Wakely <jwak...@redhat.com> + + * include/bits/stl_list.h: Reduce duplication in doxygen + comments. + +2024-11-28 Marek Polacek <pola...@redhat.com> + + PR c++/113798 + * testsuite/20_util/tuple/element_access/get_neg.cc: Adjust + dg-prune-output. + +2024-11-28 Jonathan Wakely <jwak...@redhat.com> + + PR libstdc++/117210 + * config/os/bsd/dragonfly/os_defines.h: Include <sys/cdefs.h>. + * config/os/bsd/freebsd/os_defines.h: Likewise. + 2024-11-27 Jan Hubicka <hubi...@ucw.cz> * include/bits/basic_string.h (basic_string::size(),