[PATCH] Fix freestanding cstdint which fails to detect stdint.h [PR100057]

2021-04-13 Thread sotrdg sotrdg via Gcc-patches
>From 609cef6c863633711418c6b23401069062ac5df8 Mon Sep 17 00:00:00 2001 From: expnkx Date: Wed, 14 Apr 2021 01:48:38 -0400 Subject: [PATCH] Fix freestanding cstdint which fails to detect stdint.h [PR100057] Configure script cannot find cstdint when we build in freestanding environment since

[PATCH] Fix build errors on several platforms. [PR100057,PR100012,PR99499,PR99306]

2021-04-13 Thread unlvsur unlvsur via Gcc-patches
>From 71e6b5bcf5564ecc59a96fdf2939537e4ccf0004 Mon Sep 17 00:00:00 2001 From: expnkx Date: Wed, 14 Apr 2021 00:17:53 -0400 Subject: [PATCH] Fix build errors on several platforms. [PR100057,PR100012,PR99499,PR99306] [PATCH] libstdc++: Fix build errors with --disable-hosted-libstdcxx [PR100057]

[pushed] c++: lambda in non-type template parm type [PR99478]

2021-04-13 Thread Jason Merrill via Gcc-patches
In this testcase, the non-type template parameter has the type of a lambda-expression. This makes no sense because a lambda in template context is specified to be distinct between different specializations of the template, even if the lambda is non-dependent, but here which specialization we are

Re: [PATCH wwwdoc] Mention Rocketlake [GCC11]

2021-04-13 Thread Hongtao Liu via Gcc-patches
On Mon, Apr 12, 2021 at 6:20 PM Cui, Lili via Gcc-patches wrote: > > > Updated wwwdocs for Rocketlake [GCC11], thanks. > > [PATCH] Mention Rocketlake > --- > htdocs/gcc-11/changes.html | 4 > 1 file changed, 4 insertions(+) > > diff --git a/htdocs/gcc-11/changes.html

Re: [RFC] Run pass_sink_code once more after ivopts/fre

2021-04-13 Thread Xionghu Luo via Gcc-patches
Hi, On 2021/3/26 15:35, Xionghu Luo via Gcc-patches wrote: >> Also we already have a sinking pass on RTL which even computes >> a proper PRE on the reverse graph - -fgcse-sm aka store-motion.c. >> I'm not sure whether this deals with non-stores but the >> LCM machinery definitely can handle

Re: [PATCH] [GCC-9] backport -march=tigerlake to GCC9 [PR target/100009]

2021-04-13 Thread Hongtao Liu via Gcc-patches
On Tue, Apr 13, 2021 at 6:38 PM Uros Bizjak wrote: > > On Tue, Apr 13, 2021 at 12:18 PM Hongtao Liu wrote: > > > > Hi: > > As described in PR, we introduced tigerlake string in driver-i386.c > > by r9-8652 w/o support -march/tune=tigerlake which causes an error > > when using

Re: [PATCH] c++: Fix deduction with reference NTTP [PR83476]

2021-04-13 Thread Jason Merrill via Gcc-patches
On 4/13/21 6:36 PM, Patrick Palka wrote: In the testcase ref11.C below, during deduction for the call f(a), uses_deducible_template_parms returns false for the dependent specialization A because V is wrapped in an implicit INDIRECT_REF (formed from template_parm_to_arg), and this causes

[pushed] c++: DWARF ICE with defaulted specialization [PR90674]

2021-04-13 Thread Jason Merrill via Gcc-patches
Here when we merged the specialization with the implicit instantiation declaration, we wrongly kept the value of DECL_INITIALIZED_IN_CLASS_P from the latter. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog: PR c++/90674 * decl.c (duplicate_decls): Don't propagate

[pushed] c++: debug location of variable cleanups [PR88742]

2021-04-13 Thread Jason Merrill via Gcc-patches
PR49951 complained about the debugger jumping back to the declaration of a local variable when we run its destructor. That was fixed in 4.7, but broke again in 4.8. PR58123 fixed an inconsistency in the behavior, but not the jumping around. This patch addresses the issue by setting

[PATCH] c++: Fix deduction with reference NTTP [PR83476]

2021-04-13 Thread Patrick Palka via Gcc-patches
In the testcase ref11.C below, during deduction for the call f(a), uses_deducible_template_parms returns false for the dependent specialization A because V is wrapped in an implicit INDIRECT_REF (formed from template_parm_to_arg), and this causes unify_one_argument to exit early, causing deduction

