[PATCH] Add x86_64-gnu target to contrib/config-list.mk

2023-02-01 Thread Flavio Cruz via Gcc-patches
contrib/ChangeLog: * config-list.mk: Add x86_64-gnu to list of archs. Signed-off-by: Flavio Cruz --- contrib/config-list.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/config-list.mk b/contrib/config-list.mk index 20b8f4a196f..661b11c9bbd 100644 ---

Re: [PATCH] x86: Use DW_EH_PE_indirect|DW_EH_PE_pcrel encodings for -fno-pic code

2023-02-01 Thread Fangrui Song via Gcc-patches
> The above is incorrectly formatted, the GCC Coding Conventions say || etc. shouldn't be at the end of lines, but rather at the start of the next ones. Ack. > And, while I can understand the rationale for global cases > (though am not sure I agree, as currently the user can choose > by using

[PATCH v5] [RISCV] Add 'Zfa' extension according to riscv-isa-manual

2023-02-01 Thread Jin Ma via Gcc-patches
This patch adds the 'Zfa' extension for riscv, which is based on: ( https://github.com/riscv/riscv-isa-manual/commit/d74d99e22d5f68832f70982d867614e2149a3bd7 ) latest 'Zfa' change on the master branch of the RISC-V ISA Manual as of this writing. The Wiki Page (details): (

Re: Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-01 Thread juzhe.zh...@rivai.ai
Yeah, Thanks. You are right. CSE should do the job. Now I know the reason CSE failed to optimize is I include VL_REGNUM(66)/VTYPE_RENUM(67) hard reg as the dependency of pred_broadcast: (insn 19 18 20 4 (set (reg:VNx1DI 152) > (if_then_else:VNx1DI (unspec:VNx1BI [ >

[PATCH] [vect] Don't peel nonlinear iv(mult or shift) for epilog when vf is not constant.

2023-02-01 Thread liuhongt via Gcc-patches
Normally when vf is not constant, it will be prevented by vectorizable_nonlinear_inductions, but for this case, it failed going into if (STMT_VINFO_RELEVANT_P (stmt_info)) { need_to_vectorize = true; if (STMT_VINFO_DEF_TYPE (stmt_info) == vect_induction_def &&

Re: [pushed] analyzer: fix uses of alloca in testsuite

2023-02-01 Thread NightStrike via Gcc-patches
On Tue, Jan 31, 2023 at 9:27 PM David Malcolm wrote: > > Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu. > Pushed to trunk as r13-5615-gd03ae4be2c6d48. > > gcc/testsuite/ChangeLog: > * gcc.dg/analyzer/call-summaries-2.c: Add > dg-require-effective-target alloca. >

[pushed] libstdc++: Switch a www.open-std.org link to https

2023-02-01 Thread Gerald Pfeifer
Pushed. Gerald libstdc++-v3/ChangeLog: * doc/xml/manual/using_exceptions.xml: Update a www.open-std.org link to https. * doc/html/manual/using_exceptions.html: Regenerate. --- libstdc++-v3/doc/html/manual/using_exceptions.html | 2 +-

[pushed] wwwdocs: frontends: Switch www.modula3.org to https

2023-02-01 Thread Gerald Pfeifer
Business as usual. Pushed. Gerald --- htdocs/frontends.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/frontends.html b/htdocs/frontends.html index 8e38838a..12af359b 100644 --- a/htdocs/frontends.html +++ b/htdocs/frontends.html @@ -48,7 +48,7 @@ the GCC trunk.

[pushed] libstdc++: Fix link to online GDB manual

2023-02-01 Thread Gerald Pfeifer
What a difference a slash can make. (I'm pretty sure that same link originally worked; someone somehow somewhen probably changed something on the web server.) Pushed. Gerald libstdc++-v3/ChangeLog: * doc/xml/manual/debug.xml: Fix link to online GDB manual. *

Re: [PATCH 0/6] PowerPC Dense Math prelimary support (-mcpu=future)

2023-02-01 Thread Segher Boessenkool
On Tue, Jan 31, 2023 at 10:31:03PM -0500, Michael Meissner wrote: > Ok, I tracked down the source of the bug. The CCP pass is depending on the > precision field. Unfortunately in tree-core.h, the precision is a 10 integer > bit field, so 1,024 will become 0. > > Having a 0 precision meant that

[pushed] wwwdocs: readings: Update Nios II reference

2023-02-01 Thread Gerald Pfeifer
Pushed. Gerald --- htdocs/readings.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/readings.html b/htdocs/readings.html index 6e640af1..4bad7e26 100644 --- a/htdocs/readings.html +++ b/htdocs/readings.html @@ -231,7 +231,7 @@ names. Nios II Manufacturer:

Re: [PATCH] libstdc++ testsuite: Correct S0 in std/time/hh_mm_ss/1.cc

2023-02-01 Thread Hans-Peter Nilsson via Gcc-patches
> From: Jonathan Wakely > Date: Wed, 1 Feb 2023 18:19:09 +0100 > On Wed, 1 Feb 2023 at 16:01, Jonathan Wakely wrote: > > > > On Wed, 1 Feb 2023 at 14:38, Hans-Peter Nilsson via Libstdc++ > > wrote: > > > > > > Tested cris-elf and native x86_64-pc-linux-gnu. > > > Ok to commit? > > > > OK,

[committed] libstdc++: Fix std::random_device for avr

2023-02-01 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux, built on avr and msp430-elf. This should be backported to the affected branches. -- >8 -- This fixes a build failure that affects avr, but could affect other targets in theory. The _M_fini function should not try to use ::open or ::fopen if _GLIBCXX_USE_DEV_RANDOM is not

[committed] libstdc++: Fix build failures for avr

2023-02-01 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux, built on avr and msp430-elf. This should be backported to the branches where avr fails to build with --enable-libstdcxx due to these problems. -- >8 -- The abr-libc does not define EOVERFLOW, which means that std::errc::value_too_large is not defined, and so cannot be

[committed] libstdc++: Do not embed tzdata.zi for 8-bit and 16-bit targets

2023-02-01 Thread Jonathan Wakely via Gcc-patches
The embedded tzdata.zi causes new build failures for small targets. Tested x86_64-linux, built on avr and msp430-elf. -- >8 -- The string literal containing the static tzdata.zi information is too large for some targets, so do not enable it by default for avr-*-* and msp430-*-*.

[PATCH, committed] Fortran: error recovery on invalid array section [PR108609]

2023-02-01 Thread Harald Anlauf via Gcc-patches
Dear all, the fix for PR108527 came with a testcase that revealed a latent bug with array sections and invalid array declarations. The ICE first popped up on powerpc64-linux-gnu (big endian), but the issue was not so clear as such on x86_64-pc-linux-gnu, as it did not show up e.g. in valgrind.

Re: [PATCH 2/2] Documentation Update.

2023-02-01 Thread Qing Zhao via Gcc-patches
> On Feb 1, 2023, at 1:57 PM, Siddhesh Poyarekar wrote: > > On 2023-02-01 13:24, Qing Zhao wrote: >>> On Feb 1, 2023, at 11:55 AM, Siddhesh Poyarekar wrote: >>> >>> On 2023-01-31 09:11, Qing Zhao wrote: Update documentation to clarify a GCC extension on structure with flexible

Re: [PATCH 2/2] Documentation Update.

2023-02-01 Thread Siddhesh Poyarekar
On 2023-02-01 13:24, Qing Zhao wrote: On Feb 1, 2023, at 11:55 AM, Siddhesh Poyarekar wrote: On 2023-01-31 09:11, Qing Zhao wrote: Update documentation to clarify a GCC extension on structure with flexible array member being nested in another structure. gcc/ChangeLog: *

Re: [PATCH 2/2] Documentation Update.

2023-02-01 Thread Qing Zhao via Gcc-patches
> On Feb 1, 2023, at 11:55 AM, Siddhesh Poyarekar wrote: > > On 2023-01-31 09:11, Qing Zhao wrote: >> Update documentation to clarify a GCC extension on structure with >> flexible array member being nested in another structure. >> gcc/ChangeLog: >> * doc/extend.texi: Document GCC

Re: [PATCH 1/2] Handle component_ref to a structre/union field including flexible array member [PR101832]

2023-02-01 Thread Qing Zhao via Gcc-patches
Siddhesh, Thanks. I will update the testing case per your change. Qing > On Feb 1, 2023, at 11:48 AM, Siddhesh Poyarekar wrote: > > On 2023-01-31 09:11, Qing Zhao wrote: >> GCC extension accepts the case when a struct with a flexible array member >> is embedded into another struct (possibly

Re: [PATCH] Add support for x86_64-*-gnu-* targets to build x86_64 gnumach/hurd

2023-02-01 Thread Jan-Benedict Glaw
Hi Flávio and Thomas! On Mon, 2023-01-30 16:44:29 +0100, Thomas Schwinge wrote: > On 2023-01-27T21:15:01-0500, Flávio Cruz wrote: > > Not sure what happened, but here's the patch as an attachment. Thanks for > > your patience. > > Thanks, that worked. Without any changes now pushed to master

[PATCH] PR tree-optimization/107570 - Reset SCEV after folding in VRP.

2023-02-01 Thread Andrew MacLeod via Gcc-patches
We can reset SCEV after we fold, then SCEVs cache shouldn't have anything in it when we go to remove ssa-names in remove_unreachable(). We were resetting it later sometimes if we were processing the array bounds warning, so I removed that call and just always reset it now. Bootstraps on

Re: [PATCH] libstdc++ testsuite: Correct S0 in std/time/hh_mm_ss/1.cc

2023-02-01 Thread Jonathan Wakely via Gcc-patches
On Wed, 1 Feb 2023 at 16:01, Jonathan Wakely wrote: > > On Wed, 1 Feb 2023 at 14:38, Hans-Peter Nilsson via Libstdc++ > wrote: > > > > Tested cris-elf and native x86_64-pc-linux-gnu. > > Ok to commit? > > OK, thanks. We could add the [[no_unique_address]] attribute to the _M_ss member, so that

Re: [PATCH 2/2] Documentation Update.

2023-02-01 Thread Siddhesh Poyarekar
On 2023-01-31 09:11, Qing Zhao wrote: Update documentation to clarify a GCC extension on structure with flexible array member being nested in another structure. gcc/ChangeLog: * doc/extend.texi: Document GCC extension on a structure containing a flexible array member to be a

Re: [PATCH 1/2] Handle component_ref to a structre/union field including flexible array member [PR101832]

2023-02-01 Thread Siddhesh Poyarekar
On 2023-01-31 09:11, Qing Zhao wrote: GCC extension accepts the case when a struct with a flexible array member is embedded into another struct (possibly recursively). __builtin_object_size should treat such struct as flexible size per -fstrict-flex-arrays. PR tree-optimization/101832

[committed v2] testsuite: Run __bos tests to completion

2023-02-01 Thread Siddhesh Poyarekar
Instead of failing on first error, run all __builtin_object_size and __builtin_dynamic_object_size tests to completion and then provide a summary of which tests failed. gcc/testsuite/ChangeLog: * gcc.dg/builtin-dynamic-object-size-0.c: Move FAIL and nfail into... *

Re: [aarch64] Use dup and zip1 for interleaving elements in initializing vector

2023-02-01 Thread Richard Sandiford via Gcc-patches
Prathamesh Kulkarni writes: > On Thu, 12 Jan 2023 at 21:21, Richard Sandiford > wrote: >> >> Prathamesh Kulkarni writes: >> > On Tue, 6 Dec 2022 at 07:01, Prathamesh Kulkarni >> > wrote: >> >> >> >> On Mon, 5 Dec 2022 at 16:50, Richard Sandiford >> >> wrote: >> >> > >> >> > Richard Sandiford

Re: [pushed] wwwdocs: readings: Remove Herman D. Knoble's Fortran Resources

2023-02-01 Thread David Malcolm via Gcc-patches
On Wed, 2023-02-01 at 10:56 +0100, Gerald Pfeifer wrote: > The original page is gone, and search engines did not reveal a new > location. > > If any of you has a new location, feel free to add that (or let me > know and I'll take care). FWIW the most recent version in archive.org is here:

Re: [PATCH] libstdc++ testsuite: Correct S0 in std/time/hh_mm_ss/1.cc

2023-02-01 Thread Jonathan Wakely via Gcc-patches
On Wed, 1 Feb 2023 at 14:38, Hans-Peter Nilsson via Libstdc++ wrote: > > Tested cris-elf and native x86_64-pc-linux-gnu. > Ok to commit? OK, thanks.

[PATCH] amdgcn: Add instruction pattern for conditional shift operations

2023-02-01 Thread Paul-Antoine Arras
This patch introduces an instruction pattern for conditional shift operations (cond_{ashl|ashr|lshr}) in the GCN machine description. Tested on GCN3 Fiji gfx803. OK to commit? -- PA From e9c974670e8d37f725098eea97e22be5e2e9fd21 Mon Sep 17 00:00:00 2001 From: Paul-Antoine Arras Date: Wed, 1 Feb

Re: Remove support for Intel MIC offloading (was: [PATCH] Remove dead code.)

2023-02-01 Thread Martin Jambor
Hello, On Thu, Oct 20 2022, Richard Biener via Gcc-patches wrote: >> Am 20.10.2022 um 14:41 schrieb Jakub Jelinek via Gcc-patches >> : >> >> On Thu, Oct 20, 2022 at 12:33:28PM +, Michael Matz wrote: >>> Hey, >>> On Thu, 20 Oct 2022, Thomas Schwinge wrote: This had been

Re: [PATCH] ipa: silent -Wodr notes with -w

2023-02-01 Thread Martin Liška
On 2/1/23 15:26, Martin Jambor wrote: Hi, On Fri, Dec 02 2022, Martin Liška wrote: If -w is used, warn_odr properly sets *warned = false and so it should be preserved when calling warn_types_mismatch. Noticed that during a LTO reduction where I used -w. Patch can bootstrap on

[PATCH] libstdc++ testsuite: Correct S0 in std/time/hh_mm_ss/1.cc

2023-02-01 Thread Hans-Peter Nilsson via Gcc-patches
Tested cris-elf and native x86_64-pc-linux-gnu. Ok to commit? -8< -- For targets where the ABI mandates structure layout that has no padding, like cris-elf, this test started failing when introduced as an add-on to the existing 1.cc, thereby effectively causing a regression in testsuite

Re: [PATCH] ipa: silent -Wodr notes with -w

2023-02-01 Thread Martin Jambor
Hi, On Fri, Dec 02 2022, Martin Liška wrote: > If -w is used, warn_odr properly sets *warned = false and > so it should be preserved when calling warn_types_mismatch. > > Noticed that during a LTO reduction where I used -w. > > Patch can bootstrap on x86_64-linux-gnu and survives regression

Re: [PATCH 1/2] Handle component_ref to a structre/union field including flexible array member [PR101832]

2023-02-01 Thread Qing Zhao via Gcc-patches
> On Feb 1, 2023, at 6:41 AM, Richard Biener wrote: > > On Tue, 31 Jan 2023, Qing Zhao wrote: > >> GCC extension accepts the case when a struct with a flexible array member >> is embedded into another struct (possibly recursively). >> __builtin_object_size should treat such struct as flexible

Re: [PATCH] ipa: check if cache_token != NULL before hash_set::add call

2023-02-01 Thread Martin Jambor
On Tue, Jan 24 2023, Martin Liška wrote: > We should not insert an empty value to the container. > > Patch can bootstrap on x86_64-linux-gnu and survives regression tests. > > Ready to be installed? > Thanks, > Martin > > PR ipa/108509 > > gcc/ChangeLog: > > * cgraphunit.cc

Re: [PATCH] diagnostics: fix crash with -fdiagnostics-format=json-file

2023-02-01 Thread Martin Liška
PING^2 On 1/24/23 14:34, Martin Liška wrote: PING^1 On 1/10/23 16:10, Martin Liška wrote: On 1/6/23 14:21, David Malcolm wrote: On Fri, 2023-01-06 at 12:33 +0100, Martin Liška wrote: Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Thanks for the patch. I noticed

Re: [PATCH] ipa: silent -Wodr notes with -w

2023-02-01 Thread Martin Liška
PING^5 On 1/24/23 14:34, Martin Liška wrote: PING^4 On 1/13/23 10:09, Martin Liška wrote: PING^3 On 12/22/22 13:15, Martin Liška wrote: PING^2 On 12/9/22 09:27, Martin Liška wrote: PING^1 On 12/2/22 12:27, Martin Liška wrote: If -w is used, warn_odr properly sets *warned = false and so

Re: Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-01 Thread juzhe.zh...@rivai.ai
>> I see loads of UNSPECs, that might explain why some passes do something >> and some not. That said, not sure what exactly CPROP does, the two >> pred_broadcast insns look exactly the same so CSE should CSE them? Yes, the "source" these 2 pred_broadcast the same. However, they have different

Re: Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-01 Thread Richard Biener via Gcc-patches
On Wed, 1 Feb 2023, juzhe.zh...@rivai.ai wrote: > I don't known whether CSE do the job. What I saw is CPROP do the > optimization when we have more than 1 block. > > This the RTL dump before CPROP: > > (insn 19 18 20 4 (set (reg:VNx1DI 151) > (if_then_else:VNx1DI (unspec:VNx1BI [ >

Re: Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-01 Thread juzhe.zh...@rivai.ai
I don't known whether CSE do the job. What I saw is CPROP do the optimization when we have more than 1 block. This the RTL dump before CPROP: (insn 19 18 20 4 (set (reg:VNx1DI 151) (if_then_else:VNx1DI (unspec:VNx1BI [ (const_vector:VNx1BI repeat [

Re: [PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-01 Thread Richard Biener via Gcc-patches
On Wed, 1 Feb 2023, juzhe.zh...@rivai.ai wrote: > From: Ju-Zhe Zhong > > Hi, this patch is present for GCC 14 since I understand it's not appropriate > to land it in GCC 13. > > NUM_FIXED_BLOCKS = 2 since GCC define each function has aleast 2 blocks > one is entry block, the other is exit

[PATCH] CPROP: Allow cprop optimization when the function has a single block

2023-02-01 Thread juzhe . zhong
From: Ju-Zhe Zhong Hi, this patch is present for GCC 14 since I understand it's not appropriate to land it in GCC 13. NUM_FIXED_BLOCKS = 2 since GCC define each function has aleast 2 blocks one is entry block, the other is exit block. So according this code, the function will not do cprop

Re: [og12] Fix 'omp_allocator_handle_kind' example in 'gfortran.dg/gomp/allocate-4.f90' (was: [PATCH 1/5] [gfortran] Add parsing support for allocate directive (OpenMP 5.0).)

2023-02-01 Thread Tobias Burnus
Hi Thomas, On 01.02.23 12:59, Thomas Schwinge wrote: + ! Don't do this (..., but it does pass the checks). + !$omp allocate (var1) allocator(10_omp_allocator_handle_kind) ! { dg-bogus "Expected integer expression of the 'omp_allocator_handle_kind' kind" } + allocate (var1(x)) + + !

[og12] Fix 'omp_allocator_handle_kind' example in 'gfortran.dg/gomp/allocate-4.f90' (was: [PATCH 1/5] [gfortran] Add parsing support for allocate directive (OpenMP 5.0).)

2023-02-01 Thread Thomas Schwinge
Hi! On 2022-01-13T14:53:16+, Hafiz Abid Qadeer wrote: > Currently we only make use of this directive when it is associated > with an allocate statement. These changes (or a variant thereof; haven't checked) are present on devel/omp/gcc-12 branch as commit

Re: [PATCH] ree: Fix -fcompare-debug issues in combine_reaching_defs [PR108573]

2023-02-01 Thread Richard Biener via Gcc-patches
On Wed, 1 Feb 2023, Jakub Jelinek wrote: > Hi! > > The PR78437 r7-4871 changes made combine_reaching_defs punt on > WORD_REGISTER_OPERATIONS targets if a setter of smaller than word > register has wider uses. This unfortunately breaks -fcompare-debug, > because if such a use appears only in

Re: [PATCH 1/2] Handle component_ref to a structre/union field including flexible array member [PR101832]

2023-02-01 Thread Richard Biener via Gcc-patches
On Tue, 31 Jan 2023, Qing Zhao wrote: > GCC extension accepts the case when a struct with a flexible array member > is embedded into another struct (possibly recursively). > __builtin_object_size should treat such struct as flexible size per > -fstrict-flex-arrays. > > PR

[PATCH] ree: Fix -fcompare-debug issues in combine_reaching_defs [PR108573]

2023-02-01 Thread Jakub Jelinek via Gcc-patches
Hi! The PR78437 r7-4871 changes made combine_reaching_defs punt on WORD_REGISTER_OPERATIONS targets if a setter of smaller than word register has wider uses. This unfortunately breaks -fcompare-debug, because if such a use appears only in DEBUG_INSN(s), while all other uses aren't wider than the

AArch64 bfloat16 mangling

2023-02-01 Thread Jakub Jelinek via Gcc-patches
Hi! On Mon, Jan 30, 2023 at 11:07:23PM +, Richard Sandiford wrote: > Jakub Jelinek writes: > > https://gcc.gnu.org/pipermail/gcc-patches/2022-November/605965.html > > - ABI - aarch64: Add bfloat16_t support for aarch64 (enabling it in GCC 14 > > will be harder) > > Sorry for the delay

Re: Extend fold_vec_perm to fold VEC_PERM_EXPR in VLA manner

2023-02-01 Thread Prathamesh Kulkarni via Gcc-patches
On Tue, 17 Jan 2023 at 17:24, Prathamesh Kulkarni wrote: > > On Mon, 26 Dec 2022 at 09:56, Prathamesh Kulkarni > wrote: > > > > On Tue, 13 Dec 2022 at 11:35, Prathamesh Kulkarni > > wrote: > > > > > > On Tue, 6 Dec 2022 at 21:00, Richard Sandiford > > > wrote: > > > > > > > > Prathamesh

[pushed] wwwdocs: testing: Update LAPACK links

2023-02-01 Thread Gerald Pfeifer
www.netlib.org now redirects to netlib.org. Gerald --- htdocs/testing/testing-lapack.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/testing/testing-lapack.html b/htdocs/testing/testing-lapack.html index 6416ac3e..3262d69c 100644 ---

[pushed] wwwdocs: readings: Remove Herman D. Knoble's Fortran Resources

2023-02-01 Thread Gerald Pfeifer
The original page is gone, and search engines did not reveal a new location. If any of you has a new location, feel free to add that (or let me know and I'll take care). Gerald --- htdocs/readings.html | 5 - 1 file changed, 5 deletions(-) diff --git a/htdocs/readings.html

[pushed] compare-elim: Fix an RTL checking failure

2023-02-01 Thread Richard Sandiford via Gcc-patches
find_flags_uses_in_insn used SET_SRC without first checking for a SET. This showed up as an RTL checking failure in g++.dg/torture/pr90994.C on aarch64. Tested on aarch64-linux-gnu & pushed as obvious. Richard gcc/ * compare-elim.cc (find_flags_uses_in_insn): Guard use of SET_SRC. ---

[pushed] testsuite: Fix g++.dg/gomp warnings for aarch64

2023-02-01 Thread Richard Sandiford via Gcc-patches
A couple of tweaks to make g++.dg/gomp clean on aarch64. Tested on aarch64-linux-gnu & pushed. Richard gcc/testsuite/ * g++.dg/gomp/attrs-10.C: Update warning strings for aarch64. * g++.dg/gomp/declare-simd-8.C: Add expected warning for aarch64. ---

[PATCH] arm: Fix warning in libgcc/config/arm/pr-support.c

2023-02-01 Thread Christophe Lyon via Gcc-patches
I have noticed some warnings when building GCC for arm-eabi: pr-support.c:110:7: warning: variable ‘set_pac_sp’ set but not used [-Wunused-but-set-variable] pr-support.c:109:7: warning: variable ‘set_pac’ set but not used [-Wunused-but-set-variable] This small patch avoids them by defining

[PATCH] arm: [MVE] Add missing length=8 attribute

2023-02-01 Thread Christophe Lyon via Gcc-patches
I have noticed that the "length" "8" attribute is missing in a few patterns in mve.md. gcc/ * config/arm/mve.md (mve_vabavq_p_): Add length attribute. (mve_vqshluq_m_n_s): Likewise. (mve_vshlq_m_): Likewise. (mve_vsriq_m_n_): Likewise.

[committed] c++, openmp: Handle some OMP_*/OACC_* constructs during constant expression evaluation [PR108607]

2023-02-01 Thread Jakub Jelinek via Gcc-patches
Hi! While potential_constant_expression_1 handled most of OMP_* codes (by saying that they aren't potential constant expressions), OMP_SCOPE was missing in that list. I've also added OMP_SCAN, though that is less important (similarly to OMP_SECTION it ought to appear solely inside of

Re: [aarch64] Use dup and zip1 for interleaving elements in initializing vector

2023-02-01 Thread Prathamesh Kulkarni via Gcc-patches
On Thu, 12 Jan 2023 at 21:21, Richard Sandiford wrote: > > Prathamesh Kulkarni writes: > > On Tue, 6 Dec 2022 at 07:01, Prathamesh Kulkarni > > wrote: > >> > >> On Mon, 5 Dec 2022 at 16:50, Richard Sandiford > >> wrote: > >> > > >> > Richard Sandiford via Gcc-patches writes: > >> > >

Re: [PATCH] x86: Use DW_EH_PE_indirect|DW_EH_PE_pcrel encodings for -fno-pic code

2023-02-01 Thread Jakub Jelinek via Gcc-patches
On Wed, Feb 01, 2023 at 10:01:36AM +0100, Jakub Jelinek via Gcc-patches wrote: > And, while I can understand the rationale for global cases > (though am not sure I agree, as currently the user can choose > by using -mno-direct-extern-access or not using it, the above change > disallows the

Re: [PATCH] x86: Use DW_EH_PE_indirect|DW_EH_PE_pcrel encodings for -fno-pic code

2023-02-01 Thread Jakub Jelinek via Gcc-patches
On Tue, Jan 31, 2023 at 11:38:59PM -0800, Fangrui Song via Gcc-patches wrote: > Follow aarch64 and riscv ports by using (global ? DW_EH_PE_indirect : 0) > | DW_EH_PE_pcrel for -fno-pic code. This avoids a canonical PLT entry > for a personality reference in .eh_frame and a copy relocation for a >

[PATCH 2/3] IBM zSystems: Make stack_tie to work with hard frame-pointer

2023-02-01 Thread Andreas Krebbel via Gcc-patches
With this patch a scheduling barrier is created to prevent the insn setting up the frame-pointer and instructions which save GPRs to the stack to be swapped. Otherwise broken CFI information would be generated since the stack save insns would use a base register which is not currently declared as

[PATCH 3/3] IBM zSystems: Save argument registers to the stack -mpreserve-args

2023-02-01 Thread Andreas Krebbel via Gcc-patches
This adds support for preserving the content of parameter registers to the stack and emit CFI for it. This useful for applications which want to implement their own stack unwinding and need access to function arguments without having to rely on debug information. With the -mpreserve-args option

[PATCH 1/3] New reg note REG_CFA_NORESTORE

2023-02-01 Thread Andreas Krebbel via Gcc-patches
This patch introduces a new reg note which can be used to tell the CFI verification in dwarf2cfi that a register is stored without intending to restore from it. This is useful when storing e.g. register contents to the stack and generate CFI for it although the register is not really supposed to

[Committed 0/3] IBM zSystems: Add -mpreserve-args option

2023-02-01 Thread Andreas Krebbel via Gcc-patches
This adds support for preserving the content of parameter registers to the stack and emit CFI for it. This useful for applications which want to implement their own stack unwinding and need access to function arguments without having to rely on debug information. With the -mpreserve-args option