Re: [PATCH] vect: Set pattern_stmt_p on the newly created stmt_vec_info

2024-09-15 Thread Richard Biener
> Am 16.09.2024 um 05:12 schrieb Andrew Pinski : > > While adding simple_dce_worklist to the vectorizer, there was a regression > due to the slp patterns would create a SSA name but never free it even if it > never existed in the IR (this case as addsub but complex ones had the same > issue).

[PATCH] vect: Set pattern_stmt_p on the newly created stmt_vec_info

2024-09-15 Thread Andrew Pinski
While adding simple_dce_worklist to the vectorizer, there was a regression due to the slp patterns would create a SSA name but never free it even if it never existed in the IR (this case as addsub but complex ones had the same issue). The reason why it was never freed was the stmt_vec_info was not

[pushed] wwwdocs: readings: Update NIOS II link

2024-09-15 Thread Gerald Pfeifer
Corporate webmasters, take 379. Sigh. Gerald --- htdocs/readings.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/readings.html b/htdocs/readings.html index 423bc4c1..b5cbf414 100644 --- a/htdocs/readings.html +++ b/htdocs/readings.html @@ -232,7 +232,7 @@ names.

[pushed] libstdc++: Update link to installation docs

2024-09-15 Thread Gerald Pfeifer
libstdc++-v3: * doc/xml/manual/intro.xml: Update link to installation docs. * doc/html/manual/make.html: Regenerate. --- libstdc++-v3/doc/html/manual/make.html | 2 +- libstdc++-v3/doc/xml/manual/intro.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs

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

2024-09-15 Thread Translation Project Robot
Hello, gentle maintainer. This is a message from the Translation Project robot. A revised PO file for textual domain 'cpplib' has been submitted by the Chinese (simplified) team of translators. The file is available at: https://translationproject.org/latest/cpplib/zh_CN.po (This file, 'cpp

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

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

[pushed] c++: __extension__ and -Wconditionally-supported

2024-09-15 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- When we're explicitly choosing GCC extensions, we similarly shouldn't complain about optional features that GCC provides. This particular pattern of cast between function and object pointer is used by gthr-posix.h on some targets, including

[pushed] c++: conversion location

2024-09-15 Thread Jason Merrill
Tested x86_64-pc-linux-gnu, applying to trunk. -- 8< -- It seems more useful for a conversion to have the location of the source expression rather than the enclosing expression, such as a call that might convert multiple arguments in different ways. As a result, in srcloc17.C the recorded locati

Re: [PATCH] x86-64: Don't use temp for argument in a TImode register

2024-09-15 Thread Uros Bizjak
On Sat, Sep 14, 2024 at 12:58 PM H.J. Lu wrote: > > On Sun, Sep 8, 2024 at 12:10 AM Uros Bizjak wrote: > > > > On Fri, Sep 6, 2024 at 2:24 PM H.J. Lu wrote: > > > > > > Don't use temp for a PARALLEL BLKmode argument of an EXPR_LIST expression > > > in a TImode register. Otherwise, the TImode va

[patch,avr] Tweak unsigned compares with consts that are 0 mod 256.

2024-09-15 Thread Georg-Johann Lay
Unsigned comparisons may skip comparing the lower bytes when the according bytes of the constant are all zeros. For example, uint16 >= 0x1200 is true iff hi8 (uint16) >= hi8 (0x1200) and similar for uint16 < 0x1200. Some comparisons against constants that are an integral power of 256

[PATCH] libstdc++: Avoid forming T* in unique_ptr(auto_ptr&&) constraints [PR116529]

2024-09-15 Thread Jonathan Wakely
Tested x86_64-linux. -- >8 -- PR 116529 shows that std::unique_ptr is currently unusable because the constructor taking std::auto_ptr (which is a non-standard extension since C++17) tries to form the invalid type X&* during overload resolution. We can use the `pointer` type in the constructor con

[committed v2] libstdc++: Adjust std::span::iterator to be ADL-proof

2024-09-15 Thread Jonathan Wakely
The v2 patch extends the change to std::basic_stacktrace::iterator. Tested x86_64-linux. Pushed to trunk. -- >8 -- Because std::span can be useful, it makes sense to define std::span::iterator such that Incomplete is not an associated class, and so the compiler won't attempt to complete it when

Re: [PATCH] libstdc++: Enable most of for freestanding

2024-09-15 Thread Jonathan Wakely
On Sat, 14 Sept 2024 at 15:16, Jonathan Wakely wrote: > > On Sat, 14 Sept 2024 at 10:39, Arsen Arsenović wrote: > > > > Jonathan Wakely writes: > > > > > This restores support for most of with -ffreestanding. In case > > > there are users who want a minimal freestanding implementation that only

[committed] libstdc++: Add assertion for valid facet type arguments

2024-09-15 Thread Jonathan Wakely
Tested x86_64-linux. Pushed to trunk. -- >8 -- LWG 436 confirmed that const-qualified types are valid arguments for Facet template parameters, but volatile-qualified types are not. Add an assertion to locale::combine to check for valid types. libstdc++-v3/ChangeLog: * include/bits/loca