Re: [PATCH 1/2] Add IEEE 128-bit min/max support on PowerPC

2021-04-13 Thread Segher Boessenkool
Hi! On Fri, Apr 09, 2021 at 10:42:50AM -0400, Michael Meissner wrote: > Since then the patch seems to have gone into a limbo state. Patches I cannot immediately handle take time, and if they aren't pinged, they can fall off the map. So a) ping your patches, once a week for example; and b) write

[committed] add test for PR 82800

2021-04-13 Thread Martin Sebor via Gcc-patches
The bug was fixed years ago. r11-8162 adds the test case to the test suite. https://gcc.gnu.org/g:af7128621e54f04b90589bb0c3e1ef271c239265 Martin

[committed] add test for PR 86058

2021-04-13 Thread Martin Sebor via Gcc-patches
The issue has been fixed so r11-8161 just adds the test case: https://gcc.gnu.org/g:8084ab15a3e300e3b2c537e56e0f3a1b00778aec Martin

Re: [PATCH] c++: Reject alias CTAD in C++17 [PR99008]

2021-04-13 Thread Patrick Palka via Gcc-patches
On Tue, 13 Apr 2021, Jason Merrill wrote: > On 4/13/21 8:41 AM, Jason Merrill wrote: > > On 4/12/21 6:24 PM, Patrick Palka wrote: > > > On Mon, 12 Apr 2021, Jason Merrill wrote: > > > > > > > On 4/10/21 3:57 PM, Patrick Palka wrote: > > > > > Here, in C++17 mode, we only pedwarn about the use of

[r11-8155 Regression] FAIL: g++.old-deja/g++.pt/crash8.C -std=c++2a (test for excess errors) on Linux/x86_64

2021-04-13 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, 8913b2c2bcded39427ff27e6dfc276ae8555f6b8 is the first bad commit commit 8913b2c2bcded39427ff27e6dfc276ae8555f6b8 Author: Patrick Palka Date: Tue Apr 13 12:35:33 2021 -0400 c++: Reject alias CTAD in C++17 [PR99008] caused FAIL: g++.old-deja/g++.ns/crash3.C -std=c++17

[pushed] c++: alias template equivalence and cv-quals [PR100032]

2021-04-13 Thread Jason Merrill via Gcc-patches
We also need to check that the cv-qualifiers are the same. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog: PR c++/100032 * pt.c (get_underlying_template): Compare TYPE_QUALS. gcc/testsuite/ChangeLog: PR c++/100032 *

Re: [PATCH] c++: Reject alias CTAD in C++17 [PR99008]

2021-04-13 Thread Jason Merrill via Gcc-patches
On 4/13/21 8:41 AM, Jason Merrill wrote: On 4/12/21 6:24 PM, Patrick Palka wrote: On Mon, 12 Apr 2021, Jason Merrill wrote: On 4/10/21 3:57 PM, Patrick Palka wrote: Here, in C++17 mode, we only pedwarn about the use of alias CTAD and then later ICE from alias_ctad_tweaks when attempting to

[PATCH] testsuite: Add testcase for already fixed PR97121

2021-04-13 Thread Jakub Jelinek via Gcc-patches
Hi! This was fixed by r11-5866 aka PR96299 fix. This just adds a testcase for it into the testsuite, tested on x86_64-linux -m32/-m64, committed to trunk. 2021-04-13 Jakub Jelinek PR c++/97121 * g++.dg/cpp2a/spaceship-err6.C: New test. ---

Re: [committed] gimple UIDs, LTO and -fanalyzer [PR98599]

2021-04-13 Thread David Malcolm via Gcc-patches
On Tue, 2021-04-13 at 14:21 -0400, David Malcolm via Gcc-patches wrote: > On Tue, 2021-04-13 at 08:08 +0200, Jan Hubicka wrote: > > Hi, > > stepping through the streaming process it turns out to be funny > > difference between gimple_has_body and node->has_gimple_body_p. > > While the first tests

Re: [committed] gimple UIDs, LTO and -fanalyzer [PR98599]

