]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
5 days agofrv: Fix typos in frv-opts.h
Dhruv Chawla [Tue, 19 May 2026 13:00:22 +0000 (13:00 +0000)] 
frv: Fix typos in frv-opts.h

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* config/frv/frv-opts.h: Fix typos.

5 days agofr30: Fix typos in fr30.cc
Dhruv Chawla [Tue, 19 May 2026 12:59:24 +0000 (12:59 +0000)] 
fr30: Fix typos in fr30.cc

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* config/fr30/fr30.cc (fr30_const_double_is_zero): Fix typos.

5 days agoepiphany: Fix typos in various files
Dhruv Chawla [Tue, 19 May 2026 12:58:33 +0000 (12:58 +0000)] 
epiphany: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* config/epiphany/epiphany.cc (epiphany_expand_epilogue): Fix typos.
* config/epiphany/resolve-sw-modes.cc: Likewise.

5 days agocsky: Fix typos in csky.cc
Dhruv Chawla [Tue, 19 May 2026 12:57:47 +0000 (12:57 +0000)] 
csky: Fix typos in csky.cc

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* config/csky/csky.cc (csky_output_inline_const): Fix typos.
(emit_csky_regs_pop): Likewise.
(csky_return_in_memory): Likewise.

5 days agoc6x: Fix typos in c6x.cc
Dhruv Chawla [Tue, 19 May 2026 12:57:00 +0000 (12:57 +0000)] 
c6x: Fix typos in c6x.cc

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* config/c6x/c6x.cc (c6x_file_start): Fix typos.
(c6x_print_operand_address): Likewise.
(c6x_asm_emit_except_personality): Likewise.

5 days agobpf: Fix typos in various files
Dhruv Chawla [Tue, 19 May 2026 12:56:17 +0000 (12:56 +0000)] 
bpf: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* config/bpf/bpf.cc (bpf_asm_named_section): Fix typos.
* config/bpf/core-builtins.cc (remove_parser_plugin): Likewise.
(make_core_relo): Likewise.
(bpf_handle_plugin_finish_type): Likewise.
(bpf_output_core_reloc): Likewise.
(core_make_builtins): Likewise.

5 days agobfin: Fix typo in bfin.cc
Dhruv Chawla [Tue, 19 May 2026 12:55:00 +0000 (12:55 +0000)] 
bfin: Fix typo in bfin.cc

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* config/bfin/bfin.cc (bfin_function_ok_for_sibcall): Fix typos.

5 days agoavr: Fix typos in various files
Dhruv Chawla [Tue, 19 May 2026 12:53:37 +0000 (12:53 +0000)] 
avr: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* common/config/avr/avr-common.cc: Fix typos.
* config/avr/avr-passes.cc (size_to_mode): Likewise.
(struct absint_t): Likewise.
(plies_t::emit_sets): Likewise.
(avr_strict_unsigned_p): Likewise.
(avr_redundant_compare): Likewise.
(avr_optimize_casesi): Likewise.
(struct AVR_LdSt_Props): Likewise.
(avr_pass_split_nzb::split_nzb_insns): Likewise.
(make_avr_pass_fuse_move): Likewise.
* config/avr/avr.cc (avr_option_override): Likewise.
(avr_can_inline_p): Likewise.
(avr_expand_epilogue): Likewise.
(avr_init_cumulative_args): Likewise.
(reg_unused_after): Likewise.
(avr_out_lpm_no_lpmx): Likewise.
(avr_out_compare): Likewise.
(avr_out_plus_ext): Likewise.
(avr_out_fract): Likewise.
(avr_nonzero_bits_lsr_operands_p): Likewise.
* config/avr/avr.h (avr_no_devlib): Likewise.
(struct machine_function): Likewise.
* config/avr/avr.md: Likewise.
* config/avr/builtins.def (FLASH_SEGMENT): Likewise.
* config/avr/specs.h: Likewise.

libgcc/config/avr/libf7/ChangeLog:

* libf7.c (f7_addsub): Likewise.
(f7_madd_msub): Likewise.
* libf7.h (f7_Ildexp): Likewise.

5 days agoarm: Fix typos in various files
Dhruv Chawla [Tue, 19 May 2026 12:51:13 +0000 (12:51 +0000)] 
arm: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* common/config/arm/arm-common.cc (arm_config_default): Fix typos.
(arm_canon_arch_option_1): Likewise.
* config/arm/aarch-bti-insert.cc (rest_of_insert_bti): Likewise.
* config/arm/arm-builtins.cc (MAC_LANE_PAIR_QUALIFIERS): Likewise.
(USMAC_LANE_QUADTUP_QUALIFIERS): Likewise.
* config/arm/arm-modes.def (ADJUST_FLOAT_FORMAT): Likewise.
* config/arm/arm-mve-builtins-base.cc: Likewise.
* config/arm/arm-mve-builtins-shapes.cc (struct binary_lshift_unsigned_def): Likewise.
(struct binary_maxamina_def): Likewise.
(struct viddup_def): Likewise.
(struct vidwdup_def): Likewise.
* config/arm/arm-protos.h (struct tune_params): Likewise.
* config/arm/arm.cc (arm_option_override_internal): Likewise.
(arm_option_override): Likewise.
(optimal_immediate_sequence_1): Likewise.
(arm_pcs_from_attribute): Likewise.
(aapcs_vfp_advance): Likewise.
(aapcs_layout_arg): Likewise.
(arm_init_cumulative_args): Likewise.
(arm_rtx_costs_internal): Likewise.
(mve_bool_vec_to_const): Likewise.
(operands_ok_ldrd_strd): Likewise.
(emit_multi_reg_push): Likewise.
(arm_emit_vfp_multi_reg_pop): Likewise.
(thumb2_emit_ldrd_pop): Likewise.
(arm_print_condition): Likewise.
(get_arm_condition_code): Likewise.
(thumb_pop): Likewise.
(arm_print_asm_arch_directives): Likewise.
(arm_debugger_regno): Likewise.
(arm_target_bb_ok_for_lob): Likewise.
(arm_mve_load_store_insn_p): Likewise.
(arm_mve_check_reg_origin_is_num_elems): Likewise.
(arm_mve_dlstp_check_dec_counter): Likewise.
(arm_mve_loop_valid_for_dlstp): Likewise.
(arm_loop_unroll_adjust): Likewise.
* config/arm/arm.h (ROUND_UP_WORD): Likewise.
* config/arm/arm.md: Likewise.
* config/arm/constraints.md: Likewise.
* config/arm/cortex-a17-neon.md: Likewise.
* config/arm/cortex-r4f.md: Likewise.
* config/arm/crypto.md: Likewise.
* config/arm/elf.h: Likewise.
* config/arm/fa726te.md: Likewise.
* config/arm/iterators.md: Likewise.
* config/arm/neon.md: Likewise.
* config/arm/thumb1.md: Likewise.
* config/arm/uclinuxfdpiceabi.h: Likewise.
* config/arm/unspecs.md: Likewise.
* config/arm/vec-common.md: Likewise.
* config/arm/vxworks.h (STACK_CHECK_PROTECT): Likewise.

libgcc/ChangeLog:

* config/arm/fp16.c (__gnu_float2h_internal): Fix typos.

5 days agoarc: Fix typos in various files
Dhruv Chawla [Tue, 19 May 2026 12:45:42 +0000 (12:45 +0000)] 
arc: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* config/arc/arc-arch.h (enum base_architecture): Fix typos.
* config/arc/arc-cpus.def: Likewise.
* config/arc/arc.cc (legitimate_small_data_address_p): Likewise.
(legitimate_scaled_address_p): Likewise.
(get_arc_condition_code): Likewise.
(arc_setup_incoming_varargs): Likewise.
(pop_reg): Likewise.
(arc_restore_callee_leave): Likewise.
(arc_asm_trampoline_template): Likewise.
(arc_add_jli_section): Likewise.
(arc_invalid_within_doloop): Likewise.
(arc_reorg): Likewise.
(conditionalize_nonjump): Likewise.
(arc_eh_uses): Likewise.
(arc_memory_move_cost): Likewise.
* config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Likewise.
(TARGET_PAD_RETURN): Likewise.
(arc_select_cc_mode): Likewise.
* config/arc/arc.md: Likewise.
* config/arc/arc.opt: Likewise.
* config/arc/arc700.md: Likewise.
* config/arc/elf.h (TARGET_ASM_FILE_END): Likewise.

libgcc/ChangeLog:

* config/arc/ieee-754/divtab-arc-df.c: Fix typos.
* config/arc/ieee-754/divtab-arc-sf.c: Likewise.

5 days agoalpha: Fix typos in various files
Dhruv Chawla [Tue, 19 May 2026 12:43:32 +0000 (12:43 +0000)] 
alpha: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* config/alpha/alpha.cc (alpha_pass_by_reference): Fix typos.
(alpha_reorg): Likewise.
* config/alpha/predicates.md: Likewise.

libgcc/ChangeLog:

* config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Fix typos.

5 days agoaarch64: Fix typos in various files
Dhruv Chawla [Tue, 19 May 2026 12:42:07 +0000 (12:42 +0000)] 
aarch64: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* common/config/aarch64/aarch64-common.cc (aarch64_parse_cpu): Fix
typos.
* common/config/aarch64/cpuinfo.h: Likewise.
* config/aarch64/aarch64-builtins.cc: Likewise.
* config/aarch64/aarch64-c.cc (aarch64_pragma_target_parse): Likewise.
* config/aarch64/aarch64-modes.def (FLOAT_MODE): Likewise.
* config/aarch64/aarch64-simd.md: Likewise.
* config/aarch64/aarch64-speculation.cc: Likewise.
* config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
* config/aarch64/aarch64-sve-builtins-shapes.cc (struct binary_za_m_def): Likewise.
* config/aarch64/aarch64-sve-builtins.cc (function_builder::add_function): Likewise.
* config/aarch64/aarch64-sve.md: Likewise.
* config/aarch64/aarch64-sve2.md: Likewise.
* config/aarch64/aarch64.cc (aarch64_init_sysregs): Likewise.
(aarch64_load_symref_appropriately): Likewise.
(aarch64_output_sve_cnt_immediate): Likewise.
(aarch64_replace_reg_mode): Likewise.
(aarch64_pass_by_reference_1): Likewise.
(aarch64_layout_arg): Likewise.
(aarch64_allocate_and_probe_stack_space): Likewise.
(aarch64_legitimize_address_displacement): Likewise.
(aarch64_output_casesi): Likewise.
(aarch64_stp_sequence_cost): Likewise.
(aarch64_vector_costs::add_stmt_cost): Likewise.
(aarch64_override_options): Likewise.
(aarch64_functions_b_resolvable_from_a): Likewise.
(dispatch_function_versions): Likewise.
(aarch64_can_inline_p): Likewise.
(aarch64_classify_symbol): Likewise.
(aarch64_build_builtin_va_list): Likewise.
(aarch64_sve_pred_valid_immediate): Likewise.
(aarch64_simd_lane_bounds): Likewise.
(aarch64_expand_vector_init_fallback): Likewise.
(aarch64_modes_compatible_p): Likewise.
(aarch64_ldrstr_offset_compare): Likewise.
(aarch64_speculation_safe_value): Likewise.
* config/aarch64/aarch64.h (DEFAULT_PCC_STRUCT_RETURN): Likewise.
(struct GTY): Likewise.
* config/aarch64/aarch64.md: Likewise.
* config/aarch64/aarch64.opt: Likewise.
* config/aarch64/arm_bf16.h: Likewise.
* config/aarch64/arm_neon.h (vbslq_u64): Likewise.
* config/aarch64/cortex-a57-fma-steering.cc: Likewise.
* config/aarch64/driver-aarch64.cc (get_cpu_from_id): Likewise.
(host_detect_local_cpu): Likewise.
* config/aarch64/iterators.md: Likewise.
* config/aarch64/thunderx.md: Likewise.
* config/aarch64/thunderx3t110.md: Likewise.

libgcc/ChangeLog:

* config/aarch64/aarch64-unwind.h (aarch64_demangle_return_addr): Fix
typos.

5 days agotestsuite: arm: adjust inline assembler for arm-none-eabi
Torbjörn SVENSSON [Mon, 11 May 2026 07:44:51 +0000 (09:44 +0200)] 
testsuite: arm: adjust inline assembler for arm-none-eabi

The fix applied to toplevel-extended-asm-1_0.c in r16-7892-gb02f9495dcf635,
that defines the symbol as a function, also needs to be applied to
toplevel-simple-asm-1_0.c.

gcc/testsuite/ChangeLog:

* gcc.dg/lto/toplevel-simple-asm-1_0.c: Adjust inline assembler
for arm-none-eabi.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
5 days agogccrs: Fix ICE when parsing empty path expression
Yap Zhi Heng [Tue, 26 May 2026 14:39:34 +0000 (22:39 +0800)] 
gccrs: Fix ICE when parsing empty path expression

gcc/rust/ChangeLog:

* parse/rust-parse-impl.hxx(parse_expr_stmt): Return error early when
parse_path_in_expression() returns an error node.

Signed-off-by: Yap Zhi Heng <yapzhhg@gmail.com>
5 days agogccrs: register the Drop lang item
lishin [Tue, 26 May 2026 16:44:14 +0000 (16:44 +0000)] 
gccrs: register the Drop lang item

gcc/rust/ChangeLog:

* util/rust-lang-item.h (Rust::LangItem::Kind): Add DROP.
* util/rust-lang-item.cc (Rust::LangItem::lang_items): Add drop lang item.

gcc/testsuite/ChangeLog:

* rust/compile/drop-lang-item.rs: New test.

Signed-off-by: lishin <lishin1008@gmail.com>
5 days agogccrs: Fix intrinsic error location
Jean-Christian CÎRSTEA [Tue, 12 May 2026 12:22:03 +0000 (15:22 +0300)] 
gccrs: Fix intrinsic error location

When an intrisic is used with an incorrect type, prin the location of
the call site, not the declaration.

Fixes Rust-GCC/gccrs#4465.

gcc/rust/ChangeLog:

* backend/rust-intrinsic-handlers.cc
(check_for_basic_integer_type): Fixed typo.
(build_atomic_builtin_name): Update message.
(unchecked_op, atomic_store, ctlz_handler)
(cttz_handler, bswap_handler): Use call location.

gcc/testsuite/ChangeLog:

* rust/compile/bswap.rs: Update error location.
* rust/compile/ctlz.rs: Likewise.
* rust/compile/ctlz_nonzero.rs: Likewise.
* rust/compile/cttz.rs: Likewise.
* rust/compile/cttz_nonzero.rs: Likewise.
* rust/compile/torture/intrinsics-5.rs: Likewise.
* rust/compile/torture/intrinsics-7.rs: Likewise.

Signed-off-by: Jean-Christian CÎRSTEA <jean-christian.cirstea@tuta.com>
5 days agogccrs: Support labeled block value breaks in HIR lowering
Islam-Imad [Tue, 21 Apr 2026 13:18:40 +0000 (15:18 +0200)] 
gccrs: Support labeled block value breaks in HIR lowering

This change implements backend lowering support for Rust labeled blocks.

Previously, labeled blocks were rejected in "CompileExpr::visit(BlockExpr)"
as unsupported. With this patch, labeled blocks are lowered by introducing
the following :-

1. A backend "LABEL_DECL" used as the jump target for "break 'label".
2. A temporary "Bvariable" used to hold the block’s resulting value.

gcc/rust/ChangeLog:

* backend/rust-compile-expr.cc (CompileExpr::visit): Lower labeled block.
(CompileExpr::construct_block_label): Utility function to construct block label.
(CompileExpr::lookup_label): Utility function to lookup label.
(CompileExpr::lookup_temp_var): Utility function to lookup block temp variables.
(CompileExpr::resolve_util): Utility to resolve NodeId to HirId.
* backend/rust-compile-expr.h: Header functions.
* resolve/rust-late-name-resolver-2.0.cc (Late::visit): Fix label resolution.

gcc/testsuite/ChangeLog:

* rust/execute/cf-labeled-block.rs: New test.

Signed-off-by: Islam-Imad <islamimad404@gmail.com>
5 days agogccrs: testsuite: Add a testcase for issue 4159
Harishankar [Thu, 7 May 2026 11:01:05 +0000 (16:31 +0530)] 
gccrs: testsuite: Add a testcase for issue 4159

gcc/testsuite/ChangeLog:
* rust/compile/issue-4159.rs: New test

Signed-off-by: Harishankar <harishankarpp7@gmail.com>
5 days agogccrs: testsuite: Add a testcase for issue 4158
Harishankar [Thu, 7 May 2026 11:32:09 +0000 (17:02 +0530)] 
gccrs: testsuite: Add a testcase for issue 4158

gcc/testsuite/ChangeLog:
* rust/compile/issue-4158.rs: New test.
Signed-off-by: Harishankar <harishankarpp7@gmail.com>
5 days agogccrs: util: Switch VisType to an enum class and rename variants.
Arthur Cohen [Mon, 18 May 2026 15:37:20 +0000 (17:37 +0200)] 
gccrs: util: Switch VisType to an enum class and rename variants.

gcc/rust/ChangeLog:

* hir/tree/rust-hir-visibility.h: Switch Visibility::VisType to an enum class, adapt
variants' case.
* backend/rust-compile-base.cc (HIRCompileBase::setup_fndecl): Use the new enum API.
* backend/rust-compile-implitem.cc (CompileTraitItem::visit): Likewise.
* checks/errors/privacy/rust-visibility-resolver.cc
(VisibilityResolver::resolve_visibility): Likewise.
* hir/rust-ast-lower.cc (translate_visibility): Likewise.
* hir/tree/rust-hir.cc (Visibility::to_string): Likewise.
* metadata/rust-export-metadata.cc (PublicInterface::is_crate_public): Likewise.
* util/rust-hir-map.cc (Mappings::Mappings): Likewise.

5 days agogccrs: testsuite: Add a testcase for issue 3537
Harishankar [Wed, 6 May 2026 13:37:56 +0000 (19:07 +0530)] 
gccrs: testsuite: Add a testcase for issue 3537

Fixes Rust-GCC/gccrs#3537
gcc/testsuite/ChangeLog:
* rust/compile/issue-3537.rs: New test.

Signed-off-by: Harishankar <harishankarpp7@gmail.com>
5 days agogccrs: Add feature gate for rustc_const_stable attribute
Pierre-Emmanuel Patry [Thu, 30 Apr 2026 13:46:13 +0000 (15:46 +0200)] 
gccrs: Add feature gate for rustc_const_stable attribute

