[COMMITTED 037/144] gccrs: Add pop guard for binder

2025-03-19 Thread arthur . cohen
From: badumbatish gcc/rust/ChangeLog: * typecheck/rust-hir-type-check.h: Add pop guard for binder --- gcc/rust/typecheck/rust-hir-type-check.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/rust/typecheck/rust-hir-type-check.h b/gcc/rust/typecheck/r

Re: [PATCH v2] libstdc++-v3: Implement allocator-aware from_range_t constructors for unordered containers.

2025-03-19 Thread Jonathan Wakely
On Wed, 19 Mar 2025 at 12:06, Tomasz KamiƄski wrote: > > This patch implements part of LWG2713 covering the from_range > constructors, which makes std::ranges::to(alloc) > well-formed. > Likewise for rest of unordered containers. > > As this consturctors were added to v15, this has no impact > on

[COMMITTED 013/144] gccrs: Turn to switch case, use new helper functions

2025-03-19 Thread arthur . cohen
From: badumbatish gcc/rust/ChangeLog: * hir/rust-ast-lower-expr.cc (translate_operand_in): Turn to switch case, use new helper functions (translate_operand_out): Likewise. (translate_operand_inout): Likewise. (translate_operand_split_in_out): Likewise.

[COMMITTED 026/144] gccrs: Attempted to access a nonexistent field [E0609]

2025-03-19 Thread arthur . cohen
From: Muhammad Mahad gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): Add error code and update error message gcc/testsuite/ChangeLog: * rust/compile/nonexistent-field.rs: New test. Signed-off-by: Muhammad Mahad --- gcc/rust/typeche

[COMMITTED 018/144] gccrs: Loan errors with locations

2025-03-19 Thread arthur . cohen
From: Kushal Pal gcc/rust/ChangeLog: * checks/errors/borrowck/rust-borrow-checker-diagnostics.cc (BorrowCheckerDiagnostics::report_loan_errors): Add label to where the borrow occurs and where the invalid access occurs. (BorrowCheckerDiagnostics::get_statement):

[COMMITTED 011/144] gccrs: Improve compressed point bit manipulation

2025-03-19 Thread arthur . cohen
From: Kushal Pal gcc/rust/ChangeLog: * checks/errors/borrowck/polonius/rust-polonius.h (struct FullPoint): Added comments and made extraction of statement more verbose for better understanding. * checks/errors/borrowck/ffi-polonius/src/lib.rs: Likewise. Signed-of

[COMMITTED 030/144] gccrs: Fix the disorder struct and class in inline asm

2025-03-19 Thread arthur . cohen
From: badumbatish gcc/rust/ChangeLog: * ast/rust-ast-full-decls.h (struct InlineAsmOperand): Change to class (class InlineAsmOperand): Change from struct * hir/tree/rust-hir-full-decls.h (struct InlineAsmRegOrRegClass): Removed from decl, used from AST

Re: C++/v3 PATCH to add/throw std::bad_array_new_length