2021-04-13 Thread David Malcolm via Gcc-patches
On Tue, 2021-04-13 at 08:08 +0200, Jan Hubicka wrote: > Hi, > stepping through the streaming process it turns out to be funny > difference between gimple_has_body and node->has_gimple_body_p. > While the first tests whether gimple body really exists in memory (by > looking for

[pushed] c++: generic lambda in template fn with DMI [PR100054]

2021-04-13 Thread Jason Merrill via Gcc-patches
get_nsdmi instantiates default member initializers on demand. It tries to push into the context of the class before doing so, so access checking works properly, but since my patch for 90479 not for local classes. We should only be doing this when any template parameters have arguments. But in

Re: [PATCH 1/2] Add IEEE 128-bit min/max support on PowerPC

2021-04-13 Thread Segher Boessenkool
Hi! On Fri, Apr 09, 2021 at 11:54:57AM -0500, will schmidt wrote: > On Fri, 2021-04-09 at 10:42 -0400, Michael Meissner wrote: > > * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support for ISA > > 3.1 IEEE 128-bit floating point xsmaxcqp and xsmincqp instructions. > > I don't see

Re: [PATCH] propagate attributes to local redeclaration (PR 99420)

2021-04-13 Thread Martin Sebor via Gcc-patches
On 4/13/21 10:07 AM, Jeff Law wrote: On 4/8/2021 4:15 PM, Martin Sebor via Gcc-patches wrote: The C front end ordinarily merges function type attributes upon the redeclaration of a function but it doesn't do that for those at local scope, unless the declaration refers to a built-in. Because

[committed] libstdc++: Fix to work freestanding [PR 100060]

2021-04-13 Thread Jonathan Wakely via Gcc-patches
libstdc++-v3/ChangeLog: PR libstdc++/100060 * include/std/bit: Only include for hosted build, use otherwise. Tested powerpc64le-linux. Committed to trunk. This needs to be backported to gcc-10 too. commit 474cb5a0a404c5de7c1cd21aac8b1b7e7ce95d9b Author: Jonathan

Re: fix a couple of typos (PR 99883)

2021-04-13 Thread Jeff Law via Gcc-patches
On 4/7/2021 5:46 PM, Martin Sebor via Gcc-patches wrote: The attached patch fixes a couple of typos.  Not sure they qualify as regressions but it seems like a trivial fix worth making even now.  I'll go ahead and commit it as obvious if no-one objects. Yea, this kind of diagnostic message

Re: [PATCH] propagate attributes to local redeclaration (PR 99420)

2021-04-13 Thread Jeff Law via Gcc-patches
On 4/8/2021 4:15 PM, Martin Sebor via Gcc-patches wrote: The C front end ordinarily merges function type attributes upon the redeclaration of a function but it doesn't do that for those at local scope, unless the declaration refers to a built-in. Because the new -Warray-parameter warning

Re: Patch ping for PR95176 fix

2021-04-13 Thread Jeff Law via Gcc-patches
On 4/12/2021 11:45 AM, Victor Tong via Gcc-patches wrote: Hello, I'd like to ping this patch. It contains two new tree-opt patterns in match.pd. [PATCH] tree-optimization: Optimize division followed by multiply [PR95176]

Re: [GCC 12] [PATCH v2] Add inline_ignore_target function attribute

2021-04-13 Thread Martin Sebor via Gcc-patches
On 4/12/21 7:03 PM, H.J. Lu wrote: On Mon, Apr 12, 2021 at 4:55 PM Martin Sebor wrote: On 4/12/21 3:53 PM, H.J. Lu via Gcc-patches wrote: On Mon, Apr 12, 2021 at 2:21 AM Richard Biener wrote: On Sat, Apr 10, 2021 at 5:11 PM H.J. Lu via Gcc-patches wrote: Add inline_ignore_target

Re: libstdc++-v3/doc/xml/manual/backwards_compatibility.xml

2021-04-13 Thread Jonathan Wakely via Gcc-patches
On 13/04/21 16:37 +0100, Jonathan Wakely wrote: On 13/04/21 16:19 +0100, Jonathan Wakely via Libstdc++ wrote: Sorry for the slow reply ... On Mon, 1 Feb 2021 at 22:59, Gerald Pfeifer wrote: I noticed this section on "Backwards Compatibility" in the libstdc++ docs that talks about - glibc

Re: [PATCH] analyzer: enabling Modula-2 Storage/ALLOCATE/DEALLOCATE

2021-04-13 Thread David Malcolm via Gcc-patches
On Tue, 2021-04-13 at 10:52 +0100, Gaius Mulley wrote: > > > Hello David and fellow GCC developers, > > [the proposed patches for GCC trunk are at the end of the email] > > I've been having way too much fun with your -fanalyzer code and > here are four patches which give the analyzer the

Re: [ping] Fix thinko in libcpp preparation patch for modules

2021-04-13 Thread Eric Botcazou
> OK Thanks. And it turns out that the limit on the size of accepted Ada files had been already lowered earlier, namely when location ranges had been introduced. Now we do not make use of location ranges in Ada, so we can recoup the loss. Tested on x86-64/Linux, applied on the mainline, 10

Re: [GCC][Patch] arm: Fix the mve multilib for the broken cmse support (pr99939).

2021-04-13 Thread Richard Earnshaw via Gcc-patches
On 12/04/2021 14:04, Srinath Parvathaneni via Gcc-patches wrote: Hi, The current CMSE support in the multilib build for "-march=armv8.1-m.main+mve -mfloat-abi=hard -mfpu=auto" is broken as specified in PR99939 and this patch fixes the issue. Regression tested on arm-none-eabi and found no

[PATCH] aarch64: Avoid duplicating bti j insns for jump tables [PR99988]

2021-04-13 Thread Alex Coplan via Gcc-patches
Hi all, This patch fixes PR99988 which shows us generating large (> 250) sequences of back-to-back bti j instructions. The fix is simply to avoid inserting bti j instructions at the target of a jump table if we've already inserted one for a given label. Testing: * Bootstrapped and regtested on

[wwwdocs] Add znver3 support to changes.html

2021-04-13 Thread Martin Jambor
Hi, Martin Liška correctly observed that the newly added support for AMD zenver3 in GCC 11 and 10.3 is not reflected in the changes.html files. Would the following be OK? Thanks, Martin diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html index d5166879..d9971ffb 100644 ---

Re: [PATCH] c++: Reject alias CTAD in C++17 [PR99008]

2021-04-13 Thread Jason Merrill via Gcc-patches
On 4/12/21 6:24 PM, Patrick Palka wrote: On Mon, 12 Apr 2021, Jason Merrill wrote: On 4/10/21 3:57 PM, Patrick Palka wrote: Here, in C++17 mode, we only pedwarn about the use of alias CTAD and then later ICE from alias_ctad_tweaks when attempting to add a constraint to one of the guides.

[PATCH] tree-optimization/100051 - disambiguate access size vs decl

2021-04-13 Thread Richard Biener
This adds disambiguation of the access size vs. the decl size in the pointer based vs. decl based disambiguator. We have a TBAA based check like this already but that's fend off when seeing alias-sets of zero or when -fno-strict-aliasing is in effect. Also the perceived dynamic type could be

[PATCH] tree-optimization/100053 - fix predication in VN

2021-04-13 Thread Richard Biener
This avoids doing optimistic dominance queries involving non-executable backedges when validating recorded predicated values in VN because we have no way to force re-evaluating validity when optimistically not executable edges become executable later. Bootstrapped and tested on

[pushed] c++: constexpr, inheritance, and local class [PR91933]

2021-04-13 Thread Jason Merrill via Gcc-patches
Here we complained about referring to nm3 from the local class member function because referring to the base class subobject involved taking the variable's address. Let's shortcut this case to avoid that. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/cp/ChangeLog: PR c++/91933

preprocessor: Fix column adjustment [PR 99446]

2021-04-13 Thread Nathan Sidwell
This ICE was because when adjusting a column offset we could advance into a linemap for a different file. We only checked the next line map was not for a line further advanced in any file, forgetting that it could be for an earlier line in a different file. The testcase needed adjusting as

Re: [PATCH] [GCC-9] backport -march=tigerlake to GCC9 [PR target/100009]

2021-04-13 Thread Uros Bizjak via Gcc-patches
On Tue, Apr 13, 2021 at 12:18 PM Hongtao Liu wrote: > > Hi: > As described in PR, we introduced tigerlake string in driver-i386.c > by r9-8652 w/o support -march/tune=tigerlake which causes an error > when using -march/tune=native with GCC9 on tigerlake machine. > Bootstrapped and regtested

Re: [GCC 12] [PATCH v2] Add inline_ignore_target function attribute

2021-04-13 Thread Richard Biener via Gcc-patches
On Mon, Apr 12, 2021 at 11:53 PM H.J. Lu wrote: > > On Mon, Apr 12, 2021 at 2:21 AM Richard Biener > wrote: > > > > On Sat, Apr 10, 2021 at 5:11 PM H.J. Lu via Gcc-patches > > wrote: > > > > > > Add inline_ignore_target function attribute to inform the compiler that > > > target specific option

[PATCH] [GCC-9] backport -march=tigerlake to GCC9 [PR target/100009]

2021-04-13 Thread Hongtao Liu via Gcc-patches
Hi: As described in PR, we introduced tigerlake string in driver-i386.c by r9-8652 w/o support -march/tune=tigerlake which causes an error when using -march/tune=native with GCC9 on tigerlake machine. Bootstrapped and regtested on x86-64_iinux-gnu{-m32,}. Ok for GCC9? gcc/ *

Re: [PATCH] aarch64: Restore bfxil optimization [PR100028]

2021-04-13 Thread Richard Sandiford via Gcc-patches
Jakub Jelinek writes: > Hi! > > Similarly to PR87763 for bfi, the GCC 9 combiner changes to not combine > moves from hard registers regressed the following testcase where we no > longer recognize bfxil and emit 3 instructions instead. > > The following patch adds define_insn patterns that match

[PATCH] analyzer: enabling Modula-2 Storage/ALLOCATE/DEALLOCATE

2021-04-13 Thread Gaius Mulley via Gcc-patches
Hello David and fellow GCC developers, [the proposed patches for GCC trunk are at the end of the email] I've been having way too much fun with your -fanalyzer code and here are four patches which give the analyzer the ability to understand the Modula-2 Storage API.

Re: [PATCH] mh-mingw: Set __USE_MINGW_ACCESS in missed C++ flags variables

2021-04-13 Thread Jonathan Yong via Gcc-patches
On 4/9/21 11:46 AM, Martin Storsjö wrote: This is similar to what was done in eea4e2ff0a3f5e7f37df204c070cc5d9ef339e6e (where it was added to STAGE*_CXXFLAGS), but this adds the flag to the CXXFLAGS and BOOT_CXXFLAGS variables too (as it's already added to CFLAGS and BOOT_CFLAGS). 2021-04-09

Re: [PATCH] mh-mingw: Set __USE_MINGW_ACCESS in missed C++ flags variables

2021-04-13 Thread Jonathan Yong via Gcc-patches
On 4/9/21 11:46 AM, Martin Storsjö wrote: This is similar to what was done in eea4e2ff0a3f5e7f37df204c070cc5d9ef339e6e (where it was added to STAGE*_CXXFLAGS), but this adds the flag to the CXXFLAGS and BOOT_CXXFLAGS variables too (as it's already added to CFLAGS and BOOT_CFLAGS). 2021-04-09

Gcc

2021-04-13 Thread rebecca button
Hi, I am following up to confirm if you (Gcc) are interested in acquiring the Visitors/Registrants List. Salon De L' Immobilier 28 - 30 May 2021 Rennes, France Registrants Counts:4200 Each record of the list contains: Contact Name, Email Address, Company Name, URL/Website, Phone No,

[PATCH] aarch64: Restore bfxil optimization [PR100028]

2021-04-13 Thread Jakub Jelinek via Gcc-patches
Hi! Similarly to PR87763 for bfi, the GCC 9 combiner changes to not combine moves from hard registers regressed the following testcase where we no longer recognize bfxil and emit 3 instructions instead. The following patch adds define_insn patterns that match what the combiner is trying to match

Re: [PATCH] simplify-rtx: Punt on simplify_{,gen_}subreg to IBM double double if bits are lost [PR99648]

2021-04-13 Thread Richard Biener
On Mon, 12 Apr 2021, Jakub Jelinek wrote: > Hi! > > Similarly to PR95450 done on GIMPLE, this patch punts if we try to > simplify_{gen_,}subreg from some constant into the IBM double double > IFmode (or sometimes TFmode) if the double double format wouldn't preserve > the bits. Not all values

Re: [committed] gimple UIDs, LTO and -fanalyzer [PR98599]

2021-04-13 Thread Jan Hubicka
Hi, stepping through the streaming process it turns out to be funny difference between gimple_has_body and node->has_gimple_body_p. While the first tests whether gimple body really exists in memory (by looking for DECL_STRUCT_FUNCTION) the second tests if gimple body can be made available via