https://gcc.gnu.org/g:44900d6412d90392124601e565eeafd2afe70509
commit r17-6281-g44900d6412d90392124601e565eeafd2afe70509 Author: GCC Administrator <[email protected]> Date: Sun Nov 15 00:16:42 2026 +0000 Daily bump. Diff: --- ChangeLog | 5 + gcc/ChangeLog | 100 ++++++++++++++++++++ gcc/DATESTAMP | 2 +- gcc/rust/ChangeLog | 246 ++++++++++++++++++++++++++++++++++++++++++++++++ gcc/testsuite/ChangeLog | 94 ++++++++++++++++++ 5 files changed, 446 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e3242e533924..a725f5a13b06 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2026-11-14 Guo Jie <[email protected]> + + * MAINTAINERS: Regenerate. + * MAINTAINERS.yml: Add myself. + 2026-11-12 Jiawei <[email protected]> * MAINTAINERS: Regenerate. diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5d1d60bec5a8..b621e885ef5c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,103 @@ +2026-11-14 Jan Hubicka <[email protected]> + + PR ipa/127171 + * ipa-fnsummary.cc (compute_switch_edge_predicates): Break out out from + set_switch_stmt_execution_predicate; support computing per-edge + predicates for nonconstant evaluation. + (set_switch_stmt_execution_predicate): Use + compute_switch_edge_predicates. + (will_be_nonconstant_predicate): Handle comparisons and switches on + aggregate loads with unknown_offset or maybe_modified. + (phi_result_unknown_predicate): Handle GIMPLE_SWITCH and use + will_be_nonconstant_predicate. + * ipa-predicate.cc (ipa_predicate::add_clause): Fix inverted + unknown_offset check when matching complementary conditions. + * ipa-prop.cc (ipa_load_from_parm_agg_unknown_offset): Skip null + pointer operands when null pointer dereferences are invalid and + require matching address spaces on pointer conversions. + * params.opt (-param=ipa-jump-function-lookups=): Increase default + from 8 to 64. + +2026-11-14 Jan Hubicka <[email protected]> + + PR ipa/127171 + * ipa-prop.cc (ipa_load_from_parm_agg_unknown_offset): Walk PHIs. + +2026-11-14 Jan Hubicka <[email protected]> + + PR ipa/127171 + * ipa-fnsummary.cc (struct string_char_set_hashmap_traits): New. + (get_string_char_set): New function. + (char_set_any_in_range_p): New function. + (fold_string_char_compare): New function. + (evaluate_unknown_offset_condition): Evaluate unknown offsets. + (evaluate_conditions_for_known_args): Handle unknown_offset. + (unmodified_parm_or_parm_agg_item): Compute unknown_offset. + (set_cond_stmt_execution_predicate): Update. + (will_be_nonconstant_predicate): Update. + (inline_read_section): Update. + (ipa_fn_summary_write): Stream uknonwn_offset. + (ipa_fnsummary_cc_finalize): Stream uknonwn_offset. + * ipa-fnsummary.h (struct agg_position_info): Add unknown_offset. + * ipa-predicate.cc (ipa_predicate::add_clause): Handle unknown_offset. + (ipa_predicate::probability): Handle unknown_offset conservatively. + (dump_condition): Dump unkonwn_offset. + (ipa_predicate::remap_after_inlining): Update unknown_offset. + (add_condition): Handle unkonwn_offset. + * ipa-predicate.h (struct condition): Add unknown_offset. + * ipa-prop.cc (ipa_load_from_parm_agg_unknown_offset): New function. + (parm_ref_data_pass_through_p): Use it. + (ipa_load_from_parm_agg): Handle unknown_offset. + * ipa-prop.h (ipa_load_from_parm_agg): Likewise. + +2026-11-14 Jan Hubicka <[email protected]> + + * ipa-cp.cc (ipa_argagg_value_list::get_value): Add + MAYBE_MODEIFIED parameter; document other params. + (ipa_get_indirect_edge_target_1): Pass aroundguaranteed_unmodified. + (ipcp_discover_new_direct_edges): Update construction of avx. + * ipa-fnsummary.cc (evaluate_conditions_for_known_args): Pass type + of access. + (unmodified_parm_or_parm_agg_item): Set maybe_modified. + (refs_local_or_readonly_memory_p): Accept constants. + (remap_edge_summaries): Pass arround agg_preserved_map. + (remap_freqcounting_predicate): Likewise. + (ipa_merge_fn_summary_after_inlining): Likewise. + (inline_read_section): Read maybe_modified flag. + (ipa_fn_summary_write): Write maybe_modified flag. + * ipa-fnsummary.h (struct agg_position_info): Add maybe_modified. + * ipa-predicate.cc (ipa_predicate::add_clause): Handle + maybe_modified flag. + (ipa_predicate::probability): Handle maybe_modified flag. + (dump_condition): Handle maybe_modified flag. + (ipa_predicate::remap_after_duplication): Handle maybe_modified flag. + (ipa_predicate::remap_after_inlining): Handle maybe_modified flag. + (add_condition): Handle maybe_modified flag. + * ipa-predicate.h (struct condition): Add maybe_modified flag. + * ipa-prop.cc (ipa_find_agg_cst_from_init): Handle STRING_CST, ctors + and scalars. + (try_make_edge_direct_simple_call): Update. + * ipa-prop.h (ipa_find_agg_cst_from_init): Update declarations + * ipa-utils.cc (ipa_points_to_readonly_memory_p): Add known_vals. + * ipa-utils.h (ipa_points_to_readonly_memory_p): Declare. + +2026-11-14 Jiawei <[email protected]> + + * simplify-rtx.cc (simplify_context::simplify_binary_operation_1): + Reverse rotations with masked negative counts. + (selftest::test_masked_negative_rotate): New function. + (selftest::test_scalar_int_ops): Call it. + +2026-11-14 Jiawei <[email protected]> + + * config/aarch64/aarch64.md + (*aarch64_<optab>_reg_<mode>3_mask1): Exclude left rotations. + (*aarch64_<optab>_reg_<mode>3_neg_mask2): Ditto. + (*aarch64_<optab>_reg_di3_mask2): Ditto. + * config/aarch64/aarch64.cc + (selftest::aarch64_test_masked_rotate): New function. + (selftest::aarch64_run_selftests): Call it. + 2026-11-13 John David Anglin <[email protected]> PR target/127142 diff --git a/gcc/DATESTAMP b/gcc/DATESTAMP index 3d54539ff8c2..394fe9885c2b 100644 --- a/gcc/DATESTAMP +++ b/gcc/DATESTAMP @@ -1 +1 @@ -20261114 +20261115 diff --git a/gcc/rust/ChangeLog b/gcc/rust/ChangeLog index f721bba5eec7..3de755b263a7 100644 --- a/gcc/rust/ChangeLog +++ b/gcc/rust/ChangeLog @@ -1,3 +1,249 @@ +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * checks/errors/rust-hir-pattern-analysis.cc (lower_pattern): Lower + path patterns that name an enum variant. + +2026-11-14 Arthur Cohen <[email protected]> + + * backend/rust-compile-intrinsic.cc: Register new handler. + * backend/rust-intrinsic-handlers.cc (ptr_offset_from): New function. + * backend/rust-intrinsic-handlers.h (ptr_offset_from): Likewise. + * typecheck/rust-hir-type-check-intrinsic.cc: Register new entry for + ptr_offset_from. + * util/rust-intrinsic-values.h: Likewise. + +2026-11-14 Owen Avery <[email protected]> + + * expand/rust-macro-builtins-include.cc + (MacroBuiltin::include_handler): Remove include_extra_file + usage. + * lex/rust-lex.cc (Lexer::Lexer): Copy and leak filename + parameter. + * rust-session-manager.h (Session::extra_files): Remove member + variable. + (Session::include_extra_file): Remove member function. + +2026-11-14 Ata Borla <[email protected]> + + * rust-linemap.cc (instance_): Changed ... nullptr. + (Linemap::start_file): Likewise. + (Linemap::location_to_string): Likewise. + +2026-11-14 Yap Zhi Heng <[email protected]> + + * backend/rust-intrinsic-handlers.h (Compile::handlers): Remove forward declaration + for inner namespace since it is no longer needed. + * backend/rust-intrinsic-handlers.cc (Compile::handlers::inner::unchecked_op): + Declare as static. + (Compile::handlers::inner::expect): Likewise. + (Compile::handlers::inner::try_handler): Likewise. + (Compile::handlers::inner::wrapping_op): Likewise. + (Compile::handlers::inner::op_with_overflow): Likewise. + (Compile::handlers::inner::copy): Likewise. + (Compile::handlers::inner::atomic_store): Likewise. + (Compile::handlers::inner::atomic_load): Likewise. + (Compile::handlers::inner::atomic_binary_op): Likewise. + (Compile::handlers::inner::atomic_compare_exchange): Likewise. + (Compile::handlers::inner::atomic_minmax): Likewise. + (Compile::handlers::inner::prefetch): Likewise. + +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * typecheck/rust-hir-type-check-item.cc + (TypeCheckItem::ResolveImplBlockSelf): Return the self type from the + context when it is already there. + +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * typecheck/rust-tyty.h (TypeBoundPredicateItem): Hold the parent by + pointer, drop the copy constructor and assignment. + * typecheck/rust-tyty-bounds.cc + (TypeBoundPredicate::lookup_associated_item): Pass this. + (TypeBoundPredicateItem::TypeBoundPredicateItem): Take a pointer. + (TypeBoundPredicateItem::error): Use a null parent. + (TypeBoundPredicateItem::is_error): Check for it. + (TypeBoundPredicateItem::get_parent): Return the pointer. + (TypeBoundPredicateItem::get_tyty_for_receiver): Go through it. + (TypeBoundPredicate::get_associated_type_items): Pass this. + * typecheck/rust-hir-path-probe-expr.cc + (PathProbeExpr::process_associated_trait_for_candidates): Pass the + address. + * typecheck/rust-hir-dot-operator.h (MethodResolver): Add + predicate_bounds. + * typecheck/rust-hir-dot-operator.cc (MethodResolver::try_hook): Keep + the bounds the items point into. + +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * expand/rust-macro-builtins-asm.cc (is_output_operand): New. + (gcc_operand_numbers): New. + (expand_inline_asm_strings): Renumber the placeholders and reject + one past the last operand. + +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * typecheck/rust-hir-trait-resolve.cc + (AssociatedImplTrait::bind_impl_for_projection): Fix the ref of + bound args. + * typecheck/rust-hir-type-check-type.cc + (TypeCheckType::visit (QualifiedPathInType)): Give the result its + own ref. + * typecheck/rust-type-util.cc (normalize_projection): Check the + impl first if it hasn't been yet. + +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::Resolve): + Keep the error type in the context. + (TypeCheckExpr::visit (AssignmentExpr)): Bail out on an error + operand. + (TypeCheckExpr::visit (CompoundAssignmentExpr)): Likewise. + (TypeCheckExpr::visit (ArithmeticOrLogicalExpr)): Likewise. + (TypeCheckExpr::visit (ComparisonExpr)): Likewise. + (TypeCheckExpr::visit (LazyBooleanExpr)): Likewise. + (TypeCheckExpr::visit (NegationExpr)): Likewise. + (TypeCheckExpr::visit (ArrayExpr)): Bail out on an error element. + * typecheck/rust-hir-type-check-item.cc (TypeCheckItem::visit + (StaticItem)): Keep the declared type when the initializer failed. + (TypeCheckItem::visit (ConstantItem)): Likewise. + +2026-11-14 Pierre-Emmanuel Patry <[email protected]> + + * ast/rust-raw-path.h: Move to... + * util/rust-raw-path.h: ...here. + +2026-11-14 Pierre-Emmanuel Patry <[email protected]> + + * resolve/rust-forever-stack.h: Use RawPath as ResolutionPath input. + * resolve/rust-name-resolution-context.h: Change call site. + +2026-11-14 Pierre-Emmanuel Patry <[email protected]> + + * hir/rust-ast-lower-type.cc (ASTLowerTypePath::visit): Use RawPath + within constructor. + * hir/rust-hir-dump.cc (Dump::visit): Use new getter. + * hir/tree/rust-hir-path.cc (GenericArgs::GenericArgs): Reformat. + (TypePathFunction::TypePathFunction): Likewise. + (TypePath::TypePath): Use RawPath instead of separate opening scope + flag. + (TypePath::operator=): Use flags. + * hir/tree/rust-hir-path.h (class GenericArgs): Reformat. + (class TypePathFunction): Likewise. + (class TypePath): Likewise and use RawPath. Remove duplicated function. + (class QualifiedPathInType): Reformat. + * hir/tree/rust-hir.cc (TypePath::to_string): Use getter. + (TypePath::as_simple_path): Likewise. + * typecheck/rust-hir-type-check-type.cc (TypeResolveGenericParam::apply_trait_bounds): + Update ctor call. + +2026-11-14 Pierre-Emmanuel Patry <[email protected]> + + * backend/rust-compile-struct-field-expr.cc (CompileStructExprField::visit): + Update call site. + * hir/rust-ast-lower-expr.cc (ASTLoweringExpr::visit): Likewise. + * hir/rust-ast-lower.cc (ASTLowerPathInExpression::visit): Likewise. + (ASTLowerQualPathInExpression::visit): Likewise. + * hir/tree/rust-hir-path.cc (PathInExpression::PathInExpression): Use + RawPath for constructor. + * hir/tree/rust-hir-path.h: Use RawPath within PathPattern. + * typecheck/rust-hir-type-check-struct.cc (TypeCheckStructExpr::visit): + Update call site. + +2026-11-14 Pierre-Emmanuel Patry <[email protected]> + + * hir/rust-ast-lower-expr.cc (ASTLoweringExpr::visit): Remove opening + scope resolution flag. + * hir/rust-ast-lower.cc (ASTLowerPathInExpression::visit): Likewise. + * hir/rust-hir-dump.cc (Dump::visit): Change function call name. + * hir/tree/rust-hir-path.cc (PathInExpression::PathInExpression): + Remove opening scope resolution flag initialization. Move it to + PathPattern. + * hir/tree/rust-hir-path.h (class PathPattern): Make PathPattern + inherit from RawPath. + (class PathInExpression): Remove opening scope resolution flag. + * hir/tree/rust-hir.cc (PathInExpression::to_string): Adapt function + name. + +2026-11-14 Pierre-Emmanuel Patry <[email protected]> + + * ast/rust-ast.h: Remove header inclusion. + * resolve/rust-name-resolution-context.h: Likewise. + * util/rust-util-path.h: Removed. + +2026-11-14 Pierre-Emmanuel Patry <[email protected]> + + * ast/rust-ast-builder.cc: Update function name to use parent. + * ast/rust-ast-collector.cc (TokenCollector::visit): Likewise. + * ast/rust-path.cc (TypePath::as_string): Likewise. + (PathInExpression::as_string): Likewise. + (TypePath::as_simple_path): Likewise. + (TypePath::make_debug_string): Likewise. + (Path::as_string): Use getters instead. + * hir/rust-ast-lower.cc (ASTLowerPathInExpression::visit): + Likewise. + * expand/rust-derive-clone.cc (DeriveClone::clone_enum_identifier): + Likewise. + (DeriveClone::clone_enum_tuple): Likewise. + (DeriveClone::clone_enum_struct): Likewise. + * hir/rust-ast-lower-type.cc (ASTLowerTypePath::visit): Likewise. + * ast/rust-ast.h: Remove fields and use a parent raw path class. + * ast/rust-path.h: Likewise. Remove util path conversion function. + * resolve/rust-early-name-resolver-2.0.cc (Early::resolve_glob_import): + Remove utilpath construct. + * resolve/rust-early-name-resolver-2.0.h: Likewise. + * resolve/rust-forever-stack.h (class ResolutionPath): Move and rename + Segment class from here... + (struct ResolutionPathSegment): ... to here. + * resolve/rust-forever-stack.hxx: Accept new segment class name. + * resolve/rust-late-name-resolver-2.0.cc (Late::visit): Remove + UtilPath. + * resolve/rust-name-resolution-context.h: Use RawPath in set_path + instead of UtilPath. Remove path specific resolve_path functions. + * resolve/rust-name-resolution-context.hxx: Remove UtilPath. + * ast/rust-raw-path.h: New file. + +2026-11-14 Arthur Cohen <[email protected]> + + * backend/rust-compile-intrinsic.cc: Add new handler for nontemporal_store. + * backend/rust-intrinsic-handlers.cc (move_val_init): Add soundness comment. + (nontemporal_store): New function. + * backend/rust-intrinsic-handlers.h (nontemporal_store): Likewise. + * typecheck/rust-hir-type-check-intrinsic.cc: New entry for nontemporal_store. + * util/rust-intrinsic-values.h: Likewise. + +2026-11-14 Arthur Cohen <[email protected]> + + * ast/rust-item.h: New `get_field_count` virtual method for AST::Struct and implementation + in AST::{StructStruct, TupleStruct}. + * expand/rust-derive-coerce-pointee.cc (DeriveCoercePointee::validate_number_of_fields): Use + said new method. + +2026-11-14 Wesley Lewis <[email protected]> + + * expand/rust-derive-coerce-pointee.cc + (DeriveCoercePointee::validate_non_generic_pointee): New. + (DeriveCoercePointee::go): Call validate_non_generic_pointee. + * expand/rust-derive-coerce-pointee.h + (DeriveCoercePointee::validate_non_generic_pointee): Declare. + * util/rust-attribute-values.h: Added POINTEE. + +2026-11-14 Wesley Lewis <[email protected]> + + * expand/rust-derive-coerce-pointee.cc + (DeriveCoercePointee::validate_number_of_fields): New. + (DeriveCoercePointee::go): Call validate_number_of_fields. + * expand/rust-derive-coerce-pointee.h + (DeriveCoercePointee::validate_number_of_fields): Declare. + +2026-11-14 Wesley Lewis <[email protected]> + + * rust-error-codes.def (ERROR): Add E0802. + * expand/rust-derive-coerce-pointee.cc + (DeriveCoercePointee::validate_repr_transparent): New + (DeriveCoercePointee::go): Call validate_repr_transparent. + * expand/rust-derive-coerce-pointee.h + (DeriveCoercePointee::validate_repr_transparent): Declare. + 2026-11-13 Guillaume Gomez <[email protected]> * rust-attribs.cc (handle_noreturn_attribute) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ba86f79cdc4f..f9086dbb3150 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,97 @@ +2026-11-14 Jan Hubicka <[email protected]> + + PR ipa/127171 + * gcc.dg/ipa/fnsummary-11.c: New test. + * gcc.dg/ipa/fnsummary-12.c: New test. + * gcc.dg/ipa/fnsummary-13.c: New test. + Assisted-by: Google Carbon + +2026-11-14 John David Anglin <[email protected]> + + PR c++/113381 + * g++.dg/cpp2a/consteval-prop6.C: XFAIL warning check on + line 58 for hppa*-*-hpux*. + +2026-11-14 Jan Hubicka <[email protected]> + + * gcc.dg/ipa/fnsummary-10.c: Add PHI walking test. + * gcc.dg/ipa/fnsummary-9.c: Add PHI walking test. + Assisted by Google Carbon + +2026-11-14 Jan Hubicka <[email protected]> + + * gcc.dg/ipa/fnsummary-10.c: New test. + * gcc.dg/ipa/fnsummary-7.c: New test. + * gcc.dg/ipa/fnsummary-8.c: New test. + * gcc.dg/ipa/fnsummary-9.c: New test. + Assisted by Gemini Carbon + +2026-11-14 Jan Hubicka <[email protected]> + + * gcc.dg/ipa/fnsummary-2.c: New test. + * gcc.dg/ipa/fnsummary-3.c: New test. + * gcc.dg/ipa/fnsummary-4.c: New test. + * gcc.dg/ipa/fnsummary-5.c: New test. + * gcc.dg/ipa/fnsummary-6.c: New test. + +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * rust/compile/exhaustiveness9.rs: New test. + * rust/compile/exhaustiveness10.rs: New test. + * rust/compile/issues/3726.rs: Match both variants. + * rust/compile/issues/issue-2311.rs: New test. + +2026-11-14 Arthur Cohen <[email protected]> + + * rust/execute/torture/ptr_offset_from.rs: New test. + +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * rust/core/core-diagnostics.exp: New test. + * rust/core/core-1.49.expected: New file. + +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * rust/execute/torture/issue-5057.rs: New test. + * rust/compile/issues/issue-5057-2.rs: New test. + +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * rust/compile/issues/issue-5022.rs: New test. + * rust/compile/issues/issue-5022-2.rs: New test. + * rust/execute/torture/issue-5022.rs: New test. + +2026-11-14 Utkarsh Bahuguna <[email protected]> + + * rust/compile/issues/4165.rs: Drop the follow-up error. + * rust/compile/issues/issue-5039.rs: New test. + * rust/compile/issues/issue-5039-2.rs: New test. + +2026-11-14 Arthur Cohen <[email protected]> + + * rust/compile/nontemporal_store.rs: New test. + +2026-11-14 Wesley Lewis <[email protected]> + + * rust/compile/derive-coerce-pointee6.rs: New test. + * rust/compile/derive-coerce-pointee7.rs: New file. + +2026-11-14 Wesley Lewis <[email protected]> + + * rust/compile/derive-coerce-pointee5.rs: New test. + +2026-11-14 Wesley Lewis <[email protected]> + + * rust/compile/derive-coerce-pointee4.rs: New test. + * rust/compile/derive-coerce-pointee1.rs: Added #[repr(transparent)]. + * rust/compile/derive-coerce-pointee2.rs: Likewise. + * rust/compile/derive-coerce-pointee3.rs: Likewise. + +2026-11-14 Jiawei <[email protected]> + + * gcc.target/riscv/zbb-rol-ror-10.c: New test. + * gcc.target/aarch64/rotate-neg-mask.c: Ditto. + 2026-11-13 David Malcolm <[email protected]> * c-c++-common/analyzer/aliasing-6.c: New test.
