Re: GCN RDNA2+ vs. GCC SLP vectorizer

2024-02-19 Thread Richard Biener
On Mon, 19 Feb 2024, Thomas Schwinge wrote: > Hi! > > On 2024-02-19T17:31:20+0100, I wrote: > > On 2024-02-19T11:52:55+0100, Richard Biener wrote: > >> On Mon, 19 Feb 2024, Thomas Schwinge wrote: > >>> On 2024-02-16T14:53:04+0100, I wrote: > >>> > On 2024-02-16T12:41:06+, Andrew Stubbs

Re: [PATCH] ipa: Convert lattices from pure array to vector (PR 113476)

2024-02-19 Thread Richard Biener
On Mon, 19 Feb 2024, Martin Jambor wrote: > On Tue, Feb 13 2024, Martin Jambor wrote: > > On Mon, Feb 12 2024, Jan Hubicka wrote: > >>> Believe it or not, even though I have re-worked the internals of the > >>> lattices completely, the array itself is older than my involvement with > >>> GCC (or

Re: [PATCH] RISC-V: Fix CTZ unnecessary sign extension [PR #106888]

2024-02-19 Thread Jeff Law
On 2/19/24 21:26, Alexandre Oliva wrote: This backport for gcc-13 is required for pr90838.c to get the expected count of andi instructions on riscv64-elf, rather than fail because of two extra andi insns in functions where it is not necessary. (On riscv32-elf, it passes). Regstrapped on

Re: [PATCH RFA] build: drop target libs from LD_LIBRARY_PATH [PR105688]

2024-02-19 Thread Alexandre Oliva
On Feb 16, 2024, Jason Merrill wrote: > So, for stage2+, let's add just prev- libgcc. I'm pretty sure this will break bootstrap-lean where libgcc_s isn't a system library, and we're building post-bootstrap host tools :-( We need the current stage lib after the prev stage is removed. I also

[PATCH v8 24/24] libstdc++: Optimize std::is_invocable compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_invocable by dispatching to the new __is_invocable built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_invocable): Use __is_invocable built-in trait. *

[PATCH v8 23/24] c++: Implement __is_invocable built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::is_invocable. gcc/cp/ChangeLog: * cp-trait.def: Define __is_invocable. * constraint.cc (diagnose_trait_expr): Handle CPTK_IS_INVOCABLE. * semantics.cc (trait_expr_value): Likewise. (finish_trait_expr): Likewise.

[PATCH] libcpp: Stabilize the location for macros restored after PCH load [PR105608]

2024-02-19 Thread Alexandre Oliva
This backport for gcc-13 is the second of two required for the g++.dg/pch/line-map-3.C test to stop hitting a variant of the known problem mentioned in that testcase: on riscv64-elf and riscv32-elf, after restoring the PCH, the location of the macros is mentioned as if they were on line 3 rather

[PATCH] libcpp: Improve location for macro names [PR66290]

2024-02-19 Thread Alexandre Oliva
This backport for gcc-13 is the first of two required for the g++.dg/pch/line-map-3.C test to stop hitting a variant of the known problem mentioned in that testcase: on riscv64-elf and riscv32-elf, after restoring the PCH, the location of the macros is mentioned as if they were on line 3 rather

[PATCH] RISC-V: Fix CTZ unnecessary sign extension [PR #106888]

2024-02-19 Thread Alexandre Oliva
This backport for gcc-13 is required for pr90838.c to get the expected count of andi instructions on riscv64-elf, rather than fail because of two extra andi insns in functions where it is not necessary. (On riscv32-elf, it passes). Regstrapped on x86_64-linux-gnu, along with other backports, and

[PATCH] RISC-V: Fix error combine of pred_mov pattern

2024-02-19 Thread Alexandre Oliva
This backport is the second of two required for the pr111935 testcase, already backported to gcc-13, to pass on riscv64-elf and riscv32-elf. The V_VLS mode iterator, used in the original patch, is not available in gcc-13, and I thought that would be too much to backport (and maybe so are these two

[PATCH] RISC-V: Revert the convert from vmv.s.x to vmv.v.i

2024-02-19 Thread Alexandre Oliva
This backport is the first of two required for the pr111935 testcase, already backported to gcc-13, to pass on riscv64-elf and riscv32-elf. The V_VLS mode iterator, used in the original patch, is not available in gcc-13, and I thought that would be too much to backport (and maybe so are these two

[PATCH] RISC-V: Fix riscv/arch-19.c with different ISA spec version

2024-02-19 Thread Alexandre Oliva
This testcase is failing with riscv64-elf and riscv32-elf in the gcc-13 branch, if configured to use an assembler that supports -misa-spec; with an assembler that doesn't, the test passes both with and without the following backport from the trunk, so I'd like to install it in gcc-13. Regstrapped

Re: LoongArch: Backport r14-4674 "LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP."?

2024-02-19 Thread chenglulu
在 2024/2/9 下午4:08, Xi Ruoyao 写道: On Fri, 2024-02-09 at 00:02 +0800, chenglulu wrote: 在 2024/2/7 上午12:23, Xi Ruoyao 写道: Hi Lulu, I'm proposing to backport r14-4674 "LoongArch: Delete macro definition ASM_OUTPUT_ALIGN_WITH_NOP." to releases/gcc-12 and releases/gcc-13.  The reasons: 1.

Re: [PATCH v23 32/33] c++: Implement __is_invocable built-in trait

2024-02-19 Thread Ken Matsui
On Mon, Oct 23, 2023 at 2:23 PM Jason Merrill wrote: > > On 10/20/23 17:37, Patrick Palka wrote: > > On Fri, 20 Oct 2023, Patrick Palka wrote: > > > >> On Fri, 20 Oct 2023, Patrick Palka wrote: > >> > >>> On Fri, 20 Oct 2023, Ken Matsui wrote: > >>> > This patch implements built-in trait for

Re: [PATCH] c-family, c++: Fix up handling of types which may have padding in __atomic_{compare_}exchange

2024-02-19 Thread Jakub Jelinek
On Tue, Feb 20, 2024 at 12:12:11AM +, Jason Merrill wrote: > On 2/19/24 02:55, Jakub Jelinek wrote: > > On Fri, Feb 16, 2024 at 01:51:54PM +, Jonathan Wakely wrote: > > > Ah, although __atomic_compare_exchange only takes pointers, the > > > compiler replaces that with a call to

Re: [PATCH] c-family, c++: Fix up handling of types which may have padding in __atomic_{compare_}exchange

2024-02-19 Thread Jason Merrill
On 2/19/24 02:55, Jakub Jelinek wrote: On Fri, Feb 16, 2024 at 01:51:54PM +, Jonathan Wakely wrote: Ah, although __atomic_compare_exchange only takes pointers, the compiler replaces that with a call to __atomic_compare_exchange_n which takes the newval by value, which presumably uses an

[pushed] analyzer: fix -Wanalyzer-va-arg-type-mismatch false +ve on int types [PR111289]

2024-02-19 Thread David Malcolm
Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. Successful run of analyzer integration tests on x86_64-pc-linux-gnu. Pushed to trunk as r14-9076-g5651ad62b08096. gcc/analyzer/ChangeLog: PR analyzer/111289 * varargs.cc (representable_in_integral_type_p): New.

[pushed] analyzer, testsuite: add regression test [PR110520]

2024-02-19 Thread David Malcolm
Tested on x86_64-pc-linux-gnu. Pushed to trunk as r14-9075-geb37ea529745c3. gcc/testsuite/ChangeLog: PR analyzer/110520 * c-c++-common/analyzer/null-deref-pr110520.c: New test. Signed-off-by: David Malcolm --- gcc/testsuite/c-c++-common/analyzer/null-deref-pr110520.c | 8

[PATCH] rs6000: Update instruction counts due to combine changes [PR112103]

2024-02-19 Thread Peter Bergner
rs6000: Update instruction counts due to combine changes [PR112103] The PR91865 combine fix changed instruction counts slightly for rlwinm-0.c. Adjust expected instruction counts accordingly. This passed on both powerpc64le-linux and powerpc64-linux running the testsuite in both 32-bit and

[patch] OpenACC: Add Fortran routines acc_{alloc,free,hostptr,deviceptr,memcpy_{to,from}_device*}

2024-02-19 Thread Tobias Burnus
While waiting for some testing to finish, I got distracted and added the very low hanging OpenACC 3.3 fruits, i.e. those Fortran routines that directly map to their C counter part. Comments, remarks? Tobias OpenACC: Add Fortran routines

[Committed] analyzer: Fix maybe_undo_optimize_bit_field_compare vs non-scalar types [PR113983]

2024-02-19 Thread Andrew Pinski
After r14-6419-g4eaaf7f5a378e8, maybe_undo_optimize_bit_field_compare would ICE on vector CST but this function really should be checking if we had integer types so reject non-integral types early on (like it was doing for non-char type before r14-6419-g4eaaf7f5a378e8). Committed as obvious

Re: Typo on GCC 14 porting_to page

2024-02-19 Thread Jonathan Wakely
On Mon, 19 Feb 2024 at 20:24, peter0x44 wrote: > > I was reading the GCC 14 porting to page and I noticed: > > Alternatively, projects using using Autoconf could enable > AC_USE_SYSTEM_EXTENSIONS. > > "using using" should be "using". > > I read over the rest and didn't notice anything else

Re: [PATCH RFA] build: drop target libs from LD_LIBRARY_PATH [PR105688]

2024-02-19 Thread Iain Sandoe
> On 16 Feb 2024, at 21:05, Jason Merrill wrote: > > On 2/14/24 18:33, Iain Sandoe wrote: >>> On 14 Feb 2024, at 22:59, Iain Sandoe wrote: On 12 Feb 2024, at 19:59, Jason Merrill wrote: On 2/10/24 07:30, Iain Sandoe wrote: >> On 10 Feb 2024, at 12:07, Jason Merrill

[PATCH wwwdocs COMMITTED] gcc-14: Fix unintentional error in -Wimplicit-int example

2024-02-19 Thread Florian Weimer
diff --git a/htdocs/gcc-14/porting_to.html b/htdocs/gcc-14/porting_to.html index bbbaa25a..901a1653 100644 --- a/htdocs/gcc-14/porting_to.html +++ b/htdocs/gcc-14/porting_to.html @@ -92,7 +92,7 @@ below). In the example below, the type of s should be write_string (fd, s) { -write (1,

Re: [PATCH] Fortran: fix passing array component to polymorphic argument [PR105658]

2024-02-19 Thread Harald Anlauf
Hi Peter, On 2/19/24 16:19, Peter Hill wrote: Hi Harald, Thanks for your help, please see the updated and signed-off patch below. great! This is fine, and I'll commit it tomorrow unless others have further comments. It also occurred to me that array temporaries aren't _required_ here (for

Re: [PATCH] rs6000: Neuter option -mpower{8,9}-vector [PR109987]

2024-02-19 Thread Segher Boessenkool
Hi! On Tue, Jan 16, 2024 at 10:50:01AM +0800, Kewen.Lin wrote: > As PR109987 and its duplicated bugs show, -mno-power8-vector > (and -mno-power9-vector) cause some problems and as Segher > pointed out in [1] they are workaround options, so this patch > is to remove -m{no,}-power{8,9}-options.

Re: [PATCH][_GLIBCXX_DEBUG] Fix std::__niter_base behavior

2024-02-19 Thread François Dumont
Turns out that 23_containers/vector/erasure.cc was showing the problem in _GLIBCXX_DEBUG mode. I had only run 25_algorithms tests in _GLIBCXX_DEBUG mode. This is what I'm testing, I 'll let you know tomorrow morning if all successful. Of course feel free to do or ask for a revert instead.

New Spanish PO file for 'cpplib' (version 14.1-b20240218)

2024-02-19 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 Spanish team of translators. The file is available at: https://translationproject.org/latest/cpplib/es.po (This file,

Contents of PO file 'cpplib-14.1-b20240218.es.po'

2024-02-19 Thread Translation Project Robot
cpplib-14.1-b20240218.es.po.gz Description: Binary data The Translation Project robot, in the name of your translation coordinator.

Contents of PO file 'cpplib-14.1-b20240218.ro.po'

2024-02-19 Thread Translation Project Robot
cpplib-14.1-b20240218.ro.po.gz Description: Binary data The Translation Project robot, in the name of your translation coordinator.

New Romanian PO file for 'cpplib' (version 14.1-b20240218)

2024-02-19 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,

GCN: Restore lost '__gfx90a__' target CPU definition (was: [Patch] GCN: Add pre-initial support for gfx1100)

2024-02-19 Thread Thomas Schwinge
Hi! On 2024-01-07T20:20:19+0100, Tobias Burnus wrote: > --- a/gcc/config/gcn/gcn.h > +++ b/gcc/config/gcn/gcn.h > @@ -30,6 +30,8 @@ > builtin_define ("__CDNA2__"); \ >else if (TARGET_RDNA2) >

Contents of PO file 'cpplib-14.1-b20240218.fr.po'

2024-02-19 Thread Translation Project Robot
cpplib-14.1-b20240218.fr.po.gz Description: Binary data The Translation Project robot, in the name of your translation coordinator.

New French PO file for 'cpplib' (version 14.1-b20240218)

2024-02-19 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 French team of translators. The file is available at: https://translationproject.org/latest/cpplib/fr.po (This file,

New Ukrainian PO file for 'cpplib' (version 14.1-b20240218)

2024-02-19 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 Ukrainian team of translators. The file is available at: https://translationproject.org/latest/cpplib/uk.po (This file,

Contents of PO file 'cpplib-14.1-b20240218.uk.po'

2024-02-19 Thread Translation Project Robot
cpplib-14.1-b20240218.uk.po.gz Description: Binary data The Translation Project robot, in the name of your translation coordinator.

New template for 'cpplib' made available

2024-02-19 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:

New template for 'gcc' made available

2024-02-19 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:

Re: GCN RDNA2+ vs. GCC SLP vectorizer

2024-02-19 Thread Thomas Schwinge
Hi! On 2024-02-19T17:31:20+0100, I wrote: > On 2024-02-19T11:52:55+0100, Richard Biener wrote: >> On Mon, 19 Feb 2024, Thomas Schwinge wrote: >>> On 2024-02-16T14:53:04+0100, I wrote: >>> > On 2024-02-16T12:41:06+, Andrew Stubbs wrote: >>> >> On 16/02/2024 12:26, Richard Biener wrote: >>>

Re: GCN RDNA2+ vs. GCC SLP vectorizer

2024-02-19 Thread Thomas Schwinge
Hi! On 2024-02-19T11:52:55+0100, Richard Biener wrote: > On Mon, 19 Feb 2024, Thomas Schwinge wrote: >> On 2024-02-16T14:53:04+0100, I wrote: >> > On 2024-02-16T12:41:06+, Andrew Stubbs wrote: >> >> On 16/02/2024 12:26, Richard Biener wrote: >> >>> On Fri, 16 Feb 2024, Andrew Stubbs wrote:

Re: [PATCH] IBM Z: Preserve exceptions in autovec-*-signaling-eq.c tests

2024-02-19 Thread Andreas Krebbel
On 2/19/24 13:39, Ilya Leoshkevich wrote: > DSE, DCE, and other passes are removing redundant signaling comparisons > from these tests, but the whole point is to check that GCC knows how to > emit them. Use -fno-delete-dead-exceptions to prevent that. > > gcc/testsuite/ChangeLog: > > *

Re: [comitted] bitint: Fix testism where __seg_gs was being used for all targets

2024-02-19 Thread Andre Vieira (lists)
On 19/02/2024 16:17, Jakub Jelinek wrote: On Mon, Feb 19, 2024 at 04:13:29PM +, Andre Vieira (lists) wrote: Replaced uses of __seg_gs with the MACRO SEG defined in the testcase to pick (if any) the right __seg_{gs,fs} keyword based on target. gcc/testsuite/ChangeLog: *

Re: [comitted] bitint: Fix testism where __seg_gs was being used for all targets

2024-02-19 Thread Jakub Jelinek
On Mon, Feb 19, 2024 at 04:13:29PM +, Andre Vieira (lists) wrote: > Replaced uses of __seg_gs with the MACRO SEG defined in the testcase to pick > (if any) the right __seg_{gs,fs} keyword based on target. > > gcc/testsuite/ChangeLog: > > * gcc.dg/bitint-86.c (__seg_gs): Replace with

Re: [PATCH] c++: compound-requirement partial substitution [PR113966]

2024-02-19 Thread Jason Merrill
On 2/19/24 09:39, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? OK. -- >8 -- When partially substituting a requires-expr, we don't want to perform any additional checks beyond the substitution itself, so as to minimize checking

[comitted] bitint: Fix testism where __seg_gs was being used for all targets

2024-02-19 Thread Andre Vieira (lists)
Replaced uses of __seg_gs with the MACRO SEG defined in the testcase to pick (if any) the right __seg_{gs,fs} keyword based on target. gcc/testsuite/ChangeLog: * gcc.dg/bitint-86.c (__seg_gs): Replace with SEG MACRO.diff --git a/gcc/testsuite/gcc.dg/bitint-86.c

Re: [PATCH] Fortran: fix passing array component to polymorphic argument [PR105658]

2024-02-19 Thread Peter Hill
Hi Harald, Thanks for your help, please see the updated and signed-off patch below. > (I am not entirely sure whether we need to exclude pointer and > allocatable attributes here explicitly, given the constraints > in F2023:15.5.2.6, but other may have an opinion, too. > The above should be safe

[PATCH] ipa: Convert lattices from pure array to vector (PR 113476)

2024-02-19 Thread Martin Jambor
On Tue, Feb 13 2024, Martin Jambor wrote: > On Mon, Feb 12 2024, Jan Hubicka wrote: >>> Believe it or not, even though I have re-worked the internals of the >>> lattices completely, the array itself is older than my involvement with >>> GCC (or at least with ipa-cp.c ;-). >>> >>> So it being an

Re: veclower: improve selection of vector mode when lowering [PR 112787]

2024-02-19 Thread Richard Biener
On Mon, 19 Feb 2024, Andre Vieira (lists) wrote: > Hi all, > > OK to backport this to gcc-12 and gcc-13? Patch applies cleanly, bootstrapped > and regression tested on aarch64-unknown-linux-gnu. Only change is in the > testcase as I had to use -march=armv9-a because -march=armv8-a+sve conflicts

[PATCH] c++: compound-requirement partial substitution [PR113966]

2024-02-19 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- When partially substituting a requires-expr, we don't want to perform any additional checks beyond the substitution itself, so as to minimize checking requirements out of order. So when partially

Re: veclower: improve selection of vector mode when lowering [PR 112787]

2024-02-19 Thread Andre Vieira (lists)
Hi all, OK to backport this to gcc-12 and gcc-13? Patch applies cleanly, bootstrapped and regression tested on aarch64-unknown-linux-gnu. Only change is in the testcase as I had to use -march=armv9-a because -march=armv8-a+sve conflicts with -mcpu=neoverse-n2 in previous gcc versions. Kind

Re: [PATCH] libgcc: fix Win32 CV abnormal spurious wakeups in timed wait [PR113850]

2024-02-19 Thread Jonathan Yong
On 2/19/24 13:48, Matteo Italia wrote: Il 17/02/24 01:24, Jonathan Yong ha scritto: On 2/10/24 10:10, Matteo Italia wrote: Il 09/02/24 15:18, Matteo Italia ha scritto: The Win32 threading model uses __gthr_win32_abs_to_rel_time to convert the timespec used in gthreads to specify the absolute

[PATCH v7 05/22] c++: Implement __is_pointer built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::is_pointer. gcc/cp/ChangeLog: * cp-trait.def: Define __is_pointer. * constraint.cc (diagnose_trait_expr): Handle CPTK_IS_POINTER. * semantics.cc (trait_expr_value): Likewise. (finish_trait_expr): Likewise.

[PATCH v7 13/22] c++: Implement __remove_all_extents built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::remove_all_extents. gcc/cp/ChangeLog: * cp-trait.def: Define __remove_all_extents. * semantics.cc (finish_trait_type): Handle CPTK_REMOVE_ALL_EXTENTS. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test

[PATCH v7 20/22] libstdc++: Optimize std::decay compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::decay by dispatching to the new __decay built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (decay): Use __decay built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 6 ++ 1 file

[PATCH v7 09/22] c++: Implement __add_pointer built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::add_pointer. gcc/cp/ChangeLog: * cp-trait.def: Define __add_pointer. * semantics.cc (finish_trait_type): Handle CPTK_ADD_POINTER. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __add_pointer.

[PATCH v7 18/22] libstdc++: Optimize std::add_rvalue_reference compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::add_rvalue_reference by dispatching to the new __add_rvalue_reference built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (add_rvalue_reference): Use __add_rvalue_reference built-in trait.

[PATCH v7 21/22] c++: Implement __rank built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::rank. gcc/cp/ChangeLog: * cp-trait.def: Define __rank. * constraint.cc (diagnose_trait_expr): Handle CPTK_RANK. * semantics.cc (trait_expr_value): Likewise. (finish_trait_expr): Likewise. gcc/testsuite/ChangeLog:

[PATCH v7 06/22] libstdc++: Optimize std::is_pointer compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_pointer by dispatching to the new __is_pointer built-in trait. libstdc++-v3/ChangeLog: * include/bits/cpp_type_traits.h (__is_pointer): Use __is_pointer built-in trait. Optimize its implementation. *

[PATCH v7 15/22] c++: Implement __add_lvalue_reference built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::add_lvalue_reference. gcc/cp/ChangeLog: * cp-trait.def: Define __add_lvalue_reference. * semantics.cc (finish_trait_type): Handle CPTK_ADD_LVALUE_REFERENCE. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test

[PATCH v7 03/22] c++: Implement __is_volatile built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::is_volatile. gcc/cp/ChangeLog: * cp-trait.def: Define __is_volatile. * constraint.cc (diagnose_trait_expr): Handle CPTK_IS_VOLATILE. * semantics.cc (trait_expr_value): Likewise. (finish_trait_expr): Likewise.

[PATCH v7 22/22] libstdc++: Optimize std::rank compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::rank by dispatching to the new __rank built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (rank): Use __rank built-in trait. (rank_v): Likewise. Signed-off-by: Ken Matsui ---

[PATCH v7 16/22] libstdc++: Optimize std::add_lvalue_reference compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::add_lvalue_reference by dispatching to the new __add_lvalue_reference built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (add_lvalue_reference): Use __add_lvalue_reference built-in trait.

[PATCH v7 19/22] c++: Implement __decay built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::decay. gcc/cp/ChangeLog: * cp-trait.def: Define __decay. * semantics.cc (finish_trait_type): Handle CPTK_DECAY. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __decay. * g++.dg/ext/decay.C:

[PATCH v7 07/22] c++: Implement __is_unbounded_array built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::is_unbounded_array. gcc/cp/ChangeLog: * cp-trait.def: Define __is_unbounded_array. * constraint.cc (diagnose_trait_expr): Handle CPTK_IS_UNBOUNDED_ARRAY. * semantics.cc (trait_expr_value): Likewise.

[PATCH v7 04/22] libstdc++: Optimize std::is_volatile compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_volatile by dispatching to the new __is_volatile built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_volatile): Use __is_volatile built-in trait. (is_volatile_v): Likewise. Signed-off-by: Ken

[PATCH v7 02/22] libstdc++: Optimize std::is_const compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_const by dispatching to the new __is_const built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_const): Use __is_const built-in trait. (is_const_v): Likewise. Signed-off-by: Ken Matsui ---

[PATCH v7 01/22] c++: Implement __is_const built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::is_const. gcc/cp/ChangeLog: * cp-trait.def: Define __is_const. * constraint.cc (diagnose_trait_expr): Handle CPTK_IS_CONST. * semantics.cc (trait_expr_value): Likewise. (finish_trait_expr): Likewise.

[PATCH v7 12/22] libstdc++: Optimize std::remove_extent compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_extent by dispatching to the new __remove_extent built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_extent): Use __remove_extent built-in trait. Signed-off-by: Ken Matsui ---

[PATCH v7 14/22] libstdc++: Optimize std::remove_all_extents compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_all_extents by dispatching to the new __remove_all_extents built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_all_extents): Use __remove_all_extents built-in trait. Signed-off-by: Ken Matsui

[PATCH v7 17/22] c++: Implement __add_rvalue_reference built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::add_rvalue_reference. gcc/cp/ChangeLog: * cp-trait.def: Define __add_rvalue_reference. * semantics.cc (finish_trait_type): Handle CPTK_ADD_RVALUE_REFERENCE. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test

[PATCH v7 10/22] libstdc++: Optimize std::add_pointer compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::add_pointer by dispatching to the new __add_pointer built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (add_pointer): Use __add_pointer built-in trait. Signed-off-by: Ken Matsui ---

[PATCH v7 11/22] c++: Implement __remove_extent built-in trait

2024-02-19 Thread Ken Matsui
This patch implements built-in trait for std::remove_extent. gcc/cp/ChangeLog: * cp-trait.def: Define __remove_extent. * semantics.cc (finish_trait_type): Handle CPTK_REMOVE_EXTENT. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of

[PATCH v7 08/22] libstdc++: Optimize std::is_unbounded_array compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_unbounded_array by dispatching to the new __is_unbounded_array built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_unbounded_array_v): Use __is_unbounded_array built-in trait. Signed-off-by: Ken Matsui

Re: [PATCH] libgcc: fix Win32 CV abnormal spurious wakeups in timed wait [PR113850]

2024-02-19 Thread Matteo Italia
Il 17/02/24 01:24, Jonathan Yong ha scritto: On 2/10/24 10:10, Matteo Italia wrote: Il 09/02/24 15:18, Matteo Italia ha scritto: The Win32 threading model uses __gthr_win32_abs_to_rel_time to convert the timespec used in gthreads to specify the absolute time for end of the condition variables

Re: [PATCH] rtl-optimization/54052 - RTL SSA PHI insertion compile-time hog

2024-02-19 Thread Richard Biener
On Mon, 19 Feb 2024, Richard Sandiford wrote: > Richard Biener writes: > >> I suppose that's better than the first version when a block has a > >> large number of dominance frontiers. But I can't remember whether > >> that was the case in PR98863. I have a feeling that I tried the above > >>

Re: [PATCH] rtl-optimization/54052 - RTL SSA PHI insertion compile-time hog

2024-02-19 Thread Richard Sandiford
Richard Biener writes: >> I suppose that's better than the first version when a block has a >> large number of dominance frontiers. But I can't remember whether >> that was the case in PR98863. I have a feeling that I tried the above >> as part of the PR, since it's the obvious way of applying

Re: [PATCH]AArch64: xfail modes_1.f90 [PR107071]

2024-02-19 Thread Richard Earnshaw (lists)
On 19/02/2024 10:58, Tamar Christina wrote: >> -Original Message- >> From: Tamar Christina >> Sent: Thursday, February 15, 2024 11:05 AM >> To: Richard Earnshaw (lists) ; gcc- >> patc...@gcc.gnu.org >> Cc: nd ; Marcus Shawcroft ; Kyrylo >> Tkachov ; Richard Sandiford >> >> Subject: RE:

Re: [PATCH] rtl-optimization/54052 - RTL SSA PHI insertion compile-time hog

2024-02-19 Thread Richard Biener
On Mon, 19 Feb 2024, Richard Sandiford wrote: > Richard Biener writes: > > On Mon, 19 Feb 2024, Richard Sandiford wrote: > > > >> Richard Biener writes: > >> > The following tries to address the PHI insertion compile-time hog in > >> > RTL fwprop observed with the PR54052 testcase where the

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-19 Thread Tamar Christina
> -Original Message- > From: Li, Pan2 > Sent: Monday, February 19, 2024 12:59 PM > To: Tamar Christina ; Richard Biener > > Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; Wang, Yanzhang > ; kito.ch...@gmail.com > Subject: RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-19 Thread Li, Pan2
Thanks Tamar for comments and explanations. > I think we should actually do an indirect optab here, because the IFN can be > used > to replace the general representation of saturating arithmetic. > e.g. the __builtin_add_overflow case in > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112600 >

Re: [PATCH] rtl-optimization/54052 - RTL SSA PHI insertion compile-time hog

2024-02-19 Thread Richard Sandiford
Richard Biener writes: > On Mon, 19 Feb 2024, Richard Sandiford wrote: > >> Richard Biener writes: >> > The following tries to address the PHI insertion compile-time hog in >> > RTL fwprop observed with the PR54052 testcase where the loop computing >> > the "unfiltered" set of variables possibly

[Patch] libgomp: Device load_image - minor num-funcs/vars check improvement

2024-02-19 Thread Tobias Burnus
When debugging a linker issue, leading to a mismatch in the number of host/device functions, I was surprised by seeing one additional entry. Well, it turned out to be due to the ICV variable. This patch makes it more consistent. The "+1" is returned since r12-2769-g0bac793ed6bad2 (for the

[PATCH] IBM Z: Preserve exceptions in autovec-*-signaling-eq.c tests

2024-02-19 Thread Ilya Leoshkevich
DSE, DCE, and other passes are removing redundant signaling comparisons from these tests, but the whole point is to check that GCC knows how to emit them. Use -fno-delete-dead-exceptions to prevent that. gcc/testsuite/ChangeLog: * gcc.target/s390/zvector/autovec-double-signaling-eq.c:

Re: CI for "Option handling: add documentation URLs"

2024-02-19 Thread Mark Wielaard
On Sun, 2024-02-18 at 23:58 +0100, Mark Wielaard wrote: > So I think the regenerate-opt-urls check does work as intended. So > lets automate it, because it looks like nobody regenerated the > url.opts after updating the documentation. > > But we should first apply this diff. Could you double

Re: [PATCH] rtl-optimization/54052 - RTL SSA PHI insertion compile-time hog

2024-02-19 Thread Richard Biener
On Mon, 19 Feb 2024, Richard Sandiford wrote: > Richard Biener writes: > > The following tries to address the PHI insertion compile-time hog in > > RTL fwprop observed with the PR54052 testcase where the loop computing > > the "unfiltered" set of variables possibly needing PHI nodes for each > >

[committed] d: Add UTF BOM tests to gdc.dg testsuite

2024-02-19 Thread Iain Buclaw
Hi, This patch checks in a few combinations of UTF BOM/no-BOM tests to the gdc.dg testsuite. Some of these are part of the upstream DMD `gdc.test' testsuite, but they had been omitted because they get mangled by the lib/gdc-utils.exp helpers when parsing and staging the tests. Translate them

RE: [PATCH]AArch64: xfail modes_1.f90 [PR107071]

2024-02-19 Thread Tamar Christina
> -Original Message- > From: Tamar Christina > Sent: Thursday, February 15, 2024 11:05 AM > To: Richard Earnshaw (lists) ; gcc- > patc...@gcc.gnu.org > Cc: nd ; Marcus Shawcroft ; Kyrylo > Tkachov ; Richard Sandiford > > Subject: RE: [PATCH]AArch64: xfail modes_1.f90 [PR107071] > > >

Re: [PATCH] rtl-optimization/54052 - RTL SSA PHI insertion compile-time hog

2024-02-19 Thread Richard Sandiford
Richard Biener writes: > The following tries to address the PHI insertion compile-time hog in > RTL fwprop observed with the PR54052 testcase where the loop computing > the "unfiltered" set of variables possibly needing PHI nodes for each > block exhibits quadratic compile-time and memory-use. >

[PATCH V3 2/2] rs6000: Load store fusion for rs6000 target using common infrastructure

2024-02-19 Thread Ajit Agarwal
Hello All: Changes in V3 since V2 patch. Fdllowing changes are done in this patch. a) Remove commented asserted code in rtl-ssa/changes.cc b) Handle such code in rs6000-vecload-fusion.cc. Same as V2: Common infrastructure using generic code for load store fusion of rs6000 target. Generic

Re: GCN RDNA2+ vs. GCC SLP vectorizer

2024-02-19 Thread Richard Biener
On Mon, 19 Feb 2024, Thomas Schwinge wrote: > Hi! > > On 2024-02-16T14:53:04+0100, I wrote: > > On 2024-02-16T12:41:06+, Andrew Stubbs wrote: > >> On 16/02/2024 12:26, Richard Biener wrote: > >>> On Fri, 16 Feb 2024, Andrew Stubbs wrote: > On 16/02/2024 10:17, Richard Biener wrote: >

[PATCH] rtl-optimization/54052 - RTL SSA PHI insertion compile-time hog

2024-02-19 Thread Richard Biener
The following tries to address the PHI insertion compile-time hog in RTL fwprop observed with the PR54052 testcase where the loop computing the "unfiltered" set of variables possibly needing PHI nodes for each block exhibits quadratic compile-time and memory-use. Instead of only pruning the set

Re: GCN RDNA2+ vs. GCC SLP vectorizer

2024-02-19 Thread Thomas Schwinge
Hi! On 2024-02-16T14:53:04+0100, I wrote: > On 2024-02-16T12:41:06+, Andrew Stubbs wrote: >> On 16/02/2024 12:26, Richard Biener wrote: >>> On Fri, 16 Feb 2024, Andrew Stubbs wrote: On 16/02/2024 10:17, Richard Biener wrote: > On Fri, 16 Feb 2024, Thomas Schwinge wrote: >> On

Re: [PATCH] arm: Fixed C23 call compatibility with arm-none-eabi

2024-02-19 Thread Andrew Pinski
On Mon, Feb 19, 2024 at 1:14 AM Torbjörn SVENSSON wrote: > > Ok for trunk and releases/gcc-13? > Regtested on top of 945cb8490cb for arm-none-eabi, without any regression. > > Backporting to releases/gcc-13 will change -std=c23 to -std=c2x. > > -- > > In commit

Re: [PATCH v2] testsuite, arm: Fix testcase arm/pr112337.c to check for the options first

2024-02-19 Thread Saurabh Jha
On 2/9/2024 2:57 PM, Richard Earnshaw (lists) wrote: On 30/01/2024 17:07, Saurabh Jha wrote: Hey, Previously, this test was added to fix this bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112337. However, it did not check the compilation options before using them, leading to errors.

Re: [PATCH] aarch64, acle header: Cast uint64_t pointers to DIMode.

2024-02-19 Thread Richard Sandiford
Iain Sandoe writes: >> On 15 Feb 2024, at 18:05, Richard Sandiford >> wrote: >> >> Iain Sandoe writes: On 5 Feb 2024, at 14:56, Iain Sandoe wrote: Tested on aarch64-linux,darwin and a cross from aarch64-darwin to linux, OK for trunk, or some alternative is needed? >>>

[PATCH] Do not emulate vectors containing floats.

2024-02-19 Thread Juergen Christ
Fixes various test failures on s390x. gcc/ChangeLog: * tree-vect-stmts.cc (vectorizable_operation): Don't emulate floating point vectors Signed-off-by: Juergen Christ Regtested and bootstrapped on x86_64-pc-linux-gnu and s390x-ibm-linux-gnu. Okay for trunk? ---

[PATCH] arm: Fixed C23 call compatibility with arm-none-eabi

2024-02-19 Thread Torbjörn SVENSSON
Ok for trunk and releases/gcc-13? Regtested on top of 945cb8490cb for arm-none-eabi, without any regression. Backporting to releases/gcc-13 will change -std=c23 to -std=c2x. -- In commit 4fe34cdcc80ac225b80670eabc38ac5e31ce8a5a, -std=c23 support was introduced to support functions without any

Re: [PATCH] libstdc++, Darwin: Handle a linker warning [PR112397].

2024-02-19 Thread Jonathan Wakely
On Sun, 18 Feb 2024, 16:15 Iain Sandoe, wrote: > Tested on i686-darwin9, x86_64-darwin14,17,19,21,23, x86_64-linux, > aarch64-linux-gnu, > > OK for trunk? > eventual back-ports? > Yup, ok for all. thanks > Iain > > --- 8< --- > > Darwin's linker warns when we make a direct branch to code that

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-19 Thread Tamar Christina
Thanks for doing this! > -Original Message- > From: Li, Pan2 > Sent: Monday, February 19, 2024 8:42 AM > To: Richard Biener > Cc: gcc-patches@gcc.gnu.org; juzhe.zh...@rivai.ai; Wang, Yanzhang > ; kito.ch...@gmail.com; Tamar Christina > > Subject: RE: [PATCH v1] Internal-fn: Add new

RE: [PATCH v1] Internal-fn: Add new internal function SAT_ADDU

2024-02-19 Thread Li, Pan2
> There was a discussion about this back in 2021: > https://gcc.gnu.org/pipermail/gcc/2021-May/236015.html > Including a reference to the much older discussion from JSM about > fixed-point types and lowering and such: > https://gcc.gnu.org/legacy-ml/gcc-patches/2011-05/msg00846.html Thanks

  1   2   >