Re: [PATCH 1/2] add -Wuse-after-free

2021-11-01 Thread Eric Gallager via Gcc-patches
On Mon, Nov 1, 2021 at 6:18 PM Martin Sebor via Gcc-patches wrote: > > Patch 1 in the series detects a small subset of uses of pointers > made indeterminate by calls to deallocation functions like free > or C++ operator delete. To control the conditions the warnings > are issued under the new -Wu

Re: [PATCH] Add a simulate_record_decl lang hook

2021-11-01 Thread Jason Merrill via Gcc-patches
On Sat, Oct 30, 2021 at 2:29 PM Richard Sandiford wrote: > Jason Merrill writes: > > On 10/18/21 16:35, Richard Sandiford wrote: > >> Jason Merrill writes: > >>> On 9/24/21 13:53, Richard Sandiford wrote: > + if (type == error_mark_node) > +return lhd_simulate_record_decl (loc, n

Re: [PATCH, rs6000] Disable gimple fold for float or double vec_minmax when fast-math is not set

2021-11-01 Thread HAO CHEN GUI via Gcc-patches
David,     My patch file was broken. I am sorry for it.  Here is the correct one. Thanks a lot. ChangeLog 2021-11-01 Haochen Gui gcc/     * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Disable     gimple fold for VSX_BUILTIN_XVMINDP, ALTIVEC_BUILTIN_VMINFP,     VSX_BU

Re: [PATCH] libstdc++: Clear padding bits in atomic compare_exchange

2021-11-01 Thread Thomas Rodgers via Gcc-patches
This should address Jonathan's feedback and adds support for atomic_ref On Wed, Sep 29, 2021 at 5:14 AM Jonathan Wakely wrote: > On Mon, 27 Sept 2021 at 15:11, Thomas Rodgers > wrote: > > > > From: Thomas Rodgers > > > > Now with checks for __has_builtin(__builtin_clear_padding) > > > > This c

Re: [PATCH, rs6000] Disable gimple fold for float or double vec_minmax when fast-math is not set

2021-11-01 Thread David Edelsohn via Gcc-patches
Hi, Hao Neither the inlined patch nor the attached patch seem to contain the change to rs6000-call.c. I only see the new testcases. Please resend the complete patch. Thanks David On Mon, Nov 1, 2021 at 2:48 AM HAO CHEN GUI wrote: > > Hi, > > This patch disables gimple folding for VSX_BUILTI

[PATCH 5/5] Fortran manual: Remove old docs for never-implemented extensions.

2021-11-01 Thread Sandra Loosemore
2021-11-01 Sandra Loosemore gcc/fortran/ * gfortran.texi (Projects): Add bullet for helping with incomplete standards compliance. (Proposed Extensions): Delete section. --- gcc/fortran/gfortran.texi | 92 --- 1 file ch

[PATCH 4/5] Fortran manual: Update miscellaneous references to old standard versions.

2021-11-01 Thread Sandra Loosemore
2021-11-01 Sandra Loosemore gcc/fortran/ * intrinsic.texi (Introduction to Intrinsics): Genericize references to standard versions. * invoke.texi (-fall-intrinsics): Likewise. (-fmax-identifier-length=): Likewise. --- gcc/fortran/intrinsic.texi | 15

[PATCH 4/5] Fortran manual: Update miscellaneous references to old standard versions.

2021-11-01 Thread Sandra Loosemore
2021-11-01 Sandra Loosemore gcc/fortran/ * intrinsic.texi (Introduction to Intrinsics): Genericize references to standard versions. * invoke.texi (-fall-intrinsics): Likewise. (-fmax-identifier-length=): Likewise. --- gcc/fortran/intrinsic.texi | 15

[PATCH 3/5] Fortran manual: Update section on Interoperability with C

2021-11-01 Thread Sandra Loosemore
2021-11-01 Sandra Loosemore gcc/fortran/ * gfortran.texi (Interoperability with C): Copy-editing. Add more index entries. (Intrinsic Types): Likewise. (Derived Types and struct): Likewise. (Interoperable Global Variables): Likewise. (Inte

[PATCH 2/5] Fortran manual: Revise introductory chapter.

2021-11-01 Thread Sandra Loosemore
Fix various bit-rot in the discussion of standards conformance, remove material that is only of historical interest, copy-editing. Also move discussion of preprocessing out of the introductory chapter. 2021-11-01 Sandra Loosemore gcc/fortran/ * gfortran.texi (About GNU Fortran

[PATCH 1/5] Fortran manual: Combine standard conformance docs in one place.

2021-11-01 Thread Sandra Loosemore
Discussion of conformance with various revisions of the Fortran standard was split between two separate parts of the manual. This patch moves it all to the introductory chapter. 2021-11-01 Sandra Loosemore gcc/fortran/ * gfortran.texi (Standards): Move discussion of specific

[PATCH 0/5] Fortran manual updates

2021-11-01 Thread Sandra Loosemore
This series of patches addresses some areas of bit-rot in the GNU Fortran manual, mainly relating to the state of standard compliance and the recently-completed TS29113 work. I also removed some material that is primarily of historical interest; given that gfortran replaced g77 almost 17 years ago

[committed] libstdc++: Missing constexpr for __gnu_debug::__valid_range etc

2021-11-01 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. The new 25_algorithms/move/constexpr.cc test fails in debug mode, because the debug assertions use the non-constexpr overloads in . libstdc++-v3/ChangeLog: * include/debug/stl_iterator.h (__valid_range): Add constexpr for C++20. Qualify

[committed] libstdc++: Reorder constraints on std::span::span(Range&&) constructor.

2021-11-01 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. In PR libstdc++/103013 Tim Song pointed out that we could reorder the constraints of this constructor. That's worth doing just to reduce the work the compiler has to do during overload resolution, even if it isn't needed to make the code in the PR work.

Re: [PATCH] attribs: Allow optional second arg for attr deprecated [PR102049]

2021-11-01 Thread Martin Sebor via Gcc-patches
On 10/11/21 9:17 AM, Marek Polacek via Gcc-patches wrote: Any thoughts? I'm a little unsure. Clang just uses the replacement string as the text of the fix-it note as is, so it does nothing to help programmers make sure the replacement is in sync with what it's supposed to replace. E.g., for t

[PATCH 2/2] add -Wdangling-pointer [PR #63272]

2021-11-01 Thread Martin Sebor via Gcc-patches
Patch 2 in this series adds support for detecting the uses of dangling pointers: those to auto objects that have gone out of scope. Like patch 1, to minimize false positives this detection is very simplistic. However, thanks to the more deterministic nature of the problem (all local objects go o

[PATCH 1/2] add -Wuse-after-free

2021-11-01 Thread Martin Sebor via Gcc-patches
Patch 1 in the series detects a small subset of uses of pointers made indeterminate by calls to deallocation functions like free or C++ operator delete. To control the conditions the warnings are issued under the new -Wuse-after-free= option provides three levels. At the lowest level the warning

[PATCH 0/2] provide simple detection of indeterminate pointers

2021-11-01 Thread Martin Sebor via Gcc-patches
This two-patch series adds support for the detection of uses of pointers invalidated as a result of the lifetime of the objects they point to having ended: either explicitly, after a call to a dynamic deallocation function, or implicitly, by virtue of an object with automatic storage duration havi

Re: [PATCH] libcpp: Implement -Wbidirectional for CVE-2021-42574 [PR103026]

2021-11-01 Thread Joseph Myers
On Mon, 1 Nov 2021, Marek Polacek via Gcc-patches wrote: > + /* We've read a bidi char, update the current vector as necessary. */ > + void on_char (kind k, bool ucn_p) > + { > +switch (k) > + { > + case kind::LRE: > + case kind::RLE: > + case kind::LRO: > + case k

[PATCH] PR fortran/102817 - [12 Regression] ICE in gfc_clear_shape, at fortran/expr.c:422

2021-11-01 Thread Harald Anlauf via Gcc-patches
Dear Fortranners, a recent patch uncovered a latent issue with simplification of array-valued expressions where the resulting shape was not set from the referenced subobject. Once found, the fix looks obvious. Regtested on x86_64-pc-linux-gnu. OK? Thanks, Harald Fortran: fix simplification of

Add EAF_NOT_RETURNED_DIRECTLY

2021-11-01 Thread Jan Hubicka via Gcc-patches
Hi, this patch adds EAF_NOT_RETURNED_DIRECTLY which works similarly as EAF_NODIRECTESCAPE. Values pointed to by a given argument may be returned but not the argument itself. This helps PTA quite noticeably because we mostly care about tracking points to which given memory location can escape. I

Re: redundant bitmap_bit_p followed by bitmap_clear_bit [was: Re: [COMMITTED] Kill second order relations in the path solver.]

2021-11-01 Thread Bernhard Reutner-Fischer via Gcc-patches
On Mon, 1 Nov 2021 15:21:03 +0100 Aldy Hernandez wrote: > I'm not convinced this makes the code clearer to read, especially if > it's not on a critical path. But if you feel strongly, please submit > a patch ;-). No i don't feel strongly about it. Compiling e.g. -O2 ira.o # Overhead Sampl

Re: [PATCH] Fix negative integer range for UInteger.

2021-11-01 Thread Martin Liška
On 10/27/21 08:33, Richard Biener wrote: OK. (btw, can we use opts_set.param_... now instead of -1?) Yes, we can. Let me try cooking a follow up patch. Cheers, Martin

Re: [PATCH] c++: quadratic constexpr behavior for left-assoc logical exprs [PR102780]

2021-11-01 Thread Patrick Palka via Gcc-patches
On Mon, 1 Nov 2021, Patrick Palka wrote: > On Fri, 29 Oct 2021, Jakub Jelinek wrote: > > > On Thu, Oct 28, 2021 at 03:35:20PM -0400, Patrick Palka wrote: > > > > Is there a reason to turn this mode of evaluating everything twice if an > > > > error should be diagnosed all the time, rather than on

Re: [PATCH] x86_64: Improved implementation of TImode rotations.

2021-11-01 Thread Uros Bizjak via Gcc-patches
On Mon, Nov 1, 2021 at 5:45 PM Roger Sayle wrote: > > > This simple patch improves the implementation of 128-bit (TImode) > rotations on x86_64 (a missed optimization opportunity spotted > during the recent V1TImode improvements). > > Currently, the function: > > unsigned __int128 rotrti3(unsigned

Re: [PATCH] c++: quadratic constexpr behavior for left-assoc logical exprs [PR102780]

2021-11-01 Thread Patrick Palka via Gcc-patches
On Fri, 29 Oct 2021, Jakub Jelinek wrote: > On Thu, Oct 28, 2021 at 03:35:20PM -0400, Patrick Palka wrote: > > > Is there a reason to turn this mode of evaluating everything twice if an > > > error should be diagnosed all the time, rather than only if we actually > > > see > > > a TRUTH_*_EXPR we

Re: [PATCH] ipa-sra: Improve debug info for removed parameters (PR 93385)

2021-11-01 Thread Martin Jambor
Hello, I'd like to ping this patch. Thanks, Martin On Wed, Oct 13 2021, Martin Jambor wrote: > Hi, > > in spring I added code eliminating any statements using parameters > removed by IPA passes (to fix PR 93385). That patch fixed issues such > as divisions by zero that such code could perform

[PATCH] x86_64: Improved implementation of TImode rotations.

2021-11-01 Thread Roger Sayle
This simple patch improves the implementation of 128-bit (TImode) rotations on x86_64 (a missed optimization opportunity spotted during the recent V1TImode improvements). Currently, the function: unsigned __int128 rotrti3(unsigned __int128 x, unsigned int i) { return (x >> i) | (x << (128-i));

[PATCH v1] aarch64: enable Ampere-1 CPU

2021-11-01 Thread Philipp Tomsich
This adds support and a basic turning model for the Ampere Computing "Ampere-1" CPU. The Ampere-1 implements the ARMv8.6 architecture in A64 mode and is modelled as a 4-wide issue (as with all modern micro-architectures, the chosen issue rate is a compromise between the maximum dispatch rate and t

[PATCH] Fix test-suite pattern scanning.

2021-11-01 Thread Martin Liška
Pushed as obvious. Martin Fixes: UNRESOLVED: g++.dg/ipa/modref-1.C scan-ipa-dump local-pure-const1 "Function found to be const: {anonymous}::B::genB" UNRESOLVED: g++.dg/ipa/modref-1.C scan-ipa-dump modref1 "Retslot flags: direct noescape nodirectescape not_returned noread" gcc/testsuite/

Re: [PATCH] contrib: add unicode/utf8-dump.py

2021-11-01 Thread Martin Liška
On 11/1/21 16:32, David Malcolm wrote: |Thanks. Here's an updated version of the script that fixes the above issues.| Thanks. Please install it (there are no strict approval rules for contrib folder). Cheers, Martin

[PATCH] contrib: add unicode/utf8-dump.py

2021-11-01 Thread David Malcolm via Gcc-patches
On Mon, 2021-11-01 at 15:36 +0100, Martin Liška wrote: > On 11/1/21 15:14, David Malcolm via Gcc-patches wrote: > > > This script may be useful when debugging issues relating to > > > Unicode encoding (e.g. when investigating source files with > > > bidirectional control characters).| > > I like t

Re: [PATCH] contrib: add unicode/utf8-dump.py

2021-11-01 Thread Martin Liška
On 11/1/21 15:14, David Malcolm via Gcc-patches wrote: |This script may be useful when debugging issues relating to Unicode encoding (e.g. when investigating source files with bidirectional control characters).| I like the script except the following flake8 issues: $ flake8 contrib/unicode/ut

Re: redundant bitmap_bit_p followed by bitmap_clear_bit [was: Re: [COMMITTED] Kill second order relations in the path solver.]

2021-11-01 Thread Aldy Hernandez via Gcc-patches
I'm not convinced this makes the code clearer to read, especially if it's not on a critical path. But if you feel strongly, please submit a patch ;-). Aldy On Mon, Nov 1, 2021 at 3:10 PM Bernhard Reutner-Fischer wrote: > > On Thu, 28 Oct 2021 01:55:30 +0200 > Bernhard Reutner-Fischer wrote: >

[PATCH] contrib: add unicode/utf8-dump.py

2021-11-01 Thread David Malcolm via Gcc-patches
This script may be useful when debugging issues relating to Unicode encoding (e.g. when investigating source files with bidirectional control characters). It dump a UTF-8 file as a list of numbered lines (mimicking GCC's diagnostic output format), interleaved with lines per character showing the U

redundant bitmap_bit_p followed by bitmap_clear_bit [was: Re: [COMMITTED] Kill second order relations in the path solver.]

2021-11-01 Thread Bernhard Reutner-Fischer via Gcc-patches
On Thu, 28 Oct 2021 01:55:30 +0200 Bernhard Reutner-Fischer wrote: > On Wed, 27 Oct 2021 20:13:21 +0200 > Aldy Hernandez via Gcc-patches wrote: > > @@ -1306,6 +1307,24 @@ path_oracle::killing_def (tree ssa) > >ptr->m_next = m_equiv.m_next; > >m_equiv.m_next = ptr; > >bitmap_ior_into

PING^2 [PATCH v4 0/2] Implement indirect external access

2021-11-01 Thread H.J. Lu via Gcc-patches
On Thu, Oct 21, 2021 at 12:56 PM H.J. Lu wrote: > > On Wed, Sep 22, 2021 at 7:02 PM H.J. Lu wrote: > > > > Changes in the v4 patch. > > > > 1. Add nodirect_extern_access attribute. > > > > Changes in the v3 patch. > > > > 1. GNU_PROPERTY_1_NEEDED_INDIRECT_EXTERN_ACCESS support has been added to >

Re: [PATCH]middle-end testsuite: fix failing complex add testcases PR103000

2021-11-01 Thread Jeff Law via Gcc-patches
On 11/1/2021 3:54 AM, Tamar Christina via Gcc-patches wrote: Hi All, Some targets have overriden the default unroll factor and so do not have enough data to succeed for SLP vectorization if loop vect is turned off. To fix this just always unroll in these testcases. Bootstrapped Regtested on

[committed] diagnostics: escape non-ASCII source bytes for certain diagnostics

2021-11-01 Thread David Malcolm via Gcc-patches
This patch adds support to GCC's diagnostic subsystem for escaping certain bytes and Unicode characters when quoting source code. Specifically, this patch adds a new flag rich_location::m_escape_on_output which is a hint from a diagnostic that non-ASCII bytes in the pertinent lines of the user's s

[COMMITTED] PR tree-optimization/103003 - Don't register nonsensical relations.

2021-11-01 Thread Andrew MacLeod via Gcc-patches
The testcase in question has a stmt of the form:    _10 = _4 <= _4; We know this resolves to true, but when proce3ssing outgoing edges on the following branch, we try to register the relations _4 <= _4  and _4 > _4 on the 2 outgoing edges...  which is nonsense of course. this patch simply c

[committed] libstdc++: Fix range access for empty std::valarray [PR103022]

2021-11-01 Thread Jonathan Wakely via Gcc-patches
Tested powerpc64le-linux, pushed to trunk. The std::begin and std::end overloads for std::valarray are defined in terms of std::addressof(v[0]) which is undefined for an empty valarray. libstdc++-v3/ChangeLog: PR libstdc++/103022 * include/std/valarray (begin, end): Do not deref

Re: [PATCH] Move statics to threader pass class.

2021-11-01 Thread Aldy Hernandez via Gcc-patches
On Mon, Nov 1, 2021 at 2:03 PM Jeff Law wrote: > > > > On 11/1/2021 3:53 AM, Aldy Hernandez wrote: > > This patch moves all the static functions into the pass class, and > > cleans up things a little. The goal is to shuffle things around such > > that we can add debug counters that depend on diff

Re: [PATCH] Move statics to threader pass class.

2021-11-01 Thread Jeff Law via Gcc-patches
On 11/1/2021 3:53 AM, Aldy Hernandez wrote: This patch moves all the static functions into the pass class, and cleans up things a little. The goal is to shuffle things around such that we can add debug counters that depend on different threading passes, but it's a clean-up on its own right.

Re: [PATCH] Add debug counters to back threader.

2021-11-01 Thread Jeff Law via Gcc-patches
On 11/1/2021 3:54 AM, Aldy Hernandez wrote: Chasing down stage3 miscomparisons is never fun, and having no way to distinguish between jump threads registered by a particular pass, is even harder. This patch adds debug counters for the individual back threading passes. I've left the ethread p

[PATCH] RISC-V: Fix build errors with shNadd/shNadd.uw patterns in zba cost model

2021-11-01 Thread Maciej W. Rozycki
Fix a build regression from commit 04a9b554ba1a ("RISC-V: Cost model for zba extension."): .../gcc/config/riscv/riscv.c: In function 'bool riscv_rtx_costs(rtx, machine_mode, int, int, int*, bool)': .../gcc/config/riscv/riscv.c:2018:11: error: 'and' of mutually exclusive equal-tests is always 0

Re: [PATCH 07/18] rs6000: Builtin expansion, part 2

2021-11-01 Thread Segher Boessenkool
Hi! On Wed, Sep 01, 2021 at 11:13:43AM -0500, Bill Schmidt wrote: > * config/rs6000/rs6000-call.c (rs6000_invalid_new_builtin): > Implement. That fits on one line. Don't wrap early, esp. not if that leaves a colon without anything following it on that line: it looks like something is

Re: [PATCH] x86: Document -fcf-protection requires i686 or newer

2021-11-01 Thread H.J. Lu via Gcc-patches
On Fri, Oct 29, 2021 at 3:04 PM Eric Gallager wrote: > > On Thu, Oct 21, 2021 at 12:49 PM H.J. Lu via Gcc-patches > wrote: > > > > PR target/98667 > > * doc/invoke.texi: Document -fcf-protection requires i686 or > > new. > > --- > > gcc/doc/invoke.texi | 3 ++- > > 1 file

Re: [PATCH] [PR103017] aarch64:fix redundant check in aut insn generation

2021-11-01 Thread Richard Sandiford via Gcc-patches
Dan Li via Gcc-patches writes: > During the generation of the epilogue of aarch64(aarch64_expand_epilogue), > the value of crtl->calls_eh_return does not need to be checked again. > This value has been checked during aarch64_return_address_signing_enabled. Ah, yeah, looks like this code became de

[PATCH] Add debug counters to back threader.

2021-11-01 Thread Aldy Hernandez via Gcc-patches
Chasing down stage3 miscomparisons is never fun, and having no way to distinguish between jump threads registered by a particular pass, is even harder. This patch adds debug counters for the individual back threading passes. I've left the ethread pass alone, as that one is usually benign, but we

[PATCH]middle-end testsuite: fix failing complex add testcases PR103000

2021-11-01 Thread Tamar Christina via Gcc-patches
Hi All, Some targets have overriden the default unroll factor and so do not have enough data to succeed for SLP vectorization if loop vect is turned off. To fix this just always unroll in these testcases. Bootstrapped Regtested on aarch64-none-linux-gnu, x86_64-pc-linux-gnu and no issues. Ok fo

[PATCH]middle-end Fix PR103007, add missing check on complex fms detection.

2021-11-01 Thread Tamar Christina via Gcc-patches
Hi All, The complex FMS detection is missing a check on if the nodes of the VEC_PERM has the amount of children we expect before it recurses. This check is there on MUL and FMA but was missing for FMS, due to this the compiler goes on further than it should and hits an assert. Bootstrapped Regte

[PATCH] Move statics to threader pass class.

2021-11-01 Thread Aldy Hernandez via Gcc-patches
This patch moves all the static functions into the pass class, and cleans up things a little. The goal is to shuffle things around such that we can add debug counters that depend on different threading passes, but it's a clean-up on its own right. Tested on x86-64 Linux. OK? gcc/ChangeLog:

[PATCH 4/4] libgcc: vxcrtstuff.c: add a few undefs

2021-11-01 Thread Rasmus Villemoes
When vxcrtstuff.c was created, the set of #includes was copied from crtstuff.c. But crtstuff.c also has a bunch of #undefs after the first #include, because, as the comment says, including auto-host.h when building objects that are meant for target is technically not correct. This manifests when I

[PATCH 3/4] libgcc: vxcrtstuff.c: make ctor/dtor functions static

2021-11-01 Thread Rasmus Villemoes
When the translation unit itself creates pointers to the ctors/dtors in a specific section handled by the linker (whether .init_array or .ctors.*), there's no reason for the functions to have external linkage. That ends up polluting the symbol table in the running kernel. This makes vxcrtstuff.c o

[PATCH 2/4] libgcc: vxcrtstuff.c: remove ctor/dtor declarations

2021-11-01 Thread Rasmus Villemoes
These declarations prevent the priority given in the constructor/destructor attributes from taking effect, thus emitting the function pointers in the ordinary (lowest-priority) .init_array/.fini_array sections. libgcc/ * config/vxcrtstuff.c: Remove constructor/destructor declaratio

[PATCH 1/4] libgcc: remove crt{begin, end}.o from powerpc-wrs-vxworks target

2021-11-01 Thread Rasmus Villemoes
Since commit 78e49fb1bc (Introduce vxworks specific crtstuff support), the generic crtbegin.o/crtend.o have been unnecessary to build. So remove them from extra_parts. This is effectively a revert of commit 9a5b8df70 (libgcc: add crt{begin,end} for powerpc-wrs-vxworks target). libgcc/ * c

[PATCH 0/4] some vxworks crtstuff

2021-11-01 Thread Rasmus Villemoes
From: Rasmus Villemoes A few things I hit when trying to upgrade our VxWorks5 toolchain. I don't think these can break anything for VxWorks 6+, and patch 2 should be an improvement for all in that the current code doesn't get compiled as it was clearly intended - though the real bug is likely in

Re: [PATCH Take #2] x86_64: Expand ashrv1ti (and PR target/102986)

2021-11-01 Thread Uros Bizjak via Gcc-patches
On Mon, Nov 1, 2021 at 9:43 AM Jakub Jelinek wrote: > > On Mon, Nov 01, 2021 at 08:27:12AM +0100, Uros Bizjak wrote: > > > Also, I wonder for all these patterns (previously and now added), > > > shouldn't > > > they have && TARGET_64BIT in conditions? I mean, we don't really support > > > scalar

Re: [PATCH]AArch64 Make use of FADDP in simple reductions.

2021-11-01 Thread Richard Sandiford via Gcc-patches
Tamar Christina writes: >> -Original Message- >> From: Richard Sandiford >> Sent: Friday, October 8, 2021 5:24 PM >> To: Tamar Christina >> Cc: gcc-patches@gcc.gnu.org; nd ; Richard Earnshaw >> ; Marcus Shawcroft >> ; Kyrylo Tkachov >> Subject: Re: [PATCH]AArch64 Make use of FADDP in si

RE: [PATCH 1/2] middle-end Teach CSE to be able to do vector extracts.

2021-11-01 Thread Tamar Christina via Gcc-patches
Mailing list got lost somewhere, Archiving OK. > -Original Message- > From: Richard Sandiford > Sent: Friday, October 29, 2021 4:52 PM > To: Tamar Christina > Cc: jeffreya...@gmail.com; rguent...@suse.de; nd > Subject: Re: [PATCH 1/2] middle-end Teach CSE to be able to do vector > extra

Re: [PATCH Take #2] x86_64: Expand ashrv1ti (and PR target/102986)

2021-11-01 Thread Jakub Jelinek via Gcc-patches
On Mon, Nov 01, 2021 at 08:27:12AM +0100, Uros Bizjak wrote: > > Also, I wonder for all these patterns (previously and now added), shouldn't > > they have && TARGET_64BIT in conditions? I mean, we don't really support > > scalar TImode for ia32, but VALID_SSE_REG_MODE includes V1TImode and while >

[PATCH] [PR103017] aarch64:fix redundant check in aut insn generation

2021-11-01 Thread Dan Li via Gcc-patches
During the generation of the epilogue of aarch64(aarch64_expand_epilogue), the value of crtl->calls_eh_return does not need to be checked again. This value has been checked during aarch64_return_address_signing_enabled. gcc/ChangeLog: * config/aarch64/aarch64.c (aarch64_expand_epilogue):

[PATCH] [PATCH] aarch64:fix redundant check in aut insn generation [PR103017] During the generation of the epilogue of aarch64(aarch64_expand_epilogue), the value of crtl->calls_eh_return does not nee

2021-11-01 Thread Dan Li via Gcc-patches
gcc/ChangeLog: * config/aarch64/aarch64.c (aarch64_expand_epilogue): * config/aarch64/aarch64.md: Signed-off-by: Dan Li --- gcc/config/aarch64/aarch64.c | 6 +- gcc/config/aarch64/aarch64.md | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gcc/config/

Add static_chain support to ipa-modref

2021-11-01 Thread Jan Hubicka via Gcc-patches
Hi, this is patchs teaches ipa-modref about the static chain that is, like retslot, a hiden argument. The patch is pretty much symemtric to what was done for retslot handling and I verified it does the intended job for Ada LTO bootstrap. Bootstrapped/regtested x86_64-linux, OK? Honza gcc/Change

RE: [PATCH]AArch64 Make use of FADDP in simple reductions.

2021-11-01 Thread Tamar Christina via Gcc-patches
> -Original Message- > From: Richard Sandiford > Sent: Friday, October 8, 2021 5:24 PM > To: Tamar Christina > Cc: gcc-patches@gcc.gnu.org; nd ; Richard Earnshaw > ; Marcus Shawcroft > ; Kyrylo Tkachov > Subject: Re: [PATCH]AArch64 Make use of FADDP in simple reductions. > > Tamar Chr

Re: [PATCH Take #2] x86_64: Expand ashrv1ti (and PR target/102986)

2021-11-01 Thread Uros Bizjak via Gcc-patches
On Sun, Oct 31, 2021 at 11:02 AM Roger Sayle wrote: > > > Very many thanks to Jakub for proof-reading my patch, catching my silly > GNU-style > mistakes and making excellent suggestions. This revised patch incorporates > all of > his feedback, and has been tested on x86_64-pc-linux-gnu with make