Quote 5379163

2021-10-28 Thread Vanessa Headley
New Quotation For gcc@gcc.gnu.org Yoυ haνe a new fax docυment from Xerox Scanner. Pages 16 Full scanned PDF/ᎻTMᏞ File. Ꭱeceived2021 Remote ID 34456191 To view Quotation messages, open the attachment and login with yoυr gcc@gcc.gnu.org email to aυthenticate νieѡer and enable

[COMMITTED] tree-optimization/102940 - Reset scev before invoking array_checker.

2021-10-28 Thread Andrew MacLeod via Gcc-patches
As pointed out, we need to reset scev before invoking the array-checker in execute_ranger_vrp. Bootstrapped on x86_64-pc-linux-gnu with no regressions.  Pushed. Andrew >From d46aeb5906b8ed7ee255cfbacc5cf9d2f56b850c Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Tue, 26 Oct 2021

[Bug tree-optimization/102940] [12 Regression] ICE: Segmentation fault (in gimple_bb)

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102940 --- Comment #3 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:d46aeb5906b8ed7ee255cfbacc5cf9d2f56b850c commit r12-4773-gd46aeb5906b8ed7ee255cfbacc5cf9d2f56b850c Author: Andrew MacLeod Date:

[Bug c++/102780] Checking constraints using large fold expression is slow

2021-10-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102780 Patrick Palka changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org

[Bug c++/102933] Can't use CTAD in template argument

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102933 --- Comment #1 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:f70f17d03630fd948bc15a646ebe7e784125c4d4 commit r12-4772-gf70f17d03630fd948bc15a646ebe7e784125c4d4 Author: Patrick Palka Date:

Re: [PATCH 4/5] gcc/nios2: Define the musl linker

2021-10-28 Thread Jeff Law via Gcc-patches
On 10/27/2021 2:05 PM, Richard Purdie via Gcc-patches wrote: Add a definition of the musl linker used on the nios2 platform. 2021-10-26 Richard Purdie gcc/ChangeLog: * config/nios2/linux.h (MUSL_DYNAMIC_LINKER): Add musl linker THanks.  I've pushed this to the trunk jeff

[PATCH] vect: Add bias parameter for partial vectorization

2021-10-28 Thread Robin Dapp via Gcc-patches
Hi, as discussed in https://gcc.gnu.org/pipermail/gcc-patches/2021-October/582627.html this introduces a bias parameter for the len_load/len_store ifns as well as optabs that is meant to distinguish between Power and s390 variants. The default is a bias of 0, while in s390's case vll/vstl do not

Re: [PATCH 1/5] Makefile.in: Ensure build CPP/CPPFLAGS is used for build targets

2021-10-28 Thread Jeff Law via Gcc-patches
On 10/28/2021 1:04 AM, Richard Biener via Gcc-patches wrote: On Wed, Oct 27, 2021 at 10:10 PM Richard Purdie via Gcc-patches wrote: During cross compiling, CPP is being set to the target compiler even for build targets. As an example, when building a cross compiler targetting mingw, the

