Re: [PATCH] COBOL v3: 3/14 80K bld: config and build machinery

2025-03-17 Thread Andreas Schwab
On Mär 13 2025, James K. Lowden wrote: > On Tue, 11 Mar 2025 11:18:22 +0100 > Andreas Schwab wrote: > >> libgcobol/configure.tgt says it's supported on powerpc64le. > > Our intention, tell me if you disagree, is that cobol is enabled if > > 1. --enable-languages=all, and > 2. the host and targe

[PATCH v2] libstdc++: Add P1206R7 from_range members to ordered sets [PR111055]

2025-03-17 Thread Tomasz Kamiński
This is another piece of P1206R7, adding new members to std::set and std::multiset. PR libstdc++/111055 libstdc++-v3/ChangeLog: * include/bits/stl_multiset.h: (inser_range) (multiset(from_range_t, _Rg&&, const _Compare&, const _Alloc&)) (multiset(from_range_t, _Rg

Re: [PATCH] aarch64: remove SVE2 requirement from SME and diagnose it as unsupported

2025-03-17 Thread Andre Vieira (lists)
Thanks for the suggestions. On 14/03/2025 21:43, Andrew Carlotti wrote: On Thu, Mar 13, 2025 at 05:10:07PM +, Andre Vieira (lists) wrote: Apologies for the delay, had been waiting on some other relevant patches to go in to make sure we didn't break any valid existing behaviours. It should a

[PATCH v3] reassoc: Optimize CMP/XOR expressions [PR116860]

2025-03-17 Thread Konstantinos Eleftheriou
Testcases for match.pd patterns `((a ^ b) & c) cmp d | a != b -> (0 cmp d | a != b)` and `(a ^ b) cmp c | a != b -> (0 cmp c | a != b)` were failing on some targets, like PowerPC. This patch adds an implemenetation for the optimization in reassoc. Doing so, we can now handle cases where the relate

[PATCH v2 04/18] Add microMIPS R6 support

2025-03-17 Thread Aleksandar Rakic
From: Andrew Bennett gcc/ * config/mips/constraints.md: Update ZC/ZD constraints for microMIPS R6 9-bit offsets. * config/mips/m6200.md: Add the m6200 architecture and scheduler. * config/mips/mips-cpus.def: Add the m6201 cpu. * config/mips/mips-dsp

[PATCH v2 16/18] Inefficient 64-bit signed modulo by powers of two

2025-03-17 Thread Aleksandar Rakic
From: Mihailo Stojanovic This adds the custom MIPS-specific modulo by power of two expander, which uses a modified algorithm, tailored to MIPS instruction set. gcc/ * config/mips/mips-protos.h (mips_expand_mod_pow2): New prototype. * config/mips/mips.cc (mips_rtx_costs): Don't force pow

[PATCH v2 0/1] Improve inlining

2025-03-17 Thread Aleksandar Rakic
This patch series improves the inlining in GCC. This patch is cherry-picked from the mips_rel/9_3_0/master branch from the MIPS' repository: https://github.com/MIPS/gcc . Further details on the individual changes are included in the respective patch.

[PATCH v2 10/10] nanoMIPS: unnecessary AND following an EXT

2025-03-17 Thread Aleksandar Rakic
From: "dragan.mladjenovic" The fwprop1 introduces a new use of Y by replacing the (subreg:QI (reg:SI X)) with (reg:QI Y) preventing the optimization of zero_extend later during the combine. This patch prevents this replacement in two new cases. A: (set (subreg:SI (reg:QI Y)) (z

[PATCH v2 4/4] Add uclibc support

2025-03-17 Thread Aleksandar Rakic
From: Jean Lee libsanitizer/ * asan/asan_descriptions.cpp (GetStackTraceFromId): Disable stack unwind for uclibc on mips target. * asan/asan_linux.cpp: Fix "ASan runtime does not come first in initial library list; you should either link runtime to your app

[PATCH v3 1/2] Aarch64: Add FMA and FMAF intrinsic and corresponding tests

2025-03-17 Thread Ayan Shafqat
This patch introduces inline definitions for the __fma and __fmaf functions in arm_acle.h for Aarch64 targets. These definitions rely on __builtin_fma and __builtin_fmaf to ensure proper inlining and to meet the ACLE requirements [1]. The patch has been tested locally using a crosstool-NG sysroot

[PATCH v2 05/10] P5600: Option -msched-weight added

2025-03-17 Thread Aleksandar Rakic
From: Jaydeep Patil Fix negative offset memory addressing. Unconditionally set DONT_BREAK_DEPENDENCIES in scheduling flags. The code to break dependencies does not appear to provide a win under any circumstance and is often harmful. Disable it completely pending further investigation. gcc/

[PATCH v2 08/18] Add -mfunc-opt-list=

2025-03-17 Thread Aleksandar Rakic
From: Simon Dardis New option for MIPS -mfunc-opt-list=FILE. This option takes a file which has one function per line followed by a whitespace (space/tab) followed by one or more attributes. Supported attributes are O2, Os, code-read=pcrel, always_inline, noinline, mips16, nomips16, epi, longcall

[PATCH v2 15/18] Inefficient scattered double precision load in MSA

2025-03-17 Thread Aleksandar Rakic
From: Mihailo Stojanovic gcc/ * config/mips/mips.cc (mips_legitimate_combined_insn): New function. Cherry-picked 092a39db956a418e7e020107b062c170ed976841 from https://github.com/MIPS/gcc Signed-off-by: Mihailo Stojanovic Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksanda

[PATCH v2 02/12] Fix unsafe comparison against stack_pointer_rtx

2025-03-17 Thread Aleksandar Rakic
From: Andrew Bennett GCC can modify a rtx which was created using stack_pointer_rtx. This means that just doing a straight address comparision of a rtx against stack_pointer_rtx to see whether it is the stack pointer register will not be correct in all cases. gcc/ * config/mips/mips.cc:

[PATCH v2 0/1] Improve the contrib directory

2025-03-17 Thread Aleksandar Rakic
This patch series improves the script in the contrib directory of the GCC source tree. This patch is cherry-picked from the mips_rel/9_3_0/master branch from the MIPS' repository: https://github.com/MIPS/gcc . Further details on the individual changes are included in the respective patch.

Re: [PATCH] c++: poor diag w/ non-constexpr dtor called from constexpr ctor

2025-03-17 Thread Jason Merrill
On 3/14/25 1:34 PM, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for stage 1? OK. -- >8 -- When diagnosing a non-constexpr constructor call during constexpr evaluation, explain_invalid_constexpr_fn was passing the genericized body to require_poten

[PATCH v2] ISC-V: Support for zilsd and zclsd extensions.

2025-03-17 Thread Dongyan Chen
This patch support zilsd and zclsd[1] extensions. To enable GCC to recognize and process zilsd and zclsd extension correctly at compile time. [1] https://github.com/riscv/riscv-zilsd Changes for v2: - Remove the addition of zilsd extension in gcc/common/config/riscv/riscv-ext-bitmask.def - Fix

[COMMITTED 031/145] gccrs: Change return type of lookup trait defid functions.

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry Wrap the return type with an optional. gcc/rust/ChangeLog: * backend/rust-compile-base.cc (HIRCompileBase::resolve_method_address): Update code around lookup return type. * typecheck/rust-tyty-bounds.cc (TypeCheckBase::get_predicate_from_boun

[COMMITTED 010/145] gccrs: borrowck: Use std::ignore

2025-03-17 Thread arthur . cohen
From: Jakub Dupak gcc/rust/ChangeLog: * checks/errors/borrowck/rust-bir-builder-expr-stmt.cc (ExprStmtBuilder::visit): Use std::ignore. --- .../errors/borrowck/rust-bir-builder-expr-stmt.cc | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/r

[COMMITTED 032/145] gccrs: Change lookup_hir_extern_item return type

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry Wrap the return type with an optional and make the return type a pair with the parent hid. gcc/rust/ChangeLog: * backend/rust-compile-resolve-path.cc (HIRCompileBase::query_compile): Adapt code around new return type. * checks/errors/rust-cons

[COMMITTED 038/145] gccrs: Change lookup_hir_generic_param return type

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry Wrap the function's return type with an optional. gcc/rust/ChangeLog: * util/rust-hir-map.cc (Mappings::insert_hir_generic_param): Change call site to accomodate the new return type. (Mappings::lookup_hir_generic_param): Wrap the function's re

[COMMITTED 042/145] gccrs: Change lookup_hir_self_param return type

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry Wrap the function's return type within an optional in order to differentiate null pointers from missing value. gcc/rust/ChangeLog: * util/rust-hir-map.cc (Mappings::insert_hir_self_param): Adapt call site to new return type. (Mappings::lookup_

[COMMITTED 016/145] gccrs: Improve matching on non-enum ADTs

2025-03-17 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * backend/rust-compile-expr.cc (check_match_scrutinee): Add assertion. * backend/rust-compile-pattern.cc (CompilePatternCheckExpr::visit): Handle HIR::PathInExpression matching a non-enum. gcc/testsuite/ChangeLog:

[COMMITTED 034/145] gccrs: Change return type to optional in get_lang_item

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry Wrap the function's return type with an optional. gcc/rust/ChangeLog: * typecheck/rust-autoderef.cc: Adapt calling code to new return type. * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): Likewise. (TypeCheckExpr::resol

[COMMITTED 043/145] gccrs: Change lookup_hir_struct_field return type

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry Wrap the function's return type within an optional to differentiate between a null pointer and a missing value. gcc/rust/ChangeLog: * util/rust-hir-map.cc (Mappings::insert_hir_struct_field): Change call site to accomodate new return type. (Ma

[COMMITTED 040/145] gccrs: Change lookup_hir_smt's return type with optional

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry Wrap the function's return type within an optional in order to differentiate missing values from null pointers. gcc/rust/ChangeLog: * util/rust-hir-map.cc (Mappings::insert_hir_stmt): Change call site to accomodate new return type. (Mappings::

[COMMITTED 109/145] gccrs: Fix visitor-related warnings

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Fix visitor-related warnings * ast/rust-ast-collector.h: Likewise. * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Likewise. * ast/rust-ast-visitor.h: Likewise.

New template for 'gcc' made available

2025-03-17 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. (If you have any questions, send them to .) A new POT file for textual domain 'gcc' has been made available to the language teams for translation. It is archived as: https://translationproject.org/POT-files/gcc

[RISC-V] Fix unreported code quality regression with single bit manipulations

2025-03-17 Thread Jeff Law
I was reviewing some code recently and spotted an oddity. In a few places we were emitting andi dst,src,-1 and in others [x]ori dst,src,0. Those are obviously nops and we should get rid of them. Most of these are coming from a split part of a couple define_insn_and_split patterns added back i

[COMMITTED 139/145] gccrs: Update pattern with \r* for dg-output tests

2025-03-17 Thread arthur . cohen
From: badumbatish First scan with "rg -v '\\r' gcc/testsuite/rust | rg 'dg-output'" gcc/testsuite/ChangeLog: * rust/execute/torture/issue-2187.rs: Update pattern with \r* for dg-output tests * rust/execute/xfail/macro1.rs: Likewise --- gcc/testsuite/rust/execute/torture

[COMMITTED] doc: Regenerate common.opt.urls

2025-03-17 Thread Michal Jires
Regenerated common.opt.urls, which I missed until autobuilder noticed. Committed as obvious. gcc/ChangeLog: * common.opt.urls: Regenerate. --- gcc/common.opt.urls | 6 ++ 1 file changed, 6 insertions(+) diff --git a/gcc/common.opt.urls b/gcc/common.opt.urls index 79c322bed2b..ac602

[committed] testsuite: Add -gno-strict-dwarf option to dwarf2 inline[26].c tests

2025-03-17 Thread John David Anglin
Tested on hppa64-hp-hpux11.11 and hppa-unknown-linux-gnu. Committed to trunk. Dave --- testsuite: Add -gno-strict-dwarf option to dwarf2 inline[26].c tests Some targets default to strict dwarf. 2025-03-17 John David Anglin gcc/testsuite/ChangeLog: PR testsuite/119220 * gcc

[COMMITTED 134/145] rust: fix HIR dump for MatchExpr

2025-03-17 Thread arthur . cohen
From: Marc Poulhiès The visitor was still using the as_string() method. gcc/rust/ChangeLog: * hir/rust-hir-dump.cc (Dump::do_matcharm): New. (Dump::do_matchcase): New. (Dump::visit(MatchExpr)): Adjust, don't use as_string. * hir/rust-hir-dump.h (Dump::do_matcharm

New template for 'cpplib' made available

2025-03-17 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. (If you have any questions, send them to .) A new POT file for textual domain 'cpplib' has been made available to the language teams for translation. It is archived as: https://translationproject.org/POT-files/

New Romanian PO file for 'cpplib' (version 15.1-b20250316)

2025-03-17 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'cpplib' has been submitted by the Romanian team of translators. The file is available at: https://translationproject.org/latest/cpplib/ro.po (This file, 'cpplib-15.1-b20250

[COMMITTED 143/145] gccrs: Fix ffi and enum conventions

2025-03-17 Thread arthur . cohen
From: badumbatish gcc/rust/ChangeLog: * ast/rust-fmt.h (enum ParseMode): Drop typedef in Cpp libgrust/ChangeLog: * libformat_parser/generic_format_parser/src/lib.rs: Remove repr(C) * libformat_parser/src/bin.rs: Use ffi * libformat_parser/src/lib

[COMMITTED 126/145] gccrs: Added tl::expected to parse_operand

2025-03-17 Thread arthur . cohen
From: jjasmine Added tl::expected to parse_operand by implementing the validation inside the parse_reg_operand function. gcc/rust/ChangeLog: * ast/rust-expr.h: Added tl::expected to parse_operand * expand/rust-macro-builtins-asm.cc (parse_reg): Likewise. (parse_r

[COMMITTED 128/145] gccrs: Add WARN_UNUSED_RESULT parse error

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.h (enum InlineAsmParseError): Add WARN_UNUSED_RESULT parse error (enum WARN_UNUSED_RESULT): Likewise. Signed-off-by: badumbatish --- gcc/rust/expand/rust-macro-builtins-asm.h | 3 ++- 1 file changed, 2

Re: rs6000: Add -msplit-patch-nops (PR112980)

2025-03-17 Thread Michael Matz
Hey, On Thu, 20 Feb 2025, Richard Biener wrote: > > > +@opindex msplit-patch-nops > > > +@item -msplit-patch-nops > > > +When adding NOPs for a patchable area via the > > > +@option{-fpatchable-function-entry} option emit the "before" NOPs in > > > front > > > +of the global entry point and the

[PATCH v2 00/10] Improvements for the targets other than mips64r6

2025-03-17 Thread Aleksandar Rakic
From: Aleksandar Rakic Andrew Bennett (2): Only split shifts if using -mno-debugd Testsuite: Modify the gcc.dg/memcpy-4.c test Jaydeep Patil (1): P5600: Option -msched-weight added Matthew Fortune (3): Testsuite: Fix insn-*.c tests from trunk Testsuite: Adjust tests to cope with -mips

[PATCH v2 09/10] Remove redundant moves

2025-03-17 Thread Aleksandar Rakic
From: Robert Suchanek These reloads happen because of different modes making elimination non-trivial. gcc/ * config/mips/mips.md: Add peepholes to remove silly moves. Cherry-picked 85462a9dbf8d659bfb0417d354a0a4f9cd4b8e07 from https://github.com/MIPS/gcc Signed-off-by: Robert Suchanek

[PATCH v2 09/12] Add -mmxu and -mno-mxu driver pass through

2025-03-17 Thread Aleksandar Rakic
From: Matthew Fortune gcc/ * config/mips/mips.h (ASM_SPEC): Add placeholders for -mmxu and -mno-mxu. Cherry-picked 9acbf0b0efdfcc27e30b1db7a707dbe9cc6b64eb from https://github.com/MIPS/gcc Signed-off-by: Matthew Fortune Signed-off-by: Faraz Shahbazker Signed-off-by: Aleksandar

[PATCH v2 10/18] Add -march=interaptiv-mr2 with MIPS16E2

2025-03-17 Thread Aleksandar Rakic
From: Robert Suchanek - Bugfix [MIPS16E2]: split of moves of negative constants should exclude zero const. - Add support for every style of ZEB/ZEH support that has been tried: An earlier attempt to improve generation of ZEB/ZEH led to a chaotic effect of sometimes generating the instructions a

[PATCH v2 02/10] Only split shifts if using -mno-debugd

2025-03-17 Thread Aleksandar Rakic
From: Andrew Bennett gcc/ * config/mips/mips.md (3): Check TARGET_DEBUG_D_MODE before split. * config/mips/mips.opt: Enable -mdebugd by default. Cherry-picked adb95984114b7636ee15f2ba79f94b028c8b35b2 from https://github.com/MIPS/gcc Signed-off-by: Andrew Bennett Signed-

[COMMITTED 001/145] gccrs: contrib: Add libgrust to update-copyright.py script

2025-03-17 Thread arthur . cohen
From: Sahil Yeole contrib/ChangeLog: * update-copyright.py: Add libgrust folder. Signed-off-by: Sahil Yeole --- contrib/update-copyright.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/update-copyright.py b/contrib/update-copyright.py index 0e45609d5eb..838c44f33eb 100

[COMMITTED 002/145] gccrs: git: Ignore libgrust build folders

2025-03-17 Thread arthur . cohen
From: Arthur Cohen ChangeLog: * .gitignore: Add libgrust target folders to the ignore list. --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index f044fe16b5f..7150fc3b29c 100644 --- a/.gitignore +++ b/.gitignore @@ -71,3 +71,6 @@ stamp-* /g

[COMMITTED 005/145] gccrs: borrowck: Polonius dump

2025-03-17 Thread arthur . cohen
From: Jakub Dupak gcc/rust/ChangeLog: * checks/errors/borrowck/polonius/rust-polonius.h (struct FullPoint): Polonius facts dump. (struct Facts): Polonius facts dump. * checks/errors/borrowck/rust-bir-dump.cc (Dump::go): Polonius facts dump. (Dump::

[COMMITTED 007/145] gccrs: borrowck: Link Polonius and run it

2025-03-17 Thread arthur . cohen
From: Jakub Dupak gcc/rust/ChangeLog: * Make-lang.in: Link Polonius. * checks/errors/borrowck/rust-borrow-checker.cc: Run Polonius. Signed-off-by: Jakub Dupak --- gcc/rust/Make-lang.in | 9 ++--- gcc/rust/checks/errors/borrowck/rust-borrow-

[COMMITTED 009/145] gccrs: borrowck: Testsuite

2025-03-17 Thread arthur . cohen
From: Jakub Dupak gcc/testsuite/ChangeLog: * rust/borrowck/borrowck.exp: New test. * rust/borrowck/position_dependant_outlives.rs: New test. * rust/borrowck/reference.rs: New test. * rust/borrowck/return_ref_to_local.rs: New test. * rust/borrowck/subset.rs

[COMMITTED 003/145] gccrs: Remove redundant macro definition

2025-03-17 Thread arthur . cohen
From: zhanghe9702 gcc/rust/ChangeLog: * backend/rust-tree.h: removing the CLASSTYPE_VBASECLASSES macro which is duplicated three times. Signed-off-by: Zhang He --- gcc/rust/backend/rust-tree.h | 12 1 file changed, 12 deletions(-) diff --git a/gcc/rust/backend/rus

[COMMITTED 006/145] gccrs: borrowck: Build Polonius automatically

2025-03-17 Thread arthur . cohen
From: Jakub Dupak This is minimalistic version to build Polonius with Cargo. gcc/rust/ChangeLog: * Make-lang.in: Build Polonius. Signed-off-by: Jakub Dupak --- gcc/rust/Make-lang.in | 7 +++ 1 file changed, 7 insertions(+) diff --git a/gcc/rust/Make-lang.in b/gcc/rust/Make-lang.

[COMMITTED 067/145] gccrs: Parse raw ref operator

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry The raw ref operator is an unstable feature required to obtain a pointer to unaligned adresses (mainly unaligned struct fields) without UB. gcc/rust/ChangeLog: * ast/rust-ast-builder.cc (Builder::ref): Adapt constructor to the new API. * ast/r

[COMMITTED 063/145] gccrs: Add dropck_eyepatch feature gate for may_dangle

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry Add a new feature gate for may_dangle generic param outer attributes. gcc/rust/ChangeLog: * checks/errors/rust-feature-gate.cc: Visit and gate may_dangle attributes. * checks/errors/rust-feature-gate.h: Update visit function prototype

[COMMITTED 076/145] gccrs: Introduce first implementation of parse_clobber_abi

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_clobber_abi): title. (parseAsmArg): title. * expand/rust-macro-builtins-asm.h (parse_clobber_abi): title. --- gcc/rust/expand/rust-macro-builtins-asm.cc | 76 +- gcc/rust/ex

[COMMITTED 079/145] gccrs: First draft of parse_option finished

2025-03-17 Thread arthur . cohen
From: jjasmine Finish up on parse_option, formatted parse_clobber_abi gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_clobber_abi): format (check_and_set): helper function, is try_set_option equivalent (parse_options): new function * expand/rust-mac

[COMMITTED 092/145] gccrs: Scaffolding parse_reg

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * ast/rust-expr.h (struct InlineAsmRegOrRegClass): Scaffolding parse_reg * expand/rust-macro-builtins-asm.cc (parse_reg): Likewise. (parse_operand): Likewise. (parseAsmArg): Likewise. --- gcc/rust/ast/rust-expr.h

[COMMITTED 083/145] gccrs: Add a simple no-op test for asm!

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/testsuite/ChangeLog: * rust/compile/inline_asm_nop.rs: Simple test for asm! --- gcc/testsuite/rust/compile/inline_asm_nop.rs | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 gcc/testsuite/rust/compile/inline_asm_nop.rs diff --git a/gcc/testsuite/

[COMMITTED 080/145] gccrs: Introduced is_global_asm to InlineAsm AST

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * ast/rust-expr.h: Introduced is_global_asm to InlineAsm AST --- gcc/rust/ast/rust-expr.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h index a5afbffee99..84fb5e8ab33 100644 --- a/gcc/rust/ast/r

[COMMITTED 075/145] gccrs: Working on parseAsmArg

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (enum InlineAsmRegOrRegClass): title. (parseAsmArg): title. (check_identifier): title. (parse_operand): title. (parse_options): title. (parse_reg): title. (parseDirSpec

[COMMITTED 062/145] gccrs: Allow multiple outer attributes on generic params

2025-03-17 Thread arthur . cohen
From: Pierre-Emmanuel Patry Previously generic params only allowed one outer attribute in front of them. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::visit): Visit outer attributes. * ast/rust-ast-visitor.cc (DefaultASTVisitor::visit): Change outer

[COMMITTED 081/145] gccrs: Make InlineAsm non-abstract for usage in parsing.

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * ast/rust-expr.h: Make InlineAsm non-abstract for usage in parsing. --- gcc/rust/ast/rust-expr.h | 44 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust

[COMMITTED 077/145] gccrs: Working on parse_options for a bit more

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_options): title. --- gcc/rust/expand/rust-macro-builtins-asm.cc | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gcc/rust/expand/rust-macro-builtins-asm.cc b/gcc/rust/expand/

[COMMITTED 085/145] gccrs: Add tests parsing with trailing commas inline asm

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/testsuite/ChangeLog: * rust/compile/inline_asm_nop_2.rs: New test. --- gcc/testsuite/rust/compile/inline_asm_nop_2.rs | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 gcc/testsuite/rust/compile/inline_asm_nop_2.rs diff --git a/gcc/testsuite/rust/

[COMMITTED 082/145] gccrs: Replace scaffolded InlineAsm with real InlineAsm.

2025-03-17 Thread arthur . cohen
From: jjasmine Replace scaffolded InlineAsm with real InlineAsm node in rust-expr.h gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parseDirSpec): replace scaffolded InlineAsm with real InlineAsm. (parse_clobber_abi): likewise. (check_and_set): likewise.

[PATCH] testsuite: update early-break tests for non-load-lanes targets [PR119286]

2025-03-17 Thread Tamar Christina
Hi All, Broadly speaking, these tests were failing because the BB limitation for SLP'ing loads in an || in an early break makes the loads end up in different BBs and so today we can't SLP them. This results in load_lanes being required to vectorize them because the alternative is loads with permu

[COMMITTED 087/145] gccrs: Implemented parse_clobber_abi to pass new tests

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_clobber_abi): implemented parse_clobber_abi (parse_format_string): likewise. (parseAsmArg): likewise. (parse_asm): likewise. * expand/rust-macro-builtins-asm.h (parseAsmA

[COMMITTED 088/145] gccrs: Parsing of options(...) done.

2025-03-17 Thread arthur . cohen
From: jjasmine This is without any mutually exclusive options checked, or any relationship with reg_operands. Very primitive. gcc/rust/ChangeLog: * ast/rust-expr.h: parsing of options(...) * expand/rust-macro-builtins-asm.cc (check_and_set): likewise. (parse_opti

[COMMITTED 095/145] gccrs: Remove global_asm and non_global_asm handler

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (MacroBuiltin::global_asm_handler): Remove global_asm and non_global_asm handler (MacroBuiltin::nonglobal_asm_handler): Likewise. (MacroBuiltin::asm_handler): Likewise. * expand

[COMMITTED 086/145] gccrs: Added faulty tests for inline asm cloberring

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/testsuite/ChangeLog: * rust/compile/inline_asm_faulty_clobber.rs: New test. * rust/compile/inline_asm_faulty_clobber_1.rs: New test. * rust/compile/inline_asm_faulty_clobber_2.rs: New test. --- .../rust/compile/inline_asm_faulty_clobber.rs | 1

[COMMITTED 091/145] gccrs: Resolve static decl warning

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.h (parseAsmArg): Resolve static decl warning (parse_nonglobal_asm): Resolve static decl warning --- gcc/rust/expand/rust-macro-builtins-asm.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deleti

[COMMITTED 098/145] gccrs: Working towards parse_reg and parse_reg_operand

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_reg): Working towards parse_reg and parse_reg_operand (parse_reg_operand): Working towards parse_reg and parse_reg_operand (parse_asm_arg): Add todo about errors

[COMMITTED 099/145] gccrs: Got AST::Fragment to be created from InlineAsm

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * ast/rust-expr.h (struct AnonConst): Got AST::Fragment to be created from InlineAsm. (struct InlineAsmOperand): Likewise. (class InlineAsm): Likewise. * expand/rust-macro-builtins-asm.cc (parse_reg_operand): Likewise.

[COMMITTED 074/145] gccrs: Almost done with top level parsing

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (struct AsmParseError): title. (enum InlineAsmDirSpec): title. (enum InlineAsmOptions): title. (struct AsmArg): title. (parseAsmArg): title. (parse_global_asm): title. (

[COMMITTED 101/145] gccrs: Slim down the test cases

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/testsuite/ChangeLog: * rust/compile/inline_asm_faulty_clobber.rs: compress the test * rust/compile/inline_asm_nop.rs: compress the test * rust/compile/inline_asm_faulty_clobber_1.rs: Removed. * rust/compile/inline_asm_faulty_clob

[COMMITTED 100/145] gccrs: Refactoring for inline asm pr

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * ast/rust-expr.h (struct AnonConst): major refactoring of inline asm, mostly concerns naming convention, trinary conditionals, warnings, adding rust_unreachables in not-yet supported errors. (struct InlineAsmRegOrRegClas

[COMMITTED 089/145] gccrs: Wraps inline_asm tests in unsafe {}

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/testsuite/ChangeLog: * rust/compile/inline_asm_faulty_clobber.rs: Wraps inline_asm tests in unsafe {} * rust/compile/inline_asm_faulty_clobber_1.rs: likewise. * rust/compile/inline_asm_faulty_clobber_2.rs: likewise. * rust/compile/inline

[COMMITTED 084/145] gccrs: Top level parsing test for asm!

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/testsuite/ChangeLog: * rust/compile/inline_asm_ident_first.rs: New test. --- gcc/testsuite/rust/compile/inline_asm_ident_first.rs | 10 ++ 1 file changed, 10 insertions(+) create mode 100644 gcc/testsuite/rust/compile/inline_asm_ident_first.rs diff --git a/g

[COMMITTED 131/145] gccrs: Store parse result of parse_format_string(s)

2025-03-17 Thread arthur . cohen
From: badumbatish gcc/rust/ChangeLog: * ast/rust-expr.h (struct TupleTemplateStr): Store parse result of parse_format_string(s) * expand/rust-macro-builtins-asm.cc (parse_format_strings): Likewise Signed-off-by: badumbatish --- gcc/rust/ast/rust-expr.h

[COMMITTED 097/145] gccrs: Renamed parseAsmArg to conform to other function names

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parseAsmArg): Renamed parseAsmArg to conform to other function names (parse_asm_arg): Likewise. (parse_asm): Likewise. * expand/rust-macro-builtins-asm.h (parseAsmArg): Likewise.

[COMMITTED 078/145] gccrs: Fix clobber_api brackets

2025-03-17 Thread arthur . cohen
From: jjasmine gcc/rust/ChangeLog: * expand/rust-macro-builtins-asm.cc (parse_clobber_abi): title. --- gcc/rust/expand/rust-macro-builtins-asm.cc | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/rust/expand/rust-macro-builtins-asm.cc b/gcc/rust/e

Re: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

2025-03-17 Thread Andreas Schwab
On Mär 17 2025, Robert Dubner wrote: > I did it, reflexively, because I think that lining stuff like that up iss > easier to understand and more clear than. > > PR cobol/119213 > * Make-lang.in: Eliminate CPPFLAGS= assignment. > * cdf.y: Modify #includes that reference libgcobol.

RE: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

2025-03-17 Thread Robert Dubner
> -Original Message- > From: Jakub Jelinek > Sent: Monday, March 17, 2025 17:04 > To: Robert Dubner ; Iain Sandoe > ; GCC Patches > Subject: Re: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make- > lang.in [PR119213]. > > On Mon, Mar 17, 2025 at 09:50:53PM +0100, Jakub Jelinek wr

[COMMITTED] cobol: Eliminate CPPFLAGS assignment from Make-lang.in

2025-03-17 Thread Robert Dubner
I'll close out PR119213. And next time I'll use "Likewise." >From 8d6c8efdd9495259cc5ed1d6537c694791bd4661 Mon Sep 17 00:00:00 2001 From: Bob Dubner mailto:rdub...@symas.com Date: Mon, 17 Mar 2025 13:13:50 -0400 Subject: [PATCH] cobol: Eliminate CPPFLAGS assignment from Make-lang.in [PR119213].

[COMMITTED 144/145] gccrs: [gccrs#2987] Patch ICE when deriving Clone and Copy

2025-03-17 Thread arthur . cohen
From: Liam Naddell gcc/rust/ChangeLog: * expand/rust-expand-visitor.cc: Fix ICE caused by unique_ptr UB and buggy iterator use gcc/testsuite/ChangeLog: * rust/compile/issue-2987.rs: Add test for deriving Clone and Copy at the same time Signed-off-by: Liam Naddell

[PATCH] c++: memfn pointer as NTTP argument considered unused [PR119233]

2025-03-17 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk/backports? -- >8 -- This is just the member function pointer version of PR c++/105848, wherein our non-dependent call pruning may cause us to not mark an otherwise unused function pointer template argument as used.

RE: [PATCH] COBOL v3: 3/14 80K bld: config and build machinery

2025-03-17 Thread Robert Dubner
> -Original Message- > From: Andreas Schwab > Sent: Monday, March 17, 2025 04:13 > To: James K. Lowden > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] COBOL v3: 3/14 80K bld: config and build machinery > > On Mär 13 2025, James K. Lowden wrote: > > > On Tue, 11 Mar 2025 11:18:22 +

[PATCH] cobol: Fifteen new cobol.dg testscases.

2025-03-17 Thread Robert Dubner
These tests have been curated for relative shortness of output. The worst case has 61 lines. I am hoping that this one is... Okay for trunk? >From 457d94c65047856123185716e882af18833c67ee Mon Sep 17 00:00:00 2001 From: Bob Dubner mailto:rdub...@symas.com Date: Mon, 17 Mar 2025 21:47:05 -0400 S

Re: [PATCH] c++: ICE when substituting packs into type aliases [PR118104]

2025-03-17 Thread Patrick Palka
On Mon, 17 Mar 2025, Marek Polacek wrote: > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk/14/13? > > -- >8 -- > r12-1094 mentions that adding the assert didn't lead to any regressions > in the testsuite, but this test case demonstrates that we can reach it > with valid code. > > He

[COMMITTED 142/145] gccrs: Added options for ParseMode

2025-03-17 Thread arthur . cohen
From: badumbatish gcc/rust/ChangeLog: * ast/rust-fmt.cc (Pieces::collect): Added options for ParseMode * ast/rust-fmt.h (collect_pieces): Likewise. (struct Pieces): Likewise. * expand/rust-macro-builtins-format-args.cc (MacroBuiltin::format_args_handler):

RE: [PATCH] COBOL v3: 3/14 80K bld: config and build machinery

2025-03-17 Thread Robert Dubner
> -Original Message- > From: Andreas Schwab > Sent: Monday, March 17, 2025 04:13 > To: James K. Lowden > Cc: gcc-patches@gcc.gnu.org > Subject: Re: [PATCH] COBOL v3: 3/14 80K bld: config and build machinery > > On Mär 13 2025, James K. Lowden wrote: > > > On Tue, 11 Mar 2025 11:18:22 +

[PATCH 2/4] rust: Use error_operand_p in rust-gcc.cc

2025-03-17 Thread Andrew Pinski
Just a simple cleanupof the code to use error_operand_p instead of directly comparing against error_mark_node. This also moves some cdoe around when dealing with error_operand_p just to be faster and/or slightly tighten up the code slightly. gcc/rust/ChangeLog: * rust-gcc.cc (Bvariable::

[PATCH 4/4] rust: Add comment inside block [PR119342]

2025-03-17 Thread Andrew Pinski
Inside a BLOCK node, all of the variables of the scope/block are chained together and that connects them to the block. This just adds a comment to that effect as reading the code it is not so obvious why they need to be chained together. gcc/rust/ChangeLog: PR rust/119342 * rust-g

[PATCH 3/4] rust: use range for inside rust-gcc.cc [PR119341]

2025-03-17 Thread Andrew Pinski
There are some places inside rust-gcc.cc which are candidates to use range for instead of iterators directly. This changes the locations I saw and makes the code slightly more readable. gcc/rust/ChangeLog: PR rust/119341 * rust-gcc.cc (function_type): Use range fors. (func

Re: [PATCH] c: Fix ICE in error recovery when checking struct compatibility [PR118061]

2025-03-17 Thread Joseph Myers
On Sun, 16 Mar 2025, Martin Uecker wrote: > > Here is a small patch fixing an error recovery issue. > > Bootstrapped and regression tested on x86_64. > > > commit 465773af2bdd552184b935e5dc6b3db9e0e4e327 > Author: Martin Uecker > Date: Sat Mar 1 17:21:25 2025 +0100 > > c: Fix ICE in er

Re: [PATCH] c: Fix bug in typedef redefinitions of tagged types [PR118765]

2025-03-17 Thread Joseph Myers
On Sun, 16 Mar 2025, Martin Uecker wrote: > This is a partial fix for PR118765. > > > Bootstrapped and regression tested on x86_64. > > > commit 84ba284a14bb5249d923affbf3f0f95a993c3a29 > Author: Martin Uecker > Date: Sat Mar 1 21:32:21 2025 +0100 > > c: Fix bug in typedef redefinition

Re: [PATCH] c: Fix tagname confusion for typedef redefinitions [PR118765]

2025-03-17 Thread Joseph Myers
On Sun, 16 Mar 2025, Martin Uecker wrote: > This is a workaround for another issue related to PR118765. > I do not yet understand what goes wrong in merge_decls in > this case (somehow we end up with TYPE_DECLS where > DECL_ORIGINAL_TYPE is not set correctly, so we can not > determine the correct

Re: [PATCH] Fortran: check type-spec in ALLOCATE of dummy with assumed length [PR119338]

2025-03-17 Thread Jerry D
On 3/17/25 2:47 PM, Harald Anlauf wrote: Dear all, F2003:C626 was only partly implemented: we missed the case of ALLOCATE of character dummy arguments with assumed length, where the type-spec must use asterisk, i.e. (*). Regtesting found one testcase that had a previously undetected error and n

Re: [PATCH] gcc.dg/pr90838-2.c: Replace long with long long

2025-03-17 Thread Jakub Jelinek
On Mon, Mar 17, 2025 at 03:04:48PM -0700, H.J. Lu wrote: > Since gcc.dg/pr90838-2.c is only for 64-bit integer, replace long with > long long for ILP32 targets. > > * gcc.dg/pr90838-2.c (ctz4): Replace long with long long. > > Signed-off-by: H.J. Lu > --- > gcc/testsuite/gcc.dg/pr90838-2.

[PATCH] gcc.dg/pr90838-2.c: Replace long with long long

2025-03-17 Thread H.J. Lu
Since gcc.dg/pr90838-2.c is only for 64-bit integer, replace long with long long for ILP32 targets. * gcc.dg/pr90838-2.c (ctz4): Replace long with long long. Signed-off-by: H.J. Lu --- gcc/testsuite/gcc.dg/pr90838-2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 1/4] rust: Use REAL_TYPE_P instead of manual checking

2025-03-17 Thread Andrew Pinski
This moves is_floating_point over to using REAL_TYPE_P instead of manually checking. Note before it would return true for all COMPLEX_TYPE but complex types' inner type could be integral. Also fixes up the comment to be in more of the GNU style. Bootstrapped and tested on x86_64-linux-gnu. gcc/r

  1   2   3   4   >