[committed] libgomp: Don't test ompx::allocator::gnu_pinned_mem on non-linux targets [PR119849]

2025-04-17 Thread Jakub Jelinek
On Tue, Apr 15, 2025 at 12:05:05PM -0600, Alex wrote: > * testsuite/libgomp.c++/allocator-1.C: New test. > * testsuite/libgomp.c++/allocator-2.C: New test. The libgomp.c/alloc-pinned*.c test have /* { dg-skip-if "Pinning not implemented on this host" { ! *-*-linux-gnu

Re: [PATCH] [testsuite] [ppc] require ifunc for target_clones test

2025-04-16 Thread Peter Bergner
On 4/11/25 1:08 PM, Alexandre Oliva wrote: > > gcc.target/powerpc/power11-3.c uses target_clones, that depends on > ifunc. Require ifunc support. This looks "obvious" to me. The only systems we (IBM) have access to build and test on all have ifunc support, so we clea

Re: [PATCH] testsuite: force AMDGCN test for vect-early-break_18.c to consistent architecture [PR119286]

2025-04-16 Thread Andrew Stubbs
On 16/04/2025 08:57, Tamar Christina wrote: Hi All, The given test is intended to test vectorization of a strided access done by having a step of > 1. GCN target doesn't support load lanes, so the testcase is expected to fail, other targets create a permuted load here which we then the

Re: [PATCH] testsuite: force AMDGCN test for vect-early-break_18.c to consistent architecture [PR119286]

2025-04-16 Thread Richard Biener
On Wed, 16 Apr 2025, Tamar Christina wrote: > Hi All, > > The given test is intended to test vectorization of a strided access done by > having a step of > 1. > > GCN target doesn't support load lanes, so the testcase is expected to fail, > other targets create

[PATCH] testsuite: force AMDGCN test for vect-early-break_18.c to consistent architecture [PR119286]

2025-04-16 Thread Tamar Christina
Hi All, The given test is intended to test vectorization of a strided access done by having a step of > 1. GCN target doesn't support load lanes, so the testcase is expected to fail, other targets create a permuted load here which we then then reject. However some GCN arch don't se

Re: [PATCH] [testsuite] [ppc] pr87600, pr89313: test for __PPC__ as well

2025-04-15 Thread Alexandre Oliva
On Apr 14, 2025, Peter Bergner wrote: > On 4/11/25 1:03 PM, Alexandre Oliva wrote: >> gcc.dg/pr87600.h and gcc.dg/pr89313.c test for __powerpc__ and >> __POWERPC__ to choose ppc register names, but ppc-elf defines neither; >> it defines __PPC__, so test for that as well. &g

[committed] testsuite: Fix up completion-2.c test

2025-04-15 Thread Jakub Jelinek
On Tue, Apr 15, 2025 at 02:38:19PM +, Kyrylo Tkachov wrote: > Thanks! As discussed on IRC we’ll work on addressing these. I’ve pushed the > patch with 6d9fdf4bf57 after one more bootstrap on aarch64-none-linux-gnu. This broke +FAIL: gcc.dg/completion-2.c (test for excess errors)

[r15-9487 Regression] FAIL: gcc.dg/completion-2.c (test for excess errors) on Linux/x86_64

2025-04-15 Thread haochen.jiang
multiline pattern lines 5-11 FAIL: gcc.dg/completion-2.c (test for excess errors) with GCC configured with ../../gcc/configure --prefix=/export/users/haochenj/src/gcc-bisect/master/master/r15-9487/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable

[committed] testsuite: Fix up ipa/pr119318.c test [PR119318]

2025-04-15 Thread Jakub Jelinek
Hi! dg-additional-options followed by dg-options is ignored. I've added the -w from there to dg-options and removed dg-additional-options. Tested on x86_64-linux, committed to trunk as obvious. 2025-04-15 Jakub Jelinek PR ipa/119318 * gcc.dg/ipa/pr119318.c: Remove dg-additio

[PUSHED 1/3] Add 'std::bad_cast' exception test cases for GCN, nvptx target and OpenACC, OpenMP 'target' offloading

2025-04-14 Thread Thomas Schwinge
gcc/testsuite/ * g++.target/gcn/exceptions-bad_cast-1.C: New. * g++.target/nvptx/exceptions-bad_cast-1.C: Likewise. libgomp/ * testsuite/libgomp.c++/target-exceptions-bad_cast-1.C: New. * testsuite/libgomp.oacc-c++/exceptions-bad_cast-1.C: Likewise. -

[PUSHED] Add 'g++.target/gcn/gcn.exp' for GCN-specific C++ test cases

2025-04-14 Thread Thomas Schwinge
Like 'gcc.target/gcn/gcn.exp' is modeled after 'gcc.dg/dg.exp', this new 'g++.target/gcn/gcn.exp' is modeled after 'g++.dg/dg.exp'. gcc/testsuite/ * g++.target/gcn/gcn.exp: New. --- gcc/testsuite/g++.target/gcn/gcn.exp | 56 1 file changed, 56 insertio

[PUSHED 3/3] Add 'throw', dead code test cases for GCN, nvptx target and OpenACC, OpenMP 'target' offloading

2025-04-14 Thread Thomas Schwinge
gcc/testsuite/ * g++.target/gcn/exceptions-throw-3.C: New. * g++.target/nvptx/exceptions-throw-3.C: Likewise. libgomp/ * testsuite/libgomp.c++/target-exceptions-throw-3.C: New. * testsuite/libgomp.oacc-c++/exceptions-throw-3.C: Likewise. --- .../g++.

[PUSHED 2/3] Add 'throw', caught test cases for GCN, nvptx target and OpenACC, OpenMP 'target' offloading

2025-04-14 Thread Thomas Schwinge
estsuite/libgomp.c++/target-exceptions-throw-2-offload-sorry-GCN.C new file mode 100644 index 000..484e3f8bd33 --- /dev/null +++ b/libgomp/testsuite/libgomp.c++/target-exceptions-throw-2-offload-sorry-GCN.C @@ -0,0 +1,20 @@ +/* 'throw' in OpenMP 'target' region, caught. */