rustc_const_stable attributes are used within the core library but were
not properly feature gated. The compiler now rejects their usage when
the feature has not been explicitly enabled.

gcc/rust/ChangeLog:

* checks/errors/feature/rust-feature-gate.cc (FeatureGate::visit): Add
a feature gate around rustc_const_stable attributes.

gcc/testsuite/ChangeLog:

* rust/compile/const-issue1440.rs: Enable staged_api feature.
* rust/compile/for-loop1.rs: Likewise.
* rust/compile/for-loop2.rs: Likewise.
* rust/compile/issue-1031.rs: Likewise.
* rust/compile/issue-1289.rs: Likewise.
* rust/compile/iterators1.rs: Likewise.
* rust/compile/rustc_const_stable.rs: Likewise.
* rust/compile/torture/issue-1075.rs: Likewise.
* rust/compile/torture/issue-1432.rs: Likewise.
* rust/execute/torture/const-generics-7.rs: Likewise.
* rust/execute/torture/for-loop1.rs: Likewise.
* rust/execute/torture/for-loop2.rs: Likewise.
* rust/execute/torture/issue-1120.rs: Likewise.
* rust/execute/torture/issue-1133.rs: Likewise.
* rust/execute/torture/issue-1232.rs: Likewise.
* rust/execute/torture/issue-1436.rs: Likewise.
* rust/execute/torture/iter1.rs: Likewise.
* rust/execute/torture/slice-magic.rs: Likewise.
* rust/execute/torture/slice-magic2.rs: Likewise.
* rust/execute/torture/str-layout1.rs: Likewise.
* rust/compile/missing_staged_api.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
5 days agogccrs: lex: Emit E0768 for empty non-decimal literals
Enes Cevik [Wed, 29 Apr 2026 20:18:09 +0000 (23:18 +0300)] 
gccrs: lex: Emit E0768 for empty non-decimal literals

Previously, the lexer evaluated empty non-decimal literals (like 0x, 0b, 0o) as 0.
Now, it emits error E0768 when there are no valid digits.

gcc/rust/ChangeLog:

* lex/rust-lex.cc (Lexer::parse_non_decimal_int_literal): Emit E0768.

gcc/testsuite/ChangeLog:

* rust/compile/empty-non-decimal.rs: New test.

Signed-off-by: Enes Cevik <nsvke@proton.me>
5 days agogccrs: Defer literal suffix validation to parser and preserve source fidelity
Enes Cevik [Mon, 6 Apr 2026 10:16:35 +0000 (13:16 +0300)] 
gccrs: Defer literal suffix validation to parser and preserve source fidelity

Number literal evaluation and suffix validation should be done after macro expansion,
so we defer these to the parser phase. This preserves source fidelity for macro token
trees.

gcc/rust/ChangeLog:

* ast/rust-ast-collector.cc (TokenCollector::visit): Update Token::make_int and
Token::make_float calls to include suffix_start and IntegerLiteralBase::Decimal.
* expand/rust-macro-builtins-location.cc (MacroBuiltin::column_handler): Pass string
length and base to Token::make_int.
(MacroBuiltin::line_handler): Likewise.
* lex/rust-lex.cc (Lexer::parse_in_type_suffix): Rename to parse_in_suffix and return
string instead of PrimitiveCoreType.
(Lexer::parse_in_suffix): Remove underscore stripping to preserve source fidelity for
macros.
(Lexer::parse_in_exponent_part): Preserve '+' and '-' characters in the raw string.
(Lexer::parse_in_decimal): Remove underscore stripping.
(Lexer::parse_non_decimal_int_literal): Track suffix start index and pass literal base.
(Lexer::parse_non_decimal_int_literals): Use IntegerLiteralBase enum values instead of
raw integers.
(Lexer::parse_decimal_int_or_float): Track suffix string length and pass base parameters
to token creation.
* lex/rust-lex.h: Update method signatures for suffix parsing.
* lex/rust-token.h (enum class IntegerLiteralBase): New enum to represent numeric bases.
* parse/rust-parse-impl-expr.hxx: use LiteralResolve functions to evaluate raw token
strings.
* parse/rust-parse-impl-pattern.hxx: Use evaluated literal strings for INT and FLOAT
tokens.
* parse/rust-parse.cc (resolve_literal_suffix): Move suffix validation logic from lexer
to parser.
(evaluate_integer_literal): New function to strip underscores and convert to decimal via
GMP.
(evaluate_float_literal): New function to strip underscores from floats.
* parse/rust-parse.h (evaluate_integer_literal): Declare in LiteralResolve namespace.
(evaluate_float_literal): Likewise.
(resolve_literal_suffix): Likewise.
* util/rust-token-converter.cc (from_literal): Safely reconstruct raw text and suffix to
dynamically determine base and suffix_start for ProcMacros.

gcc/testsuite/ChangeLog:

* rust/compile/deferred-suffix-validation.rs: New test.
* rust/compile/evaluate-integer-or-float.rs: New test.
* rust/compile/tuple-index.rs: New test.

Signed-off-by: Enes Cevik <nsvke@proton.me>
5 days agogccrs: nr: Do first part of path resolution in types NS
Arthur Cohen [Mon, 23 Mar 2026 11:52:00 +0000 (12:52 +0100)] 
gccrs: nr: Do first part of path resolution in types NS

gcc/rust/ChangeLog:

* resolve/rust-name-resolution-context.hxx: Do segment resolution in types NS for more
correctness and correct behavior when later resolving paths that use imports and/or
modules.

5 days agogccrs: nr: Move path resolution from ForeverStack to NRCtx
Arthur Cohen [Mon, 23 Mar 2026 04:36:16 +0000 (05:36 +0100)] 
gccrs: nr: Move path resolution from ForeverStack to NRCtx

gcc/rust/ChangeLog:

* resolve/rust-forever-stack.h: Move declarations from ForeverStack to NRCtx, make most
of the ForeverStack members public as it helps the Ctx a lot.
* resolve/rust-forever-stack.hxx: Move implementation of resolve_path methods to NRCtx.
* resolve/rust-name-resolution-context.h: Declare resolve_path methods.
* resolve/rust-name-resolution-context.hxx: New file with resolve_path impls.

5 days agogccrs: Add assert macro handler
Pierre-Emmanuel Patry [Fri, 3 Apr 2026 11:21:14 +0000 (13:21 +0200)] 
gccrs: Add assert macro handler

Assert macro handler was missing, insert a basic handler that desugars to
a condition and a call to panic.

gcc/rust/ChangeLog:

* expand/rust-macro-builtins-log-debug.cc (MacroBuiltin::assert_handler):
Add basic assert builtin macro handler.

gcc/testsuite/ChangeLog:

* rust/compile/assert_missing_panic.rs: New test.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
5 days agogccrs: Fix ICE cloning trait functions without return types
lishin [Mon, 20 Apr 2026 18:39:04 +0000 (19:39 +0100)] 
gccrs: Fix ICE cloning trait functions without return types

Fixes Rust-GCC/gccrs#3972.

Trait functions without an explicit return type can have a null
`return_type` in `TraitFunctionDecl`. When such declarations are copied,
the copy constructor and assignment operator currently try to clone the
return type unconditionally, and this can lead to an ICE.

Handle this case by keeping `nullptr` when there is no return type to
clone. Also add a regression test for the example from Rust-GCC/gccrs#3972.

gcc/rust/ChangeLog:

* hir/tree/rust-hir-item.cc (TraitFunctionDecl::TraitFunctionDecl):
Handle null return types in copy constructor.
(TraitFunctionDecl::operator=): Likewise.

gcc/testsuite/ChangeLog:

* rust/compile/issue-3972.rs: New test.

Signed-off-by: lishin <lishin1008@gmail.com>
5 days agogccrs: Recognize warn and deny as built in attributes
Owen Avery [Sat, 18 Apr 2026 19:19:09 +0000 (15:19 -0400)] 
gccrs: Recognize warn and deny as built in attributes

gcc/rust/ChangeLog:

* util/rust-attributes.cc (__definitions): Add entries for warn
and deny attributes.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
5 days agogccrs: Fix ICE in get_function_expr when cfg'd return type inside macro
Harishankar [Fri, 17 Apr 2026 09:38:48 +0000 (15:08 +0530)] 
gccrs: Fix ICE in get_function_expr when cfg'd return type inside macro

the problem is cfg-strip emits an error for unstrippable expressions but
doesn't mark the parent for strip, leaving a broken subtree for later
passes to ICE on.

gcc/rust/ChangeLog:

* expand/rust-cfg-strip.cc (CfgStrip::visit): mark CallExpr for
strip when function expression fails stripping.
(CfgStrip::visit): mark ArrayIndexExpr for strip when array or
index expression fails stripping.

gcc/testsuite/ChangeLog:

* rust/compile/issue-4167.rs: New test.

Signed-off-by: Harishankar <harishankarpp7@gmail.com>
5 days agogccrs: Fix corrupted GIMPLE for CompoundAssignmentExpr in const context
Islam-Imad [Sat, 11 Apr 2026 17:31:45 +0000 (19:31 +0200)] 
gccrs: Fix corrupted GIMPLE for CompoundAssignmentExpr in const context

CompoundAssignmentExpr codegen was missing the final assignment statement
when it was evaluated in a const context.

gcc/rust/ChangeLog:

* backend/rust-compile-expr.cc (CompileExpr::visit): Emit the
missing assignment for CompoundAssignmentExpr.

gcc/testsuite/ChangeLog:

* rust/compile/const-compound-assignment.rs: New test.
* rust/execute/const-compound-assignment.rs: New test.

Signed-off-by: Islam-Imad <islamimad404@gmail.com>
5 days agogccrs: Clean up of obsolete nr2 command line option
fisnikhasani [Thu, 2 Apr 2026 13:27:11 +0000 (15:27 +0200)] 
gccrs: Clean up of obsolete nr2 command line option

Fixes: Rust-GCC/gccrs#4503
gcc/rust/ChangeLog:

* lang.opt (flag_name_resolution_2_0): Remove.
* resolve/rust-name-resolver.cc: Remove include.

Signed-off-by: Fisnik Hasani <opensource@fisnikhasani.com>
5 days agoRegenerate some autoconf configure scripts after recent spelling fixes.
Jakub Jelinek [Mon, 1 Jun 2026 10:00:00 +0000 (12:00 +0200)] 
Regenerate some autoconf configure scripts after recent spelling fixes.

The
r17-1010-gd1051b48f8330
r17-1031-ga886b383b26a0
r17-1033-g06fb00cb66d88
commits failed to regenerate corresponding generated scripts.

Fixed thusly.

2026-06-01  Jakub Jelinek  <jakub@redhat.com>

gcc/
* configure: Regenerate.
libgm2/
* configure: Regenerate.
libiberty/
* configure: Regenerate.

5 days agolibgomp/oacc-mem: add missing assert to goacc_enter_datum
Arsen Arsenović [Fri, 24 Apr 2026 12:58:49 +0000 (12:58 +0000)] 
libgomp/oacc-mem: add missing assert to goacc_enter_datum

A bug I accidentally introduced made it so that new variables are
allocated with some room to spare before them, and ergo, that tgt_offset
!= 0, leading to tests failing in what looked like a strange way.  Turns
out, goacc_enter_datum was failing to validate its assumption that
tgt_offset == 0.  This patch adds that assert.

libgomp/ChangeLog:

* oacc-mem.c (goacc_enter_datum): Assert that tgt_offset of the
newly-mapped variable is zero.

5 days agolibgomp/plugin-gcn: remove unneeded heap allocation in run_kernel
Arsen Arsenović [Fri, 24 Apr 2026 12:04:45 +0000 (12:04 +0000)] 
libgomp/plugin-gcn: remove unneeded heap allocation in run_kernel

So far, the GCN plugin has used a kernel_dispatch struct instance it
calls "shadow" to keep effectively a copy of part of the HSA dispatch
packet before populating said packet.  It also allocated it on the heap.

This, at first glance, seems useless: why double up the data in a shadow
when it's already in packet?

But, it serves a purpose.  The packet is owned by the HSA runtime.
After dispatch, its contents are to be considered no longer accessible
by the dispatcher (i.e. run_kernel).  So, we can't read back from it the
addresses or handles of resources we allocated, and so, we can't clean
them up.

However, this allocation doesn't need to happen on the heap.  It's of a
known fixed size, and its lifetime is the same as the lifetime of an
automatic variable.

This patch demotes the heap allocation into an automatic variable, and
adds commentary to make it clear what the purpose of this "shadow" is.
In the end, the result of this patch is that the run_kernel hot path has
one fewer allocation.

I've also taken the opportunity to do some very minor code cleanup.

libgomp/ChangeLog:

* plugin/plugin-gcn.c (struct kernel_dispatch): Store
hsa_signal_t, rather than a uint64_t, so that we don't rely on
knowledge of the contents of hsa_signal_t.
(create_kernel_dispatch): Rename...
(prepare_kernel_dispatch): ... to this, as it no longer creates
a kernel dispatch.  The allocation that would've created it is
hoisted...
(run_kernel): ... here, as an automatic variable.  Move logic
that copies the fields of kernel_dispatch...
(populate_packet_from_dispatch): ... into this standalone
function, to make it clearer.
(release_kernel_dispatch): Rename....
(cleanup_kernel_dispatch): ... to this, don't free 'shadow'.

5 days agolibgomp: let plugins handle allocating the target variable table
Arsen Arsenović [Thu, 23 Apr 2026 10:47:38 +0000 (10:47 +0000)] 
libgomp: let plugins handle allocating the target variable table

In my examination of BabelStream results on AMD GCN, I've found that,
for each BabelStream kernel execution, we spend significant time in
allocating and initializing memory in gomp_map_vars (~55µs, whereas the
actual BabelStream code executes in ~746µs, meaning we increase the time
BabelStream measures by 7% just on that).

Upon further examination, I've found that the only reason gomp_map_vars
decides to allocate and map any memory in the first place is because it
is constructing the table of pointers to variables on the target, which
I've taken to calling the "target variable table".  Given that the GCN
plugin already must perform some memory allocation before starting up a
kernel, namely to allocate kernel arguments, it would be beneficial if
we could merge this allocation with the kernel arguments allocation.

In addition, since the kernel arguments live in host memory, populating
them can be performed using string functions, without any need to call
for expensive host2dev copies.

This patch introduces an opaque type for "offload sessions".  This type
is defined by each plugin and allows it to store data related to a
single offload job.  The sessions are allocated and managed by libgomp,
and initialized and utilized by the plugin.  Their lifetime starts with
a call to GOMP_OFFLOAD_session_start, and ends with
GOMP_OFFLOAD_{openacc_{async_,}exec,{async_,}run}.

The patch then uses this framework to make management of the target
variable table more flexible: the plugin may elect to implement
GOMP_OFFLOAD_session_allocate_target_var_table, which allows the plugin
to attempt to allocate the target variable table in host memory.

If it fails, or if the plugin does not provide this function, libgomp
will perform this allocation as it does today - in target memory - and
tell the session about it using
GOMP_OFFLOAD_session_set_target_var_table.

In the case of AMD GCN, upon a call to
GOMP_OFFLOAD_session_allocate_target_var_table, the plugin will
immediately allocate kernel arguments with enough space for the target
variable table, no matter what size the plugin asks for[1], and return
that pointer to libgomp.

This results in the runtime of gomp_map_vars effectively disappearing
from traces.

[1] It may be beneficial to limit this, to some fixed amount, to make it
    so that the future allocation cache has a higher cache hit rate.  It
    may also depend on whether hsa_memory_allocate for kernel arguments
    takes runtime proportional to the number of bytes it needs to
    allocate.

include/ChangeLog:

* gomp-constants.h (GOMP_VERSION): Bump.  Signature of
GOMP_OFFLOAD_run et al changed.

libgomp/ChangeLog:

* libgomp-plugin.h (GOMP_OFFLOAD_run, GOMP_OFFLOAD_exec)
(GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_async_exec): Pass
session in place of target variable table and devices.
(struct gomp_offload_session): New.
(GOMP_OFFLOAD_session_size): New
(GOMP_OFFLOAD_check_session_struct): New.
(GOMP_OFFLOAD_session_boilerplate): New.
(GOMP_OFFLOAD_session_start): New.
(GOMP_OFFLOAD_session_allocate_target_var_table): New.
(GOMP_OFFLOAD_session_set_target_var_table): New.
* libgomp.h (struct gomp_target_task): Add offload_session
field.
(struct gomp_device_descr): Add offload session management
functions.
(gomp_offload_session_new): New.
(goacc_map_vars): Add SESSION to signature
* oacc-host.c (struct gomp_offload_session): Define, for host
offload fallback case.
(host_session_size): New.  Implements GOMP_OFFLOAD_session_size.
(host_session_start): New.  Implements
GOMP_OFFLOAD_session_start.
(host_session_set_target_var_table): New.  Implements
GOMP_OFFLOAD_session_set_target_var_table.
(host_run): Adjust to match GOMP_OFFLOAD_run.
(host_openacc_exec): Adjust to match GOMP_OFFLOAD_openacc_exec.
(host_openacc_async_exec): Adjust to match
GOMP_OFFLOAD_openacc_async_exec.
* oacc-mem.c (acc_map_data): Adjust call to goacc_map_vars.
(goacc_enter_datum): Ditto.
(goacc_enter_data_internal): Ditto.
* oacc-parallel.c (GOACC_parallel_keyed): Allocate and pass
offload session.
(GOACC_data_start): Adjust call to goacc_map_vars.
* plugin/plugin-gcn.c (struct kernel_dispatch): Remove
kernarg_cache_node.
(struct kernargs): Add a flexible array member for the target
variable table.
(struct kernel_launch): Store an offload session rather than
target var. table pointer.
(print_kernel_dispatch): Receive kernargs as parameter.
(struct gomp_offload_session): Define.
(init_session): New.
(GOMP_OFFLOAD_session_start): Implement, using init_session.
(release_session): New.
(alloc_kernargs_on_agent): Rename to...
(allocate_session_kernargs): ... this, store result in
passed-in SESSION, and allocate extra room for target variable
table (rounding it up to nearest multiple of 64 pointers).
(GOMP_OFFLOAD_session_allocate_target_var_table): Implement
using the previous function.
(GOMP_OFFLOAD_session_set_target_var_table): Ditto.
(create_kernel_dispatch): Remove kernarg allocation, instead
receiving it as an argument.
(release_kernel_dispatch): Receive kernargs as an argument,
don't release them.
(run_kernel): Adjust to use sessions.
(destroy_module): Ditto.
(GOMP_OFFLOAD_load_image): Ditto.
(execute_queue_entry): Adjust to match changed struct
kernel_launch.
(queue_push_launch): Ditto.
(gcn_exec): Receive and pass along session.
(GOMP_OFFLOAD_run): Ditto.
(GOMP_OFFLOAD_async_run): Ditto.
(GOMP_OFFLOAD_openacc_exec): Ditto.
(GOMP_OFFLOAD_openacc_async_exec): Ditto.
* plugin/plugin-nvptx.c (struct gomp_offload_session): Define.
(GOMP_OFFLOAD_session_start): Implement.
(GOMP_OFFLOAD_session_set_target_var_table): Implement.
(GOMP_OFFLOAD_openacc_exec): Adjust to receive session.
(GOMP_OFFLOAD_openacc_async_exec): Ditto.
(GOMP_OFFLOAD_run): Ditto.
* target.c (gomp_get_tvt_size): Extract helper from...
(gomp_map_vars_internal): ... here.  Receive SESSION, iff doing
target offload.  Use a target variable table on the host
allocated by GOMP_OFFLOAD_session_allocate_target_var_table if
possible, or call GOMP_OFFLOAD_session_set_target_var_table with
an allocated device pointer otherwise.
(gomp_map_vars): Update to pass along session.
(goacc_map_vars): Ditto.
(GOMP_target): Allocate and pass along session.
(GOMP_target_ext): Ditto.
(gomp_target_data_fallback): Adjust call to gomp_map_vars.
(GOMP_target_data): Ditto.
(GOMP_target_data_ext): Ditto.
(GOMP_target_enter_exit_data): Ditto.
(gomp_target_task_fn): Start and pass along session, the storage
for which is allocated by gomp_create_target_task.
(DLSYM2): Rename from DLSYM, adding a new parameter for the
variable to populate, akin to DLSYM_OPT.
(DLSYM): Delegate to DLSYM2.
(gomp_load_plugin_for_device): Populate session-related fields.
* task.c (gomp_create_target_task): Allocate enough storage for
an offload session.
* testsuite/libgomp.c-c++-common/gcn-kernel-launch-no-tvt-alloc.c: New test.
* testsuite/libgomp.c-c++-common/gcn-kernel-launch-tvt-alloc.c: New test.

5 days agolibgomp/gcn: parallelize initializing threads of a team
Arsen Arsenović [Thu, 12 Feb 2026 15:42:02 +0000 (15:42 +0000)] 
libgomp/gcn: parallelize initializing threads of a team

Currently, libgomp performs initialization of all threads in a team
in its lead thread, and then releases all threads to do work.  This
means that, before reaching the release, each thread is doing nothing,
waiting for the lead threads to do lots of thread initialization
operations.

This initialization is identical for each thread.

We can parallelize it by performing this initialization in each thread,
after releasing each.  This allows the threads of a team to be released
near-immediately, which should cut team startup time roughly by just
under the number of threads.

In order to achieve this, the lead thread prepares the parameters each
thread needs for initialization by copying them into an object each will
be able to read from, and only initializes each remaining thread in the
team with a few pointers.