[Bug libstdc++/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 --- Comment #5 from Jonathan Wakely --- This is probably the _Temporary_value helper used by std::vector. I already have a patch to overhaul that so it works in constant expressions, so I'll fix this too

Re: [PATCH] c++: Implement C++23 P2128R6 - Multidimensional subscript operator [PR102611]

2021-10-28 Thread Jakub Jelinek via Gcc-patches
Hi! On Thu, Oct 14, 2021 at 10:26:29AM +0200, Jakub Jelinek via Gcc-patches wrote: > The following patch implements the C++23 Multidimensional subscript operator > P2128R6 paper. I'd like to ping this patch. Thanks. > 2021-10-14 Jakub Jelinek > > PR c++/102611 > gcc/ > *

[Bug libstdc++/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 --- Comment #4 from Jonathan Wakely --- (In reply to Jakub Jelinek from comment #1) > I think this is a user error, I don't think the standard allocator > guarantees such alignment, you'd need to use your own allocator for the > container. It

Re: [Version 2][Patch][PR102281]do not add BUILTIN_CLEAR_PADDING for variables that are gimple registers

2021-10-28 Thread Qing Zhao via Gcc-patches
Ping…. Hi, Based on the previous discussion, I thought that we have agreed that the proposed patch for this current bug is the correct fix. And This bug is an important bug that need to be fixed. I have created another new PR for the other potential issue with padding initialization for

[Bug c++/89695] unexpected copying of trivially copyable prvalue arguments

2021-10-28 Thread matthijsvanduin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89695 --- Comment #5 from Matthijs van Duin --- So for reference, the Itanium C++ ABI says: "A type which is trivial for the purposes of the ABI will be passed and returned according to the rules of the base C ABI, e.g. in registers; often this has

[Bug target/102783] [powerpc] FPSCR manipulations cannot be relied upon

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102783 --- Comment #10 from Richard Biener --- (In reply to jos...@codesourcery.com from comment #9) > On Tue, 19 Oct 2021, segher at gcc dot gnu.org via Gcc-bugs wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102783 > > > > --- Comment

[Bug c++/102780] Checking constraints using large fold expression is slow

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102780 --- Comment #4 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:9927ecbb42d5be48fa933adc26f8601fab5007ca commit r12-4769-g9927ecbb42d5be48fa933adc26f8601fab5007ca Author: Patrick Palka Date:

[Bug c++/102942] Implicit copy constructor not elided

2021-10-28 Thread matthijsvanduin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102942 Matthijs van Duin changed: What|Removed |Added CC||matthijsvanduin at gmail dot com

Update documentation of %X spec after 27 years

2021-10-28 Thread Eric Botcazou via Gcc-patches
The current documentation states: "%X Output the accumulated linker options specified by -Wl or a ‘%x’ spec string." The part about -Wl has been obsolete for 27 years, since this change: Author: Torbjorn Granlund Date: Thu Oct 27 18:04:25 1994 + (process_command): Handle -Wl, and

[Bug c/92164] Wrong result using builtin rint/rintf optimization in x86_64

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92164 Richard Biener changed: What|Removed |Added Resolution|--- |WORKSFORME Status|NEW

[PATCH 3/3] RISC-V: Imply info and regs limit for zfinx extension

2021-10-28 Thread jiawei
Co-Authored-By: sinan --- gcc/config/riscv/arch-canonicalize | 1 + gcc/config/riscv/constraints.md| 3 ++- gcc/config/riscv/riscv.c | 15 +-- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/gcc/config/riscv/arch-canonicalize

[PATCH 2/3] RISC-V: Target support for zfinx extension

2021-10-28 Thread jiawei
Co-Authored-By: sinan --- gcc/config/riscv/riscv-builtins.c | 4 +- gcc/config/riscv/riscv-c.c| 2 +- gcc/config/riscv/riscv.md | 72 +++ 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/gcc/config/riscv/riscv-builtins.c

[PATCH 1/3] RISC-V: Minimal support of zfinx extension

2021-10-28 Thread jiawei
Co-Authored-By: sinan --- gcc/common/config/riscv/riscv-common.c | 6 ++ gcc/config/riscv/riscv-opts.h | 6 ++ gcc/config/riscv/riscv.opt | 3 +++ 3 files changed, 15 insertions(+) diff --git a/gcc/common/config/riscv/riscv-common.c

[PATCH 0/3] RISC-V: Zfinx extension support

2021-10-28 Thread jiawei
Zfinx extension[1] had already finished public review. Here is the implementation patch set that reuse floating point pattern and ban the use of fpr when use zfinx as a target. Current works can be find in follow links, we will keep update zhinx and zhinxmin after zfh extension goes upstream.

[Bug target/100119] [x86] Conversion unsigned int -> double produces -0 (-m32 -msse2 -mfpmath=sse)

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100119 Richard Biener changed: What|Removed |Added Known to work||12.0 --- Comment #4 from Richard

[Bug c/57029] GCC doesn't set the inexact flag on inexact compile-time int-to-float conversion

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57029 --- Comment #4 from Richard Biener --- PR84407 was related which was about rounding modes and int-to-float conversion which means the testcase in this bug should now also be fixed if you supply -frounding-math which is documented as to determine

Re: [COMMITTED] Fold all statements in Ranger VRP.

2021-10-28 Thread Jeff Law via Gcc-patches
On 10/28/2021 7:47 AM, Andrew MacLeod wrote: On 10/28/21 9:38 AM, Jeff Law wrote: On 10/25/2021 6:03 PM, Andrew MacLeod via Gcc-patches wrote: This patch changes the ranger VRP pass to simplify all statements, not just the ones with ranges.  I believe Jeff had mentioned we were no longer

Re: [COMMITTED] Fold all statements in Ranger VRP.

2021-10-28 Thread Andrew MacLeod via Gcc-patches
On 10/28/21 9:38 AM, Jeff Law wrote: On 10/25/2021 6:03 PM, Andrew MacLeod via Gcc-patches wrote: This patch changes the ranger VRP pass to simplify all statements, not just the ones with ranges.  I believe Jeff had mentioned we were no longer doing this a while back.  Now we need it when

Re: [llvm-dev] [PATCH] Add GNU_PROPERTY_1_GLIBC_2_NEEDED

2021-10-28 Thread H.J. Lu via Gcc
On Thu, Oct 28, 2021 at 6:43 AM Florian Weimer wrote: > > * H. J. Lu: > > > On Wed, Oct 27, 2021 at 11:52 PM Florian Weimer wrote: > >> > >> * H. J. Lu via llvm-dev: > >> > >> > 1. Some binaries which require new ELF features, like DT_RELR, only > >> > work with the new glibc binary. They crash

[Bug tree-optimization/84407] incorrect constant propagation with -frounding-math

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84407 Richard Biener changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/84407] incorrect constant propagation with -frounding-math

2021-10-28 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84407 --- Comment #6 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:81342e95827f77c0917dd7a9fd54ac9729439c8e commit r12-4767-g81342e95827f77c0917dd7a9fd54ac9729439c8e Author: Richard Biener Date:

Re: [llvm-dev] [PATCH] Add GNU_PROPERTY_1_GLIBC_2_NEEDED

2021-10-28 Thread Florian Weimer via Gcc
* H. J. Lu: > On Wed, Oct 27, 2021 at 11:52 PM Florian Weimer wrote: >> >> * H. J. Lu via llvm-dev: >> >> > 1. Some binaries which require new ELF features, like DT_RELR, only >> > work with the new glibc binary. They crash at run-time with the older >> > glibc binaries. >> > 2. Somes binaries

Re: [llvm-dev] [PATCH] Add GNU_PROPERTY_1_GLIBC_2_NEEDED

2021-10-28 Thread H.J. Lu via Gcc
On Wed, Oct 27, 2021 at 11:52 PM Florian Weimer wrote: > > * H. J. Lu via llvm-dev: > > > 1. Some binaries which require new ELF features, like DT_RELR, only > > work with the new glibc binary. They crash at run-time with the older > > glibc binaries. > > 2. Somes binaries compiled with the new

Re: [COMMITTED] Fold all statements in Ranger VRP.

2021-10-28 Thread Jeff Law via Gcc-patches
On 10/25/2021 6:03 PM, Andrew MacLeod via Gcc-patches wrote: This patch changes the ranger VRP pass to simplify all statements, not just the ones with ranges.  I believe Jeff had mentioned we were no longer doing this a while back.  Now we need it when running as the VRP2 pass to satisfy

Re: [PATCH] middle-end/84407 - honor -frounding-math for int to float conversion

2021-10-28 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 28, 2021 at 02:40:24PM +0200, Richard Biener wrote: > This makes us honor -frounding-math for integer to float conversions > and avoid constant folding when such conversion is not exact. > > 2021-10-28 Richard Biener > > PR middle-end/84407 > * fold-const.c

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #15 from Richard Biener --- And even when making ray_sphere static we're not considering to use alternate argument passing conventions (use 6 SSE regs for the 'double's or 3 for how the vectors are used to setup the stack right

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #13 from H.J. Lu --- (In reply to Andrew Cooper from comment #11) > > There should be a diagnostic, but it ought to include cf_check in the type > it prints. Try the v3 patch.

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 H.J. Lu changed: What|Removed |Added Attachment #51687|0 |1 is obsolete|

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #14 from Richard Biener --- (In reply to hubicka from comment #12) > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 > > > > --- Comment #11 from Richard Biener --- > > -mtune-ctrl=^sse_unaligned_load_optimal fixes the

[Bug target/102961] Build fails for AIX 6.1

2021-10-28 Thread John.Parke at alebra dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102961 --- Comment #2 from John Parke --- I tried your suggestion and removed >> --enable-version-specific-runtime-libs flag: ../gcc-11.2.0/configure --prefix=/opt/freeware/gcc-11.2.0 --with-as=/usr/bin/as --with-ld=/usr/bin/ld

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #13 from Richard Biener --- And before HJs patches to use by_pieces to setup arguments we had code like pushq 136(%rsp) .cfi_def_cfa_offset 224 pushq 136(%rsp) .cfi_def_cfa_offset 232

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #12 from hubicka at kam dot mff.cuni.cz --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 > > --- Comment #11 from Richard Biener --- > -mtune-ctrl=^sse_unaligned_load_optimal fixes the observed regression. Interesting. I

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #11 from Richard Biener --- -mtune-ctrl=^sse_unaligned_load_optimal fixes the observed regression.

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #10 from hubicka at kam dot mff.cuni.cz --- >| b = 2.0 * ray.dir.x * (ray.orig.x - sph->pos.x) + > # >| movupd (%rdi),%xmm5 > # >| 2.0

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #9 from hubicka at kam dot mff.cuni.cz --- > Not inlining ray_sphere at -O2 is of course what makes it overall slow. ray_spehere is not at all that small function. We already play tricks at -O3 to inline it by detecting that some

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #8 from Richard Biener --- It _is_ likely STLF. struct vec3 { double x, y, z; }; struct ray { struct vec3 orig, dir; }; the vectorized ray_sphere wants { ray.orig.x, ray.orig.y } and { ray.dir.x, ray.dir.y } where

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0 Ever confirmed|0

[Bug c++/102987] [9,10,11,trunk] Segfault when error or warning should trigger with combination.

2021-10-28 Thread peeceseven at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102987 --- Comment #2 from Robert Russell --- Created attachment 51692 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51692=edit this is the build script i was using with creduce. probably not needed

[Bug c++/102987] [9,10,11,trunk] Segfault when error or warning should trigger with combination.

2021-10-28 Thread peeceseven at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102987 --- Comment #1 from Robert Russell --- Created attachment 51691 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51691=edit adjusted previous sample closer to my use case.

[Bug c++/102987] New: [9, 10, 11, trunk] Segfault when error or warning should trigger with combination.

2021-10-28 Thread peeceseven at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102987 Bug ID: 102987 Summary: [9,10,11,trunk] Segfault when error or warning should trigger with combination. Product: gcc Version: 9.0 Status: UNCONFIRMED

Re: [PATCH] middle-end/84407 - honor -frounding-math for int to float conversion

2021-10-28 Thread Richard Biener via Gcc-patches
On Thu, 28 Oct 2021, Jakub Jelinek wrote: > On Thu, Oct 28, 2021 at 02:24:23PM +0200, Richard Biener wrote: > > I'm not able to trigger unsigned_float to be used, even when > > converting 0x8001 I get (float:DF (reg:DI...)) > > on x86_64 because we emit conditional code that will end

Re: [PATCH] middle-end/84407 - honor -frounding-math for int to float conversion

2021-10-28 Thread Richard Biener via Gcc-patches
On Thu, 28 Oct 2021, Richard Biener wrote: > On Thu, 28 Oct 2021, Jakub Jelinek wrote: > > > On Thu, Oct 28, 2021 at 01:32:17PM +0200, Richard Biener wrote: > > > diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c > > > index f38b6d7d31c..a16395befcd 100644 > > > --- a/gcc/simplify-rtx.c > > >

Re: [PATCH] middle-end/84407 - honor -frounding-math for int to float conversion

2021-10-28 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 28, 2021 at 02:24:23PM +0200, Richard Biener wrote: > I'm not able to trigger unsigned_float to be used, even when > converting 0x8001 I get (float:DF (reg:DI...)) > on x86_64 because we emit conditional code that will end up > using some compensation to emulate

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 --- Comment #6 from Jan Hubicka --- zen https://lnt.opensuse.org/db_default/v4/CPP/graph?plot.0=198.639.0=180.639.0=201.639.0=150.639.0=246.639.0=256.639.0=176.639.0; kabylake

[Bug ipa/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 --- Comment #6 from hubicka at kam dot mff.cuni.cz --- > > fixup_cfg already removes write-only stores so that seems fit for that > purpose. > > Btw, > > static int x = 1; > > int main() > { > x = 1; > } > > should ideally be handled as

Re: [Bug ipa/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread Jan Hubicka via Gcc-bugs
> > fixup_cfg already removes write-only stores so that seems fit for that > purpose. > > Btw, > > static int x = 1; > > int main() > { > x = 1; > } > > should ideally be handled as well as maybe the more common(?) > > static int x[128]; > > int main() > { > memset (x, 0, 128*4); > } >

[Bug rtl-optimization/102986] New: [12 Regression] ICE: in expand_shift_1, at expmed.c:2671 with a negative shift of a vector

2021-10-28 Thread zsojka at seznam dot cz via Gcc-bugs
4 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211028 (experimental) (GCC)

[COMMITTED] Improve backward threading with switches.

2021-10-28 Thread Aldy Hernandez via Gcc-patches
We've been essentially using find_taken_edge_switch_expr() in the backward threader, but this is suboptimal because said function only works with singletons. VRP has a much smarter find_case_label_range that works with ranges. Tested on x86-64 Linux with: a) Bootstrap & regtests.

[COMMITTED] Make back_threader_registry inherit from back_jt_path_registry.

2021-10-28 Thread Aldy Hernandez via Gcc-patches
When a class's only purpose is to expose the methods of its only member, it's really a derived class ;-). Tested on x86-64 Linux. Committed as obvious. gcc/ChangeLog: * tree-ssa-threadbackward.c (class back_threader_registry): Inherit from back_jt_path_registry.

[Bug ipa/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 --- Comment #5 from Richard Biener --- (In reply to hubicka from comment #4) > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 > > > > Richard Biener changed: > > > >What|Removed |Added > >

[Bug tree-optimization/101908] [12 regression] cray regression with -O2 -ftree-slp-vectorize compared to -O2

2021-10-28 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101908 Jan Hubicka changed: What|Removed |Added Summary|cray regression with -O2|[12 regression] cray

Re: [PATCH] middle-end/84407 - honor -frounding-math for int to float conversion

2021-10-28 Thread Richard Biener via Gcc-patches
On Thu, 28 Oct 2021, Jakub Jelinek wrote: > On Thu, Oct 28, 2021 at 01:32:17PM +0200, Richard Biener wrote: > > diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c > > index f38b6d7d31c..a16395befcd 100644 > > --- a/gcc/simplify-rtx.c > > +++ b/gcc/simplify-rtx.c > > @@ -1917,6 +1917,19 @@

Re: [PATCH] c++, v2: Implement DR2351 - void{} [PR102820]

2021-10-28 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 28, 2021 at 08:01:27AM -0400, Jason Merrill wrote: > > --- gcc/cp/semantics.c.jj 2021-10-27 09:16:41.161600606 +0200 > > +++ gcc/cp/semantics.c 2021-10-28 13:06:59.325791588 +0200 > > @@ -3079,6 +3079,24 @@ finish_unary_op_expr (location_t op_loc, > > return result; > > }

[Bug c/102985] [openmp] Bogus "error: lastprivate variable ‘n’ is private in outer context"

2021-10-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102985 --- Comment #1 from Jakub Jelinek --- That testcase doesn't seem to be valid to me. While we have only explicit "A list item that is private within a parallel region, or that appears in the reduction clause of a parallel construct, must not

[Bug ipa/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 --- Comment #4 from hubicka at kam dot mff.cuni.cz --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 > > Richard Biener changed: > >What|Removed |Added >

Re: [PATCH] c++, v2: Implement DR2351 - void{} [PR102820]

2021-10-28 Thread Jason Merrill via Gcc-patches
On 10/28/21 07:26, Jakub Jelinek wrote: On Wed, Oct 27, 2021 at 04:58:53PM -0400, Jason Merrill wrote: On 10/21/21 04:42, Jakub Jelinek wrote: Hi! Here is an attempt to implement DR2351 - void{} - where void{} after pack expansion is considered valid and the same thing as void(). For

[Bug c/102985] New: [openmp] Bogus "error: lastprivate variable ‘n’ is private in outer context"

2021-10-28 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102985 Bug ID: 102985 Summary: [openmp] Bogus "error: lastprivate variable ‘n’ is private in outer context" Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords:

Re: [PATCH] middle-end/84407 - honor -frounding-math for int to float conversion

2021-10-28 Thread Jakub Jelinek via Gcc-patches
On Thu, Oct 28, 2021 at 01:32:17PM +0200, Richard Biener wrote: > diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c > index f38b6d7d31c..a16395befcd 100644 > --- a/gcc/simplify-rtx.c > +++ b/gcc/simplify-rtx.c > @@ -1917,6 +1917,19 @@ simplify_const_unary_operation (enum rtx_code code, >

Re: [PATCH] match.pd: Optimize MIN_EXPR etc. addr1 < addr2 would be simplified [PR102951]

2021-10-28 Thread Richard Biener via Gcc-patches
On Thu, 28 Oct 2021, Jakub Jelinek wrote: > Hi! > > This patch outlines the decision whether address comparison can be folded > or not from the match.pd simple comparison simplification and uses it > both there and in a new minmax simplification, such that we fold e.g. > MAX ([2], [1]) > etc.

[Bug middle-end/102972] [OpenMP] Strictly-nested diagnostic missing

2021-10-28 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102972 --- Comment #1 from Tobias Burnus --- Created attachment 51688 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51688=edit Draft patch Patch works – but causes quite some fails in testsuites (at least in

[Bug tree-optimization/102981] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102981 Richard Biener changed: What|Removed |Added Target Milestone|--- |12.0 Keywords|

[Patch 8/8, Arm, GCC] Introduce multilibs for PACBTI target feature. [Was RE: [Patch 7/7, Arm, GCC] Introduce multilibs for PACBTI target feature.]

2021-10-28 Thread Tejas Belagod via Gcc-patches
> -Original Message- > From: Gcc-patches bounces+belagod=gcc.gnu@gcc.gnu.org> On Behalf Of Tejas Belagod via > Gcc-patches > Sent: Friday, October 8, 2021 1:19 PM > To: gcc-patches@gcc.gnu.org > Subject: [Patch 7/7, Arm, GCC] Introduce multilibs for PACBTI target feature. > > Hi, >

[Patch 7/8, Arm, GCC] Emit build attributes for PACBTI target feature. [ Was RE: [Patch 6/7, Arm, GCC] Emit build attributes for PACBTI target feature.]

2021-10-28 Thread Tejas Belagod via Gcc-patches
> -Original Message- > From: Gcc-patches bounces+belagod=gcc.gnu@gcc.gnu.org> On Behalf Of Tejas Belagod via > Gcc-patches > Sent: Friday, October 8, 2021 1:19 PM > To: gcc-patches@gcc.gnu.org > Subject: [Patch 6/7, Arm, GCC] Emit build attributes for PACBTI target > feature. > >

[Patch 6/8, Arm. GCC] Add pointer authentication for stack-unwinding runtime. [Was RE: [Patch 5/7, Arm. GCC] Add pointer authentication for stack-unwinding runtime.]

2021-10-28 Thread Tejas Belagod via Gcc-patches
> -Original Message- > From: Gcc-patches bounces+belagod=gcc.gnu@gcc.gnu.org> On Behalf Of Tejas Belagod via > Gcc-patches > Sent: Friday, October 8, 2021 1:18 PM > To: gcc-patches@gcc.gnu.org > Subject: [Patch 5/7, Arm. GCC] Add pointer authentication for stack- > unwinding

[Patch 5/8, Arm, GCC] Implement target feature macros for PACBTI. [Was RE: [Patch 4/7, Arm. GCC] Implement target feature macros for PACBTI.]

2021-10-28 Thread Tejas Belagod via Gcc-patches
> -Original Message- > From: Richard Earnshaw > Sent: Monday, October 11, 2021 2:58 PM > To: Tejas Belagod ; gcc-patches@gcc.gnu.org > Subject: Re: [Patch 4/7, Arm. GCC] Implement target feature macros for > PACBTI. > > On 08/10/2021 13:18, Tejas Belagod via Gcc-patches wrote: > > Hi,

[Patch 4/8, Arm. GCC] Add testsuite library support for PACBTI target. [Was RE: [Patch 3/7, Arm, GCC] Add testsuite library support for PACBTI target.]

2021-10-28 Thread Tejas Belagod via Gcc-patches
> -Original Message- > From: Richard Earnshaw > Sent: Monday, October 11, 2021 2:38 PM > To: Tejas Belagod ; gcc-patches@gcc.gnu.org > Subject: Re: [Patch 3/7, Arm, GCC] Add testsuite library support for PACBTI > target. > > On 11/10/2021 14:36, Richard Earnshaw via Gcc-patches wrote:

[Patch 3/8, Arm, GCC] Add option -mbranch-protection. [Was RE: [Patch 2/7, Arm, GCC] Add option -mbranch-protection.]

2021-10-28 Thread Tejas Belagod via Gcc-patches
> -Original Message- > From: Richard Earnshaw > Sent: Monday, October 11, 2021 1:58 PM > To: Tejas Belagod ; gcc-patches@gcc.gnu.org > Subject: Re: [Patch 2/7, Arm, GCC] Add option -mbranch-protection. > > On 08/10/2021 13:17, Tejas Belagod via Gcc-patches wrote: > > Hi, > > > > Add

[Patch 2/8, Arm, GCC] Add Armv8.1-M Mainline target feature +pacbti. [Was RE: [Patch 1/7, Arm, GCC] Add Armv8.1-M Mainline target feature +pacbti.]

2021-10-28 Thread Tejas Belagod via Gcc-patches
> -Original Message- > From: Richard Earnshaw > Sent: Monday, October 11, 2021 1:29 PM > To: Tejas Belagod ; gcc-patches@gcc.gnu.org > Subject: Re: [Patch 1/7, Arm, GCC] Add Armv8.1-M Mainline target feature > +pacbti. > > On 08/10/2021 13:17, Tejas Belagod via Gcc-patches wrote: > >

[Bug ipa/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords|

[Patch 1/8, Arm, AArch64, GCC] Refactor mbranch-protection option parsing and make it common to AArch32 and AArch64 backends. [Was RE: [Patch 2/7, Arm, GCC] Add option -mbranch-protection.]

2021-10-28 Thread Tejas Belagod via Gcc-patches
> -Original Message- > From: Richard Earnshaw > Sent: Monday, October 11, 2021 1:58 PM > To: Tejas Belagod ; gcc-patches@gcc.gnu.org > Subject: Re: [Patch 2/7, Arm, GCC] Add option -mbranch-protection. > > On 08/10/2021 13:17, Tejas Belagod via Gcc-patches wrote: > > Hi, > > > > Add

[Bug tree-optimization/102960] [10/11/12 Regression] ICE: in sign_mask, at wide-int.h:855 in GCC 10.3.0

2021-10-28 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102960 Alex Coplan changed: What|Removed |Added Keywords|needs-bisection | --- Comment #3 from Alex Coplan ---

[Bug tree-optimization/102983] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102983 Richard Biener changed: What|Removed |Added Priority|P3 |P1

[PATCH] middle-end/84407 - honor -frounding-math for int to float conversion

2021-10-28 Thread Richard Biener via Gcc-patches
This makes us honor -frounding-math for integer to float conversions and avoid constant folding when such conversion is not exact. Bootstrapped and tested on x86_64-unknown-linux-gnu, OK? Thanks, Richard. 2021-10-28 Richard Biener PR middle-end/84407 * fold-const.c

[PATCH v4 1/1] [ARM] Add support for TLS register based stack protector canary access

2021-10-28 Thread Ard Biesheuvel via Gcc-patches
Add support for accessing the stack canary value via the TLS register, so that multiple threads running in the same address space can use distinct canary values. This is intended for the Linux kernel running in SMP mode, where processes entering the kernel are essentially threads running the same

[PATCH v4 0/1] implement TLS register based stack canary for ARM

2021-10-28 Thread Ard Biesheuvel via Gcc-patches
Bugzilla: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102352 In the Linux kernel, user processes calling into the kernel are essentially threads running in the same address space, of a program that never terminates. This means that using a global variable for the stack protector canary value is

[PATCH] c++, v2: Implement DR2351 - void{} [PR102820]

2021-10-28 Thread Jakub Jelinek via Gcc-patches
On Wed, Oct 27, 2021 at 04:58:53PM -0400, Jason Merrill wrote: > On 10/21/21 04:42, Jakub Jelinek wrote: > > Hi! > > > > Here is an attempt to implement DR2351 - void{} - where void{} after > > pack expansion is considered valid and the same thing as void(). > > For templates, dunno if we have

ctor/dtor priorities ignored when function is pre-declared

2021-10-28 Thread Rasmus Villemoes
Hi I was wondering why the vx_crtbegin.o file had a .init_array section and not a .init_array.00101, when the function is defined with __attribute__((constructor (101))) (see libgcc/config/vxcrtstuff.c). After a lot of digging, including making sure that EH_CTOR_ATTRIBUTE actually gets defined

[Bug libstdc++/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 Jakub Jelinek changed: What|Removed |Added Component|sanitizer |libstdc++ --- Comment #3 from Jakub

[Bug sanitizer/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread mail at milianw dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 --- Comment #2 from Milian Wolff --- Similarly: std::vector locks(10); // works std::vector locks(10, spinlock()); // doesn't work This report here was motivated by stumbling over this report over at

[Bug sanitizer/102984] strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 Jakub Jelinek changed: What|Removed |Added CC||redi at gcc dot gnu.org --- Comment #1

[Bug sanitizer/102984] New: strange alignment issues with std::vector::emplace/push_back and overaligned type

2021-10-28 Thread mail at milianw dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984 Bug ID: 102984 Summary: strange alignment issues with std::vector::emplace/push_back and overaligned type Product: gcc Version: 11.1.0 Status: UNCONFIRMED

[Bug target/102953] Improvements to CET-IBT and ENDBR generation

2021-10-28 Thread andrew.cooper3 at citrix dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102953 --- Comment #11 from Andrew Cooper --- (In reply to H.J. Lu from comment #10) > (In reply to Andrew Cooper from comment #8) > > Actually, there is a (possibly pre-existing) diagnostics issue: > > > > $ cat proto.c > > static void

[PATCH] match.pd: Optimize MIN_EXPR etc. addr1 < addr2 would be simplified [PR102951]

2021-10-28 Thread Jakub Jelinek via Gcc-patches
Hi! This patch outlines the decision whether address comparison can be folded or not from the match.pd simple comparison simplification and uses it both there and in a new minmax simplification, such that we fold e.g. MAX ([2], [1]) etc. Some of the Wstringop-overflow-62.c changes might look

[Bug tree-optimization/102983] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102983 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Keywords|

[Bug tree-optimization/102960] [10/11/12 Regression] ICE: in sign_mask, at wide-int.h:855 in GCC 10.3.0

2021-10-28 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102960 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org

[Bug c++/102409] _pragma ("omp ...") expansion issue - placed in the wrong scope

2021-10-28 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102409 --- Comment #2 from Tobias Burnus --- I wonder whether the following causes that it goes wrong (libcpp/macro.c): /* Push the context of a macro with hash entry NODE onto the context stack. If we can successfully expand the macro, we push a

[Bug debug/102955] [12 Regression] ICE with #pragma optimize "0" and -g -gtoggle

2021-10-28 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102955 Alex Coplan changed: What|Removed |Added CC||acoplan at gcc dot gnu.org --- Comment

[Bug c++/102942] Implicit copy constructor not elided

2021-10-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102942 --- Comment #3 from Jonathan Wakely --- And maybe another one to link to PR 101926, but I'll let pinskia decide that.

[Bug tree-optimization/102983] New: [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread theodort at inf dot ethz.ch via Gcc-bugs
xorl%eax, %eax popq%rdx .cfi_def_cfa_offset 8 ret .cfi_endproc gcc-trunk -v Using built-in specs. Target: x86_64-pc-linux-gnu Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211028 (experimental) (GCC) Started with

[Bug target/102974] GCC optimization is very poor for add carry and multiplication combos

2021-10-28 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102974 --- Comment #9 from cqwrteur --- (In reply to Richard Biener from comment #8) > As mentioned in the other bug STV might make things only worse. what is stv?

[Bug tree-optimization/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 --- Comment #2 from Andrew Pinski --- DSE is removing undefined behavior code which used to turn into a trap. That is "a % b" would have caused a trap so it was turned into __builtin_trap and now it is removed during DSE (well it is also

[Bug tree-optimization/102982] [12 Regression] Dead Code Elimination Regression at -O3 (trunk vs 11.2.0)

2021-10-28 Thread theodort at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102982 --- Comment #1 from Theodoros Theodoridis --- Maybe it's related to https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102880 as they both bisect to the same commit.

<    1   2   3   >