diff options
author | GCC Administrator <gccadmin@gcc.gnu.org> | 2024-10-16 11:37:33 +0000 |
---|---|---|
committer | GCC Administrator <gccadmin@gcc.gnu.org> | 2024-10-16 11:37:33 +0000 |
commit | d9e02add88d45f9f6d35f0caaefe9f0c1907a510 (patch) | |
tree | 2ce239ef15c5fe7b9f47bff962fcfaeb5cf52d6e /gcc | |
parent | 62cdddd4e621a8182c58161188009f1e9b256e1b (diff) | |
download | gcc-d9e02add88d45f9f6d35f0caaefe9f0c1907a510.zip gcc-d9e02add88d45f9f6d35f0caaefe9f0c1907a510.tar.gz gcc-d9e02add88d45f9f6d35f0caaefe9f0c1907a510.tar.bz2 |
Daily bump.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 340 | ||||
-rw-r--r-- | gcc/DATESTAMP | 2 | ||||
-rw-r--r-- | gcc/c-family/ChangeLog | 54 | ||||
-rw-r--r-- | gcc/c/ChangeLog | 97 | ||||
-rw-r--r-- | gcc/cp/ChangeLog | 28 | ||||
-rw-r--r-- | gcc/fortran/ChangeLog | 22 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 309 |
7 files changed, 851 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e4249f..c0fb861 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,343 @@ +2024-10-16 Richard Biener <rguenther@suse.de> + + * tree-vect-stmts.cc (get_group_load_store_type): Move + VMAT_ELEMENTWISE fallback for single-element interleaving + of too large groups before overrun checking. + +2024-10-16 Richard Biener <rguenther@suse.de> + + PR tree-optimization/117050 + * tree-vect-slp.cc (vect_build_slp_tree_2): Properly handle + non-grouped masked loads when handling permutations. + +2024-10-16 Richard Biener <rguenther@suse.de> + + * tree-vectorizer.h (SLP_INSTANCE_UNROLLING_FACTOR): Remove. + (slp_instance::unrolling_factor): Likewise. + * tree-vect-slp.cc (vect_build_slp_instance): Do not set + SLP_INSTANCE_UNROLLING_FACTOR. Remove then dead code. + Compute and set max_nunits from the RHS nodes merged. + (vect_update_slp_vf_for_node): New function. + (vect_make_slp_decision): Use vect_update_slp_vf_for_node + to compute VF recursively. + (vect_build_slp_store_interleaving): Get max_nunits and + properly set that on the permute nodes built. + (vect_analyze_slp): Do not set SLP_INSTANCE_UNROLLING_FACTOR. + +2024-10-16 Robin Dapp <rdapp@ventanamicro.com> + + PR target/116655 + * config/riscv/riscv-vector-costs.cc (max_number_of_live_regs): + Use biggest mode instead of constant's saved mode. + +2024-10-16 Jakub Jelinek <jakub@redhat.com> + + * gimplify.cc (gimplify_init_ctor_eval): For larger RAW_DATA_CST, + just gimplify cref as lvalue and add gimple assignment of rctor + to cref instead of going through gimplification of INIT_EXPR, as + the latter can suffer from infinite recursion. + +2024-10-16 Jakub Jelinek <jakub@redhat.com> + + * treestruct.def (TS_RAW_DATA_CST): New. + * tree.def (RAW_DATA_CST): New tree code. + * tree-core.h (struct tree_raw_data): New type. + (union tree_node): Add raw_data_cst member. + * tree.h (RAW_DATA_LENGTH, RAW_DATA_POINTER, RAW_DATA_OWNER): Define. + (gt_ggc_mx, gt_pch_nx): Declare overloads for tree_raw_data *. + * tree.cc (tree_node_structure_for_code): Handle RAW_DATA_CST. + (initialize_tree_contains_struct): Handle TS_RAW_DATA_CST. + (tree_code_size): Handle RAW_DATA_CST. + (initializer_zerop): Likewise. + (gt_ggc_mx, gt_pch_nx): Define overloads for tree_raw_data *. + * gimplify.cc (gimplify_init_ctor_eval): Handle RAW_DATA_CST. + * fold-const.cc (operand_compare::operand_equal_p): Handle + RAW_DATA_CST. Formatting fix. + (operand_compare::hash_operand): Handle RAW_DATA_CST. + (native_encode_initializer): Likewise. + (get_array_ctor_element_at_index): Likewise. + (fold): Likewise. + * gimple-fold.cc (fold_array_ctor_reference): Likewise. Formatting + fix. + * varasm.cc (const_hash_1): Handle RAW_DATA_CST. + (initializer_constant_valid_p_1): Likewise. + (array_size_for_constructor): Likewise. + (output_constructor_regular_field): Likewise. + * expr.cc (categorize_ctor_elements_1): Likewise. + (expand_expr_real_1) <case ARRAY_REF>: Punt for RAW_DATA_CST. + * tree-streamer.cc (streamer_check_handled_ts_structures): Mark + TS_RAW_DATA_CST as handled. + * tree-streamer-in.cc (streamer_alloc_tree): Handle RAW_DATA_CST. + (lto_input_ts_raw_data_cst_tree_pointers): New function. + (streamer_read_tree_body): Call it for RAW_DATA_CST. + * tree-streamer-out.cc (write_ts_raw_data_cst_tree_pointers): New + function. + (streamer_write_tree_body): Call it for RAW_DATA_CST. + (streamer_write_tree_header): Handle RAW_DATA_CST. + * lto-streamer-out.cc (DFS::DFS_write_tree_body): Handle RAW_DATA_CST. + * tree-pretty-print.cc (dump_generic_node): Likewise. + +2024-10-16 Sam James <sam@gentoo.org> + + * config/vax/vax.opt.urls: Adjust index for -mlra. + +2024-10-16 Sam James <sam@gentoo.org> + + PR target/113952 + * config/sparc/sparc.cc (sparc_lra_p): Delete. + (TARGET_LRA_P): Ditto. + (sparc_option_override): Don't use MASK_LRA. + * config/sparc/sparc.md (disabled,enabled): Drop lra attribute. + * config/sparc/sparc.opt: Delete -mlra. + * config/sparc/sparc.opt.urls: Ditto. + * doc/invoke.texi (SPARC options): Drop -mlra and -mno-lra. + +2024-10-15 Qing Zhao <qing.zhao@oracle.com> + + PR c/116016 + * doc/extend.texi: Add documentation for __builtin_counted_by_ref. + +2024-10-15 Jakub Jelinek <jakub@redhat.com> + + PR middle-end/116891 + * match.pd ((negate (fmas@3 @0 @1 @2)) -> (IFN_FNMS @0 @1 @2)): + Only enable for !HONOR_SIGN_DEPENDENT_ROUNDING. + ((negate (IFN_FMS@3 @0 @1 @2)) -> (IFN_FNMA @0 @1 @2)): Likewise. + ((negate (IFN_FNMA@3 @0 @1 @2)) -> (IFN_FMS @0 @1 @2)): Likewise. + +2024-10-15 Andrew Pinski <quic_apinski@quicinc.com> + + PR c++/117157 + * doc/invoke.texi (Wno-changes-meaning): Add opindex. + +2024-10-15 Uros Bizjak <ubizjak@gmail.com> + + PR target/117116 + * config/i386/i386-expand.cc (expand_vector_set): Force "val" + into a register before VEC_MERGE/VEC_DUPLICATE RTX is generated + if it doesn't satisfy nonimmediate_operand predicate. + +2024-10-15 Andrew Pinski <quic_apinski@quicinc.com> + + * tree-ssa-dce.cc (perform_tree_ssa_dce): Remove FIXME note. + +2024-10-15 Andrew Pinski <quic_apinski@quicinc.com> + + * gen-pass-instances.awk: Remove the limit of the params. + * pass_manager.h (NEXT_PASS_WITH_ARG2): Rename to ... + (NEXT_PASS_WITH_ARGS): This. + * passes.cc (NEXT_PASS_WITH_ARG2): Rename to ... + (NEXT_PASS_WITH_ARGS): This and support more than 2 params by using + a constexpr array. + +2024-10-15 Richard Biener <rguenther@suse.de> + + PR tree-optimization/116907 + * tree-ssa-live.cc (clear_unused_block_pointer_in_block): New + helper. + (clear_unused_block_pointer): Call it. + +2024-10-15 Pan Li <pan2.li@intel.com> + + PR middle-end/117141 + * match.pd: Remove the dup pattern for signed SAT_SUB. + +2024-10-15 Tamar Christina <tamar.christina@arm.com> + + * tree-vectorizer.h (vect_mem_access_type): New. + * config/aarch64/aarch64.cc (aarch64_ld234_st234_vectors): Use it. + (aarch64_detect_vector_stmt_subtype): Likewise. + (aarch64_adjust_stmt_cost): Likewise. + (aarch64_vector_costs::count_ops): Likewise. + (aarch64_vector_costs::add_stmt_cost): Make SLP node named. + +2024-10-15 Richard Biener <rguenther@suse.de> + + PR tree-optimization/117138 + * gimple-range-fold.cc (fold_using_range::condexpr_adjust): + Check if the comparison operand type is supported. + +2024-10-15 Richard Biener <rguenther@suse.de> + + PR middle-end/117137 + * expr.cc (expand_cond_expr_using_cmove): Make sure to + expand vector comparisons separately. + +2024-10-15 Richard Biener <rguenther@suse.de> + + PR tree-optimization/117147 + * tree-vect-slp.cc (vect_build_slp_tree_1): Put vars and + initialization of per-lane data into the per-lane processing + loop to avoid re-using previous lane state. + +2024-10-15 Jennifer Schmitz <jschmitz@nvidia.com> + + * config/aarch64/aarch64-sve-builtins-base.cc (svmul_impl::fold): + Implement fold to svlsl for power-of-2 operands. + +2024-10-15 Jakub Jelinek <jakub@redhat.com> + + * doc/invoke.texi (Wtrailing-whitespace): Document. + +2024-10-15 Jakub Jelinek <jakub@redhat.com> + + PR bootstrap/117110 + * Makefile.in (generated_files, generated_match_files, + build/genmatch$(build_exeext), LINKER_FOR_BUILD): Revert + 2024-10-12 changes. + * genmatch.cc: Don't include pretty-print.h and input.h. + (fatal, ggc_internal_cleared_alloc, ggc_free, line_table, + linemap_client_expand_location_to_spelling_point): Revert + 2024-10-12 changes. + (DIAG_ARGMAX): Define. + (diag_integer_with_precision): Define. + (diag_vfprintf): New function. + (diagnostic_cb): Use diag_vfprintf instead of pp_format_verbatim. + (output_line_directive): Revert 2024-10-12 changes. + +2024-10-14 David Malcolm <dmalcolm@redhat.com> + + PR bootstrap/117109 + * diagnostic-format-sarif.cc + (diagnostic_output_format_init_sarif_file): Rename + diagnostic_context::emit_diagnostic to + diagnostic_context::emit_diagnostic_with_group. + * diagnostic.cc (diagnostic_context::emit_diagnostic): Rename + to... + (diagnostic_context::emit_diagnostic_with_group): ...this. + (diagnostic_context::emit_diagnostic_va): Rename to... + (diagnostic_context::emit_diagnostic_with_group_va): ...this. + * diagnostic.h (diagnostic_context::emit_diagnostic): Rename to... + (diagnostic_context::emit_diagnostic_with_group): ...this. + (diagnostic_context::emit_diagnostic_va): Rename to... + (diagnostic_context::emit_diagnostic_with_group_va): ...this. + +2024-10-14 Andre Vieira <andre.simoesdiasvieira@arm.com> + Andrew Pinski <quic_apinski@quicinc.com> + + PR middle-end/116997 + * fold-const.cc (fold_ternary_loc): Fix BIT_INSERT_EXPR constant folding + for BYTES_BIG_ENDIAN targets. + +2024-10-14 Andrew Pinski <quic_apinski@quicinc.com> + + * tree-ssa-dce.cc (tree_ssa_dce): Remove. + (tree_ssa_cd_dce): Remove. + (class pass_dce_base): New class. + (class pass_dce): Use pass_dce_base as the base class. + (class pass_cd_dce): Likewise. + +2024-10-14 Andrew Pinski <quic_apinski@quicinc.com> + + PR tree-optimization/117096 + * passes.def: Update some of the dce/cd-cde passes setting + the 2nd arg to true. + Also remove comment about stdarg since dce does it. + * tree-ssa-dce.cc (pass_dce): Add remove_unused_locals_p field. + Update set_pass_param to allow for 2nd param. + Use remove_unused_locals_p in execute to return TODO_remove_unused_locals. + (pass_cd_dce): Likewise. + * tree-stdarg.cc (pass_data_stdarg): Remove TODO_remove_unused_locals. + +2024-10-14 Andrew Pinski <quic_apinski@quicinc.com> + + * gen-pass-instances.awk (END): Handle processing + of multiple arguments to NEXT_PASS. Also error out + if using more than max_number_args (2). + * pass_manager.h (NEXT_PASS_WITH_ARG2): New define. + * passes.cc (NEXT_PASS_WITH_ARG2): New define. + +2024-10-14 Andrew Pinski <quic_apinski@quicinc.com> + + * gen-pass-instances.awk: Print out the #undefs. + * pass_manager.h: Don't #undef INSERT_PASSES_AFTER, + PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES, NEXT_PASS, + NEXT_PASS_WITH_ARG, and TERMINATE_PASS_LIST. + * passes.cc: Likewise. + +2024-10-14 Tamar Christina <tamar.christina@arm.com> + + PR tree-optimization/116956 + * tree-vectorizer.cc (vec_info::move_dr): Copy STMT_VINFO_STRIDED_P. + +2024-10-14 Tamar Christina <tamar.christina@arm.com> + + PR rtl-optimization/117012 + * simplify-rtx.cc (simplify_context::simplify_binary_operation_1): Use + const_vec_duplicate_p instead of CONST_VECTOR_DUPLICATE_P. + +2024-10-14 Tamar Christina <tamar.christina@arm.com> + + PR target/116371 + * config/aarch64/aarch64-sve-builtins-sve2.cc (class svpsel_impl): + Renamed to ... + (class svpsel_lane_impl): ... This and adjust initialization. + * config/aarch64/aarch64-sve-builtins-sve2.def (svpsel): Renamed to ... + (svpsel_lane): ... This. + * config/aarch64/aarch64-sve-builtins-sve2.h (svpsel): Renamed to + svpsel_lane. + +2024-10-14 Tamar Christina <tamar.christina@arm.com> + + * tree-vect-loop.cc (vect_analyze_loop_2): Handle SLP trees with no + children. + * tree-vectorizer.h (enum slp_instance_kind): Add slp_inst_kind_gcond. + (LOOP_VINFO_EARLY_BREAKS_LIVE_IVS): New. + (vectorizable_early_exit): Expose. + (class _loop_vec_info): Add early_break_live_stmts. + * tree-vect-slp.cc (vect_build_slp_instance, vect_analyze_slp_instance): + Support gcond instances. + (vect_analyze_slp): Analyze gcond roots and early break live statements. + (maybe_push_to_hybrid_worklist): Don't sink gconds. + (vect_slp_analyze_operations): Support gconds. + (vect_slp_check_for_roots): Update comments. + (vectorize_slp_instance_root_stmt): Support gconds. + (vect_schedule_slp): Pass vinfo to vectorize_slp_instance_root_stmt. + * tree-vect-stmts.cc (vect_stmt_relevant_p): Record early break live + statements. + (vectorizable_early_exit): Support SLP. + +2024-10-14 Victor Do Nascimento <victor.donascimento@arm.com> + + PR middle-end/116926 + * optabs-query.cc (find_widening_optab_handler_and_mode): Add + handling of vector -> scalar optab handling. + +2024-10-14 Richard Sandiford <richard.sandiford@arm.com> + + PR target/116999 + PR target/117045 + * config/aarch64/aarch64-sve-builtins-base.cc + (svwhilelx_impl::fold): Check for WHILELTs of the minimum value + and WHILELEs of the maximum value. Fold them to all-false and + all-true respectively. + +2024-10-14 Richard Biener <rguenther@suse.de> + + PR middle-end/116891 + * match.pd ((negate (IFN_FNMS@3 @0 @1 @2)) -> (IFN_FMA @0 @1 @2)): + Only enable for !HONOR_SIGN_DEPENDENT_ROUNDING. + +2024-10-14 Pan Li <pan2.li@intel.com> + + * match.pd: Add matching pattern for vector signed SAT_SUB form 3. + +2024-10-14 Richard Biener <rguenther@suse.de> + + PR tree-optimization/116290 + * tree-loop-distribution.cc (determine_reduction_stmt_1): PHIs + have no debug variants. Start with first non-debug real stmt. + * tree-ssa-loop-ivopts.cc (find_givs_in_bb): Do not analyze + debug stmts. + +2024-10-14 Oleg Endo <olegendo@gcc.gnu.org> + Roger Sayle <roger@nextmovesoftware.com> + + PR target/113533 + * config/sh/sh.cc (sh_rtx_costs): Adjust cost estimation of MEM rtx + to be always at least COST_N_INSNS (1). Forward speed argument to + sh_address_cost. + 2024-10-13 Andreas Schwab <schwab@linux-m68k.org> * config/m68k/m68k.md ("movsi", "movxf"): Replace diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index d04e3ab..f776b88 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20241014 +20241016 diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index d2d8d75..e2b4af6 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,57 @@ +2024-10-16 Jakub Jelinek <jakub@redhat.com> + + * c-ppoutput.cc (token_streamer::stream): Add special code to spell + CPP_EMBED token. + * c-lex.cc (c_lex_with_flags): Handle CPP_EMBED. Formatting fix. + * c-common.cc (c_parse_error): Handle CPP_EMBED. + (braced_list_to_string): Optimize RAW_DATA_CST surrounded by + INTEGER_CSTs which match some bytes before or after RAW_DATA_CST in + its owner. + +2024-10-15 Qing Zhao <qing.zhao@oracle.com> + + PR c/116016 + * c-common.cc: Add new __builtin_counted_by_ref. + * c-common.h (enum rid): Add RID_BUILTIN_COUNTED_BY_REF. + +2024-10-15 Jakub Jelinek <jakub@redhat.com> + + PR c/117022 + * c-common.def (FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT, + CONTINUE_STMT, SWITCH_STMT): Add an extra operand, *_NAME + and document it. + * c-common.h (bc_hash_map_t): New typedef. + (struct bc_state): Add bc_hash_map member. + (WHILE_NAME, DO_NAME, FOR_NAME, BREAK_NAME, CONTINUE_NAME, + SWITCH_STMT_NAME): Define. + * c-pretty-print.cc (c_pretty_printer::statement): Print + BREAK_STMT or CONTINUE_STMT operand if any. + * c-gimplify.cc (bc_hash_map): New static variable. + (note_named_bc, release_named_bc): New functions. + (save_bc_state): Save and clear bc_hash_map. + (restore_bc_state): Assert NULL and restore bc_hash_map. + (genericize_c_loop): Add NAME argument, call note_named_bc + and release_named_bc if non-NULL around the body walk. + (genericize_for_stmt, genericize_while_stmt, genericize_do_stmt): + Adjust callers of it. + (genericize_switch_stmt): Rename break_block variable to blab. + Call note_named_bc and release_named_bc if SWITCH_STMT_NAME is + non-NULL around the body walk. + (genericize_continue_stmt): Handle non-NULL CONTINUE_NAME. + (genericize_break_stmt): Handle non-NULL BREAK_NAME. + (c_genericize): Delete and clear bc_hash_map. + +2024-10-15 Andrew Pinski <quic_apinski@quicinc.com> + + PR c++/117157 + * c.opt.urls: Regenerate. + +2024-10-15 Jakub Jelinek <jakub@redhat.com> + + * c.opt (Wtrailing-whitespace=): New option. + (Wtrailing-whitespace): New alias. + * c.opt.urls: Regenerate. + 2024-10-12 Jakub Jelinek <jakub@redhat.com> * c-lex.cc (c_common_has_attribute, diff --git a/gcc/c/ChangeLog b/gcc/c/ChangeLog index 57ae453..09af85c 100644 --- a/gcc/c/ChangeLog +++ b/gcc/c/ChangeLog @@ -1,3 +1,100 @@ +2024-10-16 Jakub Jelinek <jakub@redhat.com> + + * c-tree.h (c_maybe_optimize_large_byte_initializer): Declare. + * c-parser.cc (c_parser_initval): Attempt to optimize large char array + initializers into RAW_DATA_CST. + * c-typeck.cc (c_maybe_optimize_large_byte_initializer): New function. + +2024-10-16 Jakub Jelinek <jakub@redhat.com> + + * c-parser.cc (c_parser_braced_init): Handle CPP_EMBED. + (c_parser_get_builtin_args): Likewise. + (c_parser_expression): Likewise. + (c_parser_expr_list): Likewise. + * c-typeck.cc (digest_init): Handle RAW_DATA_CST. Formatting fix. + (init_node_successor): New function. + (add_pending_init): Handle RAW_DATA_CST. + (set_nonincremental_init): Formatting fix. + (output_init_element): Handle RAW_DATA_CST. Formatting fixes. + (maybe_split_raw_data): New function. + (process_init_element): Use maybe_split_raw_data. Handle + RAW_DATA_CST. + +2024-10-15 Qing Zhao <qing.zhao@oracle.com> + + PR c/116016 + * c-decl.cc (names_builtin_p): Add RID_BUILTIN_COUNTED_BY_REF. + * c-parser.cc (has_counted_by_object): New routine. + (get_counted_by_ref): New routine. + (c_parser_postfix_expression): Handle New RID_BUILTIN_COUNTED_BY_REF. + * c-tree.h: New routine handle_counted_by_for_component_ref. + * c-typeck.cc (handle_counted_by_for_component_ref): New routine. + (build_component_ref): Call the new routine. + +2024-10-15 Jakub Jelinek <jakub@redhat.com> + + PR c/117022 + * c-tree.h: Implement C2Y N3355 - Named loops. + (C_DECL_LOOP_NAME, C_DECL_SWITCH_NAME, C_DECL_LOOP_SWITCH_NAME_VALID, + C_DECL_LOOP_SWITCH_NAME_USED, IN_NAMED_STMT): Define. + (c_get_loop_names, c_release_loop_names, c_finish_bc_name): Declare. + (c_start_switch): Add NAME argument. + (c_finish_bc_stmt): Likewise. + * c-lang.h (struct language_function): Add loop_names and + loop_names_hash members. + * c-parser.cc (c_parser_external_declaration, + c_parser_declaration_or_fndef, c_parser_struct_or_union_specifier, + c_parser_parameter_declaration): Adjust c_parser_pragma caller. + (get_before_labels): New function. + (c_parser_compound_statement_nostart): Call get_before_labels when + needed, adjust c_parser_pragma and c_parser_statement_after_labels + callers. + (c_parser_statement): Call get_before_labels first and pass it to + c_parser_statement_after_labels. + (c_parser_bc_name): New function. + (c_parser_statement_after_labels): Add BEFORE_LABELS argument. Pass + it down to c_parser_switch_statement, c_parser_while_statement, + c_parser_do_statement, c_parser_for_statement and c_parser_pragma. + Call c_parser_bc_name for RID_BREAK and RID_CONTINUE and pass it as + another argument to c_finish_bc_stmt. + (c_parser_if_body, c_parser_else_body): Call get_before_labels + early and pass it to c_parser_statement_after_labels. + (c_parser_switch_statement): Add BEFORE_LABELS argument. Call + c_get_loop_names, if named, pass switch_name to c_start_switch, + mark it valid and set IN_NAMED_STMT bit in in_statement before + parsing body, otherwise clear IN_NAMED_STMT bit before that parsing. + Run c_release_loop_names at the end. + (c_parser_while_statement, c_parser_do_statement, + c_parser_for_statement): Add BEFORE_LABELS argument. Call + c_get_loop_names, if named, mark it valid and set IN_NAMED_STMT bit + in in_statement before parsing body, otherwise clear IN_NAMED_STMT + before that parsing, arrange for the loop name if used to be + another *_STMT argument. + (c_parser_objc_class_instance_variables, + c_parser_objc_methodprotolist): Adjust c_parser_pragma callers. + (c_parser_pragma): Add BEFORE_LABELS argument. Pass it down to + c_parser_for_statement, c_parser_while_statement or + c_parser_do_statement. + (c_parser_omp_loop_nest, c_maybe_parse_omp_decl): Adjust + c_parser_pragma callers. + * c-decl.cc (loop_names, loop_names_hash): New static variables. + (add_stmt): Set STATEMENT_LIST_HAS_LABEL after push_stmt_list rather + than before it. + (c_push_function_context): Save and clear loop_names and + loop_names_hash. + (c_pop_function_context): Release or delete, restore and clear + loop_names and loop_names_hash. + (c_get_loop_names, c_release_loop_names, c_finish_bc_name): New + functions. + * c-typeck.cc (c_start_switch): Add SWITCH_NAME argument, pass it down + to build_stmt. + (c_finish_bc_stmt): Add NAME argument. Mark of IN_NAMED_STMT bit + of in_statement in swtiches. Use label for IN_OBJC_FOREACH only if + name is NULL. If name is non-NULL and C_DECL_LOOP_NAME and + C_DECL_SWITCH_NAME are both set, assume outer ObjC foreach and + dig labels from DECL_CHAIN of name. Pass NAME to build_stmt + otherwise. + 2024-10-07 qing zhao <qing.zhao@oracle.com> PR c/116735 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d87b318..ac22206 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,31 @@ +2024-10-15 Jakub Jelinek <jakub@redhat.com> + + PR c/117022 + * semantics.cc (begin_while_stmt, begin_do_stmt, begin_for_stmt, + finish_break_stmt, finish_continue_stmt, begin_switch_stmt): Pass + another NULL_TREE to build_stmt calls. + +2024-10-15 Patrick Palka <ppalka@redhat.com> + + PR c++/116710 + * pt.cc (unify) <case REFERENCE_TYPE>: Compare rvalueness. + +2024-10-15 Patrick Palka <ppalka@redhat.com> + + PR c++/117054 + * pt.cc (extract_locals_r): Disable tree_extra_args assert + for LAMBDA_EXPR. + +2024-10-14 Jason Merrill <jason@redhat.com> + + * cp-tree.h (most_constrained_function): Declare.. + * class.cc (resolve_address_of_overloaded_function): Call it. + * pt.cc (get_template_for_ordering): Handle list from + resolve_address_of_overloaded_function. + (most_constrained_function): No longer static. + (resolve_overloaded_unification): Always compare type rather + than decl. + 2024-10-13 Simon Martin <simon@nasilyan.com> Revert: diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 2023ccac..8345397 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,25 @@ +2024-10-15 Thomas Schwinge <tschwinge@baylibre.com> + Harald Anlauf <anlauf@gmx.de> + + PR fortran/82250 + PR fortran/82251 + PR fortran/117136 + * trans-expr.cc (gfc_conv_procedure_call): Initialize + 'is_builtin'. + (conv_function_val): Clean up. + +2024-10-14 Andre Vehreschild <vehre@gcc.gnu.org> + + PR fortran/77871 + * trans-expr.cc (gfc_conv_derived_to_class): Assign token when + converting a coarray to class. + (gfc_get_tree_for_caf_expr): For classes get the caf decl from + the saved descriptor. + (gfc_get_caf_token_offset):Assert that coarray=lib is set and + cover more cases where the tree having the coarray token can be. + * trans-intrinsic.cc (gfc_conv_intrinsic_caf_get): Use unified + test for pointers. + 2024-10-13 Tobias Burnus <tburnus@baylibre.com> * gfortran.h (gfc_option_t): Add disable_acc_on_device. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7c2c252..bd31307 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,312 @@ +2024-10-16 Richard Biener <rguenther@suse.de> + + * gcc.dg/vect/pr65518.c: Adjust. + +2024-10-16 Joseph Myers <josmyers@redhat.com> + + * gcc.dg/c23-version-1.c, gcc.dg/c23-version-2.c, + gcc.dg/gnu23-version-1.c: New tests. + +2024-10-16 Robin Dapp <rdapp@ventanamicro.com> + + * gcc.target/riscv/rvv/autovec/pr116655.c: New test. + +2024-10-16 Jakub Jelinek <jakub@redhat.com> + + * c-c++-common/init-1.c: New test. + * c-c++-common/init-2.c: New test. + * c-c++-common/init-3.c: New test. + +2024-10-16 Jakub Jelinek <jakub@redhat.com> + + * c-c++-common/cpp/embed-24.c: New test. + +2024-10-16 Jakub Jelinek <jakub@redhat.com> + + * c-c++-common/cpp/embed-20.c: New test. + * c-c++-common/cpp/embed-21.c: New test. + * c-c++-common/cpp/embed-28.c: New test. + * gcc.dg/cpp/embed-8.c: New test. + * gcc.dg/cpp/embed-9.c: New test. + * gcc.dg/cpp/embed-10.c: New test. + * gcc.dg/cpp/embed-11.c: New test. + * gcc.dg/cpp/embed-12.c: New test. + * gcc.dg/cpp/embed-13.c: New test. + * gcc.dg/cpp/embed-14.c: New test. + * gcc.dg/cpp/embed-15.c: New test. + * gcc.dg/cpp/embed-16.c: New test. + * gcc.dg/pch/embed-1.c: New test. + * gcc.dg/pch/embed-1.hs: New test. + * gcc.dg/lto/embed-1_0.c: New test. + * gcc.dg/lto/embed-1_1.c: New test. + +2024-10-16 liuhongt <hongtao.liu@intel.com> + + PR testsuite/115365 + * gcc.dg/pr100927.c: Adjust testcase to avoid scan FIX in REG_EQUIV. + +2024-10-15 Qing Zhao <qing.zhao@oracle.com> + + PR c/116016 + * gcc.dg/builtin-counted-by-ref-1.c: New test. + * gcc.dg/builtin-counted-by-ref.c: New test. + +2024-10-15 Jakub Jelinek <jakub@redhat.com> + + PR c/117022 + * gcc.dg/c23-named-loops-1.c: New test. + * gcc.dg/c23-named-loops-5.c: New test. + * gcc.dg/c2y-named-loops-1.c: New test. + * gcc.dg/c2y-named-loops-2.c: New test. + * gcc.dg/c2y-named-loops-4.c: New test. + * gcc.dg/c2y-named-loops-5.c: New test. + * gcc.dg/c2y-named-loops-6.c: New test. + * gcc.dg/c2y-named-loops-7.c: New test. + * gcc.dg/gnu99-named-loops-1.c: New test. + * gcc.dg/gnu99-named-loops-2.c: New test. + * gcc.dg/gnu99-named-loops-3.c: New test. + * gcc.dg/gnu99-named-loops-4.c: New test. + * gcc.dg/gnu2y-named-loops-3.c: New test. + * gcc.dg/gomp/named-loops-1.c: New test. + * gcc.dg/gomp/named-loops-2.c: New test. + * objc.dg/named-loops-1.m: New test. + +2024-10-15 Patrick Palka <ppalka@redhat.com> + + PR c++/80637 + * g++.dg/cpp2a/concepts-fn9.C: New test. + +2024-10-15 Jakub Jelinek <jakub@redhat.com> + + PR middle-end/116891 + * gcc.dg/pr116891.c: New test. + * gcc.target/i386/fma-pr116891.c: New test. + +2024-10-15 Patrick Palka <ppalka@redhat.com> + + PR c++/116710 + * g++.dg/template/unify12.C: New test. + +2024-10-15 Patrick Palka <ppalka@redhat.com> + + PR c++/117054 + * g++.dg/cpp2a/lambda-targ9.C: New test. + +2024-10-15 Uros Bizjak <ubizjak@gmail.com> + + * gcc.target/i386/pr107432-9.c: Require AVX2 effective target. + Include avx2-check.h instead of avx-check.h. Define TEST to avx2_test. + +2024-10-15 David Malcolm <dmalcolm@redhat.com> + + * gcc.dg/plugin/analyzer_cpython_plugin.c: Use success_call_info + in a couple of places to avoid reimplementing get_desc. + +2024-10-15 David Malcolm <dmalcolm@redhat.com> + + * jit.dg/test-error-pr63969-missing-driver.c (create_code): When + breaking PATH, use setenv with a bogus value, rather than + unsetenv, in case the system uses a default path that contains + the driver binary. + +2024-10-15 Uros Bizjak <ubizjak@gmail.com> + + PR target/117116 + * gcc.target/i386/pr117116.c: New test. + +2024-10-15 Richard Biener <rguenther@suse.de> + + PR tree-optimization/117147 + * gcc.dg/vect/pr117147.c: New testcase. + +2024-10-15 Richard Biener <rguenther@suse.de> + + PR tree-optimization/117138 + * gcc.dg/torture/pr117138.c: New testcase. + +2024-10-15 Richard Biener <rguenther@suse.de> + + PR middle-end/117137 + * gcc.dg/torture/pr117137.c: New testcase. + +2024-10-15 Jennifer Schmitz <jschmitz@nvidia.com> + + * gcc.target/aarch64/sve/acle/asm/mul_s8.c: New test. + * gcc.target/aarch64/sve/acle/asm/mul_s16.c: Likewise. + * gcc.target/aarch64/sve/acle/asm/mul_s32.c: Likewise. + * gcc.target/aarch64/sve/acle/asm/mul_s64.c: Likewise. + * gcc.target/aarch64/sve/acle/asm/mul_u8.c: Likewise. + * gcc.target/aarch64/sve/acle/asm/mul_u16.c: Likewise. + * gcc.target/aarch64/sve/acle/asm/mul_u32.c: Likewise. + * gcc.target/aarch64/sve/acle/asm/mul_u64.c: Likewise. + * gcc.target/aarch64/sve/mul_const_run.c: Likewise. + +2024-10-15 Jakub Jelinek <jakub@redhat.com> + + * c-c++-common/cpp/Wtrailing-whitespace-1.c: New test. + * c-c++-common/cpp/Wtrailing-whitespace-2.c: New test. + * c-c++-common/cpp/Wtrailing-whitespace-3.c: New test. + * c-c++-common/cpp/Wtrailing-whitespace-4.c: New test. + * c-c++-common/cpp/Wtrailing-whitespace-5.c: New test. + * c-c++-common/cpp/Wtrailing-whitespace-6.c: New test. + * c-c++-common/cpp/Wtrailing-whitespace-7.c: New test. + * c-c++-common/cpp/Wtrailing-whitespace-8.c: New test. + * c-c++-common/cpp/Wtrailing-whitespace-9.c: New test. + * c-c++-common/cpp/Wtrailing-whitespace-10.c: New test. + +2024-10-15 Pan Li <pan2.li@intel.com> + + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-13.c: Add + compile option for expanding check. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-15.c: Ditto. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-22.c: Ditto. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add-29.c: Ditto. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm-15.c: Ditto. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_u_add_imm-7.c: Ditto. + * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-11.c: Ditto. + * gcc.target/riscv/rvv/autovec/unop/vec_sat_u_trunc-12.c: Ditto. + +2024-10-14 Jason Merrill <jason@redhat.com> + + * g++.dg/modules/cpp-2_c.C: Expect only one space after import. + * g++.dg/modules/cpp-5_c.C + * g++.dg/modules/dep-2.C + * g++.dg/modules/dir-only-2_b.C + * g++.dg/modules/pr99050_b.C + * g++.dg/modules/inc-xlate-1_b.H + * g++.dg/modules/legacy-3_b.H + * g++.dg/modules/legacy-3_c.H: Likewise. + +2024-10-14 Jason Merrill <jason@redhat.com> + + * g++.dg/DRs/dr2918.C: New test. + +2024-10-14 Andre Vieira <andre.simoesdiasvieira@arm.com> + Andrew Pinski <quic_apinski@quicinc.com> + + * gcc.dg/vect/pr116997.c: New test. + +2024-10-14 Lewis Hyatt <lhyatt@gmail.com> + + PR preprocessor/114436 + * c-c++-common/cpp/pragma-system-header-1.h: New test. + * c-c++-common/cpp/pragma-system-header-2.h: New test. + * c-c++-common/cpp/pragma-system-header.c: New test. + +2024-10-14 Lewis Hyatt <lhyatt@gmail.com> + + PR preprocessor/109704 + * c-c++-common/cpp/pragma-push-pop-utf8.c: New test. + * g++.dg/pch/pushpop-2.C: New test. + * g++.dg/pch/pushpop-2.Hs: New test. + * gcc.dg/pch/pushpop-2.c: New test. + * gcc.dg/pch/pushpop-2.hs: New test. + +2024-10-14 Andre Vehreschild <vehre@gcc.gnu.org> + + * gfortran.dg/coarray/dummy_3.f90: New test. + +2024-10-14 Tamar Christina <tamar.christina@arm.com> + + PR tree-optimization/116956 + * gfortran.dg/vect/pr116956.f90: New test. + +2024-10-14 Tamar Christina <tamar.christina@arm.com> + + PR rtl-optimization/117012 + * gcc.target/aarch64/pr117012.c: New test. + +2024-10-14 Tamar Christina <tamar.christina@arm.com> + + PR target/116371 + * gcc.target/aarch64/sme2/acle-asm/psel_b16.c, + gcc.target/aarch64/sme2/acle-asm/psel_b32.c, + gcc.target/aarch64/sme2/acle-asm/psel_b64.c, + gcc.target/aarch64/sme2/acle-asm/psel_b8.c, + gcc.target/aarch64/sme2/acle-asm/psel_c16.c, + gcc.target/aarch64/sme2/acle-asm/psel_c32.c, + gcc.target/aarch64/sme2/acle-asm/psel_c64.c, + gcc.target/aarch64/sme2/acle-asm/psel_c8.c: Renamed to.... + * gcc.target/aarch64/sme2/acle-asm/psel_lane_b16.c, + gcc.target/aarch64/sme2/acle-asm/psel_lane_b32.c, + gcc.target/aarch64/sme2/acle-asm/psel_lane_b64.c, + gcc.target/aarch64/sme2/acle-asm/psel_lane_b8.c, + gcc.target/aarch64/sme2/acle-asm/psel_lane_c16.c, + gcc.target/aarch64/sme2/acle-asm/psel_lane_c32.c, + gcc.target/aarch64/sme2/acle-asm/psel_lane_c64.c, + gcc.target/aarch64/sme2/acle-asm/psel_lane_c8.c: ... These. + +2024-10-14 Tamar Christina <tamar.christina@arm.com> + + * gcc.dg/vect/vect-early-break_126.c: New test. + * gcc.dg/vect/vect-early-break_127.c: New test. + * gcc.dg/vect/vect-early-break_128.c: New test. + +2024-10-14 Eric Botcazou <ebotcazou@adacore.com> + + PR ada/114593 + * gnat.dg/specs/generic_inst2-child2.ads: New test. + * gnat.dg/specs/generic_inst2.ads: New helper. + * gnat.dg/specs/generic_inst2-child1.ads: Likewise. + +2024-10-14 Richard Sandiford <richard.sandiford@arm.com> + + PR target/116999 + PR target/117045 + * gcc.target/aarch64/sve/acle/general/whilele_5.c: Fix bogus + expected result. + * gcc.target/aarch64/sve/acle/general/whilele_11.c: New test. + * gcc.target/aarch64/sve/acle/general/whilele_12.c: Likewise. + +2024-10-14 Pan Li <pan2.li@intel.com> + + * gcc.target/riscv/rvv/autovec/vec_sat_arith.h: Add test helper macros. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-4-i16.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-4-i32.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-4-i64.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-4-i8.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-4-i16.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-4-i32.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-4-i64.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-4-i8.c: New test. + +2024-10-14 Pan Li <pan2.li@intel.com> + + * gcc.target/riscv/rvv/autovec/vec_sat_arith.h: Add test helper macros. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-3-i16.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-3-i32.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-3-i64.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-3-i8.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-3-i16.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-3-i32.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-3-i64.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-3-i8.c: New test. + +2024-10-14 Pan Li <pan2.li@intel.com> + + * gcc.target/riscv/rvv/autovec/vec_sat_arith.h: Add test helper macros. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-2-i16.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-2-i32.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-2-i64.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-2-i8.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-2-i16.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-2-i32.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-2-i64.c: New test. + * gcc.target/riscv/rvv/autovec/binop/vec_sat_s_sub-run-2-i8.c: New test. + +2024-10-14 Richard Biener <rguenther@suse.de> + + PR tree-optimization/116290 + * gcc.dg/pr116290.c: New testcase. + +2024-10-14 Oleg Endo <olegendo@gcc.gnu.org> + + * gcc.target/sh/pr53512-1.c: Add -fno-math-errno option. + * gcc.target/sh/pr53512-2.c: Likewise. + * gcc.target/sh/pr53512-3.c: Likewise. + * gcc.target/sh/pr53512-4.c: Likewise. + * gcc.target/sh/pr54680.c: Likewise. + 2024-10-13 Simon Martin <simon@nasilyan.com> Revert: |