No functional changes intended in this commit.  It may seem like there
is a functional change, as gomp_prep_our_thread no longer sets
icv.nthreads_var, whereas the old code did, but the value that was being
set by old code was always equal to the value already present in the
ICV, because both are initialized from parent tasks ICV (or global ICV
if that's missing) and, hence, the write was always redundant.

libgomp/ChangeLog:

* libgomp.h (struct gomp_thread_start_data): New struct.  Holds
thread-independent parameters needed to initialize current
thread.
(struct gomp_team): On GCN, add thr_start_data field, that holds
a gomp_thread_start_data to be used in each thread.
(struct gomp_thread): Add start_data field, that points to
thread initialization parameters.
* config/gcn/team.c (gomp_team_start): Move thread
initialization steps into ...
(gomp_prep_our_thread): this new function, such that it reads
from a gomp_thread_start_data object.
(gomp_thread_start): Call the above to initialize our thread.

5 days agolibstdc++: Fix typo in piecewise_constant_distribution::param_type constructor.
Tomasz Kamiński [Mon, 1 Jun 2026 08:02:15 +0000 (10:02 +0200)] 
libstdc++: Fix typo in piecewise_constant_distribution::param_type constructor.

Fixed typo in r17-509-g7bed7d9276c11b: The __fw should be called with
__xmin + 0.5 * __delta (as in existing loop), not __xmin * 0.5 * __delta.

libstdc++-v3/ChangeLog:

* include/bits/random.tcc
(piecewise_constant_distribution:::param_type::param_type):
Replace * with + in __fw argument.

5 days agoi386: Add tuning to disable memory-form NDD
Hongyu Wang [Fri, 29 May 2026 07:18:08 +0000 (15:18 +0800)] 
i386: Add tuning to disable memory-form NDD

Benchmark shows memory form of NDD instructions is not beneficial
on NovaLake.  Add X86_TUNE_ENABLE_NDD_MEM tuning (default off) to
deprioritize NDD alternatives with memory source operands via the
preferred_for_speed attribute. For pure NDD patterns that have a
single alternative with rm constraint, split into r,m alternatives
and apply preferred_for_speed on the memory alternative. For legacy
patterns with NDD alternatives, also split the NDD rm constraint
into separate r and m alternatives so the deprioritization targets
only the memory form.

gcc/ChangeLog:

* config/i386/i386.h (TARGET_ENABLE_NDD_MEM): New.
* config/i386/x86-tune.def (X86_TUNE_ENABLE_NDD_MEM): New.
* config/i386/i386.md (*add<dwi>3_doubleword): Split NDD rm
to r,m and add preferred_for_speed for NDD memory alternatives.
(*add<dwi>3_doubleword_zext): Likewise.
(*add<mode>_1<nf_name>): Likewise.
(addsi_1_zext): Likewise.
(*addhi_1<nf_name>): Likewise.
(*addqi_1<nf_name>): Likewise.
(*add<mode>_2): Likewise.
(*addsi_2_zext): Likewise.
(*add<mode>_3): Likewise.
(*addsi_3_zext): Likewise.
(*add<mode>_5): Likewise.
(*addv<mode>4): Likewise.
(addv<mode>4_1): Likewise.
(*addv<dwi>4_doubleword_1): Likewise.
(*addv<mode>4_overflow_1): Likewise.
(*addv<mode>4_overflow_2): Likewise.
(*sub<dwi>3_doubleword): Likewise.
(*sub<dwi>3_doubleword_zext): Likewise.
(*sub<mode>_1<nf_name>): Likewise.
(*subsi_1_zext): Likewise.
(*sub<mode>_2): Likewise.
(*subsi_2_zext): Likewise.
(*subv<mode>4): Likewise.
(subv<mode>4_1): Likewise.
(*subv<dwi>4_doubleword_1): Likewise.
(*subv<mode>4_overflow_1): Likewise.
(*subv<mode>4_overflow_2): Likewise.
(*sub<mode>_3): Likewise.
(*subsi_3_zext): Likewise.
(@add<mode>3_carry): Likewise.
(*add<mode>3_carry_2): Likewise.
(*addsi3_carry_zext): Likewise.
(*addsi3_carry_zext_0): Likewise.
(*addsi3_carry_zext_0r): Likewise.
(addcarry<mode>): Likewise.
(*addcarry<mode>_1): Likewise.
(@sub<mode>3_carry): Likewise.
(*sub<mode>3_carry_2): Likewise.
(*subsi3_carry_zext): Likewise.
(*subsi3_carry_zext_0): Likewise.
(*subsi3_carry_zext_0r): Likewise.
(subborrow<mode>): Likewise.
(*subborrow<mode>_1): Likewise.
(*add<mode>3_cconly_overflow_1): Likewise.
(@add<mode>3_cc_overflow_1): Likewise.
(*addsi3_zext_cc_overflow_1): Likewise.
(*add<mode>3_cconly_overflow_2): Likewise.
(*add<mode>3_cc_overflow_2): Likewise.
(*addsi3_zext_cc_overflow_2): Likewise.
(*mul<mode>3_1<nf_name>): Likewise.
(*mulsi3_1_zext<nf_name>): Likewise.
(*mulv<mode>4): Likewise.
(*mulvhi4): Likewise.
(*and<dwi>3_doubleword): Likewise.
(*anddi_1<nf_name>): Likewise.
(*andsi_1_zext): Likewise.
(*andqi_1<nf_name>): Likewise.
(*anddi_2): Likewise.
(*andsi_2_zext): Likewise.
(*andqi_2_maybe_si): Likewise.
(*and<mode>_2): Likewise.
(*<code><dwi>3_doubleword): Likewise.
(*<code><mode>_1<nf_name>): Likewise.
(*notxor<mode>_1): Likewise.
(*<code>si_1_zext): Likewise.
(*<code>si_1_zext_imm): Likewise.
(*<code>qi_1<nf_name>): Likewise.
(*notxorqi_1): Likewise.
(*<code><mode>_2): Likewise.
(*<code>si_2_zext): Likewise.
(*<code>si_2_zext_imm): Likewise.
(*neg<dwi>2_doubleword): Likewise.
(*neg<mode>_1<nf_name>): Likewise.
(*negsi_1_zext): Likewise.
(*neg<mode>_2): Likewise.
(*negsi_2_zext): Likewise.
(*neg<mode>_ccc_1): Likewise.
(*neg<mode>_ccc_2): Likewise.
(*one_cmpl<dwi>2_doubleword): Likewise.
(*one_cmpl<mode>2_1): Likewise.
(*one_cmplsi2_1_zext): Likewise.
(*one_cmplqi2_1): Likewise.
(*one_cmpl<mode>2_2): Likewise.
(*one_cmplsi2_2_zext): Likewise.
(*ashl<dwi>3_doubleword_highpart): Likewise.
(*ashl<mode>3_1<nf_name>): Likewise.
(*ashlsi3_1_zext): Likewise.
(*ashlhi3_1<nf_name>): Likewise.
(*ashlqi3_1<nf_name>): Likewise.
(*ashl<mode>3_cmp): Likewise.
(*ashlsi3_cmp_zext): Likewise.
(*ashl<mode>3_cconly): Likewise.
(ashr<mode>3_cvt<nf_name>): Likewise.
(*ashrsi3_cvt_zext): Likewise.
(*ashr<mode>3_1<nf_name>): Likewise.
(*highpartdisi2): Likewise.
(*lshr<mode>3_1<nf_name>): Likewise.
(*<insn>si3_1_zext): Likewise.
(*lshrqi3_1<nf_name>): Likewise.
(*lshrhi3_1<nf_name>): Likewise.
(*<insn><mode>3_cmp): Likewise.
(*<insn>si3_cmp_zext): Likewise.
(*<insn><mode>3_cconly): Likewise.
(*<insn><mode>3_1<nf_name>): Likewise.
(*<insn>si3_1_zext): Likewise.
(rcrsi2): Likewise.
(rcrdi2): Likewise.
(<insn><mode>3_carry): Likewise.
(*mov<mode>cc_noc): Likewise.
(*movsicc_noc_zext): Likewise.
(*movsicc_noc_zext_1): Likewise.
(*addqi3_carry_zext<mode>_0): Likewise.
(*addhi3_carry_zext<mode>_0): Likewise.
(*addqi3_carry_zext<mode>_0r): Likewise.
(*addhi3_carry_zext<mode>_0r): Likewise.
(*subqi3_carry_zext<mode>_0): Likewise.
(*subhi3_carry_zext<mode>_0): Likewise.
(*subqi3_carry_zext<mode>_0r): Likewise.
(*subhi3_carry_zext<mode>_0r): Likewise.
(*negqi_1_zext<mode><nf_name>): Likewise.
(*neghi_1_zext<mode><nf_name>): Likewise.
(*one_cmplqi2_1_zext<mode>): Likewise.
(*one_cmplhi2_1_zext<mode>): Likewise.
(x86_64_shld_ndd<nf_name>): Likewise.
(x86_64_shld_ndd_1<nf_name>): Likewise.
(x86_shld_ndd<nf_name>): Likewise.
(x86_shld_ndd_1<nf_name>): Likewise.
(*ashlqi3_1_zext<mode><nf_name>): Likewise.
(*ashlhi3_1_zext<mode><nf_name>): Likewise.
(x86_64_shrd_ndd<nf_name>): Likewise.
(x86_64_shrd_ndd_1<nf_name>): Likewise.
(x86_shrd_ndd<nf_name>): Likewise.
(x86_shrd_ndd_1<nf_name>): Likewise.
(*<insn>qi3_1_zext<mode><nf_name>): Likewise.
(*<insn>hi3_1_zext<mode><nf_name>): Likewise.
* config/i386/sse.md
(*kortest_cmp<mode>_mov<mode>cc): Add
preferred_for_speed for NDD memory alternatives.

gcc/testsuite/ChangeLog:

* gcc.target/i386/apx-ndd-2.c: Add -mtune-ctrl=enable_ndd_mem.
* gcc.target/i386/apx-ndd-adc.c: Likewise.
* gcc.target/i386/apx-ndd-base-index-1.c: Likewise.
* gcc.target/i386/apx-ndd-cmov.c: Likewise.
* gcc.target/i386/apx-ndd-no-seg-global-1.c: Likewise.
* gcc.target/i386/apx-ndd-sbb.c: Likewise.
* gcc.target/i386/apx-ndd-seg-1.c: Likewise.
* gcc.target/i386/apx-ndd-seg-2.c: Likewise.
* gcc.target/i386/apx-ndd-seg-3.c: Likewise.
* gcc.target/i386/apx-ndd-seg-4.c: Likewise.
* gcc.target/i386/apx-ndd-seg-5.c: Likewise.
* gcc.target/i386/apx-ndd-shld-shrd.c: Likewise.
* gcc.target/i386/apx-ndd-tls-1a.c: Likewise.
* gcc.target/i386/apx-ndd-tls-1b.c: Likewise.
* gcc.target/i386/apx-ndd-tls-2.c: Likewise.
* gcc.target/i386/apx-ndd-tls-3.c: Likewise.
* gcc.target/i386/apx-ndd-tls-4.c: Likewise.
* gcc.target/i386/apx-ndd-x32-1.c: Likewise.
* gcc.target/i386/apx-ndd-x32-2a.c: Likewise.
* gcc.target/i386/apx-ndd-x32-2b.c: Likewise.
* gcc.target/i386/apx-ndd-x32-2c.c: Likewise.
* gcc.target/i386/apx-ndd-x32-2d.c: Likewise.
* gcc.target/i386/apx-ndd.c: Likewise.
* gcc.target/i386/pr113729.c: Likewise.
* gcc.target/i386/pr113729-adc-sbb.c: Likewise.
* gcc.target/i386/pr79173-13.c: Likewise.
* gcc.target/i386/pr79173-14.c: Likewise.
* gcc.target/i386/pr79173-15.c: Likewise.
* gcc.target/i386/pr79173-16.c: Likewise.

5 days agoi386: Disable SETcc.ZU generation on DMR/NVL via tune flag
Hongyu Wang [Tue, 26 May 2026 02:29:04 +0000 (07:59 +0530)] 
i386: Disable SETcc.ZU generation on DMR/NVL via tune flag

Microbenchmark performance on NovaLake/DiamondRapids shows no benefit
from SETcc.ZU encoding on these cores.  Add X86_TUNE_DISABLE_SETZUCC
to suppress setzucc generation for DMR/NVL while keeping it enabled
for other APX-capable targets.

gcc/ChangeLog:

* config/i386/x86-tune.def (X86_TUNE_DISABLE_SETZUCC): New.
Enable for m_DIAMONDRAPIDS | m_NOVALAKE.
* config/i386/i386.h (TARGET_DISABLE_SETZUCC): New define.
* config/i386/i386.md (*setcc_<mode>_zu): Guard with
TARGET_APX_ZU && !TARGET_DISABLE_SETZUCC.
(*setcc_di_1, *setcc_<mode>_1_movzbl): Guard with
(!TARGET_APX_ZU || TARGET_DISABLE_SETZUCC).
(*setcc_qi, *setcc_qi_slp): Emit setzucc only when
TARGET_APX_ZU && !TARGET_DISABLE_SETZUCC.

gcc/testsuite/ChangeLog:

* gcc.target/i386/apx-zu-4.c: New test.

6 days agodeclare Wild linker capable of LTO bootstrap
Martin Liska [Fri, 29 May 2026 06:28:37 +0000 (08:28 +0200)] 
declare Wild linker capable of LTO bootstrap

gcc/ChangeLog:

* configure.ac: Declare Wild as capable of LTO bootstrap.
* configure: Regenerate.

6 days agoDaily bump.
GCC Administrator [Mon, 1 Jun 2026 00:16:26 +0000 (00:16 +0000)] 
Daily bump.

6 days agorange-op: Add relation effect for integer mult [PR23471]
Andrew Pinski [Sat, 30 May 2026 22:54:59 +0000 (15:54 -0700)] 
range-op: Add relation effect for integer mult [PR23471]

tree_expr_nonnegative_p has code to say `a*a` is nonnegative
(for signed integers). But when I removed the call to
gimple_stmt_nonnegative_p, ranger could not figure out that
that `a*a` is nonnegative. This shows up as a regression
on riscv with `gcc.target/riscv/rvv/vsetvl/avl_single-65.c`.
But you can also reproduce the same issue if we disable forwprop
and look at the result of EVRP and look at the exported range
for that statement.

The fix is to teach the range multiply operator that when
dealing with `a*a`, the lhs will be non-negative.
That is add a op1_op2_relation_effect method to operator_mult
that handles the case where the relationship is equal.

vrp-mult-nonneg-1.c is now a testcase which GCC can optimize
which was not handled before.
vrp-mult-nonneg-2.c is the reduced testcase for PR125513 and the regression.

Bootstrapped and tested on x86_64-linux-gnu.

PR tree-optimization/23471
PR tree-optimization/125513

gcc/ChangeLog:

* range-op-mixed.h (operator_mult): Add op1_op2_relation_effect
for 2xirange.
* range-op.cc (operator_mult::op1_op2_relation_effect): New function.

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/vrp-mult-nonneg-1.c: New test.
* gcc.dg/tree-ssa/vrp-mult-nonneg-2.c: New test.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
6 days ago[RISC-V][PR rtl-optimization/123313] Improve select between reg,-1
Jeff Law [Sun, 31 May 2026 22:34:42 +0000 (16:34 -0600)] 
[RISC-V][PR rtl-optimization/123313] Improve select between reg,-1

So this improves our ability to select across reg,-1.  The early versions of
this patch allowed const,-1, but those sequences weren't any better and
occasionally ever-so-slightly worse, so those are rejected.  I've spot checked
spec2017 where it does show up, but it's not clear that it's showing up in any
hot code.

The basic idea is to use an sCC to generate 1,0, subtract 1 giving 0, -1.  Then
we can IOR that with the other input.  Concretely:

> int f(int a, int b, int c)
> {
>    a = -1;
>    if (c < 10) a = b;
>    return a;
> }

Currently generates:

>         li      a5,9
>         addi    a1,a1,1
>         sgt     a2,a2,a5
>         czero.nez       a2,a1,a2
>         addi    a0,a2,-1
>         ret

After this patch:
>         slti    a0,a2,10
>         addi    a0,a0,-1
>         or      a0,a0,a1
>         ret

Probably the same performance on 4+ wide designs (and perhaps often on a 2 wide
designs).  But it encodes a lot more efficiently, 18 bytes for the first
sequence, just 10 bytes for the second.  That can be important on some designs,
particularly since if-converted blocks are more likely to be large and/or cross
cache line boundaries.

This has been bootstrapped and regression tested on x86, and riscv64.  The
riscv64 bootstraps were on the Pioneer, K1 (early version of the patch) and K3
(most recent versions).  It's also been tested on all the *-elf platforms in my
tester as well as additional bootstraps on platforms like alpha, sh4, etc.

I'll wait for a final confirmation from the pre-commit tester before moving
forward.

PR rtl-optimization/123313
gcc/
* ifcvt.cc (noce_try_store_flag_logical): New function.
(noce_process_if_block): Call it.

gcc/testsuite/
* gcc.target/riscv/pr123313.c: New test.
* gcc.target/riscv/pr124009.c: Adjust expected output.

6 days agoAVR: Fix overly long URLs in the printed PDF documentation
Georg-Johann Lay [Sun, 31 May 2026 18:48:22 +0000 (20:48 +0200)] 
AVR: Fix overly long URLs in the printed PDF documentation

...that are useless since they overflow the page boundaries
by quite some margin.

gcc/
* doc/invoke.texi (AVR Options): Fix overly long URLs.
* doc/extend.texi (Specifying the size of an asm on AVR): Dito.

6 days agogcc: finalize deprecation of -Wstrict-overflow
Daniel Barboza [Tue, 26 May 2026 18:39:30 +0000 (15:39 -0300)] 
gcc: finalize deprecation of -Wstrict-overflow

The flag has been documented as deprecated since GCC 8:

https://gcc.gnu.org/gcc-8/changes.html

"-fno-strict-overflow is now mapped to -fwrapv -fwrapv-pointer (...)
-Wstrict-overflow is deprecated."

But we kept it maintained and functional all along these years until GCC
17, where we're now "finalizing its deprecation" so to speak.

Remove the remaining enum and update all relevant docs and tests to make
it official.

gcc/c-family/ChangeLog:

* c.opt: Removed Wstrict-overflow entry.

gcc/ChangeLog:

* common.opt: Updated Wstrict-overflow entries to indicate that
they do nothing now.
* coretypes.h (enum warn_strict_overflow_code): Enum removed.
* doc/invoke.texi: Updated Wstrict-overflow entries to indicate
that they do nothing now.  Also removed the option from the
"Warning Options" list.
* opts.cc (common_handle_option): Removed OPT_Wstrict_overflow
logic.

gcc/testsuite/ChangeLog:

* gcc.dg/opts-1.c: Removed Wnostrict-overflow option test.

6 days agotestsuite: remove Wstrict-overflow related tests
Daniel Barboza [Tue, 26 May 2026 16:56:05 +0000 (13:56 -0300)] 
testsuite: remove Wstrict-overflow related tests

The following testsuite PRs are related to the now obsolete
Wstrict-overflow option:

- Bug 36227 - [4.3 Regression] POINTER_PLUS folding introduces undefined
  overflow
- Bug 48022 - [4.6 Regression] -Wstrict-overflow warning on code that
  doesn't have overflows
- Bug 49705 - -Wstrict-overflow should not diagnose unevaluated
  expressions
- Bug 52904 - -Wstrict-overflow false alarm with bounded loop

They are exercising code that no longer exists, so remove all of them.
Two other tests (pr81592.c and pragma-diag-3.c) have Wstrict-overflow
checks that got removed.

gcc/testsuite/ChangeLog:

* gcc.dg/pr81592.c: Removed strict-overflow options.
* gcc.dg/pragma-diag-3.c: Removed Wstrict-overflow option, along
with a reference and tests for PR66098 ("[5 regression] #pragma
diagnostic 'ignored' not fullyundone by pop for
strict-overflow").
* gcc.dg/pr36227.c: Removed.
* gcc.dg/pr48022-1.c: Removed.
* gcc.dg/pr48022-2.c: Removed.
* gcc.dg/pr49705.c: Removed.
* gcc.dg/pr52904.c: Removed.

6 days agotestsuite: remove all Wstrict-overflow tests
Daniel Barboza [Fri, 16 Jan 2026 17:02:07 +0000 (09:02 -0800)] 
testsuite: remove all Wstrict-overflow tests

We're no longer issuing Wstrict-overflow warnings, even with the
-Wstrict-overflow flag being used.

Remove the tests that are still testing for it.  They're either compile
tests that are testing cases where a warning shouldn't be issued or
XFAIL tests.

gcc/testsuite/ChangeLog:

* gcc.dg/Wstrict-overflow-10.c: Removed.
* gcc.dg/Wstrict-overflow-11.c: Removed.
* gcc.dg/Wstrict-overflow-12.c: Removed.
* gcc.dg/Wstrict-overflow-13.c: Removed.
* gcc.dg/Wstrict-overflow-14.c: Removed.
* gcc.dg/Wstrict-overflow-15.c: Removed.
* gcc.dg/Wstrict-overflow-16.c: Removed.
* gcc.dg/Wstrict-overflow-17.c: Removed.
* gcc.dg/Wstrict-overflow-18.c: Removed.
* gcc.dg/Wstrict-overflow-19.c: Removed.
* gcc.dg/Wstrict-overflow-2.c: Removed.
* gcc.dg/Wstrict-overflow-20.c: Removed.
* gcc.dg/Wstrict-overflow-21.c: Removed.
* gcc.dg/Wstrict-overflow-23.c: Removed.
* gcc.dg/Wstrict-overflow-26.c: Removed.
* gcc.dg/Wstrict-overflow-27.c: Removed.
* gcc.dg/Wstrict-overflow-4.c: Removed.
* gcc.dg/Wstrict-overflow-6.c: Removed.
* gcc.dg/Wstrict-overflow-7.c: Removed.
* gcc.dg/Wstrict-overflow-8.c: Removed.

6 days agogcc/fold-const: remove fold_*_overflow_warnings
Daniel Barboza [Fri, 16 Jan 2026 16:11:05 +0000 (08:11 -0800)] 
gcc/fold-const: remove fold_*_overflow_warnings

fold_undefer_overflow_warnings () is one of the last few places where
Wstrict_overflow warnings are issued.  It uses a
fold_deferring_overflow_warnings int to determine whether the warning should
be shown, a fold_defer_overflow_warnings helper that increments it,
a fold_deferred_overflow_warning string that stores the
deferred warning, an enum for the warning level of the deferred warning.

Remove all of them along with any related logic.

gcc/c-family/ChangeLog:

* c-common.cc (pointer_int_sum): Removed
fold_*_overflow_warnings uses.

gcc/c/ChangeLog:

* c-fold.cc (c_disable_warnings): Likewise.
(c_enable_warnings): Likewise.

gcc/ChangeLog:

* flags.h (issue_strict_overflow_warning): Removed.
* fold-const.cc (fold_defer_overflow_warnings): Removed.
(fold_undefer_overflow_warnings): Removed.
(fold_undefer_and_ignore_overflow_warnings): Removed.
(fold_deferring_overflow_warnings_p): Removed.
* fold-const.h (fold_defer_overflow_warnings): Removed.
(fold_undefer_overflow_warnings): Removed.
(fold_undefer_and_ignore_overflow_warnings): Removed.
(fold_deferring_overflow_warnings_p): Removed.
* gimple-fold.cc (fold_stmt_1): Removed
fold_*_overflow_warnings uses and all related logic.
* passes.cc (verify_interpass_invariants): Likewise.
(execute_one_ipa_transform_pass): Likewise.
(execute_one_pass): Likewise.
* tree-cfgcleanup.cc (cleanup_control_expr_graph): Likewise.
* tree-data-ref.cc (create_runtime_alias_checks): Likewise.
* tree-ssa-ccp.cc (evaluate_stmt): Likewise.
* tree-ssa-forwprop.cc (combine_cond_expr_cond): Likewise.
* tree-ssa-loop-niter.cc (expand_simple_operations): Likewise.
(number_of_iterations_exit_assumptions): Likewise.
(loop_niter_by_eval): Likewise.
(estimate_numbers_of_iterations): Likewise.
(loop_exits_before_overflow): Likewise.
* tree-ssa-threadedge.cc: Likewise.
* tree-vrp.cc (compare_values): Likewise.

6 days agotree-ssa-loop-ch.cc remove strict_overflow logic
Daniel Barboza [Fri, 16 Jan 2026 16:50:09 +0000 (08:50 -0800)] 
tree-ssa-loop-ch.cc remove strict_overflow logic

Remove the warn_strict_overflow block along with two Wstrict_overflow
supressed warnings.

gcc/ChangeLog:

* tree-ssa-loop-ch.cc (ch_base::copy_headers): Removed
warn_strict_overflow logic.

6 days agogcc/expr.cc: remove Wstrict-overflow from maybe_optimize_sub_cmp_0
Daniel Barboza [Mon, 25 May 2026 17:52:46 +0000 (14:52 -0300)] 
gcc/expr.cc: remove Wstrict-overflow from maybe_optimize_sub_cmp_0

Remove the single instance of Wstrict-overflow warning and the
associated testcase.

gcc/ChangeLog:

* expr.cc (maybe_optimize_sub_cmp_0): Removed warning_at () call
for Wstrict-overflow comparison.

gcc/testsuite/ChangeLog:

* gcc.dg/Wstrict-overflow-25.c: Removed.

6 days agotree-vrp: remove compare_values_warnv ()
Daniel Barboza [Mon, 25 May 2026 17:52:56 +0000 (14:52 -0300)] 
tree-vrp: remove compare_values_warnv ()

Remove compare_values_warn and all the Wstrict-overflow related logic
from the previous callers.

gcc/ChangeLog:

* tree-vrp.cc (compare_values_warnv): Removed.
(compare_values): Changed to do the same thing as the former
compare_values_warn but without the strict_overflow_p logic.
* tree-vrp.h (compare_values_warnv): Removed.
* vr-values.cc (test_for_singularity): Removed the
supress_warning logic that was used by compare_values_warnv.

6 days agotree-ssa-reassoc: remove strict_overflow_p from range_entry
Daniel Barboza [Fri, 16 Jan 2026 11:05:18 +0000 (03:05 -0800)] 
tree-ssa-reassoc: remove strict_overflow_p from range_entry

Continuing the deprecation of -Wstrict-overflow, remove the
strict_overflow_p flag from range_entry and the two associated
warning_at calls.

gcc/ChangeLog:

* tree-ssa-reassoc.cc (init_range_entry): Removed
strict_overflow_p use.
(force_into_ssa_name): Likewise.
(update_range_test): Removed strict_overflow_p from function
signature, along with the flag associated logic and the
warning_at call.
(optimize_range_tests_xor): Removed strict_overflow_p use.
(optimize_range_tests_diff): Likewise.
(optimize_range_tests_to_bit_test): Likewise.
(optimize_range_tests_cmp_bitwise): Likewise.
(optimize_range_tests_var_bound): Removed strict_overflow_p from
function signature, along with the flag associated logic and the
warning_at call.
(optimize_range_tests): Removed strict_overflow_p use.
* tree-ssa-reassoc.h (struct range_entry): Removed
strict_overflow_p flag.

6 days agoAVR: Support [[len=nl]] in asm templates.
Georg-Johann Lay [Sun, 31 May 2026 08:11:35 +0000 (10:11 +0200)] 
AVR: Support [[len=nl]] in asm templates.

Most inline asm consists of 1-word instruction, so their exact
size can be conveniently specified with [[len=nl]], which is
half the default size.

gcc/
* config/avr/avr.cc (avr_length_of_asm): Support "nl" as
the number of lines in the code template.
* doc/extend.texi (Size of an asm): Document [[len=nl]].
Simplify the description of the default length.

7 days agohppa: Fix clear_cache pattern and use it in pa_trampoline_init
John David Anglin [Sun, 31 May 2026 00:43:04 +0000 (20:43 -0400)] 
hppa: Fix clear_cache pattern and use it in pa_trampoline_init

The clear_cache pattern was broken and only flushed the instruction
cache.  On PA-RISC, both the data and instruction caches need to be
flushed and these flushes need to be separated by a sync instruction.

The code is reworked and simplified.

2026-05-30  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

* config/pa/pa.cc (pa_trampoline_init): Rework to use
clear_cache pattern.
* config/pa/pa.md (dcacheflush): Use "<<" condition instead
of "<<=".
(icacheflush): Remove.
(icacheflush1, icacheflush2, icacheflush3): New flush patterns
for PA 1.x targets, PA 2.0 targets, and PA 1.x no space
register targets.
(clear_cache): Rework to flush data and instruction caches.
Skip flush if the start address is greater than or equal to
the end address.  Don't align the end address to a cacheline
boundary.  Handle instruction flushes for PA 1.x targets,
PA 2.0 targets, and PA 1.x no space register targets.

7 days agoDaily bump.
GCC Administrator [Sun, 31 May 2026 00:16:35 +0000 (00:16 +0000)] 
Daily bump.

7 days agotestsuite: adjust tests for FIRSTP/LASTP SVE2 instructions
Artemiy Volkov [Sat, 30 May 2026 14:59:52 +0000 (14:59 +0000)] 
testsuite: adjust tests for FIRSTP/LASTP SVE2 instructions

Looks like I didn't have Wilco's recent r17-843-ge6c1179fd40d1c
when re-testing some parts of the SVE2.2 series, which led to a few
check-function-bodies mismatches discovered by the Linaro CI[0].  The fix
here is to adapt the tests by changing x0 to w0 in the expected
codegen whenever the constant value is unsigned in
aarch64/sve2/acle/general/{first,last}p.c.

Pushing to trunk as obvious.

[0] https://gcc.gnu.org/pipermail/gcc-regression/2026-May/083884.html

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/sve2/acle/general/firstp.c: Adjust testcases.
* gcc.target/aarch64/sve2/acle/general/lastp.c: Likewise.

7 days agoFix m68k bootstrap due to diagnostic
Jeff Law [Sat, 30 May 2026 17:13:18 +0000 (11:13 -0600)] 
Fix m68k bootstrap due to diagnostic

The m68k port stopped bootstrapping recently because of this error:

> In file included from ./tm.h:31,
>                  from ../../../gcc/gcc/target.h:52,
>                  from ../../../gcc/gcc/dwarf2cfi.cc:23:
> ../../../gcc/gcc/dwarf2cfi.cc: In function 'bool dwarf2out_do_cfi_asm()':
> ../../../gcc/gcc/config/m68k/m68k.h:780:22: error: use of logical '||' with constant operand '2' [-Werror=constant-logical-operand]
>   780 |         && ((GLOBAL) || (CODE)))                                           \
>       |             ~~~~~~~~~^~~~~~~~~
> ../../../gcc/gcc/dwarf2cfi.cc:3755:9: note: in expansion of macro 'ASM_PREFERRED_EH_DATA_FORMAT'
>  3755 |   enc = ASM_PREFERRED_EH_DATA_FORMAT (/*code=*/2,/*global=*/1);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../../gcc/gcc/config/m68k/m68k.h:780:22: note: use '|' for bitwise operation
> ../../../gcc/gcc/dwarf2cfi.cc:3755:9: note: in expansion of macro 'ASM_PREFERRED_EH_DATA_FORMAT'
>  3755 |   enc = ASM_PREFERRED_EH_DATA_FORMAT (/*code=*/2,/*global=*/1);
>       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Note the "2" being passed down.  That's what triggers the warning.  The
semantic preserving change is to use !!CODE.  Given the port won't currently
bootstrap, I'm committing as-is.

gcc/

* config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Avoid
constant-logical diagnostic.

7 days agoFix scan-asm failure for loongarch64 after recent ext-dce changes
Jeff Law [Sat, 30 May 2026 17:01:14 +0000 (11:01 -0600)] 
Fix scan-asm failure for loongarch64 after recent ext-dce changes

The recent changes to ext-dce to promote narrow operations into wider modes
when the extended bits are dead slightly twiddled the output for a loongarch64
test.  This just adjusts the expected output.

Pushing to the trunk.

gcc/testsuite

* gcc.target/loongarch/la64/mul-const-reduction.c: Adjust expected
output.

7 days agoxtensa: Optimize 'insvsi' insn pattern if TARGET_DEPBITS is not configured
Takayuki 'January June' Suwa [Mon, 25 May 2026 22:32:43 +0000 (07:32 +0900)] 
xtensa: Optimize 'insvsi' insn pattern if TARGET_DEPBITS is not configured

By default, the RTX generation pass conservatively expands bit-field
insertion to an insn sequence consisting of the bit mask and shift of
the inserted value, the bit-inversion mask of the destination, and finally
a logical-OR.

However, if the logical-AND operation on an inverted bit-field mask is
relatively expensive, it is more advantageous to shift the inserted value
without masking it and then follow the idiom '(A & M) | (B & ~M)' ->
'((A ^ B) & M) ^ B'.

     /* example */
     struct foo {
       unsigned int x:10;
       unsigned int y:11;
       unsigned int z:11;
     };
     struct foo test0(struct foo a, unsigned int b) {
       a.x = b;
       return a;
     }
     struct foo test1(struct foo a, unsigned int b) {
       a.y = b;
       return a;
     }

     ;; before (-Os ; !BITS_BIG_ENDIAN | !TARGET_DEPBITS)
     test0:
      entry sp, 32
      movi a8, -0x400 ;; = ~0x000003FF
      extui a3, a3, 0, 10 ;; mask
      and a2, a2, a8 ;; inverted mask
      or a2, a2, a3 ;; logical-OR
      retw.n
      .literal_position
      .literal .LC0, -2096129 ;; = ~0x001FFC00
     test1:
      entry sp, 32
      l32r a8, .LC0
      extui a3, a3, 0, 11 ;; mask
      slli a3, a3, 10 ;;
      and a2, a2, a8 ;; inverted mask
      or a2, a2, a3 ;; logical-OR
      retw.n

     ;; after (-Os ; !BITS_BIG_ENDIAN | !TARGET_DEPBITS)
     test0:
      entry sp, 32
      xor a3, a2, a3
      extui a3, a3, 0, 10 ;; mask
      xor a2, a2, a3
      retw.n
     test1:
      entry sp, 32
      slli a3, a3, 10 ;; bit-position alignment
      xor a3, a2, a3
      extui a3, a3, 10, 11 ;; mask
      slli a3, a3, 10 ;;
      xor a2, a2, a3
      retw.n

gcc/ChangeLog:

* config/xtensa/xtensa.md (insvsi_intermal):
Rename from 'insvsi'.
(insvsi): New expansion pattern that also addresses situations
where the DEPBITS machine instruction is unavailable.

7 days agoxtensa: Remove '*splice_bits' insn pattern
Takayuki 'January June' Suwa [Mon, 25 May 2026 22:30:45 +0000 (07:30 +0900)] 
xtensa: Remove '*splice_bits' insn pattern

This patch reverts the previous commit "xtensa: Optimize bitwise splicing
operation" (e3a4bd0bbdccdde0cff85f93064b01a44fb10d2a).

In recent versions of gcc, expressions like '(A & M) | (B & ~M)' are
transformed into '((A ^ B) & M) ^ B' by GIMPLE simplification, so the
existence of that MD pattern is no longer relevant.

gcc/ChangeLog:

* config/xtensa/xtensa.md (*splice_bits):
Remove.

7 days agofortran: fix ICE with procedure pointer declared in BLOCK
Jerry DeLisle [Wed, 27 May 2026 02:21:52 +0000 (19:21 -0700)] 
fortran: fix ICE with procedure pointer declared in BLOCK

Procedure pointer declared inside a BLOCK construct in a program that has
contained procedures caused an ICE in convert_nonlocal_reference_op
(tree-nested.cc) because get_proc_pointer_decl set the proc pointer's
DECL_CONTEXT to NULL instead of the enclosing program function decl.

The root cause: the condition to call gfc_add_decl_to_function vs
gfc_add_decl_to_parent_function checked whether proc_name->backend_decl
matched current_function_decl.  For a BLOCK namespace the proc_name has
FL_LABEL flavor and its backend_decl is never set, so the condition failed
and gfc_add_decl_to_parent_function was called.  That function sets
DECL_CONTEXT to DECL_CONTEXT(current_function_decl), which is NULL for a
top-level program.  The tree-nested pass then found no nesting level
matching target_context = NULL and crashed in the internal_error call
dereferencing the NULL target_context.

Fix: add the missing BLOCK namespace check (FL_LABEL flavor) so that
procedure pointers in BLOCK constructs are treated like regular variables
and added to the enclosing function via gfc_add_decl_to_function.

Assisted by: Claude Sonnet 4.6

PR fortran/105582

gcc/fortran/ChangeLog:

* trans-decl.cc (get_proc_pointer_decl): Add FL_LABEL check to
route BLOCK-construct procedure pointers to gfc_add_decl_to_function
rather than gfc_add_decl_to_parent_function.

gcc/testsuite/ChangeLog:

* gfortran.dg/block_proc_ptr_1.f90: New test.

7 days agoc++: Don't ICE on the static constexpr expansion-stmt vars during mangling [PR125123]
Jakub Jelinek [Sat, 30 May 2026 15:49:18 +0000 (17:49 +0200)] 
c++: Don't ICE on the static constexpr expansion-stmt vars during mangling [PR125123]

The following testcase ICEs, because we decide to mangle the (for the time
being as workaround static constexpr variables created for expansion
statements).  And if there is more than one in the same function and we
mangle both, we ICE because they mangle the same.

The problem is that cp_finish_decl does not determine_local_discriminator
for DECL_ARTIFICIAL vars.
The following patch fixes that by calling it even for DECL_ARTIFICIAL vars.
The patch also sets DECL_IGNORED_P on those vars, I think there is no
value exposing those in the debug information, the iterating is done
at compile time and all user IMHO cares are the individual user variables
initialized to whatever was derived from the temporaries.

2026-05-29  Jakub Jelinek  <jakub@redhat.com>

PR c++/125123
* parser.cc (cp_build_range_for_decls): If range_temp or begin
are static, set DECL_IGNORED_P on it.
* pt.cc (finish_expansion_stmt): Similarly for iter.
* decl.cc (cp_finish_decl): Call determine_local_discriminator
etc. also for DECL_ARTIFICIAL TREE_STATIC vars.

* g++.dg/cpp26/expansion-stmt42.C: New test.

Reviewed-by: Jason Merrill <jason@redhat.com>
7 days agotestsuite: Fix testsuite failures after typo fixes
Dhruv Chawla [Sun, 17 May 2026 10:21:21 +0000 (10:21 +0000)] 
testsuite: Fix testsuite failures after typo fixes

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/testsuite/ChangeLog:

* g++.dg/opt/pr104515.C: Fix typo in dejagnu check pattern.
* g++.dg/tree-ssa/pr88797.C: Likewise.
* gcc.dg/ipa/fnsummary-1.c: Likewise.
* gcc.dg/tree-ssa/copy-headers-7.c: Likewise.
* gcc.dg/tree-ssa/split-path-11.c: Likewise.
* gcc.dg/tree-ssa/split-path-13.c: Likewise.
* gcc.dg/tree-ssa/split-path-2.c: Likewise.
* gcc.dg/tree-ssa/split-path-5.c: Likewise.

7 days agoRe-flow lines made longer than 80 characters by typo fixes
Dhruv Chawla [Sun, 17 May 2026 06:58:00 +0000 (06:58 +0000)] 
Re-flow lines made longer than 80 characters by typo fixes

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ada/ChangeLog:

* gnathtml.pl: Reflow long line.

gcc/ChangeLog:

* builtins.def: Reflow long line.
* graphite-isl-ast-to-gimple.cc (graphite_copy_stmts_from_block): Likewise.
* lto-streamer.h: Likewise.
* prime-paths.cc (struct xpair): Likewise.

gcc/fortran/ChangeLog:

* gfortran.texi: Reflow long line.

include/ChangeLog:

* hsa.h: Reflow long line.

libgcobol/ChangeLog:

* README: Reflow long line.

libiberty/ChangeLog:

* simple-object-mach-o.c (simple_object_mach_o_write_segment): Reflow
long line.

libstdc++-v3/ChangeLog:

* include/bits/stl_algo.h: Reflow long line.

7 days agolto-plugin: Fix typos in lto-plugin.c
Dhruv Chawla [Thu, 14 May 2026 09:30:57 +0000 (09:30 +0000)] 
lto-plugin: Fix typos in lto-plugin.c

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
lto-plugin/ChangeLog:

* lto-plugin.c (startswith): Fix typos.
(exec_lto_wrapper): Likewise.
(symbol_strength): Likewise.

7 days agolibvtv: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 09:29:55 +0000 (09:29 +0000)] 
libvtv: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libvtv/ChangeLog:

