Re: [PATCH] Docs: Document that taint analyzer checker stops other checkers

2022-03-22 Thread Avinash Sonawane via Gcc-patches
Apologies! Forgot to attach the patch v2. Done now. >From 1d986ffd8b20007a6a2140e50935ade1bebc2228 Mon Sep 17 00:00:00 2001 From: Avinash Sonawane Date: Tue, 22 Mar 2022 07:32:44 +0530 Subject: [PATCH] Docs: Document that taint analyzer checker disables some warnings --- gcc/doc/invoke.texi |

Re: [PATCH] Docs: Document that taint analyzer checker stops other checkers

2022-03-22 Thread Avinash Sonawane via Gcc-patches
On Tue, 22 Mar 2022 19:15:02 -0400 David Malcolm wrote: > So it would be even better if the text listed the warnings that are > affected by this: basically all of the ones that are implemented in > checkers i.e. analyzer/sm-*.cc (apart from sm-taint, of course). Done! I could find 13 warnings in

Re: [PATCH] Fix ICE caused by NULL_RTX returned by lowpart_subreg.

2022-03-22 Thread Hongtao Liu via Gcc-patches
On Wed, Mar 23, 2022 at 2:05 PM liuhongt via Gcc-patches wrote: > > In validate_subreg, both (subreg:V2HF (reg:SI) 0) > and (subreg:V8HF (reg:V2HF) 0) are valid, but not > for (subreg:V8HF (reg:SI) 0) which causes ICE. > > Ideally it should be handled in validate_subreg to support > subreg for all

[PATCH] Fix ICE caused by NULL_RTX returned by lowpart_subreg.

2022-03-22 Thread liuhongt via Gcc-patches
In validate_subreg, both (subreg:V2HF (reg:SI) 0) and (subreg:V8HF (reg:V2HF) 0) are valid, but not for (subreg:V8HF (reg:SI) 0) which causes ICE. Ideally it should be handled in validate_subreg to support subreg for all modes available in TARGET_CAN_CHANGE_MODE_CLASS, but that would be too risky

Re: [PATCH]rs6000: avoid peeking eof after __vector keyword

2022-03-22 Thread Jiufu Guo via Gcc-patches
Segher Boessenkool writes: > Hi! > > On Tue, Mar 22, 2022 at 01:50:39PM +0800, Jiufu Guo wrote: >> Segher Boessenkool writes: >> > On Mon, Mar 21, 2022 at 02:14:08PM -0400, David Edelsohn wrote: >> >> On Mon, Mar 21, 2022 at 5:13 AM Jiufu Guo wrote: >> >> > There is a rare corner case: where __

[PATCH] c++: FIX_TRUNC_EXPR in tsubst [PR102990]