[r15-9427 Regression] FAIL: gcc.dg/ipa/pr119530.c execution test on Linux/x86_64

2025-04-14 Thread haochen.jiang
: gcc.dg/ipa/pr119530.c execution test with GCC configured with ../../gcc/configure --prefix=/export/users/haochenj/src/gcc-bisect/master/master/r15-9427/usr --enable-clocale=gnu --with-system-zlib --with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++,fortran --enable-cet --without-isl

[PUSHED 1/3] Add 'throw' test cases for GCN, nvptx target and OpenACC, OpenMP 'target' offloading

2025-04-14 Thread Thomas Schwinge
gcc/testsuite/ * g++.target/gcn/exceptions-throw-1.C: New. * g++.target/nvptx/exceptions-throw-1.C: Likewise. libgomp/ * testsuite/libgomp.c++/target-exceptions-throw-1.C: New. * testsuite/libgomp.c++/target-exceptions-throw-1-O0.C: Likewise.

[PUSHED 3/3] Add 'std::bad_cast' exception, dead code test cases for GCN, nvptx target and OpenACC, OpenMP 'target' offloading

2025-04-14 Thread Thomas Schwinge
gcc/testsuite/ * g++.target/gcn/exceptions-bad_cast-3.C: New. * g++.target/nvptx/exceptions-bad_cast-3.C: Likewise. libgomp/ * testsuite/libgomp.c++/target-exceptions-bad_cast-3.C: New. * testsuite/libgomp.oacc-c++/exceptions-bad_cast-3.C: Likewise. -

[PUSHED 2/3] Add 'std::bad_cast' exception, caught test cases for GCN, nvptx target and OpenACC, OpenMP 'target' offloading