* vtv_fail.cc: Fix typos.
* vtv_malloc.cc (__vtv_free): Likewise.
* vtv_map.h (class insert_only_hash_map): Likewise.
* vtv_rts.cc (init_set_symbol_debug): Likewise.
* vtv_utils.cc (vtv_log_write): Likewise.

7 days agolibstdc++: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 09:28:27 +0000 (09:28 +0000)] 
libstdc++: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libstdc++-v3/ChangeLog:

* configure: Regenerate.
* acinclude.m4: Fix typos.
* configure.ac: Likewise.
* doc/doxygen/doxygroups.cc: Likewise.
* doc/doxygen/stdheader.cc (init_map): Likewise.
* include/bits/basic_string.h: Likewise.
* include/bits/chrono.h: Likewise.
* include/bits/chrono_io.h: Likewise.
* include/bits/cpyfunc_impl.h: Likewise.
* include/bits/funcref_impl.h: Likewise.
* include/bits/locale_conv.h: Likewise.
* include/bits/mofunc_impl.h: Likewise.
* include/bits/shared_ptr_base.h: Likewise.
* include/bits/simd_details.h: Likewise.
* include/bits/stl_algo.h: Likewise.
* include/bits/stl_deque.h: Likewise.
* include/bits/stl_iterator.h: Likewise.
* include/bits/stl_map.h: Likewise.
* include/bits/stl_multimap.h: Likewise.
* include/bits/stl_multiset.h: Likewise.
* include/bits/stl_set.h: Likewise.
* include/bits/unicode.h: Likewise.
* include/bits/unique_ptr.h: Likewise.
* include/bits/version.h: Likewise.
* include/experimental/bits/simd.h: Likewise.
* include/experimental/bits/simd_fixed_size.h: Likewise.
* include/experimental/bits/simd_x86_conversions.h: Likewise.
* include/ext/concurrence.h: Likewise.
* include/ext/pb_ds/detail/container_base_dispatch.hpp: Likewise.
* include/ext/pb_ds/detail/list_update_policy/sample_update_policy.hpp: Likewise.
* include/ext/pb_ds/detail/tree_policy/sample_tree_node_update.hpp: Likewise.
* include/ext/pb_ds/detail/trie_policy/sample_trie_node_update.hpp: Likewise.
* include/ext/pb_ds/tree_policy.hpp: Likewise.
* include/ext/pb_ds/trie_policy.hpp: Likewise.
* include/parallel/multiway_merge.h: Likewise.
* include/pstl/parallel_backend_tbb.h (__parallel_transform_reduce): Likewise.
(class __merge_func): Likewise.
(class __stable_sort_func): Likewise.
(__parallel_stable_sort): Likewise.
* include/tr1/shared_ptr.h: Likewise.
* libsupc++/hash_bytes.cc: Likewise.
* libsupc++/vmi_class_type_info.cc (__do_find_public_src): Likewise.
* src/c++17/fast_float/fast_float.h (struct parse_options): Likewise.
(rounds_to_nearest): Likewise.

7 days agolibquadmath: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 09:24:50 +0000 (09:24 +0000)] 
libquadmath: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libquadmath/ChangeLog:

* math/powq.c: Fix typos.
* math/rem_pio2q.c: Likewise.
* printf/printf_fp.c (__quadmath_printf_fp): Likewise.
* update-quadmath.py: Likewise

7 days agolibitm: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 09:23:57 +0000 (09:23 +0000)] 
libitm: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libitm/ChangeLog:

* configure: Regenerate.
* acinclude.m4: Fix typos.
* dispatch.h (struct method_group): Likewise.
* method-gl.cc: Likewise.
* method-ml.cc: Likewise.
* method-serial.cc: Likewise.

7 days agolibiberty: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 09:22:42 +0000 (09:22 +0000)] 
libiberty: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libiberty/ChangeLog:

* bcopy.c: Fix typos.
* bsearch.c: Likewise.
* bsearch_r.c: Likewise.
* configure.ac: Likewise.
* cp-demangle.c (d_print_comp_inner): Likewise.
(d_print_comp): Likewise.
* d-demangle.c (dlang_identifier): Likewise.
* dyn-string.c: Likewise.
* ldirname.c: Likewise.
* make-relative-prefix.c (make_relative_prefix_1): Likewise.
* obstacks.texi: Likewise.
* pex-win32.c (argv_to_cmdline): Likewise.
(spawn_script): Likewise.
* random.c (random): Likewise.
(setstate): Likewise.
* regex.c (WIDE_CHAR_SUPPORT): Likewise.
(convert_mbs_to_wcs): Likewise.
(PREFIX): Likewise.
(wcs_compile_range): Likewise.
(count_mbs_length): Likewise.
(wcs_re_match_2_internal): Likewise.
(byte_re_match_2_internal): Likewise.
* sigsetmask.c: Likewise.
* simple-object-elf.c (SHT_SYMTAB_SHNDX): Likewise.
(STV_HIDDEN): Likewise.
(simple_object_elf_copy_lto_debug_sections): Likewise.
* simple-object-mach-o.c (struct mach_o_header_32): Likewise.
(struct mach_o_header_64): Likewise.
(simple_object_mach_o_write_segment): Likewise.
* strsignal.c (defined): Likewise.

7 days agolibgomp: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 09:19:21 +0000 (09:19 +0000)] 
libgomp: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libgomp/ChangeLog:

* configure: Regenerate.
* acinclude.m4: Fix typos.
* env.c (parse_places_var): Likewise.
(parse_stacksize): Likewise.
(parse_wait_policy): Likewise.
(parse_affinity): Likewise.
(initialize_env): Likewise.
* libgomp.h (struct target_mem_desc): Likewise.
* plugin/build-target-indirect-htab.h: Likewise.
* plugin/plugin-gcn.c (struct hsa_runtime_fn_info): Likewise.
(struct hip_runtime_fn_info): Likewise.
(limit_worker_threads): Likewise.
(max_isa_vgprs): Likewise.
(GOMP_OFFLOAD_get_name): Likewise.
* plugin/plugin-nvptx.c (GOMP_OFFLOAD_get_name): Likewise.
* target.c (gomp_map_vars_internal): Likewise.
(GOMP_target_ext): Likewise.

7 days agolibgm2: Fix typos in configure.ac
Dhruv Chawla [Thu, 14 May 2026 09:17:28 +0000 (09:17 +0000)] 
libgm2: Fix typos in configure.ac

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libgm2/ChangeLog:

* configure.ac: Fix typos.

7 days agolibgfortran: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 09:16:32 +0000 (09:16 +0000)] 
libgfortran: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libgfortran/ChangeLog:

* caf/caf_error.h (caf_runtime_error): Fix typos.
* caf/libcaf.h: Likewise.
* caf/mpi.c (caf_runtime_error): Likewise.
* caf/shmem.c (_gfortran_caf_deregister): Likewise.
* caf/shmem/alloc.h: Likewise.
* caf/shmem/shared_memory.c (shared_memory_get_env): Likewise.
* caf/shmem/supervisor.h (struct caf_shmem_token): Likewise.
* caf/shmem/teams_mgmt.h (struct caf_shmem_team): Likewise.
* caf/single.c (caf_runtime_error): Likewise.
(_gfortran_caf_deregister): Likewise.
* intrinsics/args.c (get_command_i4): Likewise.
* intrinsics/chmod.c: Likewise.
* intrinsics/env.c (PREFIX): Likewise.
* intrinsics/trigd.c: Likewise.
* io/async.c (init_adv_cond): Likewise.
* io/file_pos.c (st_rewind): Likewise.
* io/format.c (parse_format_list): Likewise.
* io/open.c (new_unit): Likewise.
(st_open): Likewise.
* io/transfer.c (write_block): Likewise.
(unformatted_read): Likewise.
(unformatted_write): Likewise.
(formatted_transfer_scalar_write): Likewise.
* io/transfer128.c (export_proto): Likewise.
* io/unix.c (buf_init): Likewise.
(mem_read): Likewise.
* io/write.c (btoa): Likewise.
(list_formatted_write): Likewise.
* runtime/select_inc.c (select_string): Likewise.

7 days agolibgcc: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 09:10:21 +0000 (09:10 +0000)] 
libgcc: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libgcc/ChangeLog:

* fixed-bit.c: Fix typos.
* libgcov-interface.c (__gcov_reset_int): Likewise.
(__gcov_dump_int): Likewise.
* libgcov-util.c (FLAG_ONE_HOT): Likewise.
(calculate_overlap): Likewise.
* unwind-dw2.c: Likewise.
* unwind-seh.c (_Unwind_GetTextRelBase): Likewise.

7 days agolibdecnumber: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 09:07:11 +0000 (09:07 +0000)] 
libdecnumber: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libdecnumber/ChangeLog:

* decBasic.c (decCanonical): Fix typos.
(decDivide): Likewise.
(decFiniteMultiply): Likewise.
(decFloatMultiply): Likewise.
(decFloatQuantize): Likewise.
(decToInt32): Likewise.
* decCommon.c (decFinalize): Likewise.
(decFloatFromString): Likewise.
* decContext.c (decContextGetStatus): Likewise.
* decNumber.c (decToString): Likewise.
(decAddOp): Likewise.
(decMalloc): Likewise.
* decNumberLocal.h: Likewise.

7 days agolibcpp: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 08:57:09 +0000 (08:57 +0000)] 
libcpp: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libcpp/ChangeLog:

* files.cc (_cpp_stack_translated_file): Fix typos.
(_cpp_get_file_path): Likewise.
* include/cpplib.h (PREV_FALLTHROUGH): Likewise.
(struct cpp_options): Likewise.
* include/line-map.h (enum lc_reason): Likewise.
* internal.h (struct cpp_buffer): Likewise.
* lex.cc (lex_raw_string): Likewise.
(cpp_directive_only_process): Likewise.
* line-map.cc (linemap_add): Likewise.
(linemap_module_restore): Likewise.
(rich_location::get_last_fixit_hint): Likewise.
* macro.cc (_cpp_builtin_macro_text): Likewise.
(arg_token_ptr_at): Likewise.
(replace_args): Likewise.
(reached_end_of_context): Likewise.
(cpp_get_token_1): Likewise.
(create_iso_definition): Likewise.
(get_deferred_or_lazy_macro): Likewise.
* traditional.cc (check_output_buffer): Likewise.

7 days agolibcody: Fix typos in README.md
Dhruv Chawla [Thu, 14 May 2026 08:54:44 +0000 (08:54 +0000)] 
libcody: Fix typos in README.md

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libcody/ChangeLog:

* README.md: Fix typos.

7 days agolibbacktrace: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 08:54:02 +0000 (08:54 +0000)] 
libbacktrace: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libbacktrace/ChangeLog:

* allocfail.sh: Fix typos.
* elf.c (elf_fetch_bits): Likewise.