2025-03-19 Thread Thomas Schwinge
Hi Jason! On 2013-05-03T16:24:43-0400, Jason Merrill wrote: > Last year Florian fixed the compiler to detect overflow in array new > size calculations and pass (size_t)-1 in that case. But C++11 specifies > that in case of overflow the program throws std::bad_array_new_length > (http://www.op

[COMMITTED 116/144] gccrs: This test requires the standard library

2025-03-19 Thread arthur . cohen
From: Pierre-Emmanuel Patry It requires the standard library and Copy to work correctly which we cannot provide. Stopping the compiler before the name resolution allow us to prevent an error whilst resolving Copy and keep the test's goal. gcc/testsuite/ChangeLog: * rust/compile/function

[COMMITTED 143/144] gccrs: Use name resolver 2.0 in pattern checker

2025-03-19 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * checks/errors/rust-hir-pattern-analysis.cc: Add includes. (PatternChecker::visit): Use name resolver 2.0 when enabled. Signed-off-by: Owen Avery --- .../checks/errors/rust-hir-pattern-analysis.cc | 16 +++- 1 file changed, 1

[COMMITTED 107/144] gccrs: Change lambda content with default visitor call

2025-03-19 Thread arthur . cohen
From: Pierre-Emmanuel Patry We can reduce code duplication by using the default visitor functions from within the scoped lambda function. gcc/rust/ChangeLog: * resolve/rust-default-resolver.cc (DefaultResolver::visit): Use default visitor instead. Signed-off-by: Pierre-Emmanuel

[PATCH] Fix GCN SIMD libm bug

2025-03-19 Thread Andrew Stubbs
Since January, GCC has been miscompiling Newlib libm on AMD GCN due to undefined behaviour in the RESIZE_VECTOR macro. It was "working" but expanding the size of a vector would no longer zero the additional lanes, as it expected. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119325 --- newlib

[COMMITTED 095/144] gccrs: imports: Add FinalizeImports class

2025-03-19 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * Make-lang.in: Add new object file. * ast/rust-item.h: Constify method. * resolve/rust-early-name-resolver-2.0.cc (Early::go): Call into the imports finalizer. (Early::resolve_glob_import): Remove old resolution.

Re: [PATCH] combine: Add REG_DEAD notes to the last instruction after a split [PR118914]

2025-03-19 Thread Jeff Law
On 3/16/25 11:20 AM, Andrew Pinski wrote: gcc/ChangeLog: PR rtl-optimization/118914 * combine.cc (recog_for_combine): Add old_nregs and new_nregs argument (defaulting to 0). Update call to recog_for_combine_1. (combine_split_insns): Add old_nregs and new_nregs arg

Re: [PING, REFORMAT][PATCH v2, 1/1] libstdc++: Fix localized D_T_FMT %c formatting for [PR117214]

2025-03-19 Thread Jonathan Wakely
On Wed, 19 Mar 2025 at 13:09, Jonathan Wakely wrote: > > On Sat, 1 Mar 2025 at 05:24, XU Kailiang wrote: > > > > Formatting a time point with %c was implemented by calling > > std::vprint_to with format string constructed from locale's D_T_FMT > > string, but in some locales this string does not

[COMMITTED 124/144] gccrs: Add test case to show ICE is fixed

2025-03-19 Thread arthur . cohen
From: Philip Herron This was resolved in: 18422c9c386 which was missing the name resolution step for unit-types. Fixes #2203 gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: * rust/compile/issue-2203.rs: New test. Signed-off-by: Philip Herron --- gcc/testsuite/rust/compi

New French PO file for 'gcc' (version 15.1-b20250316)

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

[COMMITTED 089/144] rust: fix ICE when compiling impl block for !

2025-03-19 Thread arthur . cohen
From: Philip Herron We need to resolve the never type which is its own special AST node so it doesnt magically get handled like the regular builtin type paths such as i32. Fixes #3035 gcc/rust/ChangeLog: * resolve/rust-ast-resolve-type.cc (ResolveType::visit): handle never type

[COMMITTED 014/144] gccrs: Add location support to BIR::Statement

2025-03-19 Thread arthur . cohen
From: Kushal Pal This commit adds location_t to BIR::Statement where type is ASSIGNMENT this information will be later used for reporting borrow-checking errors. gcc/rust/ChangeLog: * checks/errors/borrowck/rust-bir-builder-expr-stmt.cc (ExprStmtBuilder::visit): Added location p

[COMMITTED 117/144] gccrs: Add box definition to avoid error

2025-03-19 Thread arthur . cohen
From: Pierre-Emmanuel Patry Box definition is part of the standard library and cannot be found during name resolution. This simple definition prevent any error from being emitted. gcc/testsuite/ChangeLog: * rust/compile/box_syntax_feature_gate.rs: Add box land item definition.

[COMMITTED 094/144] gccrs: early: Resolve imports and create import mappings

2025-03-19 Thread arthur . cohen
From: Arthur Cohen gcc/rust/ChangeLog: * resolve/rust-early-name-resolver-2.0.cc (Early::resolve_glob_import): New function. (Early::resolve_simple_import): Likewise. (Early::resolve_rebind_import): Likewise. (Early::build_import_mapping): Likewise. * res

<    1   2   3