2025-04-14 Thread Thomas Schwinge
x 000..ed670a80fb6 --- /dev/null +++ b/libgomp/testsuite/libgomp.c++/target-exceptions-bad_cast-2-offload-sorry-GCN.C @@ -0,0 +1,18 @@ +/* 'std::bad_cast' exception in OpenMP 'target' region, caught. */ + +/* As this test case involves an expected offload compilation failu

[PUSHED] Add test cases for exception handling constructs in dead code for GCN, nvptx target and OpenMP 'target' offloading [PR118794]

2025-04-14 Thread Thomas Schwinge
rry-GCN.C new file mode 100644 index 000..a588016210c --- /dev/null +++ b/libgomp/testsuite/libgomp.c++/target-exceptions-pr118794-1-offload-sorry-GCN.C @@ -0,0 +1,23 @@ +/* Exception handling constructs in dead code. */ + +/* As this test case involves an expected offload compilation failu

[PUSHED] Add PR119692 "C++ 'typeinfo', 'vtable' vs. OpenACC, OpenMP 'target' offloading" test cases [PR119692]

2025-04-14 Thread Thomas Schwinge
... documenting the status quo. PR c++/119692 gcc/testsuite/ * g++.target/gcn/pr119692-1-1.C: New. * g++.target/nvptx/pr119692-1-1.C: Likewise. libgomp/ * testsuite/libgomp.c++/pr119692-1-1.C: New. * testsuite/libgomp.c++/pr119692-1-2.C: Like

Re: [PATCH] [testsuite] [ppc] pr87600, pr89313: test for __PPC__ as well

2025-04-14 Thread Peter Bergner
On 4/11/25 1:03 PM, Alexandre Oliva wrote: > gcc.dg/pr87600.h and gcc.dg/pr89313.c test for __powerpc__ and > __POWERPC__ to choose ppc register names, but ppc-elf defines neither; > it defines __PPC__, so test for that as well. Is there a reason why powerpc-*-elf doesn't define

Re: [r15-9427 Regression] FAIL: gcc.dg/ipa/pr119530.c execution test on Linux/x86_64

2025-04-14 Thread Sam James
on of bits in IPA-CP aware of type conversions > (PR119318) > > caused > > FAIL: gcc.dg/ipa/pr119530.c execution test Fixed by r15-9459-gebdf92b6067a35. > > with GCC configured with > > ../../gcc/configure > --prefix=/export/users/haochenj/src/gcc-bisect/master/mast

Re: [PATCH] Add std::deque shrink_to_fit test

2025-04-14 Thread François Dumont
ter running the test with -fno-exceptions option we rather need this >patch. > >Ok to commit ? > >François > > >On 10/04/2025 21:08, François Dumont wrote: >>Hi >> >&

Re: [v2] Polish 'dg-output-file' test logs (was: [PATCH] testsuite: Add support for dg-output-file directive)

2025-04-14 Thread Jakub Jelinek
On Mon, Apr 14, 2025 at 07:47:21PM +0200, Thomas Schwinge wrote: > gcc/testsuite/ > * lib/gcc-dg.exp (${tool}_load): Polish 'dg-output-file' test > logs. > --- > gcc/testsuite/lib/gcc-dg.exp | 3 +-- > 1 file changed, 1 insertion(+), 2 deleti

[v2] Polish 'dg-output-file' test logs (was: [PATCH] testsuite: Add support for dg-output-file directive)

2025-04-14 Thread Thomas Schwinge
09:18:21.750133577 +0100 >> +++ gcc/doc/sourcebuild.texi 2025-03-18 14:41:59.253345259 +0100 >> @@ -1315,6 +1315,10 @@ Prune messages matching @var{regexp} fro >> @item @{ dg-output @var{regexp} [@{ target/xfail @var{selector} @}] @} >> This DejaGnu directive compares @var{

Re: [PATCH] Add std::deque shrink_to_fit test

2025-04-13 Thread Tomasz Kaminski
On Sun, Apr 13, 2025 at 12:13 PM François Dumont wrote: > > On 11/04/2025 08:36, Tomasz Kaminski wrote: > > > > On Thu, Apr 10, 2025 at 10:47 PM Jonathan Wakely > wrote: > >> On 10/04/25 22:36 +0200, François Dumont wrote: >> >After running the test wit

Polish 'dg-output-file' test logs (was: [PATCH] testsuite: Add support for dg-output-file directive)

2025-04-13 Thread Thomas Schwinge
-03-18 14:41:59.253345259 +0100 > @@ -1315,6 +1315,10 @@ Prune messages matching @var{regexp} fro > @item @{ dg-output @var{regexp} [@{ target/xfail @var{selector} @}] @} > This DejaGnu directive compares @var{regexp} to the combined output > that the test executable writes to @file{

Re: [PATCH] Add std::deque shrink_to_fit test

2025-04-13 Thread François Dumont
On 11/04/2025 08:36, Tomasz Kaminski wrote: On Thu, Apr 10, 2025 at 10:47 PM Jonathan Wakely wrote: On 10/04/25 22:36 +0200, François Dumont wrote: >After running the test with -fno-exceptions option we rather need this >patch. > >Ok to commit ? >

[PATCH] [testsuite] [ppc] pr87600, pr89313: test for __PPC__ as well

2025-04-11 Thread Alexandre Oliva
gcc.dg/pr87600.h and gcc.dg/pr89313.c test for __powerpc__ and __POWERPC__ to choose ppc register names, but ppc-elf defines neither; it defines __PPC__, so test for that as well. Regstrapped on powerpc64le-linux-gnu. Also tested with gcc-14 on x86_64-linux-x-powerpc-elf. Ok to install? for

[PATCH] [testsuite] [ppc] require ifunc for target_clones test

2025-04-11 Thread Alexandre Oliva
gcc.target/powerpc/power11-3.c uses target_clones, that depends on ifunc. Require ifunc support. Regstrapped on powerpc64le-linux-gnu. Also tested with gcc-14 on x86_64-linux-x-powerpc-elf. Ok to install? for gcc/testsuite/ChangeLog * gcc.target/powerpc/power11-3.c: Require ifunc

[PATCH] libgomp: Update SVE test

2025-04-11 Thread Tejas Belagod
Fix udr-sve.c target test that to check for the correct results based on the OpenMP clauses used. The test was first written with a misunderstood functionality of the reduction clause. Tested with aarch64-linux-gnu. OK for trunk? libgomp/ChangeLog: * testsuite/libgomp.c-target/aarch64

Re: [PATCH] Add std::deque shrink_to_fit test

2025-04-10 Thread Tomasz Kaminski
On Thu, Apr 10, 2025 at 10:47 PM Jonathan Wakely wrote: > On 10/04/25 22:36 +0200, François Dumont wrote: > >After running the test with -fno-exceptions option we rather need this > >patch. > > > >Ok to commit ? > > > >François > > > > &g

Re: [PATCH] [PR119706] aarch64: Add test case.

2025-04-10 Thread Jennifer Schmitz
> On 10 Apr 2025, at 19:31, Richard Biener wrote: > > External email: Use caution opening links or attachments > > >> Am 10.04.2025 um 17:27 schrieb Jennifer Schmitz : >> >> This patch adds a test case to the testsuite for PR119706. >> The bug was

Re: [PATCH] Add std::deque shrink_to_fit test

2025-04-10 Thread Jonathan Wakely
On 10/04/25 22:36 +0200, François Dumont wrote: After running the test with -fno-exceptions option we rather need this patch. Ok to commit ? François On 10/04/2025 21:08, François Dumont wrote: Hi     No problem detected now that we really test std::deque shrink_to_fit implementation

Re: [PATCH] Add std::deque shrink_to_fit test

2025-04-10 Thread François Dumont
After running the test with -fno-exceptions option we rather need this patch. Ok to commit ? François On 10/04/2025 21:08, François Dumont wrote: Hi     No problem detected now that we really test std::deque shrink_to_fit implementation.     libstdc++: Add std::deque<>::shrink_

[PATCH] Add std::deque shrink_to_fit test

2025-04-10 Thread François Dumont
Hi     No problem detected now that we really test std::deque shrink_to_fit implementation.     libstdc++: Add std::deque<>::shrink_to_fit test     The existing test is currently testing std::vector. Make it test std::deque.     libstdc++-v3/ChangeLog:     * tes

Re: [PATCH] [PR119706] aarch64: Add test case.

2025-04-10 Thread Richard Biener
> Am 10.04.2025 um 17:27 schrieb Jennifer Schmitz : > > This patch adds a test case to the testsuite for PR119706. > The bug was already fixed by > https://gcc.gnu.org/pipermail/gcc-patches/2025-April/680573.html. > > OK for mainline? Ok Richard > Signed-

[PATCH] [PR119706] aarch64: Add test case.

2025-04-10 Thread Jennifer Schmitz
This patch adds a test case to the testsuite for PR119706. The bug was already fixed by https://gcc.gnu.org/pipermail/gcc-patches/2025-April/680573.html. OK for mainline? Signed-off-by: Jennifer Schmitz gcc/testsuite/ PR tree-optimization/119706 * g++.target/aarch64/sve

Re: [PATCH] h8300: Fix up bit test and jump splitter [PR119664]

2025-04-09 Thread Jeff Law
ble starting with r15-1945 - a late combiner change. Untested except for the testcase with x86_64-linux -> h8300-elf cross. Ok for trunk? 2025-04-09 Jakub Jelinek PR target/119664 * config/h8300/jumpcall.md (bit test and jump define_insn_and_split): Use HSI iter

[PATCH] h8300: Fix up bit test and jump splitter [PR119664]

2025-04-09 Thread Jakub Jelinek
e. Untested except for the testcase with x86_64-linux -> h8300-elf cross. Ok for trunk? 2025-04-09 Jakub Jelinek PR target/119664 * config/h8300/jumpcall.md (bit test and jump define_insn_and_split): Use HSI iterator rather than QHSI. * gcc.dg/pr119664.c:

[committed][RISC-V] Adjust expected output for rvv test

2025-04-09 Thread Jeff Law
tter than the other. So I'm just adjusting the test to accept our new code. jeffgcc/testsuite * gcc.target/riscv/rvv/autovec/pr117722.c: Adjust expected output. diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr117722.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/pr117722.c

[COMMITTED 31/32] gccrs: nr2.0: Adjust test issue-2812.rs

2025-04-08 Thread arthur . cohen
From: Owen Avery gcc/testsuite/ChangeLog: * rust/compile/issue-2812.rs: Avoid multiple definition error. * rust/compile/nr2/exclude: Remove issue-2812.rs. Signed-off-by: Owen Avery --- gcc/testsuite/rust/compile/issue-2812.rs | 4 ++-- gcc/testsuite/rust/compile/nr2/exclude

[COMMITTED 32/32] gccrs: nr2.0: Adjust test macro6.rs

2025-04-08 Thread arthur . cohen
From: Owen Avery gcc/testsuite/ChangeLog: * rust/compile/macros/mbe/macro6.rs: Remove call of undefined function. * rust/compile/nr2/exclude: Remove macros/mbe/macro6.rs. Signed-off-by: Owen Avery --- gcc/testsuite/rust/compile/macros/mbe/macro6.rs | 2 +- gcc/testsuit

[COMMITTED 14/32] gccrs: nr2.0: Improve test script

2025-04-08 Thread arthur . cohen
test_dir $test_dirs { -set directory [list {*}[file split $srcdir] {*}[file split $subdir]] - set directory [lreplace $directory end end] - set directory [list {*}$directory {*}$test_dir] -foreach test [lsort [glob -nocomplain -tails -directory [file join {*}$directory] *.rs]] { +

[PATCH][gcc-14] libstdc++: Avoid bogus -Walloc-size-larger-than warning in test [PR116212]

2025-04-05 Thread Jonathan Wakely
The compiler can't tell that the vector size fits in int, so it thinks it might overflow to a negative value, which would then be a huge positive size_t. In reality, the vector size never exceeds five. There's no warning on trunk, so just change the local variable to use type unsigned so that we

Re: [PATCH] testsuite: Fix up strub-internal-pr112938.C test for C++2{0,3,6}

2025-04-05 Thread Sam James
Jakub Jelinek writes: > On Thu, Mar 27, 2025 at 12:05:21AM +, Sam James wrote: >> The test was being ignored because dg.exp looks for .C in g++.dg/. >> >> gcc/testsuite/ChangeLog: >> PR middle-end/112938 >> >> * g++.dg/strub-internal-pr11293

[COMMITTED 013/146] gccrs: add test case to show method resolution is working

2025-04-05 Thread arthur . cohen
question but when Copy is implementet the simplest case is prefered so it does resolve to Cell::get. Fixes #3033 gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr can't handle this * rust/compile/issue-3033.rs: New test. Signed-off-by: Philip Herron --- gcc/testsuite

[pushed] libstdc++: Restored accidentally removed test case.

2025-04-05 Thread Tomasz Kamiński
It was removed by accident r15-9178-g5c7f6272f43f42. libstdc++-v3/ChangeLog: * testsuite/std/format/functions/format.cc: Restored line. --- libstdc++-v3/testsuite/std/format/functions/format.cc | 1 + 1 file changed, 1 insertion(+) Pushed for both trunk and release/14 branches. diff --

[committed] libstdc++: Make test use instead of

2025-04-05 Thread Jonathan Wakely
t --enable-cheaders=c_global setting that everybody uses. This means that if the C library's is not C++-aware, or if the C library doesn't provide it and GCC's own gcc/glimits.h is used instead, then defines the macros for long long types but does not. This causes the new 20_util

[COMMITTED 24/35] gccrs: Add new test to highlight namespace for self import

2025-04-05 Thread arthur . cohen
From: Pierre-Emmanuel Patry gcc/testsuite/ChangeLog: * rust/compile/self_import_namespace.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- .../rust/compile/self_import_namespace.rs | 14 ++ 1 file changed, 14 insertions(+) create mode 100644 gcc/testsuite

[COMMITTED 110/146] gccrs: add two more tests to test try-catch (unwind) code generation

2025-04-05 Thread arthur . cohen
From: liushuyu gcc/testsuite/ChangeLog: * rust/compile/try-catch-unwind-old.rs: add a test to test the older try intrinsics from plain old Rust to v1.78.0 * rust/compile/try-catch-unwind-new.rs: add a test to test the newer catch_unwind instrinsics since Rust

[PATCH] aarch64: change another CRC test

2025-04-05 Thread Sam James
Fixed the iteration number in crc-crc32-data16.c test from 8 to 16 to match the test name, just like in r15-9038-gdf55a933cfc675. gcc/testsuite/ChangeLog: * gcc.target/aarch64/crc-crc32-data16.c: Fix iteration count to match testname. --- Do we need this as well? Untested so far

[COMMITTED 048/144] gccrs: Added new test for prep of output {}

2025-04-05 Thread arthur . cohen
From: badumbatish gcc/testsuite/ChangeLog: * rust/compile/inline_asm_parse_output_operand.rs: New test. --- .../compile/inline_asm_parse_output_operand.rs | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 gcc/testsuite/rust/compile

[PATCH] libstdc++: Check feature test macro for std::string_view in

2025-04-05 Thread Jonathan Wakely
We can use the __glibcxx_string_view macro to guard the uses of std::string_view in , instead of just checking the value of __cplusplus. It makes no practical difference because __glibcxx_string_view is defined for C++17 and up, but it makes it clear to readers that the lines guarded by that macro

[COMMITTED 27/35] gccrs: nr2.0: Fix test macros/mbe/macro43.rs

2025-04-05 Thread arthur . cohen
From: Owen Avery gcc/testsuite/ChangeLog: * rust/compile/macros/mbe/macro43.rs: Adjust test to pass with name resolution 2.0. * rust/compile/nr2/exclude: Remove macros/mbe/macro43.rs. Signed-off-by: Owen Avery --- gcc/testsuite/rust/compile/macros/mbe/macro43.rs | 15

Re: cobol: flags for choosing reference-format (Re: [PATCH]cobol: create new gcc/testsuite/cobol.dg/group1/check_88.cob test)

2025-04-05 Thread James K. Lowden
On Sun, 16 Mar 2025 21:07:39 +0100 Simon Sobisch wrote: > This gives three reference-formats: "fixed" "free" and "extended". For > two of those we have seen the flags -ffixed-form and -ffree-form, so > I'd _guess_ the last one would be -fextended-form. > > Question: Is there a reason to have mul

[COMMITTED 055/144] gccrs: Added noreturn checking for nevertype, new test

2025-04-04 Thread arthur . cohen
From: badumbatish gcc/rust/ChangeLog: * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): Added noreturn checking for nevertype gcc/testsuite/ChangeLog: * rust/compile/inline_asm_typecheck.rs: New test. --- .../typecheck/rust-hir-type-check-expr.cc

[COMMITTED 002/144] gccrs: Add rustc test directory for testsuite adaptor

2025-04-04 Thread arthur . cohen
From: Muhammad Mahad gcc/testsuite/ChangeLog: * rust/rustc/README.md: information about rustc external directory. * rust/rustc/rustc.exp: New test. Signed-off-by: Muhammad Mahad --- gcc/testsuite/rust/rustc/README.md | 4 gcc/testsuite/rust/rustc/rustc.exp | 35

Re: [PATCH 01] aarch64: Changed CRC test.

2025-04-04 Thread Jeff Law
On 3/26/25 6:15 AM, Mariam Arutunian wrote: Fixed the iteration number in crc-crc32c-data16.c test from 8 to 16 to match the test name. Thanks. I pushed this to the trunk. jeff

Re: [PATCH] libstdc++: Check feature test macro for std::string_view in

2025-04-04 Thread Tomasz Kaminski
ew and > __glibcxx_variant instead of __cplusplus >= 2017L. > * include/bits/cow_string.h: Likewise. > --- > > Tested x86_64-linux. > LGTM. Thanks for changing that. As I mentioned before, I believe using feature test macros for guards, helps to navig

[COMMITTED 09/35] gccrs: nr2.0: Fix test const_generics_3.rs

2025-04-01 Thread arthur . cohen
From: Owen Avery gcc/testsuite/ChangeLog: * rust/compile/const_generics_3.rs: Modify test to run with name resolution 2.0 only and to handle the absence of a bogus resolution error. * rust/compile/nr2/exclude: Remove const_generics_3.rs. Signed-off-by: Owen

[COMMITTED 15/35] gccrs: Fix core library test with proper canonical path

2025-03-31 Thread arthur . cohen
From: Pierre-Emmanuel Patry Import from core library was wrong, it misses several crate directives since we're no longer dealing with multiple files. gcc/testsuite/ChangeLog: * rust/compile/issue-2905-2.rs: Import from core library into a single file misses the crate directives.

[COMMITTED 03/35] gccrs: Remove now passing test from exclusion list

2025-03-31 Thread arthur . cohen
From: Pierre-Emmanuel Patry Those tests were malformed and failed with the new name resolution because of it. gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Remove test from exclusion list. Signed-off-by: Pierre-Emmanuel Patry --- gcc/testsuite/rust/compile/nr2/exclude | 5

[committed] arm: testsuite: fix vect-fmaxmin.c test

2025-03-31 Thread Richard Earnshaw
This is another case of a test that was both an executable test requiring specific hardware and an assembler scan test. The requirement for the hardware was masking some useful testing that could be done (by scanning the assembly output) on almost all test runs. Fixed in a similar manner to

Re: [PATCH 01] aarch64: Changed CRC test.

2025-03-30 Thread Mariam Arutunian
Thank you too. On Sun, Mar 30, 2025, 19:34 Jeff Law wrote: > > > On 3/26/25 6:15 AM, Mariam Arutunian wrote: > > Fixed the iteration number in crc-crc32c-data16.c test from 8 to 16 to > > match the test name. > Thanks. I pushed this to the trunk. > > jeff >

Re: [PATCH] aarch64: change another CRC test

2025-03-30 Thread Jeff Law
On 3/30/25 9:39 AM, Sam James wrote: Fixed the iteration number in crc-crc32-data16.c test from 8 to 16 to match the test name, just like in r15-9038-gdf55a933cfc675. gcc/testsuite/ChangeLog: * gcc.target/aarch64/crc-crc32-data16.c: Fix iteration count to match testname

Re: [PATCH] aarch64: change another CRC test

2025-03-30 Thread Mariam Arutunian
Yes, thank you! On Sun, Mar 30, 2025, 19:40 Sam James wrote: > Fixed the iteration number in crc-crc32-data16.c test from 8 to 16 to > match the test name, just like in r15-9038-gdf55a933cfc675. > > gcc/testsuite/ChangeLog: > * gcc.target/aarch64/crc-crc32-data16.c

Re: [PATCH] testsuite: Add options for float16 for test [PR119133]

2025-03-28 Thread Richard Earnshaw
On 27/03/2025 14:48, Christophe Lyon wrote: Some targets (like arm) need some flags to enable _Float16 support. gcc/testsuite/ChangeLog: PR target/119133 * gcc.dg/torture/pr119133.c: Add options for float16. --- gcc/testsuite/gcc.dg/torture/pr119133.c | 1 + 1 file changed, 1

Re: [PATCH] testsuite: Fix up strub-internal-pr112938.C test for C++2{0,3,6}

2025-03-27 Thread Alexandre Oliva
On Mar 27, 2025, Jakub Jelinek wrote: > Here is a fix, tested on x86_64-linux, ok for trunk? > 2025-03-27 Jakub Jelinek > * g++.dg/strub-internal-pr112938.C: Add dg-warning for c++20. LGTM, thanks -- Alexandre Oliva, happy hackerhttps://blog.lx.oliva.nom.br/ Free Softwar

Re: [PATCH] testsuite: Fix up strub-internal-pr112938.C test for C++2{0,3,6}

2025-03-27 Thread Mike Stump
On Mar 27, 2025, at 12:29 PM, Jakub Jelinek wrote: > > On Thu, Mar 27, 2025 at 12:05:21AM +, Sam James wrote: >> The test was being ignored because dg.exp looks for .C in g++.dg/. >> >> gcc/testsuite/ChangeLog: >> PR middle-end/112938 >> >>

[PATCH] testsuite: Fix up strub-internal-pr112938.C test for C++2{0,3,6}

2025-03-27 Thread Jakub Jelinek
On Thu, Mar 27, 2025 at 12:05:21AM +, Sam James wrote: > The test was being ignored because dg.exp looks for .C in g++.dg/. > > gcc/testsuite/ChangeLog: > PR middle-end/112938 > > * g++.dg/strub-internal-pr112938.cc: Move to... > * g++.dg/strub-interna

[PATCH] testsuite: Add options for float16 for test [PR119133]

2025-03-27 Thread Christophe Lyon
Some targets (like arm) need some flags to enable _Float16 support. gcc/testsuite/ChangeLog: PR target/119133 * gcc.dg/torture/pr119133.c: Add options for float16. --- gcc/testsuite/gcc.dg/torture/pr119133.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.dg

[COMMITTED, OBVIOUS] OpenMP: Fix declaration in append-args-interop.c test case

2025-03-26 Thread Sandra Loosemore
1(omp_interop_t, omp_interop_t, omp_interop_t); #pragma omp declare variant(repl1) match(construct={dispatch}) append_args(interop(target), interop(targetsync), interop (target)) -float base1(); +float base1(void); float test (int *a, int *b) -- 2.34.1

[PATCH 4/4] testsuite: tree-ssa: fix PR98265 test to use C++14

2025-03-26 Thread Sam James
This test was previously not being run at all so this wasn't noticed until my fix just now. The test needs C++14 and it also should use scan-tree-dump, not scan-tree-dump-times, as it wasn't passing a count parameter. gcc/testsuite/ChangeLog: PR ipa/98265 * g++.d

[committed] cobol: Bring trunk into line with Dubner's test system.

2025-03-26 Thread Robert Dubner
Jim discovered a couple of tests that succeed on my system didn't succeed on his. That led to the discovery that some stuff in my test environment hadn't actually found its way in to trunk. This fixes that. >From 0747d51de55ae29430cb3ae6371210076d7b7c0d Mon Sep 17 00:00:00 2001

Re: [PATCH] testsuite: Fix up musttail2.C test

2025-03-26 Thread Andi Kleen
> You're right (although I don't remember which targets are > non-external_musttail). Several flavors of ARM and Power at least.

testsuite: Fix up append-args-interop.f90 test

2025-03-26 Thread Jakub Jelinek
On Tue, Mar 25, 2025 at 10:03:17AM -0600, Sandra Loosemore wrote: > * gfortran.dg/gomp/append-args-interop.f90: New. The test fails for me with UNRESOLVED: gfortran.dg/gomp/append-args-interop.f90 -O scan-tree-dump gimple "__builtin_GOMP_interop (99, 0, 0B, 0B, 0B,

[PATCH] testsuite: Fix up musttail2.C test

2025-03-26 Thread Jakub Jelinek
On Wed, Mar 26, 2025 at 10:10:07AM -0700, Andi Kleen wrote: > Jakub Jelinek writes: > > > --- gcc/testsuite/g++.dg/opt/musttail2.C.jj 2025-03-24 13:27:44.329204196 > > +0100 > > +++ gcc/testsuite/g++.dg/opt/musttail2.C2025-03-24 13:28:08.975867389 > > +0100 > > @@ -0,0 +1,14 @@ > > +// PR i

[PATCH 01] aarch64: Changed CRC test.

2025-03-26 Thread Mariam Arutunian
Fixed the iteration number in crc-crc32c-data16.c test from 8 to 16 to match the test name. From d5f5bab516e45da6fa8a65dac106add2b4e4602f Mon Sep 17 00:00:00 2001 From: Mariam Arutunian Date: Wed, 26 Mar 2025 16:03:54 +0400 Subject: [PATCH] Fixed the iteration number in crc-crc32c-data16.c test

Re: [PATCH] testsuite: Fix gcc.target/powerpc/vsx-builtin-7.c test [PR119382]

2025-03-25 Thread Segher Boessenkool
"fix" (yes, these are air-quotes) this by using -fno-ipa-icf? > > > > One reason is that that option should not make any difference whatsoever > > for a well-written testcase: a testcases that wants to test what insns > > are generated for particular code, damn wel

Re: [PATCH] testsuite: Fix gcc.target/powerpc/vsx-builtin-7.c test [PR119382]

2025-03-25 Thread Peter Bergner
*-*-darwin* } } */ > -/* { dg-options "-O2 -mdejagnu-cpu=power7 -fno-inline-functions" } */ > +/* { dg-options "-O2 -mdejagnu-cpu=power7 -fno-inline-functions > -fno-ipa-icf" } */ > /* { dg-require-effective-target powerpc_vsx } */ > > /* Test simple extr

Re: [PATCH] testsuite: Fix gcc.target/powerpc/vsx-builtin-7.c test [PR119382]

2025-03-25 Thread Peter Bergner
eason is that that option should not make any difference whatsoever > for a well-written testcase: a testcases that wants to test what insns > are generated for particular code, damn well should be written in such a > way that it is very unlikely the compiler will ever generate different &g

Re: [PATCH] testsuite: Fix gcc.target/powerpc/vsx-builtin-7.c test [PR119382]

2025-03-25 Thread Segher Boessenkool
-7.c > > @@ -1,6 +1,6 @@ > > /* { dg-do compile { target { powerpc*-*-* } } } */ > > /* { dg-skip-if "" { powerpc*-*-darwin* } } */ > > -/* { dg-options "-O2 -mdejagnu-cpu=power7 -fno-inline-functions" } */ > > +/* { dg-options "-O2 -mdejagnu-cpu=power7 -fno

[pushed] c++: add fixed test [PR101881]

2025-03-25 Thread Marek Polacek
Tested x86_64-pc-linux-gnu, applying to trunk. -- >8 -- Fixed recently by r15-7822. PR c++/101881 gcc/testsuite/ChangeLog: * g++.dg/ext/vector44.C: New test. --- gcc/testsuite/g++.dg/ext/vector44.C | 5 + 1 file changed, 5 insertions(+) create mode 100644 gcc/testsuit

[PATCH] testsuite: Fix gcc.target/powerpc/vsx-builtin-7.c test [PR119382]

2025-03-24 Thread jeevitha
Hi All, The following patch has been tested on powerpc64le-linux and verified it's fixed. The test vsx-builtin-7.c was failing on powerpc64le-linux due to identical function detection by ICF. This behavior was introduced by commit r15-7961-gdc47161c1f32c3, which improved alias analys

[COMMITTED 135/141] gccrs: nr2.0: Fix test self-path2.rs

2025-03-24 Thread arthur . cohen
From: Owen Avery gcc/rust/ChangeLog: * resolve/rust-ast-resolve-path.cc (ResolvePath::resolve_path): Adjust the error message for a lower self segment in the middle of a path. * resolve/rust-ast-resolve-type.cc (ResolveRelativeTypePath::go): Likewise. gcc

[COMMITTED 120/141] gccrs: Add a test for enum variant name resolution

2025-03-24 Thread arthur . cohen
From: Pierre-Emmanuel Patry Highlight the fact that a value inside an enum definition refers to a struct outside of the enum and not to the enum variant's name directly. gcc/testsuite/ChangeLog: * rust/compile/enum_variant_name.rs: New test. Signed-off-by: Pierre-Emmanuel

[COMMITTED 119/141] gccrs: Remove nr2 exhaustiveness test from exclusion list

2025-03-24 Thread arthur . cohen
From: Pierre-Emmanuel Patry gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Remove test. Signed-off-by: Pierre-Emmanuel Patry --- gcc/testsuite/rust/compile/nr2/exclude | 1 - 1 file changed, 1 deletion(-) diff --git a/gcc/testsuite/rust/compile/nr2/exclude b/gcc/testsuite

[COMMITTED 061/141] gccrs: Add test case to show issue is fixed

2025-03-24 Thread arthur . cohen
From: Philip Herron This was fixed as part of: "gccrs: Fix compilation of trait-items which map to impl items" Fixes Rust-GCC#3402 gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 cant handle this * rust/compile/issue-3402-1.rs: New test. * rust/com

[COMMITTED 035/141] gccrs: Remove some passing test from exclude file

2025-03-24 Thread arthur . cohen
From: Pierre-Emmanuel Patry Those tests are now passing. gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Remove some tests. Signed-off-by: Pierre-Emmanuel Patry --- gcc/testsuite/rust/compile/nr2/exclude | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/

[pushed] c++: add fixed test [PR119378]

2025-03-21 Thread Patrick Palka
Fixed by r15-123 (specifically the change to set processing_template_decl when tsubsting UNBOUND_CLASS_TEMPLATE). PR c++/119378 gcc/testsuite/ChangeLog: * g++.dg/template/friend85.C: New test. --- gcc/testsuite/g++.dg/template/friend85.C | 16 1 file changed

[COMMITTED 063/146] gccrs: add test case to show issue is fixed

2025-03-21 Thread arthur . cohen
From: Philip Herron Fixes Rust-GCC#266 gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 cant handle this * rust/compile/issue-266.rs: New test. Signed-off-by: Philip Herron --- gcc/testsuite/rust/compile/issue-266.rs | 3 +++ gcc/testsuite/rust/compile/nr2/exclude

[COMMITTED 025/146] gccrs: add test case to show issue is fixed

2025-03-21 Thread arthur . cohen
From: Philip Herron The original test case 1773 has been moved to a new issue 3242 which is still open and test-case is skipped. The original issue in 1773 is fixed so this will close out that issue Fixes Rust-Gcc#1773 gcc/testsuite/ChangeLog: * rust/compile/issue-1773.rs: new test

Re: [PATCH] Activate __cpp_lib_ranges_to_container test

2025-03-19 Thread Jonathan Wakely
On Wed, 19 Mar 2025 at 18:27, François Dumont wrote: > > Hi > > Now that __cpp_lib_ranges_to_container support have been added to > std::set we can activate those checks. > > libstdc++: Activate a __cpp_lib_ranges_to_container dependent test > > Now th

[COMMITTED 082/144] gccrs: Create new test system for name resolution 2.0

2025-03-19 Thread arthur . cohen
From: Owen Avery This runs the standard compile/**.rs tests with name resolution 2.0 enabled. The exclude file can be used to exclude tests which are not yet working with name resolution 2.0. gcc/testsuite/ChangeLog: * rust/compile/nr2/compile.exp: New test. * rust/compile/nr2

[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

[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

[PATCH] Activate __cpp_lib_ranges_to_container test

2025-03-19 Thread François Dumont
Hi Now that __cpp_lib_ranges_to_container support have been added to std::set we can activate those checks.     libstdc++: Activate a __cpp_lib_ranges_to_container dependent test     Now that std::set has support for __cpp_lib_ranges_to_container we can     activate a test using it in a

[COMMITTED 120/144] gccrs: Remove some passing test from nr2 passing list

2025-03-19 Thread arthur . cohen
From: Pierre-Emmanuel Patry gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: Remove cast_generics.rs, issue-1131.rs, issue-1383.rs and unsafe10.rs Signed-off-by: Pierre-Emmanuel Patry --- gcc/testsuite/rust/compile/nr2/exclude | 4 1 file changed, 4 deletions(-) diff

[COMMITTED 123/144] gccrs: add test case to show impl block on ! works

2025-03-19 Thread arthur . cohen
From: Philip Herron The resolution with ! was fixed in: 09cfe530f9c this adds a test case to show the other issue is also fixed. Fixes #2951 gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: nr2 is crashing here * rust/compile/issue-2951.rs: New test. Signed-off-by: Philip

[COMMITTED 110/144] gccrs: Move failing test to xfail

2025-03-19 Thread arthur . cohen
From: Pierre-Emmanuel Patry We want to begin experimenting with this new name resolution 2.0 algorithm as soon as possible. This test highlight a problem where the compiler should emit an error and should be fixed soon. gcc/testsuite/ChangeLog: * rust/compile/name_resolution21.rs: Move

  1   2   3   4   5   6   7   8   9   10   >