[committed] libstdc++: Make PSTL algorithms accept C++20 iterators [PR110512]

2024-09-15 Thread Jonathan Wakely
I posted this for review in January. I've pushed it now. I think the patch is unchanged, but I improved the commit message. Tested x86_64-linux. Pushed to trunk. -- >8 -- This is a step towards implementing the C++23 change P2408R5, "Ranges iterators as inputs to non-Ranges algorithms". C++20 ra

Re: [PATCH v2] libstdc++: add default template parameters to algorithms

2024-09-15 Thread Jonathan Wakely
On Fri, 13 Sept 2024 at 18:36, Patrick Palka wrote: > > On Fri, 13 Sep 2024, Patrick Palka wrote: > > > > Ah, we very recently implemented P2609R3 which has the following note > > about projected_value_t: https://wg21.link/p2609r3#proposal > > > > Do we want to honor this note here and define proj

Re: [PATCH v2] libstdc++: add default template parameters to algorithms

2024-09-15 Thread Jonathan Wakely
On Sun, 15 Sept 2024 at 15:53, Jonathan Wakely wrote: > > On Fri, 13 Sept 2024 at 18:14, Patrick Palka wrote: > > > > On Fri, 13 Sep 2024, Jonathan Wakely wrote: > > > > > On Sat, 3 Aug 2024 at 00:10, Jonathan Wakely wrote: > > > > > > > > On Fri, 2 Aug 2024 at 23:49, Giuseppe D'Angelo > > > >

Re: [PATCH v2] libstdc++: add default template parameters to algorithms

2024-09-15 Thread Jonathan Wakely
On Fri, 13 Sept 2024 at 18:14, Patrick Palka wrote: > > On Fri, 13 Sep 2024, Jonathan Wakely wrote: > > > On Sat, 3 Aug 2024 at 00:10, Jonathan Wakely wrote: > > > > > > On Fri, 2 Aug 2024 at 23:49, Giuseppe D'Angelo > > > wrote: > > > > > > > > Hello, > > > > > > > > as usual thank you for the

Re: [PATCH] Makefile: Fix typos

2024-09-15 Thread Eric Gallager
On Wed, Sep 11, 2024 at 11:24 AM Andrew Kreimer wrote: > > On Wed, Sep 11, 2024 at 11:06:40AM -0400, Eric Gallager wrote: > > On Wed, Sep 11, 2024 at 7:32 AM Andrew Kreimer wrote: > > > > > > Fix typos in comments. > > > > > > Signed-off-by: Andrew Kreimer > > > --- > > > Makefile.def | 2 +- >

Re: [patch,avr] Tidy up enum and struct tags and rtx_code.

2024-09-15 Thread Denis Chertykov
сб, 14 сент. 2024 г. в 14:29, Georg-Johann Lay : > > This patch tidies up enum and struct tags that are > not required in C++. It also uses rtx_code for > RTX codes instead of RTX_CODE. RTX_CODE is now only > used in #ifdef's in avr-protos.h. > > Ok for trunk? Ok. Please apply. Denis. > > Joha

Re: [PATCH v2] c++: Fix constrained auto deduction templ parms resolution [PR114915, PR115030]

2024-09-15 Thread Jason Merrill
On 9/12/24 1:32 PM, Patrick Palka wrote: On Mon, 12 Aug 2024, Seyed Sajad Kahani wrote: When deducing auto for `adc_return_type`, `adc_variable_type`, and `adc_decomp_type` contexts (at the usage time), we try to resolve the outermost template arguments to be used for satisfaction. This is done

Re: [PATCH v5] Provide new GCC builtin __builtin_counted_by_ref [PR116016]

2024-09-15 Thread Qing Zhao
> On Sep 14, 2024, at 8:59 PM, Jakub Jelinek wrote: > > On Wed, Sep 11, 2024 at 09:13:40PM +, Qing Zhao wrote: >> @@ -11741,6 +11770,55 @@ c_parser_postfix_expression (c_parser *parser) >>set_c_expr_source_range (&expr, loc, close_paren_loc); >>break; >> } >> +case

Re: [PATCH 1/2] aarch64: Add SVE2 faminmax intrinsics

2024-09-15 Thread Kyrylo Tkachov
Hi Saurabh, Not a full review, just something I noticed. > On 13 Sep 2024, at 11:06, saurabh@arm.com wrote: > > External email: Use caution opening links or attachments > > > The AArch64 FEAT_FAMINMAX extension is optional from Armv9.2-a and > mandatory from Armv9.5-a. It introduces instru

Re: [PATCH 2/2] aarch64: Add codegen support for SVE2 faminmax

2024-09-15 Thread Kyrylo Tkachov
Hi Saurabh, > On 13 Sep 2024, at 11:06, saurabh@arm.com wrote: > > External email: Use caution opening links or attachments > > > The AArch64 FEAT_FAMINMAX extension is optional from Armv9.2-a and > mandatory from Armv9.5-a. It introduces instructions for computing the > floating point abso