7 days agolibatomic: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 08:53:12 +0000 (08:53 +0000)] 
libatomic: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
libatomic/ChangeLog:

* acinclude.m4: Fix typos.
* libatomic_i.h (__attribute__): Likewise.
* configure: Regenerate.

7 days agovect: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 11:38:36 +0000 (11:38 +0000)] 
vect: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* tree-vect-data-refs.cc (vect_get_smallest_scalar_type): Fix typos.
(vect_preserves_scalar_order_p): Likewise.
(vect_slp_analyze_instance_dependence): Likewise.
(vect_enhance_data_refs_alignment): Likewise.
(vect_check_gather_scatter): Likewise.
(vect_grouped_store_supported): Likewise.
* tree-vect-generic.cc (type_for_widest_vector_mode): Likewise.
* tree-vect-loop-manip.cc (vect_set_loop_condition_partial_vectors_avx512): Likewise.
(get_live_virtual_operand_on_edge): Likewise.
(vect_can_peel_nonlinear_iv_p): Likewise.
(vect_do_peeling): Likewise.
* tree-vect-loop.cc (vec_init_loop_exit_info): Likewise.
(vect_verify_full_masking_avx512): Likewise.
(vect_verify_loop_lens): Likewise.
(vect_analyze_loop_costing): Likewise.
(vect_analyze_loop_2): Likewise.
(vect_analyze_loop): Likewise.
(vect_is_simple_reduction): Likewise.
(vect_create_epilog_for_reduction): Likewise.
(vectorizable_lane_reducing): Likewise.
(vectorizable_reduction): Likewise.
(vectorizable_live_operation): Likewise.
(vect_record_loop_len): Likewise.
(scale_profile_for_vect_loop): Likewise.
(vect_update_ivs_after_vectorizer_for_early_breaks): Likewise.
* tree-vect-patterns.cc (vect_recog_bit_insert_pattern): Likewise.
(vect_recog_build_binary_gimple_stmt): Likewise.
(vect_recog_sat_sub_pattern_transform): Likewise.
(vect_recog_sat_sub_pattern): Likewise.
(add_code_for_floorceilround_divmod): Likewise.
(vect_recog_bool_pattern): Likewise.
(struct vect_recog_func): Likewise.
* tree-vect-slp-patterns.cc (class complex_pattern): Likewise.
(compatible_complex_nodes_p): Likewise.
* tree-vect-slp.cc (vect_slp_tree_uniform_p): Likewise.
(vect_def_types_match): Likewise.
(vect_record_max_nunits): Likewise.
(vect_analyze_slp_instance): Likewise.
(vect_lower_load_permutations): Likewise.
(vect_optimize_slp_pass::is_compatible_layout): Likewise.
* tree-vect-stmts.cc (vect_get_strided_load_store_ops): Likewise.
(vectorizable_simd_clone_call): Likewise.
(vectorizable_store): Likewise.
(vectorizable_load): Likewise.
(vectorizable_condition): Likewise.
(vectorizable_early_exit): Likewise.
* tree-vectorizer.cc (vector_costs::compare_inside_loop_cost): Likewise.
* tree-vectorizer.h (enum vect_reduction_type): Likewise.

7 days agotree-ssa: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 12:04:38 +0000 (12:04 +0000)] 
tree-ssa: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* tree-ssa-alias-compare.h: Fix typos.
* tree-ssa-alias.cc (ptr_deref_may_alias_decl_p): Likewise.
(ao_ref_alignment): Likewise.
(component_ref_to_zero_sized_trailing_array_p): Likewise.
(access_path_may_continue_p): Likewise.
(nonoverlapping_component_refs_p_1): Likewise.
(nonoverlapping_array_refs_p): Likewise.
(refs_may_alias_p_2): Likewise.
(ref_maybe_used_by_call_p_1): Likewise.
(stmt_kills_ref_p): Likewise.
* tree-ssa-ccp.cc: Likewise.
* tree-ssa-dce.cc (mark_all_reaching_defs_necessary_1): Likewise.
(propagate_necessity): Likewise.
(propagate_counts): Likewise.
(eliminate_unnecessary_stmts): Likewise.
* tree-ssa-dom.cc (pass_dominator::execute): Likewise.
* tree-ssa-dse.cc: Likewise.
* tree-ssa-forwprop.cc (new_src_based_on_copy): Likewise.
(optimize_agr_copyprop_1): Likewise.
(pass_forwprop::execute): Likewise.
* tree-ssa-ifcombine.cc (tree_ssa_ifcombine_bb_1): Likewise.
(pass_tree_ifcombine::execute): Likewise.
* tree-ssa-live.cc (remove_unused_scope_block_p): Likewise.
* tree-ssa-loop-ch.cc (loop_combined_static_and_iv_p): Likewise.
(should_duplicate_loop_header_p): Likewise.
* tree-ssa-loop-im.cc (get_coldest_out_loop): Likewise.
(determine_max_movement): Likewise.
(execute_sm_exit): Likewise.
(hoist_memory_references): Likewise.
* tree-ssa-loop-ivcanon.cc (constant_after_peeling): Likewise.
(loop_edge_to_cancel): Likewise.
(unloop_loops): Likewise.
(try_unroll_loop_completely): Likewise.
(adjust_loop_info_after_peeling): Likewise.
(tree_unroll_loops_completely_1): Likewise.
* tree-ssa-loop-ivopts.cc (struct iv_inv_expr_ent): Likewise.
(dump_cand): Likewise.
(group_compare_offset): Likewise.
(split_address_groups): Likewise.
(get_computation_aff_1): Likewise.
(iv_ca_dump): Likewise.
* tree-ssa-loop-niter.cc (number_of_iterations_ne): Likewise.
(number_of_iterations_popcount): Likewise.
(idx_infer_loop_bounds): Likewise.
(infer_loop_bounds_from_signedness): Likewise.
(discover_iteration_bound_by_body_walk): Likewise.
(loop_exits_before_overflow): Likewise.
* tree-ssa-loop-niter.h: Likewise.
* tree-ssa-loop-prefetch.cc (should_issue_prefetch_p): Likewise.
(schedule_prefetches): Likewise.
* tree-ssa-loop-split.cc (split_loop): Likewise.
(find_vdef_in_loop): Likewise.
(get_cond_branch_to_split_loop): Likewise.
* tree-ssa-math-opts.cc (powi_as_mults): Likewise.
(expand_pow_as_sqrts): Likewise.
(gimple_expand_builtin_pow): Likewise.
(convert_mult_to_widen): Likewise.
(convert_plusminus_to_widen): Likewise.
* tree-ssa-phiopt.cc (replace_phi_edge_with_variable): Likewise.
(factor_out_conditional_operation): Likewise.
(cond_if_else_store_replacement_1): Likewise.
(execute_over_cond_phis): Likewise.
* tree-ssa-phiprop.cc (can_handle_load): Likewise.
(propagate_with_phi): Likewise.
* tree-ssa-pre.cc (get_or_alloc_expr_for_nary): Likewise.
(sorted_array_from_bitmap_set): Likewise.
(value_dies_in_block_x): Likewise.
(compute_antic_aux): Likewise.
* tree-ssa-propagate.cc (substitute_and_fold_engine::substitute_and_fold): Likewise.
* tree-ssa-reassoc.cc (get_rank): Likewise.
(remove_visited_stmt_chain): Likewise.
* tree-ssa-sccvn.cc (vn_reference_eq): Likewise.
(vn_reference_lookup_call): Likewise.
(vn_nary_op_eq): Likewise.
(vn_nary_op_insert_into): Likewise.
(visit_reference_op_call): Likewise.
(visit_phi): Likewise.
(eliminate_dom_walker::eliminate_stmt): Likewise.
(eliminate_dom_walker::eliminate_cleanup): Likewise.
(process_bb): Likewise.
* tree-ssa-scopedtables.cc (hashable_expr_equal_p): Likewise.
* tree-ssa-structalias.cc (determine_global_memory_access): Likewise.
(clear_dependence_clique): Likewise.
* tree-ssa-threadbackward.cc (back_threader_profitability::profitable_path_p): Likewise.
* tree-ssa-threadedge.cc (propagate_threaded_block_debug_into): Likewise.
* tree-ssa-uninit.cc (warn_uninit): Likewise.
(execute_late_warn_uninitialized): Likewise.
* tree-ssanames.cc (range_info_get_range): Likewise.

7 days agotree: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 16:16:01 +0000 (16:16 +0000)] 
tree: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* tree-assume.cc (assume_query::calculate_phi): Fix typos.
* tree-cfg.cc (assign_discriminators): Likewise.
(stmt_starts_bb_p): Likewise.
(move_stmt_op): Likewise.
(ifconvertable_edge): Likewise.
* tree-cfgcleanup.cc (maybe_remove_forwarder_block): Likewise.
(cleanup_tree_cfg_noloop): Likewise.
* tree-chrec.cc (scev_is_linear_expression): Likewise.
* tree-complex.cc (expand_complex_div_wide): Likewise.
* tree-core.h (enum built_in_class): Likewise.
* tree-data-ref.cc (dump_alias_pair): Likewise.
(create_ifn_alias_checks): Likewise.
* tree-data-ref.h (struct data_dependence_relation): Likewise.
* tree-eh.cc (lower_try_finally_fallthru_label): Likewise.
(lower_eh_dispatch): Likewise.
* tree-if-conv.cc (idx_within_array_bound): Likewise.
(base_object_writable): Likewise.
(ifcvt_memrefs_wont_trap): Likewise.
(get_loop_body_in_if_conv_order): Likewise.
(predicate_scalar_phi): Likewise.
* tree-inline.cc (remap_type_1): Likewise.
(declare_return_variable): Likewise.
(inline_forbidden_p): Likewise.
(estimate_num_insns): Likewise.
(copy_decl_for_dup_finish): Likewise.
* tree-into-ssa.cc (get_ssa_name_ann): Likewise.
(clear_ssa_name_info): Likewise.
(insert_updated_phi_nodes_compare_uids): Likewise.
(update_ssa): Likewise.
* tree-loop-distribution.cc (enum partition_kind): Likewise.
(struct partition): Likewise.
(class loop_distribution): Likewise.
(loop_distribution::classify_partition): Likewise.
(loop_distribution::pg_add_dependence_edges): Likewise.
(add_partition_graph_edge): Likewise.
(free_partition_graph_vdata): Likewise.
(pg_unmark_merged_alias_ddrs): Likewise.
(version_loop_by_alias_check): Likewise.
* tree-object-size.cc (gimplify_size_expressions): Likewise.
(object_sizes_execute): Likewise.
* tree-parloops.cc (parloops_is_simple_reduction): Likewise.
(transform_to_exit_first_loop_alt): Likewise.
* tree-predcom.cc (pcom_worker::suitable_component_p): Likewise.
(pcom_worker::determine_roots_comp): Likewise.
(prepare_initializers_chain_store_elim): Likewise.
(pcom_worker::tree_predictive_commoning_loop): Likewise.
* tree-profile.cc (condition_uid): Likewise.
(cov_length): Likewise.
(tree_profiling): Likewise.
* tree-scalar-evolution.cc (scev_dfs::add_to_evolution_1): Likewise.
(scev_reset): Likewise.
(expression_expensive_p): Likewise.
* tree-sra.cc (struct access): Likewise.
(build_access_from_call_arg): Likewise.
(path_comparable_for_same_access): Likewise.
(child_would_conflict_in_acc): Likewise.
(sra_modify_call_arg): Likewise.
* tree-switch-conversion.cc (can_log2): Likewise.
(switch_conversion::exp_index_transform): Likewise.
* tree-switch-conversion.h (enum cluster_type): Likewise.
* tree-vrp.cc (remove_unreachable::handle_early): Likewise.
* tree.cc (build5): Likewise.
(get_file_function_name): Likewise.
(build_opaque_vector_type): Likewise.
(array_ref_flexible_size_p): Likewise.
(verify_type_variant): Likewise.
(gimple_canonical_types_compatible_p): Likewise.
* tree.h (decl_debug_args_insert): Likewise.
(strip_pointer_types): Likewise.

7 days agortl-ssa: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 11:21:13 +0000 (11:21 +0000)] 
rtl-ssa: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* rtl-ssa/access-utils.h (drop_memory_access): Fix typos.
* rtl-ssa/accesses.cc (clobber_info::recompute_group): Likewise.
* rtl-ssa/accesses.h: Likewise.
* rtl-ssa/blocks.cc (function_info::add_artificial_accesses): Likewise.
* rtl-ssa/functions.h: Likewise.
* rtl-ssa/insns.cc (function_info::record_use): Likewise.
* rtl-ssa/insns.h: Likewise.

7 days agolto: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 16:07:46 +0000 (16:07 +0000)] 
lto: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* lto-cgraph.cc (get_alias_symbol): Fix typos.
(input_node): Likewise.
(input_varpool_node): Likewise.
* lto-ltrans-cache.cc: Likewise.
* lto-streamer-in.cc (lto_location_cache::revert_location_cache): Likewise.
(lto_location_cache::input_location_and_block): Likewise.
(lto_location_cache::input_location): Likewise.
(lto_input_location): Likewise.
* lto-streamer-out.cc (lto_variably_modified_type_p): Likewise.
(lto_is_streamable): Likewise.
(DFS::DFS): Likewise.
(cmp_symbol_files): Likewise.
(lto_output): Likewise.
* lto-streamer.h (enum LTO_tags): Likewise.
* lto-wrapper.cc (merge_flto_options): Likewise.
(run_gcc): Likewise.

gcc/lto/ChangeLog:

* Make-lang.in: Fix typos.
* lto-common.cc (read_cgraph_and_symbols): Likewise.
* lto-lang.cc (lto_post_options): Likewise.
* lto-partition.cc (add_symbol_to_partition_1): Likewise.
(partition_over_target_split): Likewise.
(lto_balanced_map): Likewise.
(rename_statics): Likewise.
* lto-symtab.cc (lto_cgraph_replace_node): Likewise.
(lto_varpool_replace_node): Likewise.
(lto_symtab_merge_symbols): Likewise.
* lto.cc (stream_out_partitions): Likewise.
(do_whole_program_analysis): Likewise.

7 days agojit: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 11:19:47 +0000 (11:19 +0000)] 
jit: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/jit/ChangeLog:

* TODO.rst: Fix typos.
* docs/cp/intro/tutorial03.rst: Likewise.
* docs/cp/topics/functions.rst: Likewise.
* docs/cp/topics/types.rst: Likewise.
* docs/internals/index.rst: Likewise.
* docs/intro/tutorial02.rst: Likewise.
* docs/intro/tutorial03.rst: Likewise.
* docs/topics/compatibility.rst: Likewise.
* docs/topics/contexts.rst: Likewise.
* docs/topics/functions.rst: Likewise.
* docs/topics/performance.rst: Likewise.
* docs/topics/types.rst: Likewise.
* jit-builtins.cc (builtins_manager::make_type): Likewise.
* jit-playback.cc (make_fake_args): Likewise.
(get_source_file): Likewise.
(get_source_line): Likewise.
* jit-recording.h (types_kinda_same_internal): Likewise.
* libgccjit.cc (gcc_jit_context_new_struct_constructor): Likewise.
* libgccjit.h (gcc_jit_case_as_object): Likewise.

7 days agoinclude: Fix typos in various files
Dhruv Chawla [Mon, 11 May 2026 15:31:07 +0000 (15:31 +0000)] 
include: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
include/ChangeLog:

* demangle.h (enum demangle_component_type): Fix typos.
* doubly-linked-list.h: Likewise.
* floatformat.h (struct floatformat): Likewise.
* gcc-cp-fe.def (GCC_METHOD1): Likewise.
(GCC_METHOD2): Likewise.
* gomp-constants.h (enum gomp_map_kind): Likewise.
(GOMP_TARGET_ARG_THREAD_LIMIT): Likewise.
* hsa.h: Likewise.
* hsa_ext_amd.h (hsa_amd_signal_value_pointer): Likewise.
(hsa_amd_memory_lock): Likewise.
(hsa_amd_pointer_info): Likewise.
(hsa_amd_ipc_memory_create): Likewise.
(hsa_amd_ipc_signal_create): Likewise.
* libiberty.h (PEX_STDOUT_APPEND): Likewise.
* longlong.h: Likewise.
* plugin-api.h (enum ld_plugin_status): Likewise.
* splay-tree.h (struct splay_tree_s): Likewise.