2022-03-22 Thread Marek Polacek via Gcc-patches
This is a crash where a FIX_TRUNC_EXPR gets into tsubst_copy_and_build where it hits gcc_unreachable (). The history of tsubst_copy_and_build/FIX_TRUNC_EXPR is such that it was introduced in r181478, but it did the wrong thing, whereupon it was turned into gcc_unreachable () in r258821 (see this t

Re: [PATCH] Docs: Document that taint analyzer checker stops other checkers

2022-03-22 Thread David Malcolm via Gcc-patches
On Tue, 2022-03-22 at 23:43 +0530, Avinash Sonawane via Gcc-patches wrote: > Hello! > > $ man gcc says that "Some checkers are disabled by default (even with > -fanalyzer), such as the "taint" checker that implements > -Wanalyzer-tainted-array-index, and this option is required to enable > them."

Re: [PATCH] c++: Fall through for arrays of T vs T cv [PR104996]

2022-03-22 Thread Marek Polacek via Gcc-patches
On Tue, Mar 22, 2022 at 08:39:21PM +, Ed Catmur wrote: > If two arrays do not have the exact same element type including > qualification, this could be e.g. f(int (&&)[]) vs. f(int const (&)[]), which > can still be distinguished by the lvalue-rvalue tiebreaker. > > By tightening this branch

[PATCH] c++: Fall through for arrays of T vs T cv [PR104996]

2022-03-22 Thread Ed Catmur
If two arrays do not have the exact same element type including qualification, this could be e.g. f(int (&&)[]) vs. f(int const (&)[]), which can still be distinguished by the lvalue-rvalue tiebreaker. By tightening this branch (in accordance with the letter of the Standard) we fall through to

Re: [PATCH] c: -Wmissing-field-initializers and designated inits [PR82283, PR84685]

2022-03-22 Thread Joseph Myers
On Tue, 22 Mar 2022, Marek Polacek via Gcc-patches wrote: > PR c/82283 > PR c/84685 > > gcc/c/ChangeLog: > > * c-typeck.cc (struct initializer_stack): Add 'designated' member. > (start_init): Set it. > (finish_init): Restore constructor_designated. > (push_ini

[PATCH] c: -Wmissing-field-initializers and designated inits [PR82283, PR84685]

2022-03-22 Thread Marek Polacek via Gcc-patches
This patch fixes two kinds of wrong -Wmissing-field-initializers warnings. Our docs say that this warning "does not warn about designated initializers", but we give a warning for 1) the array case: struct S { struct N { int a; int b; } c[1]; } d = { .c[0].a = 1, .

[Committed] PR fortran/104999 - [12 Regression] runtime error: pointer index expression with base 0x00000cf67720 overflowed to 0xffffffffea627728

2022-03-22 Thread Harald Anlauf via Gcc-patches
Dear all, as reported by Martin Liška, a sanitized compiler hits an uninitialized stride value when simplifying CSHIFT in testcase gfortran.dg/simplify_cshift_1.f90. Committed as obvious after confirmation in the PR by Martin that the attached patch fixes the issue. commit r12-7771-g774ab2edcb5f3

[wwwdocs] [PATCH 4/4] contribute: Fix various typos

2022-03-22 Thread Pokechu22 via Gcc-patches
--- htdocs/contribute.html | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/contribute.html b/htdocs/contribute.html index c0223738..2d04b1f0 100644 --- a/htdocs/contribute.html +++ b/htdocs/contribute.html @@ -267,7 +267,7 @@ characters. The classifier identifi

[wwwdocs] [PATCH 3/4] codingrationale: Fix various typos

2022-03-22 Thread Pokechu22 via Gcc-patches
--- htdocs/codingrationale.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/codingrationale.html b/htdocs/codingrationale.html index 0b44f1da..f523f3e2 100644 --- a/htdocs/codingrationale.html +++ b/htdocs/codingrationale.html @@ -18,7 +18,7 @@ Inlining funct

[wwwdocs] [PATCH 2/4] codingconventions: Fix various typos

2022-03-22 Thread Pokechu22 via Gcc-patches
--- htdocs/codingconventions.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/codingconventions.html b/htdocs/codingconventions.html index e4d30510..86b63b89 100644 --- a/htdocs/codingconventions.html +++ b/htdocs/codingconventions.html @@ -141,7 +141,7 @@ a la

[wwwdocs] [PATCH 1/4] branch-closing: Fix various typos

2022-03-22 Thread Pokechu22 via Gcc-patches
--- htdocs/branch-closing.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/branch-closing.html b/htdocs/branch-closing.html index c36ad1ab..15fb90e3 100644 --- a/htdocs/branch-closing.html +++ b/htdocs/branch-closing.html @@ -54,7 +54,7 @@ is listed in "Known to work

[wwwdocs] [PATCH 0/4] Fix various typos

2022-03-22 Thread Pokechu22 via Gcc-patches
While working on a separate patch, I found several typos on the website. I have only looked within the htdocs directory, not its subdirectories. These are individual patches per file, since that seemed reasonable to me. I believe this is a small enough change that I do not need to go through copy

Re: [PATCH] c++: alias template arguments are evaluated [PR101906]

2022-03-22 Thread Patrick Palka via Gcc-patches
On Tue, 22 Mar 2022, Patrick Palka wrote: > Here we're neglecting to clear cp_unevaluated_operand when substituting > into the arguments of the alias template-id skip<(T(), 0), T> with T=A, > which means cp_unevaluated_operand remains set during mark_used for > A::A() and so we never synthesize it

[PATCH] Docs: Document that taint analyzer checker stops other checkers

2022-03-22 Thread Avinash Sonawane via Gcc-patches
Hello! $ man gcc says that "Some checkers are disabled by default (even with -fanalyzer), such as the "taint" checker that implements -Wanalyzer-tainted-array-index, and this option is required to enable them." but still lists the -Wanalyzer-tainted-* checkers under -fanalyzer saying "Enabling thi

[PATCH] c++: alias template arguments are evaluated [PR101906]

2022-03-22 Thread Patrick Palka via Gcc-patches
Here we're neglecting to clear cp_unevaluated_operand when substituting into the arguments of the alias template-id skip<(T(), 0), T> with T=A, which means cp_unevaluated_operand remains set during mark_used for A::A() and so we never synthesize it. Later constant evaluation for the substituted te

Re: [PATCH] libstdc++-v3 testsuite: Call fesetround(FE_DOWNWARD) only if defined

2022-03-22 Thread Jonathan Wakely via Gcc-patches
On Tue, 22 Mar 2022 at 15:48, Hans-Peter Nilsson via Libstdc++ wrote: > > Ok to commit? OK, thanks. > > - 8< - > > Without this, for a typical soft-float target such as cris-elf, after > commit r12-7676-g5a4e208022e704 you'll see, in libstdc++.log: > ... > FAIL: 20_util/from_chars/6.cc

Re: [Patch] LTO: Fixes for renaming issues with offload/OpenMP [PR104285]

2022-03-22 Thread Tobias Burnus
Hi Jakub, hi Richi, On 22.03.22 15:27, Jakub Jelinek wrote: On Tue, Mar 22, 2022 at 01:56:27PM +0100, Tobias Burnus wrote: name = lto_get_decl_name_mapping (file_data, name); [...] + name = lto_get_decl_name_mapping (file_data, name); This looks weird. IMHO we should make sure that the h

[PATCH] libstdc++-v3 testsuite: Call fesetround(FE_DOWNWARD) only if defined

2022-03-22 Thread Hans-Peter Nilsson via Gcc-patches
Ok to commit? - 8< - Without this, for a typical soft-float target such as cris-elf, after commit r12-7676-g5a4e208022e704 you'll see, in libstdc++.log: ... FAIL: 20_util/from_chars/6.cc (test for excess errors) Excess errors: /home/hp/tmp/auto0321/gcc/libstdc++-v3/testsuite/20_util/from_

Re: [PATCH] rs6000: update error message format.

2022-03-22 Thread Segher Boessenkool
On Tue, Mar 22, 2022 at 01:39:12PM +0100, Martin Liška wrote: > Pushed to master as obvious. An obvious what? It is not an improvement, just a change. > - error ("unknown vectorization library ABI type (%qs) for " > + error ("unknown vectorization library ABI type %qs for " >

Re: [PATCH] rs6000: wrap const in an error message.

2022-03-22 Thread Segher Boessenkool
On Tue, Mar 22, 2022 at 01:50:09PM +0100, Martin Liška wrote: > Pushed as obvious. > - warning (0, "passing argument %d of %qE discards const qualifier > " > - "from pointer target type", n + 1, fndecl); > + warning (0, "passing argument %d of %qE discards % " >

[committed] testsuite: Add testcase for already fixed PR [PR102489]

2022-03-22 Thread Jakub Jelinek via Gcc-patches
Hi! This got broken with r12-3529 and fixed with r12-5255. Tested on x86_64-linux, committed to trunk as obvious. 2022-03-22 Jakub Jelinek PR c++/102489 * g++.dg/coroutines/pr102489.C: New test. --- gcc/testsuite/g++.dg/coroutines/pr102489.C.jj 2022-03-22 15:34:00.372

[PATCH] arm: Revert Auto-vectorization for MVE: add pack/unpack patterns PR target/104882

2022-03-22 Thread Christophe Lyon via Gcc-patches
This reverts commit r12-1434-g046a3beb1673bf to fix PR target/104882. As discussed in the PR, it turns out that the MVE ISA has no natural mapping with GCC's vec_pack_trunc / vec_unpack standard patterns, unlike Neon or SVE for instance. This patch also adds the executable testcase provided in th

Re: [PATCH v2] x86: Also check _SOFT_FLOAT in

2022-03-22 Thread H.J. Lu via Gcc-patches
On Thu, Mar 17, 2022 at 8:05 AM H.J. Lu wrote: > > On Mon, Mar 14, 2022 at 7:31 AM H.J. Lu wrote: > > > > Push target("general-regs-only") in if x87 is enabled. > > > > gcc/ > > > > PR target/104890 > > * config/i386/x86gprintrin.h: Also check _SOFT_FLOAT before > > pushi

Re: [PATCH v3] x86: Disable SSE in ISA2 for -mgeneral-regs-only

2022-03-22 Thread H.J. Lu via Gcc-patches
On Mon, Mar 21, 2022 at 2:59 PM Uros Bizjak wrote: > > On Mon, Mar 21, 2022 at 10:57 PM H.J. Lu wrote: > > > > On Mon, Mar 21, 2022 at 10:50:11PM +0100, Uros Bizjak wrote: > > > On Mon, Mar 21, 2022 at 10:47 PM H.J. Lu wrote: > > > > > > > > On Mon, Mar 21, 2022 at 10:23:59PM +0100, Uros Bizjak

Re: [Patch] LTO: Fixes for renaming issues with offload/OpenMP [PR104285]

2022-03-22 Thread Jakub Jelinek via Gcc-patches
On Tue, Mar 22, 2022 at 01:56:27PM +0100, Tobias Burnus wrote: > --- a/gcc/cgraph.cc > +++ b/gcc/cgraph.cc > @@ -3980,6 +3980,9 @@ cgraph_node::get_untransformed_body () > >/* We may have renamed the declaration, e.g., a static function. */ >name = lto_get_decl_name_mapping (file_data, n

Re: [PATCH]rs6000: avoid peeking eof after __vector keyword

2022-03-22 Thread Segher Boessenkool
Hi! On Tue, Mar 22, 2022 at 01:50:39PM +0800, Jiufu Guo wrote: > Segher Boessenkool writes: > > On Mon, Mar 21, 2022 at 02:14:08PM -0400, David Edelsohn wrote: > >> On Mon, Mar 21, 2022 at 5:13 AM Jiufu Guo wrote: > >> > There is a rare corner case: where __vector is followed only with ";" > >>

Re: [pushed] c++: designated init and aggregate members [PR102337]

2022-03-22 Thread Patrick Palka via Gcc-patches
On Mon, 21 Mar 2022, Jason Merrill via Gcc-patches wrote: > Our C++20 designated initializer handling was broken with members of class > type; we would find the relevant member and then try to find a member of > the member with the same name. Or we would sometimes ignore the designator > entirely

[committed][nvptx] Use '%' as register prefix

2022-03-22 Thread Tom de Vries via Gcc-patches
Hi, The percentage sign as first character of a ptx identifier can be used to avoid name conflicts, e.g., between user-defined variable names and compiler-generated names. The insn nvptx_uniform_warp_check contains register names without '%' prefix, which potentially could lead to name conflicts

[committed][nvptx] Limit HFmode support to mexperimental

2022-03-22 Thread Tom de Vries via Gcc-patches
Hi, With PR104489 still open and end-of-stage-4 approaching, classify HFmode support as experimental, which is not enabled by default but can be enabled using -mexperimental. This fixes the nvptx build when the default sm_xx is set to sm_53 or higher. Note that we're not using -mfp16 or some suc

[committed][nvptx] Add mexperimental

2022-03-22 Thread Tom de Vries via Gcc-patches
Hi, Add new option -mexperimental. This allows, rather than developing a new feature to completion in a development branch, to develop a new feature on trunk, without disturbing trunk. The equivalent of the feature branch merge then becomes making the functionality available for -mno-experimenta

[committed][nvptx] Use .alias directive for mptx >= 6.3

2022-03-22 Thread Tom de Vries via Gcc-patches
Hi, Starting with ptx isa version 6.3, a ptx directive .alias is available. Use this directive to support symbol aliases, as far as possible. The alias support is off by default. It can be turned on using a switch -malias. Furthermore, for pre-sm_75, it's not effective unless the ptx version is

[committed][nvptx] Add warp sync at simt exit

2022-03-22 Thread Tom de Vries via Gcc-patches
Hi, Consider this code (with N defined to 1024): ... float v = 0.0; #pragma omp target map(tofrom: v) #pragma omp parallel for simd for (int i = 0 ; i < N; i++) { #pragma omp atomic update v = v + 1.0; } ... It hangs when executing on target board unix/-foffload=-misa=

[PATCH] tree-optimization/105012 - fix ICE from local DSE of if-conversion

2022-03-22 Thread Richard Biener via Gcc-patches
The following guards dse_classify_store with the same condition as the DSE pass does - availability of a virtual definition. For the PR we run into the fortran frontend generating a clobber for a FUNCTION_DECL lhs which is ignored by the operand scanner and has no virtual operands assigned. Apart

[Patch] LTO: Fixes for renaming issues with offload/OpenMP [PR104285]

2022-03-22 Thread Tobias Burnus
This patch fixes some same-local-name issues with offloading. The first issue can also occur with -flto with -foffload=disable (I think). Otherwise, all three issues apply to the non-host lto1 run (defined ACCEL_COMPILER). First, for omp declare link(var), a variable is declared based on DECL

[PATCH] nvptx: fix wrapping in an error message.

2022-03-22 Thread Martin Liška
Pushed to master as obvious. Martin PR target/104902 gcc/ChangeLog: * config/nvptx/nvptx.cc (handle_ptx_version_option): Fix option wrapping in an error message. --- gcc/config/nvptx/nvptx.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/c

Re: [PATCH] rs6000: wrap const in an error message.

2022-03-22 Thread Martin Liška
On 3/22/22 13:50, Martin Liška wrote: +warning (0, "passing argument %d of %qE discards %  " I've just installed version only with one space. Sorry for noise. Martin

[PATCH] rs6000: wrap const in an error message.

2022-03-22 Thread Martin Liška
Pushed as obvious. Martin PR target/104903 gcc/ChangeLog: * config/rs6000/rs6000-c.cc (altivec_resolve_overloaded_builtin): Wrap const keyword. --- gcc/config/rs6000/rs6000-c.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/rs6000/r

[PATCH] v850: fix typo in pragma name

2022-03-22 Thread Martin Liška
Pushed as obvious. Martin PR target/104904 gcc/ChangeLog: * config/v850/v850-c.cc (pop_data_area): Fix typo in pragma name. --- gcc/config/v850/v850-c.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/v850/v850-c.cc b/gcc/config/v850/v850-

[PATCH] i386: update error message format.

2022-03-22 Thread Martin Liška
Pushed to master as obvious. Use '%qs' instead of '(%qs)'. gcc/ChangeLog: * config/i386/i386-options.cc (ix86_option_override_internal): Use '%qs' instead of '(%qs)'. gcc/testsuite/ChangeLog: * gcc.target/i386/pr99753.c: Update test. * gcc.target/i386/spellch

[PATCH] rs6000: update error message format.

2022-03-22 Thread Martin Liška
Pushed to master as obvious. PR target/104898 gcc/ChangeLog: * config/rs6000/rs6000.cc (rs6000_option_override_internal): Use %qs instead of (%qs). --- gcc/config/rs6000/rs6000.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/rs6000/rs60

[PATCH] aarch64: update error message format.

2022-03-22 Thread Martin Liška
Pushed to master. Martin Use 'qs' and remove usage '(%qs)'. PR target/104898 gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_handle_attr_arch): Use 'qs' and remove usage '(%qs)'. (aarch64_handle_attr_cpu): Likewise. (aarch64_handle_attr_tune): Likew

Re: [PATCH v9 00/12] Add LoongArch support.

2022-03-22 Thread Richard Sandiford via Gcc-patches
chenglulu writes: > Hi, all: > > This is the v9 version of LoongArch Port based on > 9fc8f278ebebc57537dc0cb9d33e36d932be0bc3. > Please review. Thanks for the update. I've sent follows-up for parts 4, 6, 11 and 12, but otherwise v9 addresses all the comments I had. The series LGTM with those i

Re: [PATCH v9 12/12] LoongArch Port: Add doc.

2022-03-22 Thread Richard Sandiford via Gcc-patches
chenglulu writes: > +@item -msmall-data-limit=@var{number} > +@opindex -msmall-data-limit > +Put global and static data smaller than @code{number} bytes into a special > +section (on some targets). The default value is 0. One minor left-over from v8: this should be @var{number} rather than @code

Re: [PATCH v9 11/12] LoongArch Port: gcc/testsuite

2022-03-22 Thread Richard Sandiford via Gcc-patches
chenglulu writes: > diff --git a/gcc/testsuite/lib/target-supports.exp > b/gcc/testsuite/lib/target-supports.exp > index 737e1a8913b..843b508b010 100644 > --- a/gcc/testsuite/lib/target-supports.exp > +++ b/gcc/testsuite/lib/target-supports.exp > @@ -286,6 +286,10 @@ proc check_configured_with {

Re: [PATCH v9 06/12] LoongArch Port: Builtin functions.

2022-03-22 Thread Richard Sandiford via Gcc-patches
Hi, Thanks for the update. It looks like there are some unaddressed comments from the v8 review: chenglulu writes: > gcc/ > > * config/loongarch/larchintrin.h: New file. > * config/loongarch/loongarch-builtins.cc: New file. > --- > gcc/config/loongarch/larchintrin.h | 409 +

Re: [PATCH] lto-plugin: Use GNU ld or Solaris ld version script in preference to -export-symbols-regex [PR102426]

2022-03-22 Thread Richard Biener via Gcc-patches
> Am 22.03.2022 um 10:28 schrieb Rainer Orth : > > Hi Jakub, > >> As reported, libtool -export-symbols-regex doesn't work on Solaris >> when using GNU ld instead of Sun ld, libtool just always assumes Sun ld. >> As I'm unsure what is the maintainance status of libtool right now, > > as it ha

Re: [PATCH] lto-plugin: Use GNU ld or Solaris ld version script in preference to -export-symbols-regex [PR102426]

2022-03-22 Thread Rainer Orth
Hi Jakub, > As reported, libtool -export-symbols-regex doesn't work on Solaris > when using GNU ld instead of Sun ld, libtool just always assumes Sun ld. > As I'm unsure what is the maintainance status of libtool right now, as it happens, libtool 2.4.7 has just been released on 2022-03-16 after a

[PATCH] lto-plugin: Use GNU ld or Solaris ld version script in preference to -export-symbols-regex [PR102426]

2022-03-22 Thread Jakub Jelinek via Gcc-patches
Hi! As reported, libtool -export-symbols-regex doesn't work on Solaris when using GNU ld instead of Sun ld, libtool just always assumes Sun ld. As I'm unsure what is the maintainance status of libtool right now, this patch solves it on the lto-plugin side instead, tests at configure time similar w

Re: [PATCH v2] Add TARGET_MOVE_WITH_MODE_P

2022-03-22 Thread Richard Biener via Gcc-patches
On Tue, Mar 22, 2022 at 3:51 AM H.J. Lu wrote: > > On Mon, Mar 14, 2022 at 8:44 AM Richard Sandiford > wrote: > > > > Richard Biener writes: > > > On Wed, Mar 9, 2022 at 7:04 PM Richard Sandiford > > > wrote: > > >> > > >> Richard Biener via Gcc-patches writes: > > >> > On Wed, Mar 2, 2022 at

Re: [committed] testsuite: Add testcase for no longer failing PR [PR102645]

2022-03-22 Thread Richard Biener via Gcc-patches
On Tue, 22 Mar 2022, Jakub Jelinek wrote: > Hi! > > This test started ICEing with r12-3876 but stopped with r12-5264. > > Committed to trunk as obvious. > > Can we close the PR (are the unroll-and-jam bugs if any are latent) tracked > elsewhere? I think we can close the bug, I don't think ther

[committed] testsuite: Add testcase for no longer failing PR [PR102645]

2022-03-22 Thread Jakub Jelinek via Gcc-patches
Hi! This test started ICEing with r12-3876 but stopped with r12-5264. Committed to trunk as obvious. Can we close the PR (are the unroll-and-jam bugs if any are latent) tracked elsewhere? 2022-03-22 Jakub Jelinek PR tree-optimization/102645 * gcc.c-torture/compile/pr102645.c

[PATCH] c++: extern thread_local declarations in constexpr [PR104994]

2022-03-22 Thread Jakub Jelinek via Gcc-patches
Hi! C++14 to C++20 apparently should allow extern thread_local declarations in constexpr functions, however useless they are there (because accessing such vars is not valid in a constant expression, perhaps sizeof/decltype). P2242 changed that for C++23 to passing through declaration but https://c

Re: [PATCH] calls: Fix error recovery after sorry differently [PR104989]

2022-03-22 Thread Richard Biener via Gcc-patches
On Tue, 22 Mar 2022, Jakub Jelinek wrote: > Hi! > > On Mon, Feb 28, 2022 at 07:52:56AM -, Roger Sayle wrote: > > This patch resolves PR c++/84964 which is an ICE in the middle-end after > > emitting a "sorry, unimplemented" message, and is a regression from > > earlier releases of GCC. This

[PATCH] calls: Fix error recovery after sorry differently [PR104989]

2022-03-22 Thread Jakub Jelinek via Gcc-patches
Hi! On Mon, Feb 28, 2022 at 07:52:56AM -, Roger Sayle wrote: > This patch resolves PR c++/84964 which is an ICE in the middle-end after > emitting a "sorry, unimplemented" message, and is a regression from > earlier releases of GCC. This issue is that after encountering a > function call requ

Re: [PATCH] [i386] Extend splitter pattern to reversed condition by swapping then and else rtx. [PR target/104982]

2022-03-22 Thread Uros Bizjak via Gcc-patches
On Mon, Mar 21, 2022 at 2:08 PM liuhongt via Gcc-patches wrote: > > Failed to match this instruction: > (set (reg/v:SI 88 [ z ]) > (if_then_else:SI (eq (zero_extract:SI (reg:SI 92) > (const_int 1 [0x1]) > (zero_extend:SI (subreg:QI (reg:SI 93) 0))) >