diff --git a/gcc/ChangeLog b/gcc/ChangeLog index db861ac573af..58335ba735ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,89 @@ +2024-09-05 Jeff Law + + * config/riscv/riscv.cc (riscv_expand_int_scc): For rv64, use a DI + temporary for the output and a promoted subreg to extract it into SI + arget. + (riscv_noce_conversion_profitable_p): Recognize new output from + sCC expansion too. + +2024-09-05 Marek Polacek + + * doc/invoke.texi: Remove an extra char in @item sme2. + +2024-09-05 Prathamesh Kulkarni + + * gimplify.cc (omp_add_variable): Check if decl size is not poly_int_tree_p. + (gimplify_adjust_omp_clauses): Likewise. + * omp-low.cc (scan_sharing_clauses): Likewise. + (lower_omp_target): Likewise. + +2024-09-05 Thomas Schwinge + + PR target/104957 + * config/nvptx/nvptx.cc (write_fn_proto_1): Revert 2022-03-22 + change; 'write_fn_marker' also for alias DECL. + (nvptx_asm_output_def_from_decls): 'write_fn_marker' for alias + DEF. + +2024-09-05 Thomas Schwinge + + * doc/sourcebuild.texi (Effective-Target Keywords): Document + 'nvptx_default_ptx_isa_version_at_least_6_0', + 'nvptx_runtime_alias_ptx'. + (Add Options): Document 'nvptx_alias_ptx'. + +2024-09-05 Tamar Christina + + * tree-vect-patterns.cc (vect_recog_cond_store_pattern): Use pattern + statement. + +2024-09-05 Tamar Christina + + * doc/invoke.texi: Remove duplicate armv9-a mention. + +2024-09-05 Jakub Jelinek + + * tree-vrp.cc (pass_vrp::execute): Start diagnostics with + lowercase u rather than capital U, use semicolon instead of dot. + +2024-09-05 YunQiang Su + + * common/config/riscv/riscv-common.cc(riscv_select_multilib_by_abi): + look up reversely as the fallback path is listed as the 1st one. + +2024-09-05 Richard Biener + + * tree-vect-slp.cc (vect_analyze_slp): Analyze SLP for live + but otherwise unused defs. + +2024-09-05 Thomas Schwinge + + * gen-pass-instances.awk: Handle 'PUSH_INSERT_PASSES_WITHIN'. + * pass_manager.h (PUSH_INSERT_PASSES_WITHIN): Adjust. + * passes.cc (PUSH_INSERT_PASSES_WITHIN): Likewise. + +2024-09-05 Levy Hsu + + * config/i386/mmx.md (TARGET_MMX_WITH_SSE): New mode iterator VBF_32_64 + (fma4): define_expand for V2BF/V4BF fma4. + (fnma4): define_expand for V2BF/V4BF fnma4. + (fms4): define_expand for V2BF/V4BF fms4. + (fnms4): define_expand for V2BF/V4BF fnms4. + +2024-09-05 Hu, Lin1 + + * match.pd: Fix match for (bit_and (ordered @0 @1) (ne @0 @1)). + +2024-09-05 Levy Hsu + + * config/i386/i386.cc (ix86_build_const_vector): Add V2BF/V4BF. + (ix86_build_signbit_mask): Add V2BF/V4BF. + * config/i386/mmx.md: Modified supported logic op to use VHBF_32_64. + +2024-09-05 Levy Hsu + + * config/i386/i386.cc (ix86_preferred_simd_mode): Add BFmode Support. + 2024-09-04 Raphael Moreira Zinsly * config/riscv/riscv.cc (riscv_split_integer_cost): Adjust the diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index c8bedcac2566..a2aca132dd9a 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20240905 +20240906 diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 99c59f116d27..a522013dcdac 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,93 @@ +2024-09-05 Eric Botcazou + + * gcc-interface/trans.cc (addressable_p) : Add bypass + for internal fields on strict-alignment platforms. + +2024-09-05 Eric Botcazou + + * gcc-interface/gigi.h (default_field_alignment): New function. + * gcc-interface/misc.cc: Include tm_p header file. + (default_field_alignment): New function. + * gcc-interface/trans.cc (addressable_p) : Replace + previous alignment klduge with call to default_field_alignment. + * gcc-interface/utils.cc (finish_record_type): Likewise for the + alignment based on which DECL_BIT_FIELD should be cleared. + +2024-09-05 Piotr Trojanek + + * exp_util.ads, exp_util.adb (Duplicate_Subexpr_No_Checks): + Remove parameters, which are no longer used. + +2024-09-05 Viljar Indus + + * par-endh.adb: add call to new diagnostic for end loop errors. + * sem_ch13.adb: add call to new diagnostic for default iterator + error and record representation being too late. + * sem_ch4.adb: Add new diagnostic for wrong operands. + * sem_ch9.adb: Add new diagnostic for a Lock_Free warning. + * libgnat/g-lists.adb (Ensure_Unlocked): Make checks for tampering + conditional. + * libgnat/g-lists.ads: Add parameter Tampering_Checks to control + whether tampering checks should be executed. + * backend_utils.adb: Add new gcc switches + '-fdiagnostics-format=sarif-file' and + '-fdiagnostics-format=sarif-stderr'. + * debug.adb: document -gnatd_D switch. + * diagnostics-brief_emitter.adb: New package for displaying + diagnostic messages in a compact manner. + * diagnostics-brief_emitter.ads: Same as above. + * diagnostics-constructors.adb: New pacakge for providing simpler + constructor methods for new diagnostic objects. + * diagnostics-constructors.ads: Same as above. + * diagnostics-converter.adb: New package for converting old + Error_Msg_Object-s to Diagnostic_Types. + * diagnostics-converter.ads: Same as above. + * diagnostics-json_utils.adb: Package for utility methods related + to emitting JSON. + * diagnostics-json_utils.ads: Same as above. + * diagnostics-pretty_emitter.adb: New package for displaying + diagnostic messages in a more elaborate manner. + * diagnostics-pretty_emitter.ads: Same as above. + * diagnostics-repository.adb: New package for collecting all + created error messages. + * diagnostics-repository.ads: Same as above. + * diagnostics-sarif_emitter.adb: New pacakge for converting all of + the diagnostics into a report in the SARIF format. + * diagnostics-sarif_emitter.ads: Same as above. + * diagnostics-switch_repository.adb: New package containing the + definitions for all of the warninging switches. + * diagnostics-switch_repository.ads: Same as above. + * diagnostics-utils.adb: Contains various utility methods for the + diagnostic pacakges. + * diagnostics-utils.ads: Same as above. + * diagnostics.adb: Contains the definitions and common functions + for all the new diagnostics objects. + * diagnostics.ads: Same as above. + * errout.adb: Relocate the old implementations for brief and + pretty printing the diagnostic messages and the entrypoint to the + new implementation if a debug switch is used. + * errout.ads: Improve documentation. Make Set_Msg_Text publicly + available. + * opt.ads: Add the flag SARIF_File which controls whether the + diagnostic messages should be printed to a file in the SARIF + format. Add the flag SARIF_Output to control whether the + diagnostic messages should be printed to std-err in the SARIF + format. + * gcc-interface/Make-lang.in: Add new pacakages to the object + list. + * gcc-interface/Makefile.in: Add new pacakages to the object list. + +2024-09-05 Jose Ruiz + + * ali-util.adb (Get_File_Checksum): Force the parsing for + the checksum computation of runtime files to be done in + the corresponding recent Ada version. + +2024-09-05 Ronan Desplanques + + * inline.adb (Cannot_Inline): Remove assertion. + * inline.ads (Cannot_Inline): Add precondition. + 2024-09-03 Eric Botcazou * gcc-interface/trans.cc (addressable_p) : Add kludge diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index cc45dcdae815..36858952af34 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,168 @@ +2024-09-05 Marek Polacek + + PR c++/116606 + * decl2.cc (mark_vtable_entries): Temporarily override deprecated_state to + UNAVAILABLE_DEPRECATED_SUPPRESS. Remove a warning_sentinel. + +2024-09-05 Iain Sandoe + + * coroutines.cc + (cp_coroutine_transform::build_ramp_function): Separate the + build of promise constructor and destructor. When evaluating + the constructor, check that build_special_member_call returns + an expression with side effects before adding it. + +2024-09-05 Patrick Palka + + PR c++/113063 + * name-lookup.cc (local_state_t): Clear and restore + cp_noexcept_operand as well. + +2024-09-05 Marek Polacek + + PR c++/116239 + * cp-tree.h (validate_constexpr_redeclaration): Declare. + * decl.cc (validate_constexpr_redeclaration): No longer static. + * name-lookup.cc (push_local_extern_decl_alias): Call + validate_constexpr_redeclaration. + +2024-09-05 Nathaniel Shead + + * class.cc (add_method): Add missing auto_diagnostic_group. + (handle_using_decl): Likewise. + (maybe_warn_about_overly_private_class): Likewise. + (check_field_decl): Likewise. + (check_field_decls): Likewise. + (resolve_address_of_overloaded_function): Likewise. + (note_name_declared_in_class): Likewise. + * constraint.cc (associate_classtype_constraints): Likewise. + (diagnose_trait_expr): Clean up whitespace. + * coroutines.cc (find_coro_traits_template_decl): Add missing + auto_diagnostic_group. + (coro_promise_type_found_p): Likewise. + (coro_diagnose_throwing_fn): Likewise. + * cvt.cc (build_expr_type_conversion): Likewise. + * decl.cc (validate_constexpr_redeclaration): Likewise. + (duplicate_function_template_decls): Likewise. + (duplicate_decls): Likewise. + (lookup_label_1): Likewise. + (check_previous_goto_1): Likewise. + (check_goto_1): Likewise. + (make_typename_type): Likewise. + (make_unbound_class_template): Likewise. + (check_tag_decl): Likewise. + (start_decl): Likewise. + (maybe_commonize_var): Likewise. + (check_for_uninitialized_const_var): Likewise. + (reshape_init_class): Likewise. + (check_initializer): Likewise. + (cp_finish_decl): Likewise. + (find_decomp_class_base): Likewise. + (cp_finish_decomp): Likewise. + (expand_static_init): Likewise. + (grokfndecl): Likewise. + (grokdeclarator): Likewise. + (check_elaborated_type_specifier): Likewise. + (lookup_and_check_tag): Likewise. + (xref_tag): Likewise. + (cxx_simulate_enum_decl): Likewise. + (finish_function): Likewise. + * decl2.cc (check_classfn): Likewise. + (record_mangling): Likewise. + (mark_used): Likewise. + * error.cc (qualified_name_lookup_error): Likewise. + * except.cc (build_throw): Likewise. + * init.cc (get_nsdmi): Likewise. + (diagnose_uninitialized_cst_or_ref_member_1): Likewise. + (warn_placement_new_too_small): Likewise. + (build_new_1): Likewise. + (build_vec_delete_1): Likewise. + (build_delete): Likewise. + * lambda.cc (add_capture): Likewise. + (add_default_capture): Likewise. + * lex.cc (unqualified_fn_lookup_error): Likewise. + * method.cc (synthesize_method): Likewise. + (defaulted_late_check): Likewise. + * module.cc (trees_in::is_matching_decl): Likewise. + (trees_in::read_enum_def): Likewise. + (module_state::check_not_purview): Likewise. + (module_state::deferred_macro): Likewise. + (module_state::read_config): Likewise. + (module_state::check_read): Likewise. + (declare_module): Likewise. + (init_modules): Likewise. + * name-lookup.cc (diagnose_name_conflict): Likewise. + (lookup_using_decl): Likewise. + (set_decl_namespace): Likewise. + (finish_using_directive): Likewise. + (push_namespace): Likewise. + (add_imported_namespace): Likewise. + * parser.cc (cp_parser_check_for_definition_in_return_type): Likewise. + (cp_parser_userdef_numeric_literal): Likewise. + (cp_parser_nested_name_specifier_opt): Likewise. + (cp_parser_new_expression): Likewise. + (cp_parser_binary_expression): Likewise. + (cp_parser_lambda_introducer): Likewise. + (cp_parser_module_declaration): Likewise. + (cp_parser_import_declaration): Likewise, removing gotos to + support this. + (cp_parser_declaration): Add missing auto_diagnostic_group. + (cp_parser_decl_specifier_seq): Likewise. + (cp_parser_template_id): Likewise. + (cp_parser_template_name): Likewise. + (cp_parser_explicit_specialization): Likewise. + (cp_parser_placeholder_type_specifier): Likewise. + (cp_parser_elaborated_type_specifier): Likewise. + (cp_parser_enum_specifier): Likewise. + (cp_parser_asm_definition): Likewise. + (cp_parser_init_declarator): Likewise. + (cp_parser_direct_declarator): Likewise. + (cp_parser_class_head): Likewise. + (cp_parser_member_declaration): Likewise. + (cp_parser_lookup_name): Likewise. + (cp_parser_explicit_template_declaration): Likewise. + (cp_parser_check_class_key): Likewise. + * pt.cc (maybe_process_partial_specialization): Likewise. + (determine_specialization): Likewise. + (check_for_bare_parameter_packs): Likewise. + (check_template_shadow): Likewise. + (process_partial_specialization): Likewise. + (push_template_decl): Likewise. + (redeclare_class_template): Likewise. + (convert_nontype_argument_function): Likewise. + (check_valid_ptrmem_cst_expr): Likewise. + (convert_nontype_argument): Likewise. + (convert_template_argument): Likewise. + (coerce_template_parms): Likewise. + (tsubst_qualified_id): Likewise. + (tsubst_expr): Likewise. + (most_specialized_partial_spec): Likewise. + (do_class_deduction): Likewise. + (do_auto_deduction): Likewise. + * search.cc (lookup_member): Likewise. + * semantics.cc (finish_non_static_data_member): Likewise. + (process_outer_var_ref): Likewise. + (finish_id_expression_1): Likewise. + (finish_offsetof): Likewise. + (omp_reduction_lookup): Likewise. + (finish_omp_clauses): Likewise. + * tree.cc (check_abi_tag_redeclaration): Likewise. + (check_abi_tag_args): Likewise. + * typeck.cc (invalid_nonstatic_memfn_p): Likewise. + (complain_about_unrecognized_member): Likewise. + (finish_class_member_access_expr): Likewise. + (error_args_num): Likewise. + (warn_for_null_address): Likewise. + (cp_build_binary_op): Likewise. + (build_x_unary_op): Likewise. + (cp_build_unary_op): Likewise. + (build_static_cast): Likewise. + (cp_build_modify_expr): Likewise. + (get_delta_difference): Likewise. + (convert_for_assignment): Widen scope of auto_diagnostic_group. + (check_return_expr): Add missing auto_diagnostic_group. + * typeck2.cc (cxx_incomplete_type_diagnostic): Likewise. + 2024-09-04 Marek Polacek * pt.cc (coerce_template_template_parm): Return bool instead of int. diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index fc713435b0ee..49d0106bfeee 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,10 @@ +2024-09-05 Harald Anlauf + + PR fortran/100273 + * trans-decl.cc (gfc_create_module_variable): Handle module + variable also when it is needed for the result specification + of a contained function. + 2024-09-03 David Malcolm * error.cc (gfc_move_error_buffer_from_to): Prefix all diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e90557ed02fd..e7bb0157143f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,114 @@ +2024-09-05 Jason Merrill + + * g++.dg/diagnostic/redeclaration-6.C: Add -fno-implicit-constexpr. + +2024-09-05 Harald Anlauf + + PR fortran/100273 + * gfortran.dg/pr100273.f90: New test. + +2024-09-05 Marek Polacek + + PR c++/116606 + * g++.dg/ext/attr-unavailable-13.C: New test. + +2024-09-05 Patrick Palka + + PR c++/113063 + * g++.dg/cpp2a/spaceship-synth16.C: Also constant evaluate + the <=> expression. + * g++.dg/cpp2a/spaceship-synth16a.C: Likewise. + +2024-09-05 Marek Polacek + + PR c++/116239 + * g++.dg/diagnostic/redeclaration-6.C: New test. + +2024-09-05 Thomas Schwinge + + PR target/104957 + * g++.target/nvptx/alias-g++.dg_init_dtor2-1.C: Un-XFAIL. + * gcc.target/nvptx/alias-1.c: Likewise. + * gcc.target/nvptx/alias-3.c: Likewise. + * gcc.target/nvptx/alias-to-alias-1.c: Likewise. + +2024-09-05 Thomas Schwinge + + PR target/104957 + * g++.target/nvptx/alias-g++.dg_init_dtor2-1.C: Add. + +2024-09-05 Thomas Schwinge + + PR target/104957 + * gcc.target/nvptx/alias-1.c: Enhance assembler scanning. + * gcc.target/nvptx/alias-2.c: Likewise. + * gcc.target/nvptx/alias-3.c: Likewise. + * gcc.target/nvptx/alias-4.c: Likewise. + * gcc.target/nvptx/alias-to-alias-1.c: Likewise. + +2024-09-05 Thomas Schwinge + + PR target/104957 + * gcc.target/nvptx/alias-2.c: Fix comment. + +2024-09-05 Thomas Schwinge + + * gcc.target/nvptx/nvptx.exp + (check_effective_target_default_ptx_isa_version_at_least) + (check_effective_target_default_ptx_isa_version_at_least_6_0) + (check_effective_target_runtime_ptx_isa_version_at_least) + (check_effective_target_runtime_ptx_alias) + (add_options_for_ptx_alias): Move... + * lib/target-supports.exp + (check_nvptx_default_ptx_isa_version_at_least) + (check_effective_target_nvptx_default_ptx_isa_version_at_least_6_0) + (check_nvptx_runtime_ptx_isa_version_at_least) + (check_effective_target_nvptx_runtime_alias_ptx) + (add_options_for_nvptx_alias_ptx): ... here. + * gcc.target/nvptx/alias-1.c: Adjust. + * gcc.target/nvptx/alias-2.c: Likewise. + * gcc.target/nvptx/alias-3.c: Likewise. + * gcc.target/nvptx/alias-4.c: Likewise. + * gcc.target/nvptx/alias-to-alias-1.c: Likewise. + * gcc.target/nvptx/alias-weak-1.c: Likewise. + * gcc.target/nvptx/uniform-simt-5.c: Likewise. + +2024-09-05 Richard Biener + + * gcc.target/aarch64/sve/mask_gather_load_7.c: Allow + p8-15 to be used for the destination of the compares. + +2024-09-05 Tamar Christina + + * gcc.dg/signbit-5.c: Remove -fwrapv and change INT_MIN to INT_MIN+1. + +2024-09-05 Hu, Lin1 + + PR testsuite/116608 + * gcc.target/i386/vect-double-2.c: Add extra option -mno-sse4 + * gcc.target/i386/xorsign.c: Ditto. + +2024-09-05 Palmer Dabbelt + + * gcc.target/riscv/sge.c: Adjust regex to match the input. + * gcc.target/riscv/sgeu.c: Likewise. + * gcc.target/riscv/sle.c: Likewise. + * gcc.target/riscv/sleu.c: Likewise. + +2024-09-05 Levy Hsu + + * gcc.target/i386/avx10_2-partial-bf-vector-fma-1.c: New test. + +2024-09-05 Hu, Lin1 + + * gcc.dg/opt-ordered-and-nonequal-1.c: New test. + * gcc.target/i386/optimize_one.c: Change name to opt-comi-1.c. + * gcc.target/i386/opt-comi-1.c: New test. + +2024-09-05 Levy Hsu + + * gcc.target/i386/part-vect-absnegbf.c: New test. + 2024-09-04 Raphael Moreira Zinsly * gcc.target/riscv/synthesis-11.c: New test. diff --git a/libsanitizer/ChangeLog b/libsanitizer/ChangeLog index a5681c60b569..b6d6cf5370e0 100644 --- a/libsanitizer/ChangeLog +++ b/libsanitizer/ChangeLog @@ -1,3 +1,9 @@ +2024-09-05 Jakub Jelinek + + * sanitizer_common/sanitizer_asm.h: Cherry-pick llvm-project revision + 1c792d24e0a228ad49cc004a1c26bbd7cd87f030. + * interception/interception.h: Likewise. + 2024-02-16 Rainer Orth PR sanitizer/113785