7 days agoipa: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 11:29:49 +0000 (11:29 +0000)] 
ipa: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* ipa-comdats.cc: Fix typos.
* ipa-cp.cc (good_cloning_opportunity_p): Likewise.
(dump_profile_updates): Likewise.
(update_counts_for_self_gen_clones): Likewise.
(update_profiling_info): Likewise.
(adjust_refs_in_act_callers): Likewise.
(struct cloning_opportunity_ranking): Likewise.
* ipa-fnsummary.cc (evaluate_conditions_for_known_args): Likewise.
(unmodified_parm_or_parm_agg_item): Likewise.
(guards_builtin_unreachable): Likewise.
(analyze_function_body): Likewise.
(estimate_edge_devirt_benefit): Likewise.
* ipa-fnsummary.h (cross_module_call_p): Likewise.
* ipa-free-lang-data.cc (fld_simplified_type_name): Likewise.
(free_lang_data_in_decl): Likewise.
* ipa-icf-gimple.cc (func_checker::compare_decl): Likewise.
(func_checker::compatible_types_p): Likewise.
(func_checker::compare_gimple_asm): Likewise.
* ipa-icf.cc (sem_function::hash_stmt): Likewise.
(sem_item_optimizer::subdivide_classes_by_equality): Likewise.
(sem_item_optimizer::traverse_congruence_split): Likewise.
(sem_item_optimizer::process_cong_reduction): Likewise.
* ipa-inline-transform.cc (mark_all_inlined_calls_cdtor): Likewise.
(preserve_function_body_p): Likewise.
* ipa-inline.cc (enum can_inline_edge_by_limits_flags): Likewise.
(can_early_inline_edge_p): Likewise.
(early_inliner): Likewise.
* ipa-locality-cloning.cc (edge_redirectable_p): Likewise.
(clone_node_as_needed): Likewise.
(partition_callchain): Likewise.
* ipa-modref.cc (modref_eaf_analysis::merge_with_ssa_name): Likewise.
* ipa-param-manipulation.cc (ipa_param_adjustments::get_surviving_params): Likewise.
(purge_all_uses): Likewise.
(ipa_param_body_adjustments::mark_dead_statements): Likewise.
(replace_with_mapped_expr): Likewise.
(ipa_param_body_adjustments::get_new_param_chain): Likewise.
(record_argument_state): Likewise.
(ipa_param_body_adjustments::perform_cfun_body_modifications): Likewise.
* ipa-param-manipulation.h (struct ipa_replace_map): Likewise.
* ipa-polymorphic-call.cc (ipa_polymorphic_call_context::combine_with): Likewise.
* ipa-prop.cc (struct ipa_vr_ggc_hash_traits): Likewise.
(noted_fnptr_hasher::equal): Likewise.
(ipa_set_ancestor_jf): Likewise.
(check_stmt_for_type_change): Likewise.
(param_type_may_change_p): Likewise.
(find_dominating_aa_status): Likewise.
(parm_ref_data_pass_through_p): Likewise.
(build_agg_jump_func_from_list): Likewise.
(analyze_agg_content_value): Likewise.
(ipa_single_noted_fnptr_in_record): Likewise.
(ipa_make_edge_direct_to_target): Likewise.
(combine_controlled_uses_counters): Likewise.
(ipa_duplicate_jump_function): Likewise.
(ipa_write_jump_function): Likewise.
(useful_ipcp_transformation_info_p): Likewise.
* ipa-prop.h (struct GTY): Likewise.
* ipa-reference.cc (ipa_reference_var_uid): Likewise.
(ipa_reference_get_written_global): Likewise.
(union_static_var_sets): Likewise.
* ipa-split.cc (split_function): Likewise.
* ipa-sra.cc (isra_track_scalar_value_uses): Likewise.
(process_scan_results): Likewise.
(flip_all_hints_pessimistic): Likewise.
(flip_all_param_hints_pessimistic): Likewise.
* ipa-strub.cc (get_strub_mode_attr_parm): Likewise.
(compute_strub_mode): Likewise.
* ipa-utils.cc (ipa_merge_profiles): Likewise.
(recursive_call_p): Likewise.
(stmt_may_terminate_function_p): Likewise.
(find_always_executed_bbs): Likewise.
* ipa-utils.h (type_with_linkage_p): Likewise.
(lto_streaming_expected_p): Likewise.
* ipa-visibility.cc (varpool_node::externally_visible_p): Likewise.
* ipa.cc (update_inlined_to_pointer): Likewise.
(enqueue_node): Likewise.
(process_references): Likewise.
(set_readonly_bit): Likewise.
(clear_addressable_bit): Likewise.
(BOTTOM): Likewise.
(propagate_single_user): Likewise.

7 days agogimple: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 16:23:34 +0000 (16:23 +0000)] 
gimple: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* gimple-array-bounds.cc (trailing_array): Fix typos.
* gimple-crc-optimization.cc (crc_optimization::set_defs): Likewise.
* gimple-fold.cc (get_range_strlen): Likewise.
(can_refer_decl_in_current_unit_p): Likewise.
(gimple_fold_builtin_bcopy): Likewise.
(get_range_strlen_tree): Likewise.
(gimple_fold_builtin_stpcpy): Likewise.
(fold_stmt_1): Likewise.
(fold_truth_andor_for_ifcombine): Likewise.
(gimple_fold_stmt_to_constant): Likewise.
(fold_const_aggregate_ref): Likewise.
(gimple_get_virt_method_for_vtable): Likewise.
(rewrite_to_defined_unconditional): Likewise.
(gimple_build): Likewise.
(gimple_convert): Likewise.
* gimple-harden-control-flow.cc (pass_harden_control_flow_redundancy::execute): Likewise.
* gimple-loop-interchange.cc (loop_cand::can_interchange_p): Likewise.
(loop_cand::analyze_lcssa_phis): Likewise.
(should_interchange_loops): Likewise.
* gimple-loop-jam.cc (tree_loop_unroll_and_jam): Likewise.
* gimple-low.cc (find_assumption_locals_r): Likewise.
* gimple-match-exports.cc (try_conditional_simplification): Likewise.
* gimple-predicate-analysis.cc (find_matching_predicate_in_rest_chains): Likewise.
(uninit_analysis::func_t::phi_arg_set): Likewise.
(predicate::dump): Likewise.
* gimple-predicate-analysis.h (class uninit_analysis): Likewise.
* gimple-range-cache.cc (sbr_vector::bb_range_p): Likewise.
(block_range_cache::set_bb_range): Likewise.
* gimple-range-gori.cc (gori_compute::compute_operand_range): Likewise.
(gori_stmt_info::gori_stmt_info): Likewise.
(gori_calc_operands): Likewise.
(gori_on_edge): Likewise.
(gori_name_helper): Likewise.
* gimple-range-infer.h: Likewise.
* gimple-range-phi.cc (phi_group::phi_group): Likewise.
(phi_group::calculate_using_modifier): Likewise.
(phi_analyzer::operator[]): Likewise.
* gimple-range-phi.h: Likewise.
* gimple-range.cc (dom_ranger::range_of_stmt): Likewise.
* gimple-ssa-isolate-paths.cc (is_addr_local): Likewise.
(warn_return_addr_local): Likewise.
* gimple-ssa-pta-constraints.cc (get_constraint_for_ssa_var): Likewise.
(find_func_clobbers): Likewise.
(create_variable_info_for): Likewise.
(associate_varinfo_to_alias): Likewise.
* gimple-ssa-sccopy.cc: Likewise.
* gimple-ssa-split-paths.cc (count_stmts_in_block): Likewise.
(poor_ifcvt_pred): Likewise.
(is_feasible_trace): Likewise.
* gimple-ssa-sprintf.cc (get_int_range): Likewise.
(handle_printf_call): Likewise.
* gimple-ssa-store-merging.cc (get_location_for_stmts): Likewise.
* gimple-ssa-strength-reduction.cc: Likewise.
* gimple-ssa-warn-access.cc (call_arg): Likewise.
* gimple-ssa-warn-restrict.cc (builtin_memref::offset_out_of_bounds): Likewise.
(builtin_access::overlap_size): Likewise.
(maybe_diag_access_bounds): Likewise.
* gimple.def (GIMPLE_PHI): Likewise.
* gimple.h (gimple_goto_dest): Likewise.

7 days agogenerators: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 11:32:57 +0000 (11:32 +0000)] 
generators: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* genattrtab.cc (min_fn): Fix typos.
(get_attr_order): Likewise.
(optimize_attrs): Likewise.
* genautomata.cc (struct unit_usage): Likewise.
* gengtype-state.cc (s_expr_writer::write_any_indent): Likewise.
(write_state): Likewise.
* gengtype.cc (struct file_rule_st): Likewise.
(walk_type): Likewise.
(write_roots): Likewise.
* genmatch.cc (expr::gen_transform): Likewise.
(usage): Likewise.
* genopinit.cc (open_outfile): Likewise.
(handle_overloaded_code_for): Likewise.
(main): Likewise.
* genoutput.cc (operand_data_hasher::equal): Likewise.
* genpreds.cc (FOR_ALL_CONSTRAINTS): Likewise.
* genrecog.cc (prune_invalid_results): Likewise.
(split_out_patterns): Likewise.
* gensupport.cc (parse_section): Likewise.
(convert_syntax): Likewise.
(mark_operands_from_match_dup): Likewise.

7 days agogcc/[s-z]*: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 08:50:56 +0000 (08:50 +0000)] 
gcc/[s-z]*: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* sanopt.cc: Fix typos.
* sched-deps.cc (sched_analyze_2): Likewise.
* sel-sched-ir.cc (alloc_target_context): Likewise.
(av_set_union_and_live): Likewise.
(make_regions_from_loop_nest): Likewise.
* sel-sched-ir.h (struct _list_iterator): Likewise.
(struct succs_info): Likewise.
(SUCCS_ALL): Likewise.
* sel-sched.cc (moveup_expr): Likewise.
(moveup_expr_cached): Likewise.
(get_spec_check_type_for_insn): Likewise.
(get_expr_cost): Likewise.
(find_place_for_bookkeeping): Likewise.
(update_and_record_unavailable_insns): Likewise.
(move_op_at_first_insn): Likewise.
(calculate_new_fences): Likewise.
* shrink-wrap.cc (live_edge_for_reg): Likewise.
(try_shrink_wrapping): Likewise.
* simplify-rtx.cc
(simplify_context::simplify_logical_relational_operation): Likewise.
(simplify_const_vector_subreg): Likewise.
* spellcheck.cc (assert_not_suggested_for): Likewise.
* stringpool.h: Likewise.
* sym-exec/sym-exec-state.cc (state::do_shift_right): Likewise.
(state::get_parent_with_const_child): Likewise.
(state::add_numbers): Likewise.
(state::add_equal_cond): Likewise.
(state::add_not_equal_cond): Likewise.
* sym-exec/sym-exec-state.h (class state): Likewise.
* symbol-summary.h: Likewise.
* symtab.cc (symtab_node::noninterposable_alias): Likewise.
(symtab_node::equal_address_to): Likewise.
* system.h (gcc_stablesort_r): Likewise.
* target-hooks-macros.h: Likewise.
* target.def: Likewise.
* targhooks.cc (default_floatn_mode): Likewise.
(default_floatn_builtin_p): Likewise.
(default_builtin_vector_alignment_reachable): Likewise.
(default_addr_space_for_artificial_rodata): Likewise.
* text-art/ruler.cc (x_ruler::update_layout): Likewise.
* text-art/ruler.h (class x_ruler): Likewise.
* timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): Likewise.
* trans-mem.cc (ipa_tm_scan_irr_block): Likewise.
(ipa_tm_execute): Likewise.
* typed-splay-tree.h (class typed_splay_tree): Likewise.
* ubsan.cc (instrument_bool_enum_load): Likewise.
* value-prof.cc: Likewise.
* value-range.cc (irange::union_append): Likewise.
(irange::snap): Likewise.
(irange::snap_subranges): Likewise.
(irange::get_bitmask): Likewise.
* value-range.h (irange_bitmask::get_precision): Likewise.
* value-relation.cc (dom_oracle::next_relation): Likewise.
(block_relation_iterator::block_relation_iterator): Likewise.
* var-tracking.cc (shared_hash_find): Likewise.
(emit_note_insn_var_location): Likewise.
* varasm.cc (mergeable_constant_section): Likewise.
(finish_tm_clone_pairs): Likewise.
(default_binds_local_p_3): Likewise.
* vr-values.cc (simplify_using_ranges::simplify): Likewise.
* vtable-verify.cc: Likewise.
* warning-control.cc (has_warning_spec): Likewise.
* wide-int.cc (wi::from_mpz): Likewise.
(wi::force_to_size): Likewise.
(wi::divmod_internal): Likewise.
* wide-int.h (wi::bitreverse): Likewise.
(wi::umin): Likewise.
(wi::mul_high): Likewise.
(wi::div_trunc): Likewise.
(wi::sdiv_trunc): Likewise.
(wi::udiv_trunc): Likewise.
(wi::div_floor): Likewise.
(wi::sdiv_floor): Likewise.
(wi::udiv_floor): Likewise.
(wi::div_ceil): Likewise.
(wi::udiv_ceil): Likewise.
(wi::div_round): Likewise.
(wi::gcd): Likewise.
(wi::mod_trunc): Likewise.
(wi::smod_trunc): Likewise.
(wi::umod_trunc): Likewise.
(wi::mod_floor): Likewise.
(wi::umod_floor): Likewise.
(wi::mod_ceil): Likewise.

7 days agogcc/[o-r]*: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 07:55:28 +0000 (07:55 +0000)] 
gcc/[o-r]*: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/objc/ChangeLog:

* objc-act.cc (objc_compare_types): Fix typos.
(objc_decl_method_attributes): Likewise.
(build_fast_enumeration_state_template): Likewise.
(objc_finish_foreach_loop): Likewise.
* objc-act.h (objc_common_register_features): Likewise.
* objc-runtime-hooks.h (struct objc_runtime_hooks): Likewise.

gcc/ChangeLog:

* omp-expand.cc (expand_oacc_collapse_vars): Likewise.
(expand_omp_for_init_vars): Likewise.
(expand_omp_for): Likewise.
(expand_omp_atomic_fetch_op): Likewise.
(build_omp_regions_1): Likewise.
* omp-general.cc (omp_is_allocatable_or_ptr): Likewise.
* omp-low.cc (lower_rec_input_clauses): Likewise.
(lower_omp): Likewise.
* omp-offload.cc (oacc_validate_dims): Likewise.
(oacc_loop_process): Likewise.
(oacc_loop_fixed_partitions): Likewise.
(oacc_loop_auto_partitions): Likewise.
(execute_oacc_device_lower): Likewise.
* omp-simd-clone.cc (simd_clone_clauses_extract): Likewise.
(ipa_simd_modify_stmt_ops): Likewise.
* optabs-query.cc (lshift_cheap_p): Likewise.
* optabs-query.h (trapv_binoptab_p): Likewise.
(get_vec_cmp_icode): Likewise.
* optabs.cc (expand_binop): Likewise.
(expand_vec_perm_var): Likewise.
(expand_compare_and_swap_loop): Likewise.
(expand_atomic_load): Likewise.
(maybe_optimize_fetch_op): Likewise.
(can_reuse_operands_p): Likewise.
* opts-global.cc (init_options_once): Likewise.
* opts.h (struct cl_option): Likewise.
* pair-fusion.cc (pair_fusion_bb_info::try_fuse_pair): Likewise.
* pair-fusion.h (enum class): Likewise.
* passes.cc (account_profile_1): Likewise.
* path-coverage.cc (instrument_prime_paths): Likewise.
* plugin.cc (get_event_last): Likewise.
* pointer-query.cc (handle_min_max_size): Likewise.
(handle_array_ref): Likewise.
(handle_ssa_name): Likewise.
* poly-int.h (struct if_lossless): Likewise.
(POLY_POLY_COEFF): Likewise.
* postreload-gcse.cc (gcse_after_reload_main): Likewise.
* predict.cc (expr_expected_value_1): Likewise.
(is_exit_with_zero_arg): Likewise.
(predict_paths_for_bb): Likewise.
(estimate_bb_frequencies): Likewise.
(rebuild_frequencies): Likewise.
(make_pass_rebuild_frequencies): Likewise.
* pretty-print-format-impl.h: Likewise.
* pretty-print.h: Likewise.
* prime-paths.cc (struct xpair): Likewise.
(edge_matrix): Likewise.
(test_build_ccfg): Likewise.
* print-rtl.cc (rtx_writer::print_rtx_operand_code_r): Likewise.
* profile-count.h (class profile_probability): Likewise.
* pta-andersen.cc (merge_node_constraints): Likewise.
(add_graph_edge): Likewise.
* range-op.cc (bool): Likewise.
(operator_cast::op1_range): Likewise.
(operator_bitwise_and::wi_fold): Likewise.
(operator_bitwise_and::op1_range): Likewise.
* range-op.h: Likewise.
* read-md.h (class md_reader): Likewise.
* read-rtl-function.cc (lookup_reg_by_dump_name): Likewise.
* real.cc: Likewise.
* recog.h: Likewise.
* ree.cc (find_and_remove_re): Likewise.
* reg-notes.def (REG_CFA_NOTE): Likewise.
* reginfo.cc (reg_allocno_class): Likewise.
* reload1.cc (will_delete_init_insn_p): Likewise.
(emit_reload_insns): Likewise.
* resource.cc (mark_referenced_resources): Likewise.
(mark_target_live_regs): Likewise.
* rtl.def (DEFINE_SPECIAL_PREDICATE): Likewise.
(COND): Likewise.
(DEFINE_SUBST): Likewise.
* rtl.h (const_vec_series_p_1): Likewise.
(const_vec_series_p): Likewise.

7 days agogcc/[e-m]*: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 06:17:01 +0000 (06:17 +0000)] 
gcc/[e-m]*: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* emit-rtl.h (struct rtl_data): Fix typos.
(struct address_reload_context): Likewise.
* explow.cc (anti_adjust_stack_and_probe): Likewise.
* explow.h (anti_adjust_stack_and_probe_stack_clash): Likewise.
* expmed.cc (store_bit_field_using_insv): Likewise.
(expand_mult): Likewise.
(emit_store_flag_force): Likewise.
(equivalent_cmp_code): Likewise.
* expr.cc (class op_by_pieces_d): Likewise.
(op_by_pieces_d::run): Likewise.
(use_group_regs): Likewise.
(get_def_for_expr): Likewise.
(emit_move_insn): Likewise.
(expand_expr_real): Likewise.
(expand_expr_real_gassign): Likewise.
* ext-dce.cc (ext_dce_process_uses): Likewise.
(ext_dce_process_bb): Likewise.
(ext_dce_rd_confluence_n): Likewise.
* fibonacci_heap.h (fibonacci_heap::cut): Likewise.
* fold-const.cc (combine_comparisons): Likewise.
(operand_compare::operand_equal_p): Likewise.
(fold_view_convert_vector_encoding): Likewise.
(fold_truth_andor): Likewise.
* fold-const.h: Likewise.
* function.cc (temp_address_hasher::equal): Likewise.
(gen_call_used_regs_seq): Likewise.
* gcc-diagnostic-spec.cc (GTY): Likewise.
(warning_suppressed_at): Likewise.
* gcc.cc (driver::maybe_run_linker): Likewise.
* gcov.cc (print_usage): Likewise.
(strip_extention): Likewise.
* gdbhooks.py: Likewise.
* gimplify.cc (gimplify_decl_expr): Likewise.
(gimplify_modify_expr): Likewise.
(oacc_default_clause): Likewise.
(omp_notice_variable): Likewise.
* graph.cc (draw_cfg_nodes): Likewise.
* graphite-dependences.cc (scop_get_reads_and_writes): Likewise.
* graphite-isl-ast-to-gimple.cc (graphite_copy_stmts_from_block): Likewise.
* haifa-sched.cc (model_set_excess_costs): Likewise.
(analyze_set_insn_for_autopref): Likewise.
(autopref_multipass_dfa_lookahead_guard): Likewise.
* hash-map-traits.h (HASH_MAP_TRAITS_H): Likewise.
* hosthooks.h (struct host_hooks): Likewise.
* ifcvt.cc (noce_try_sign_bit_splat): Likewise.
* input.cc (line_table_test::line_table_test): Likewise.
* internal-fn.def (PHI): Likewise.
* internal-fn.h (enum ifn_goacc_loop_kind): Likewise.
* ira-build.cc (create_insn_allocnos): Likewise.
* ira-color.cc (ira_mark_new_stack_slot): Likewise.
* ira-int.h: Likewise.
* ira.cc (struct sloc): Likewise.
* json-parsing.cc (parser::require_one_of): Likewise.
* langhooks.h (struct lang_hooks_for_decls): Likewise.
* libgdiagnostics.cc: Likewise.
* libgdiagnostics.h (diagnostic_manager_write_patch): Likewise.
* loop-invariant.cc (MAX_CANON_ADDR_PARTS): Likewise.
* lra-assigns.cc (reload_pseudo_compare_func): Likewise.
* lra-constraints.cc (match_reload): Likewise.
(process_alt_operands): Likewise.
(process_address_1): Likewise.
(lra_constraints): Likewise.
(inherit_in_ebb): Likewise.
* lra-eliminations.cc (init_elim_table): Likewise.
* lra-remat.cc: Likewise.
* machmode.h (struct int_n_data_t): Likewise.
* mem-stats.h (mem_alloc_description::register_descriptor): Likewise.
(mem_alloc_description::unregister_descriptor): Likewise.
* mode-switching.cc (optimize_mode_switching): Likewise.
* modulo-sched.cc (schedule_reg_moves): Likewise.
(optimize_sc): Likewise.

7 days agogcc/[a-d]*: Fix typos in various files
Dhruv Chawla [Thu, 14 May 2026 06:01:23 +0000 (06:01 +0000)] 
gcc/[a-d]*: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* adjust-alignment.cc (pass_adjust_alignment::execute): Fix typos.
* alias.cc (alias_set_subset_of): Likewise.
(alias_ptr_types_compatible_p): Likewise.
(get_alias_set): Likewise.
(record_component_aliases): Likewise.
(base_alias_check): Likewise.
* alloc-pool.h: Likewise.
* asan.cc (insert_if_then_before_iter): Likewise.
(asan_expand_check_ifn): Likewise.
(hwasan_expand_check_ifn): Likewise.
* asan.h (sanitize_flags_p): Likewise.
* asm-toplevel.cc (analyze_toplevel_extended_asm): Likewise.
* attr-fnspec.h: Likewise.
* attribs.cc (decl_attributes): Likewise.
* auto-profile.cc (function_instance::match): Likewise.
(function_instance::remove_icall_target): Likewise.
(autofdo_source_profile::offline_external_functions): Likewise.
(afdo_set_bb_count): Likewise.
(scale_bbs): Likewise.
(afdo_adjust_guessed_profile): Likewise.
* basic-block.h (find_fallthru_edge): Likewise.
* bbitmap.h: Likewise.
* bitmap.cc (bitmap_list_find_element): Likewise.
* bitmap.h: Likewise.
* btfout.cc (BTF_INFO_SECTION_FLAGS): Likewise.
(btf_asm_type): Likewise.
(output_btf_vars): Likewise.
(btf_add_used_type_1): Likewise.
* builtins.cc (string_length): Likewise.
(expand_builtin_setjmp_setup): Likewise.
(inline_expand_builtin_bytecmp): Likewise.
* builtins.def: Likewise.
* ccmp.cc (get_compare_parts): Likewise.
(expand_ccmp_next): Likewise.
* ccmp.h: Likewise.
* cfg.cc (update_bb_profile_for_threading): Likewise.
* cfganal.cc (post_order_compute): Likewise.
* cfgbuild.cc (find_many_sub_basic_blocks): Likewise.
* cfgexpand.cc (vars_ssa_cache::dump): Likewise.
(add_scope_conflicts_1): Likewise.
(set_parm_rtl): Likewise.
(expand_one_ssa_partition): Likewise.
(expand_one_var): Likewise.
(discover_nonconstant_array_refs_r): Likewise.
(pass_expand::execute): Likewise.
* cfgloop.cc (get_estimated_loop_iterations): Likewise.
* cfgloopanal.cc (loop_count_in): Likewise.
* cfgloopmanip.cc (loop_exit_for_scaling): Likewise.
(update_loop_exit_probability_scale_dom_bbs): Likewise.
* cgraph.cc (add_detected_attribute_1): Likewise.
(cgraph_edge::maybe_hot_p): Likewise.
* cgraph.h (struct cgraph_node): Likewise.
* cif-code.def (ORIGINALLY_INDIRECT_CALL): Likewise.
* collect2.cc (main): Likewise.
* combine.cc (simplify_comparison): Likewise.
(distribute_notes): Likewise.
* configure.ac: Likewise.
* coretypes.h (enum pad_direction): Likewise.
* coroutine-passes.cc (make_pass_coroutine_lower_builtins): Likewise.
* coverage.cc (coverage_compute_profile_id): Likewise.
* cse.cc (struct set): Likewise.
(try_back_substitute_reg): Likewise.
(count_stores): Likewise.
* cselib.cc (struct cselib_hasher): Likewise.
* ctfc.cc (ctfc_get_num_ctf_vars): Likewise.
(ctf_add_string): Likewise.
(ctf_add_function_arg): Likewise.
* ctfc.h (GTY): Likewise.
(CTF_AUX_STRTAB): Likewise.
(ctfc_get_num_ctf_vars): Likewise.
* ctfout.cc (ctf_asm_sou_lmember): Likewise.
(output_ctf_header): Likewise.
* debug.h: Likewise.
* defaults.h: Likewise.
* df-problems.cc (df_simulate_fixup_sets): Likewise.
(df_simulate_finalize_backwards): Likewise.
* diagnostic-context-rich-location.cc
(lazy_diagnostic_context_path::make_inner_path): Likewise.
* diagnostics/color.cc (auto_enable_urls): Likewise.
* diagnostics/context.h: Likewise.
* diagnostics/sarif-sink.cc (get_message_from_result): Likewise.
* double-int.cc (double_int::lrotate): Likewise.
* dwarf2asm.cc (dw2_asm_output_delta_uleb128): Likewise.
* dwarf2cfi.cc (dwarf2out_frame_debug_expr): Likewise.
* dwarf2ctf.cc (ctf_get_AT_data_member_location): Likewise.
(handle_ctf_type_tags): Likewise.
* dwarf2out.cc (cst_pool_loc_descr): Likewise.
(loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
(resolve_args_picking_1): Likewise.
(typed_binop_from_tree): Likewise.
(gen_array_type_die): Likewise.
* dwarf2out.h (struct dw_val_node): Likewise.
(dw_loc_dtprel): Likewise.

7 days agofortran: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 11:16:57 +0000 (11:16 +0000)] 
fortran: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/fortran/ChangeLog:

* check.cc (oct2bin): Fix typos.
(gfc_check_move_alloc): Likewise.
* class.cc (gfc_intrinsic_hash_value): Likewise.
* decl.cc (copy_prefix): Likewise.
* dependency.cc (gfc_dep_compare_expr): Likewise.
* expr.cc (gfc_check_assign_symbol): Likewise.
* frontend-passes.cc (combine_array_constructor): Likewise.
(doloop_code): Likewise.
(doloop_warn): Likewise.
(matmul_lhs_realloc): Likewise.
* gfortran.h: Likewise.
* gfortran.texi: Likewise.
* interface.cc (compare_parameter): Likewise.
* intrinsic.cc (add_functions): Likewise.
(add_subroutines): Likewise.
* invoke.texi: Likewise.
* lang.opt: Likewise.
* module.cc (mio_full_f2k_derived): Likewise.
* openmp.cc (gfc_match_omp_variable_list): Likewise.
* resolve.cc (resolve_global_procedure): Likewise.
(gfc_fixup_inferred_type_refs): Likewise.
(gfc_verify_binding_labels): Likewise.
(resolve_fl_parameter): Likewise.
* trans-array.cc (gfc_set_loop_bounds_from_array_spec): Likewise.
(gfc_trans_array_constructor_value): Likewise.
(maybe_substitute_expr): Likewise.
(duplicate_allocatable_coarray): Likewise.
* trans-decl.cc (gfc_trans_deferred_vars): Likewise.
* trans-expr.cc (gfc_vptr_size_get): Likewise.
(gfc_trans_subcomponent_assign): Likewise.
(gfc_conv_expr): Likewise.
(fcncall_realloc_result): Likewise.
(alloc_scalar_allocatable_for_assignment): Likewise.
(gfc_trans_assignment_1): Likewise.
* trans-openmp.cc (gfc_omp_deep_mapping_cnt): Likewise.
* trans-stmt.cc (trans_associate_var): Likewise.
(gfc_trans_allocate): Likewise.
* trans.cc (gfc_finalize_tree_expr): Likewise.

7 days agofixincludes: Fix typos in various files
Dhruv Chawla [Mon, 11 May 2026 15:25:48 +0000 (15:25 +0000)] 
fixincludes: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
fixincludes/ChangeLog:

* README: Fix typos.
* fixinc.in: Likewise.
* fixincl.c (quoted_file_exists): Likewise.
* fixlib.c (fix_path_separators): Likewise.
* inclhack.def: Likewise.

7 days agodoc: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 11:10:49 +0000 (11:10 +0000)] 
doc: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/ChangeLog:

* doc/analyzer.texi: Fix typos.
* doc/cpp.texi: Likewise.
* doc/extend.texi: Likewise.
* doc/gcov.texi: Likewise.
* doc/gm2.texi: Likewise.
* doc/gty.texi: Likewise.
* doc/install.texi: Likewise.
* doc/invoke.texi: Likewise.
* doc/libgdiagnostics/topics/compatibility.rst: Likewise.
* doc/libgdiagnostics/topics/physical-locations.rst: Likewise.
* doc/libgdiagnostics/tutorial/07-execution-paths.rst: Likewise.
* doc/libgdiagnostics/tutorial/08-message-buffers.rst: Likewise.
* doc/match-and-simplify.texi: Likewise.
* doc/md.texi: Likewise.
* doc/optinfo.texi: Likewise.
* doc/params.texi: Likewise.
* doc/poly-int.texi: Likewise.
* doc/riscv-ext.texi: Likewise.
* doc/rtl.texi: Likewise.
* doc/sourcebuild.texi: Likewise.
* doc/tm.texi: Likewise.
* doc/tm.texi.in: Likewise.
* doc/tree-ssa.texi: Likewise.

7 days agod: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 11:02:25 +0000 (11:02 +0000)] 
d: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/d/ChangeLog:

* d-attribs.cc (d_handle_alloc_size_attribute): Fix typos.
* d-codegen.cc (build_boolop): Likewise.
(get_frame_for_symbol): Likewise.
* d-gimplify.cc (empty_modify_p): Likewise.
* d-lang.cc (d_parse_file): Likewise.
* d-spec.cc (lang_specific_driver): Likewise.
* d-target.cc (Target::systemLinkage): Likewise.
* decl.cc (get_fndecl_arguments): Likewise.
(build_class_instance): Likewise.
* expr.cc: Likewise.
* implement-d.texi: Likewise.
* intrinsics.cc (call_builtin_fn): Likewise.
(expand_intrinsic_bsf): Likewise.
(expand_intrinsic_rotate): Likewise.
(expand_intrinsic_vastart): Likewise.
(expand_intrinsic_checkedint): Likewise.
(expand_volatile_load): Likewise.
(expand_volatile_store): Likewise.
(expand_intrinsic_vec_convert): Likewise.
(expand_intrinsic_vec_blend): Likewise.
(expand_intrinsic_vec_shuffle): Likewise.
(expand_intrinsic_vec_shufflevector): Likewise.
(expand_intrinsic_vec_load_unaligned): Likewise.
* modules.cc (get_dso_registry_fn): Likewise.
* toir.cc: Likewise.
* typeinfo.cc: Likewise.
* types.cc (finish_aggregate_type): Likewise.

7 days agocp: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 10:59:08 +0000 (10:59 +0000)] 
cp: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/cp/ChangeLog:

* call.cc (involves_qualification_conversion_p): Fix typos.
(build_user_type_conversion_1): Likewise.
(complain_about_access): Likewise.
(maybe_warn_class_memaccess): Likewise.
* class.cc (inherit_targ_abi_tags): Likewise.
(warn_hidden): Likewise.
(maybe_add_class_template_decl_list): Likewise.
(check_bases_and_members): Likewise.
(dfs_accumulate_vtbl_inits): Likewise.
* constexpr.cc (cx_check_missing_mem_inits): Likewise.
(cxx_eval_call_expression): Likewise.
(modifying_const_object_error): Likewise.
(cxx_replaceable_global_alloc_fn): Likewise.
* contracts.cc (copy_contracts_list): Likewise.
(check_redecl_contract): Likewise.
(update_late_contract): Likewise.
(get_precondition_function): Likewise.
* coroutines.cc (cp_coroutine_transform::build_ramp_function): Likewise.
* cp-tree.def (DISJ_CONSTR): Likewise.
* cp-tree.h (struct lang_decl_base): Likewise.
(SCOPE_DEPTH): Likewise.
(set_anon_aggr_type_field): Likewise.
(struct cp_decl_specifier_seq): Likewise.
* decl.cc (reshape_init_array_1): Likewise.
(omp_declare_variant_finalize): Likewise.
(grokdeclarator): Likewise.
(copy_type_enum): Likewise.
* decl2.cc (struct priority_map_traits): Likewise.
(determine_visibility): Likewise.
(constrain_class_visibility): Likewise.
(one_static_initialization_or_destruction): Likewise.
* g++spec.cc (lang_specific_driver): Likewise.
* init.cc (constant_value_1): Likewise.
(build_new): Likewise.
* mangle.cc (write_unqualified_name): Likewise.
* method.cc (inherited_ctor_binfo): Likewise.
(synthesized_method_walk): Likewise.
* module.cc (GTY): Likewise.
(trees_out::lang_decl_bools): Likewise.
(trees_out::core_vals): Likewise.
(trees_in::core_vals): Likewise.
(trees_in::install_implicit_member): Likewise.
(trees_in::odr_duplicate): Likewise.
(instantiating_tu_local_entity): Likewise.
(sort_cluster): Likewise.
(module_state::write_define): Likewise.
(module_state::write_begin): Likewise.
(declare_module): Likewise.
(init_modules): Likewise.
* name-lookup.cc (name_lookup::ambiguous): Likewise.
(pushdecl): Likewise.
(suggest_alternatives_for_1): Likewise.
(maybe_add_fuzzy_decl): Likewise.
* name-lookup.h (INHERITED_VALUE_BINDING_P): Likewise.
(HIDDEN_TYPE_BINDING_P): Likewise.
(BINDING_VECTOR_GLOBAL_DUPS_P): Likewise.
* operators.def: Likewise.
* parser.cc (cp_lexer_new_main): Likewise.
(get_cast_suggestion): Likewise.
(cp_parser_expression): Likewise.
(cp_parser_simple_type_specifier): Likewise.
(cp_parser_noexcept_specification_opt): Likewise.
(cp_parser_lookup_name): Likewise.
(class_decl_loc_t::diag_mismatched_tags): Likewise.
(cp_parser_cache_defarg): Likewise.
(cp_parser_objc_statement): Likewise.
(cp_parser_omp_loop_nest): Likewise.
(cp_parser_omp_taskloop): Likewise.
(cp_parser_objc_at_property_declaration): Likewise.
* parser.h (struct cp_unparsed_functions_entry): Likewise.
* pt.cc (tsubst_friend_class): Likewise.
(use_pack_expansion_extra_args_p): Likewise.
(tsubst_unary_left_fold): Likewise.
(tsubst_unary_right_fold): Likewise.
(filter_memfn_lookup): Likewise.
* semantics.cc (maybe_convert_cond): Likewise.
(finish_switch_cond): Likewise.
(cp_finish_omp_clause_doacross_sink): Likewise.
(finish_omp_target_clauses_r): Likewise.
* tree.cc (build_cplus_new): Likewise.
(apply_identity_attributes): Likewise.
* vtable-class-hierarchy.cc (vtv_compute_class_hierarchy_transitive_closure): Likewise.
(vtv_generate_init_routine): Likewise.

7 days agocobol, libgcobol: Fix typos in various files
Dhruv Chawla [Wed, 13 May 2026 10:51:03 +0000 (10:51 +0000)] 
cobol, libgcobol: Fix typos in various files

Signed-off-by: Dhruv Chawla <dhruvc@nvidia.com>
gcc/cobol/ChangeLog:

* compare.cc (alpha_compare): Fix typos.
* Make-lang.in: Fix typos.
* except.cc (cbl_enabled_exceptions_t::turn_on_off): Likewise.
* genapi.cc (MAX_AFTERS): Likewise.
(cobol_compare): Likewise.
(enter_program_common): Likewise.
(parser_bsearch_end): Likewise.
(parser_set_pointers): Likewise.
* gengen.cc (chain_parameter_to_function): Likewise.
* gengen.h (gg_return): Likewise.
* genutil.cc (refer_is_clean): Likewise.
* lexio.cc (right_margin): Likewise.
(maybe_add_space): Likewise.
* messages.cc: Likewise.
* parse_ante.h (procedure_division_ready): Likewise.
* structs.cc (create_cblc_field_t): Likewise.
* symbols.cc (special_pair_cmp): Likewise.
(symbol_table_init): Likewise.
(symbol_label_add): Likewise.
* symbols.h: Likewise.
* util.cc (date_time_fmt): Likewise.
(cobol_lineno): Likewise.

libgcobol/ChangeLog:

* README: Fix typos.
* charmaps.cc (__gg__iconverter): Likewise.
* common-defs.h (enum cbl_field_attr_t): Likewise.
* gcobolio.h: Likewise.
* gfileio.cc (__gg__file_stash): Likewise.
* gmath.cc (__gg__pow): Likewise.
* inspect.cc (inspect_backward_format_1): Likewise.
(__gg__inspect_format_1): Likewise.
(inspect_backward_format_2): Likewise.
(__gg__inspect_format_2): Likewise.
(__gg__inspect_format_1_sbc): Likewise.
* intrinsic.cc (gets_month): Likewise.
* libgcobol.cc (get_time_nanoseconds_local): Likewise.
(__gg__compare_2): Likewise.
(display_both): Likewise.
(accept_envar): Likewise.
(__gg__set_pointer): Likewise.
(struct cbl_exception_t): Likewise.
(default_exception_handler): Likewise.
(convert_for_convert): Likewise.
* valconv.cc: Likewise.
* xmlparse.cc (struct xml_ec_value_t): Likewise.