[Bug fortran/101199] program changes the value of a dummy argument

2021-06-24 Thread ygalklein at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101199 --- Comment #2 from ygal klein --- The problem also persists in an example code that is with no extended type: ```fortran module mod_original_struct implicit none private public :: original_struct type original_struct

Re: PING^1 [PATCH v4 0/2] x86: Convert CONST_WIDE_INT/CONST_VECTOR to broadcast

2021-06-24 Thread Hongtao Liu via Gcc-patches
I didn't receive https://gcc.gnu.org/pipermail/gcc-patches/2021-June/572436.html in my gmail account, does anyone know why? >--- a/gcc/config/i386/i386-protos.h >+++ b/gcc/config/i386/i386-protos.h >@@ -260,6 +260,7 @@ extern void ix86_expand_mul_widen_hilo (rtx, rtx, rtx, >bool, bool); >

[Bug fortran/101199] program changes the value of a dummy argument

2021-06-24 Thread ygalklein at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101199 --- Comment #1 from ygal klein --- The problem stays for even a smaller example program: ``` fortran module mod_original_struct implicit none private public :: extended_struct type original_struct private

[r12-1805 Regression] FAIL: gcc.dg/analyzer/setjmp-2.c (test for excess errors) on Linux/x86_64

2021-06-24 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, e9e2bad7251477db92ab9ebcdc010f9282dd9890 is the first bad commit commit e9e2bad7251477db92ab9ebcdc010f9282dd9890 Author: Martin Sebor Date: Thu Jun 24 19:22:06 2021 -0600 middle-end: add support for per-location warning groups. caused FAIL: gcc.dg/analyzer/setjmp-2.c

[Bug libstdc++/101203] New: Remove unnecessary empty check in std::function

2021-06-24 Thread lutztonineubert at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101203 Bug ID: 101203 Summary: Remove unnecessary empty check in std::function Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

Re: [PATCH resend] testsuite: avoid no-stack-protector-attr-3 fail on mips*-*-*

2021-06-24 Thread Xi Ruoyao via Gcc-patches
On Thu, 2021-06-24 at 00:05 -0600, Jeff Law wrote: > > > On 6/22/2021 3:44 AM, Xi Ruoyao via Gcc-patches wrote: > > [Resend because the original subject missed "[PATCH]" and the path > > in > > ChangeLog is wrong.] > > > > On MIPS a call to __stack_chk_fail needs an additional .reloc > >

Re: [PATCH] x86: Compile CPUID functions with -mgeneral-regs-only

2021-06-24 Thread Hongtao Liu via Gcc-patches
On Fri, Jun 25, 2021 at 12:13 AM Uros Bizjak via Gcc-patches wrote: > > On Thu, Jun 24, 2021 at 2:12 PM H.J. Lu wrote: > > > > CPUID functions are used to detect CPU features. If vector ISAs > > are enabled, compiler is free to use them in these functions. Add > > __attribute__

[Bug other/91085] fixincludes breaks

2021-06-24 Thread xry111 at mengyan1223 dot wang via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91085 Xi Ruoyao changed: What|Removed |Added CC||xry111 at mengyan1223 dot wang --- Comment

__fp16 is ambiguous error in C++

2021-06-24 Thread ALO via Gcc
#include __fp16 foo (__fp16 a, __fp16 b) { return a + std::exp(b); } compiler options: = riscv64-unknown-linux-gnu-g++ foo.c -march=rv64gc_zfh -mabi=lp64 error: == foo.c: In function '__fp16 foo(__fp16, __fp16)': foo.c:6:23: error: call of overloaded 'exp(__fp16&)' is

[Bug fortran/101079] [OPENMP] The value of list-item in linear clause in loop construct is not calculated on each iteration

2021-06-24 Thread xiao.liu--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101079 --- Comment #4 from xiao@compiler-dev.com --- (In reply to Jakub Jelinek from comment #1) > Under discussions in OpenMP language committee, but the latest proposal is > that this is invalid, you need to increment the linear variable by >

Re: [PATCH 10/13] v2 Use new per-location warning APIs in the middle end

2021-06-24 Thread Martin Sebor via Gcc-patches
On 6/23/21 11:15 PM, Jeff Law wrote: On 6/4/2021 3:43 PM, Martin Sebor via Gcc-patches wrote: The attached patch introduces declarations of the new suppress_warning(), warning_suppressed_p(), and copy_warning() APIs, and replaces the uses of TREE_NO_WARNING in the middle end with them.

Re: [PATCH 6/13] v2 Use new per-location warning APIs in the C++ front end

2021-06-24 Thread Martin Sebor via Gcc-patches
On 6/23/21 11:12 PM, Jeff Law wrote: On 6/4/2021 3:42 PM, Martin Sebor via Gcc-patches wrote: The attached patch replaces the uses of TREE_NO_WARNING in the C++ front end with the new suppress_warning(), warning_suppressed_p(), and copy_warning() APIs. gcc-no-warning-cp.diff Add support for

Re: [PATCH 4/13] v2 Use new per-location warning APIs in C family code

2021-06-24 Thread Martin Sebor via Gcc-patches
On 6/23/21 11:06 PM, Jeff Law wrote: On 6/4/2021 3:42 PM, Martin Sebor via Gcc-patches wrote: The attached patch replaces the uses of TREE_NO_WARNING in the shared C family front end with the new suppress_warning(), warning_suppressed_p(), and copy_warning() APIs.

Re: [PATCH 3/13] v2 Use new per-location warning APIs in C front end

2021-06-24 Thread Martin Sebor via Gcc-patches
On 6/23/21 11:09 PM, Jeff Law wrote: On 6/4/2021 3:41 PM, Martin Sebor via Gcc-patches wrote: The attached patch replaces the uses of TREE_NO_WARNING in the C front end with the new suppress_warning(), warning_suppressed_p(), and copy_warning() APIs. gcc-no-warning-c.diff Add support for

Re: [PATCH 1/13] v2 [PATCH 1/13] Add support for per-location warning groups (PR 74765)

2021-06-24 Thread Martin Sebor via Gcc-patches
On 6/23/21 11:26 PM, Jeff Law wrote: On 6/23/2021 1:47 PM, Martin Sebor via Gcc-patches wrote: On 6/22/21 5:28 PM, David Malcolm wrote: On Tue, 2021-06-22 at 19:18 -0400, David Malcolm wrote: On Fri, 2021-06-04 at 15:41 -0600, Martin Sebor wrote: The attached patch introduces the

[Bug tree-optimization/101145] niter analysis fails for until-wrap condition

2021-06-24 Thread amker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101145 --- Comment #4 from bin cheng --- (In reply to Jiu Fu Guo from comment #3) > Yes, while the code in adjust_cond_for_loop_until_wrap seems somehow tricky: > > /* Only support simple cases for the moment. */ > if (TREE_CODE (iv0->base) !=

[Bug tree-optimization/101145] niter analysis fails for until-wrap condition

2021-06-24 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101145 --- Comment #3 from Jiu Fu Guo --- Yes, while the code in adjust_cond_for_loop_until_wrap seems somehow tricky: /* Only support simple cases for the moment. */ if (TREE_CODE (iv0->base) != INTEGER_CST || TREE_CODE (iv1->base) !=

[Bug target/101185] [12 Regression] pr96814.c failed after r12-1669 on non-avx512 platform

2021-06-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101185 --- Comment #14 from CVS Commits --- The master branch has been updated by hongtao Liu : https://gcc.gnu.org/g:980e278dbe5b50dc5a856ea627359c521f1cda53 commit r12-1800-g980e278dbe5b50dc5a856ea627359c521f1cda53 Author: liuhongt Date: Thu

gcc-9-20210624 is now available

2021-06-24 Thread GCC Administrator via Gcc
Snapshot gcc-9-20210624 is now available on https://gcc.gnu.org/pub/gcc/snapshots/9-20210624/ and on various mirrors, see http://gcc.gnu.org/mirrors.html for details. This snapshot has been generated from the GCC 9 git branch with the following options: git://gcc.gnu.org/git/gcc.git branch

[Bug middle-end/101134] Bogus -Wstringop-overflow warning about non-existent overflow

2021-06-24 Thread dangelog at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101134 --- Comment #13 from Giuseppe D'Angelo --- Hi, (In reply to Martin Sebor from comment #12) > So in general, the distinction between the two cases can only be made when > it can be discerned from the IL, and the IL doesn't always preserve the >

[Bug c++/92105] [8/9/10 Regression] decltype(decltype(decltype)) prints exponential number of repeated errors

2021-06-24 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92105 Jeremy R. changed: What|Removed |Added CC||llvm at rifkin dot dev --- Comment #6 from

RE: [EXTERNAL] Re: State of AutoFDO in GCC

2021-06-24 Thread Eugene Rozenfeld via Gcc
Hi Andy, I'm trying to revive autofdo testing. One of the issues I'm running into with my setup is that PEBS doesn't work for with perf record even though PEBS is enabled. I'm running Ubuntu 20.04 in a Hyper-V virtual machine; the processor is Icelake (GenuineIntel-6-7E). I did the following:

[Bug tree-optimization/101202] New: ICE at -O3 on x86_64-linux-gnu: Segmentation fault

2021-06-24 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210624 (experimental) [master revision a0accaa9984:cc7f2982315:ce3316e9c02c81c509173572c71a101f4eb62a24] (GCC) [530] % [530] % gcctk -O2 small.c; ./a.out [531] % [531] % gcctk -O3 small.c during GIMPLE pass: slp small.c

[Bug middle-end/101134] Bogus -Wstringop-overflow warning about non-existent overflow

2021-06-24 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101134 --- Comment #12 from Martin Sebor --- I don't need to be convinced that it would be nice to be able to differentiate between certain bugs and possible ones. The text of this class of warnings already does differentiate between "may

Re: [committed] libstdc++: Implement LWG 2762 for std::unique_ptr::operator*

2021-06-24 Thread Tim Song via Gcc-patches
That example violates http://eel.is/c++draft/unique.ptr.runtime.general#3 On Thu, Jun 24, 2021 at 1:55 PM Patrick Palka via Gcc-patches wrote: > > On Thu, 24 Jun 2021, Jonathan Wakely via Libstdc++ wrote: > > > The LWG issue proposes to add a conditional noexcept-specifier to > >

Re: daily report on extending static analyzer project [GSoC]

2021-06-24 Thread David Malcolm via Gcc
On Thu, 2021-06-24 at 19:59 +0530, Ankur Saini wrote: > CURRENT STATUS : > > analyzer is now splitting nodes even at call sites which doesn’t have > a cgraph_edge. But as now the call and return nodes are not > connected, the part of the function after such calls becomes > unreachable making them

[Bug rtl-optimization/101200] Unneeded AND after shift

2021-06-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101200 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug testsuite/101114] new test case libgomp.c/../libgomp.c-c++-common/struct-elem-5.c fails after its introduction in r12-1565

2021-06-24 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101114 --- Comment #2 from seurer at gcc dot gnu.org --- To be complete this shows up as two failures: FAIL: libgomp.c++/../libgomp.c-c++-common/struct-elem-5.c execution test FAIL: libgomp.c/../libgomp.c-c++-common/struct-elem-5.c execution test

[PATCH] c++: CTAD within alias template [PR91911]

2021-06-24 Thread Patrick Palka via Gcc-patches
In the first testcase below, during parsing of the alias template ConstSpanType, transparency of alias template specializations means we replace SpanType with SpanType's substituted definition. But this substitution lowers the level of the CTAD placeholder for span(T()) from 2 to 1, and so the

[Bug rtl-optimization/101200] Unneeded AND after shift

2021-06-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101200 --- Comment #2 from Andrew Pinski --- Note the tree level looks decent: a_6 = d.0_1 >> 4; f_7 = d.0_1 & 15; _2 = (int) f_7; _3 = (int) a_6; _4 = c.b[_2]; c.b[_3] = _4; Which gets expanded (for c.b[_3] and dependents) into: (insn 5

[Bug target/100952] [12 regression] several test case failures after r12-1202

2021-06-24 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100952 --- Comment #5 from seurer at gcc dot gnu.org --- *** Bug 101201 has been marked as a duplicate of this bug. ***

[Bug other/101201] [12 regression] test case gcc.target/powerpc/pr56605.c fails on BE after r12-1202

2021-06-24 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101201 seurer at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug rtl-optimization/101200] Unneeded AND after shift

2021-06-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101200 Andrew Pinski changed: What|Removed |Added Component|tree-optimization |rtl-optimization Keywords|

[Bug other/101201] New: [12 regression] test case gcc.target/powerpc/pr56605.c fails on BE after r12-1202

2021-06-24 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101201 Bug ID: 101201 Summary: [12 regression] test case gcc.target/powerpc/pr56605.c fails on BE after r12-1202 Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug tree-optimization/101200] New: Unneeded AND after shift

2021-06-24 Thread steinar+gcc at gunderson dot no via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101200 Bug ID: 101200 Summary: Unneeded AND after shift Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/101189] [12 Regression] ICE at -Os and above on x86_64-linux-gnu: in fold_cond, at vr-values.c:3471 since r12-1721-ga2c9173331914eff

2021-06-24 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101189 Andrew Macleod changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[COMMITTED] tree-optimization/101189 - Only register relations on live edges

2021-06-24 Thread Andrew MacLeod via Gcc-patches
As mentioned in the PR analysis, we shouldn't register a relation on an outgoing conditional edge if range analysis proves that edge can never be taken. Its just asking for trouble :-) Bootstrapped on x86_64-pc-linux-gnu.  Pushed. Andrew >From a0accaa99844b0c40661202635859f8c0be76cdd Mon Sep

[COMMITTED] Add a test case to confirm the equivalence's are being checked by EVRP.

2021-06-24 Thread Andrew MacLeod via Gcc-patches
Adding a testcase which shows the equivalence/relation engine working as it should. pushed. Andrew >From ce3316e9c02c81c509173572c71a101f4eb62a24 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Thu, 24 Jun 2021 13:49:51 -0400 Subject: [PATCH 2/2] Add a testcase to confirm the

[Bug tree-optimization/101189] [12 Regression] ICE at -Os and above on x86_64-linux-gnu: in fold_cond, at vr-values.c:3471 since r12-1721-ga2c9173331914eff

2021-06-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101189 --- Comment #3 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:a0accaa99844b0c40661202635859f8c0be76cdd commit r12-1797-ga0accaa99844b0c40661202635859f8c0be76cdd Author: Andrew MacLeod Date:

[Bug fortran/101199] New: program changes the value of a dummy argument

2021-06-24 Thread ygalklein at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101199 Bug ID: 101199 Summary: program changes the value of a dummy argument Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

Re: [EXTERNAL] Re: rs6000: Fix typos in float128 ISA3.1 support

2021-06-24 Thread Segher Boessenkool
On Thu, Jun 24, 2021 at 05:32:20PM +0800, Kewen.Lin wrote: > on 2021/6/24 上午12:58, Segher Boessenkool wrote: > > On Wed, Jun 23, 2021 at 12:17:07PM +0800, Kewen.Lin wrote: > +#ifdef FLOAT128_HW_INSNS_ISA3_1 > TFtype __floattikf (TItype_ppc) > __attribute__ ((__ifunc__

[Bug middle-end/101134] Bogus -Wstringop-overflow warning about non-existent overflow

2021-06-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101134 David Malcolm changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org ---

[Bug libstdc++/101198] libstdc++-v3/doc/html/manual/policy_based_data_structures_test.html is not valid XHTML; fails DTD validation

2021-06-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101198 --- Comment #2 from Jonathan Wakely --- I think this will fix it: --- a/libstdc++-v3/doc/xml/manual/test_policy_data_structures.xml +++ b/libstdc++-v3/doc/xml/manual/test_policy_data_structures.xml @@ -105,6 +105,7 @@

[Bug libstdc++/101198] libstdc++-v3/doc/html/manual/policy_based_data_structures_test.html is not valid XHTML; fails DTD validation

2021-06-24 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101198 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2021-06-24 Ever confirmed|0

Re: [committed] libstdc++: Implement LWG 2762 for std::unique_ptr::operator*

2021-06-24 Thread Jonathan Wakely via Gcc-patches
On Thu, 24 Jun 2021 at 19:54, Patrick Palka wrote: > > On Thu, 24 Jun 2021, Jonathan Wakely via Libstdc++ wrote: > > > The LWG issue proposes to add a conditional noexcept-specifier to > > std::unique_ptr's dereference operator. The issue is currently in > > Tentatively Ready status, but even if

[Bug c++/91911] Strange interaction between CTAD and decltype

2021-06-24 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91911 Patrick Palka changed: What|Removed |Added CC||cadet.gabriel at gmail dot com ---

[Bug c++/100723] [9/10/11/12] ICE in tsubst when using std::variant in templated class using CTAD

2021-06-24 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100723 Patrick Palka changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/91911] Strange interaction between CTAD and decltype

2021-06-24 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91911 Patrick Palka changed: What|Removed |Added CC||juergen.reiss at gmx dot de --- Comment

[Bug c++/98077] C++ 17: Using alias template bug in gcc

2021-06-24 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98077 Patrick Palka changed: What|Removed |Added CC||ppalka at gcc dot gnu.org

[Bug c++/91911] Strange interaction between CTAD and decltype

2021-06-24 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91911 Patrick Palka changed: What|Removed |Added Ever confirmed|0 |1 CC|

[Bug gcov-profile/80223] RFE: Exclude functions from profile instrumentation

2021-06-24 Thread ndesaulniers at google dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80223 --- Comment #23 from Nick Desaulniers --- (In reply to Fangrui Song from comment #18) > I > think a similar topic may need to be raided on llvm-dev side as I feel this > is the tip of the iceberg - more attributes can be similarly leveraged. So,

[r12-1773 Regression] FAIL: gcc.dg/vect/pr96854.c (test for excess errors) on Linux/x86_64

2021-06-24 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, 7a6c31f0f84a7295433ebac09b94fae2d5cc2892 is the first bad commit commit 7a6c31f0f84a7295433ebac09b94fae2d5cc2892 Author: Richard Biener Date: Mon May 31 13:19:01 2021 +0200 Add x86 addsub SLP pattern caused FAIL: gcc.dg/vect/pr96854.c -flto -ffat-lto-objects (internal

[r12-1764 Regression] FAIL: g++.dg/opt/pr91838.C -std=c++2a scan-assembler pxor\\s+%xmm0,\\s+%xmm0 on Linux/x86_64

2021-06-24 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, 3bd86940c428de9dde53e41265fb1435ed236f5e is the first bad commit commit 3bd86940c428de9dde53e41265fb1435ed236f5e Author: liuhongt Date: Tue Jan 26 16:29:32 2021 +0800 i386: Add vashlm3/vashrm3/vlshrm3 to enable vectorization of vector shift vector. [PR98434] caused

Re: [PATCH] aix: handle 64bit inodes for include directories

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/23/2021 12:53 AM, CHIGOT, CLEMENT via Gcc-patches wrote: Hi David, Did you have a chance to take look at this patch ? Thanks, Clément +DavidMalcolm Can you review this patch when you have a moment? Thanks, David On Mon, May 17, 2021 at 3:05 PM David Edelsohn wrote: The aix.h

[Bug tree-optimization/101189] [12 Regression] ICE at -Os and above on x86_64-linux-gnu: in fold_cond, at vr-values.c:3471 since r12-1721-ga2c9173331914eff

2021-06-24 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101189 --- Comment #2 from Andrew Macleod --- We always register relations on outgoing edges from a conditional. in this case _2 = -f_6; // f_6 was known to be [4,5] if (_2 == f_6) // This this was known to fail because _2 was [-5, -4]

[Bug libstdc++/101198] New: libstdc++-v3/doc/html/manual/policy_based_data_structures_test.html is not valid XHTML; fails DTD validation

2021-06-24 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101198 Bug ID: 101198 Summary: libstdc++-v3/doc/html/manual/policy_based_data_structu res_test.html is not valid XHTML; fails DTD validation Product: gcc Version: 12.0 Status:

[Bug middle-end/101195] ICE: in tree_to_uhwi, at tree.c:6324

2021-06-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101195 Andrew Pinski changed: What|Removed |Added Version|tree-ssa|12.0 Keywords|

Re: [committed] libstdc++: Implement LWG 2762 for std::unique_ptr::operator*

2021-06-24 Thread Patrick Palka via Gcc-patches
On Thu, 24 Jun 2021, Jonathan Wakely via Libstdc++ wrote: > The LWG issue proposes to add a conditional noexcept-specifier to > std::unique_ptr's dereference operator. The issue is currently in > Tentatively Ready status, but even if it isn't voted into the draft, we > can do it as a conforming

[Bug tree-optimization/101186] predictable comparison of integer variables not folded

2021-06-24 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101186 Andrew Macleod changed: What|Removed |Added CC||aldyh at redhat dot com,

Re: [PATCH] x86: Compile CPUID functions with -mgeneral-regs-only

2021-06-24 Thread H.J. Lu via Gcc-patches
On Thu, Jun 24, 2021 at 9:12 AM Uros Bizjak wrote: > > On Thu, Jun 24, 2021 at 2:12 PM H.J. Lu wrote: > > > > CPUID functions are used to detect CPU features. If vector ISAs > > are enabled, compiler is free to use them in these functions. Add > > __attribute__ ((target("general-regs-only")))

[Bug middle-end/101134] Bogus -Wstringop-overflow warning about non-existent overflow

2021-06-24 Thread rsandifo at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101134 rsandifo at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |rsandifo at gcc

[PATCH] fixinc: don't "fix" machine names in quoted string [PR91085]

2021-06-24 Thread Xi Ruoyao via Gcc-patches
Bootstrapped and regtested on x86_64-linux-gnu. Ok for trunk? fixincludes/ * fixfixes.c (print_quote): Define it unconditionally, taking and returning const char *. (machine_name_fix): Output quoted strings verbatim. --- fixincludes/fixfixes.c | 30

[COMMITTED] Fix relation query of equivalences.

2021-06-24 Thread Andrew MacLeod via Gcc-patches
When looking for relations between equivalencies, a typo was causing the same bitmap to be checked for both operands, instead of the correct one for each.   This caused us to never notice relations between equivalences. I also noticed that under some circumstances the relation dump would

[COMMITTED] Correctly unify recomputation with existing range.

2021-06-24 Thread Andrew MacLeod via Gcc-patches
When propagating the on-entry cache, new block ranges are calculated by combining all the incoming edges and comparing to the old value. When a recomputation was performed on an edge, it didn't take into account that the value in the block may already be better than a potential

PING^1 [PATCH v4 0/2] x86: Convert CONST_WIDE_INT/CONST_VECTOR to broadcast

2021-06-24 Thread H.J. Lu via Gcc-patches
On Wed, Jun 9, 2021 at 4:39 PM H.J. Lu wrote: > > 1. Update move expanders to convert the CONST_WIDE_INT and CONST_VECTO > operands to vector broadcast from an integer with AVX2. > 2. Add ix86_gen_scratch_sse_rtx to return a scratch SSE register which > won't increase stack alignment requirement

[Bug c++/98832] CTAD fails for alias template of aggregate with specified undeducible template parameter

2021-06-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98832 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:c761be53f6b62e22ac5de18c4aaf88648f64f5b7 commit r12-1793-gc761be53f6b62e22ac5de18c4aaf88648f64f5b7 Author: Patrick Palka Date:

[Bug middle-end/101134] Bogus -Wstringop-overflow warning about non-existent overflow

2021-06-24 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101134 Segher Boessenkool changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

Re: [PATCH] testsuite: mips: use noinline attribute instead of -fno-inline

2021-06-24 Thread Xi Ruoyao via Gcc-patches
On Thu, 2021-06-24 at 10:48 -0600, Jeff Law wrote: > > > On 6/22/2021 1:05 AM, Xi Ruoyao via Gcc-patches wrote: > > mips.exp does not support -fno-inline, causing the tests return > > "ERROR: > > Unrecognised option: -fno-inline for dg-options ... ". > > > > Use noinline attribute like other

Re: [PATCH] testsuite: mips: use noinline attribute instead of -fno-inline

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/22/2021 1:05 AM, Xi Ruoyao via Gcc-patches wrote: mips.exp does not support -fno-inline, causing the tests return "ERROR: Unrecognised option: -fno-inline for dg-options ... ". Use noinline attribute like other mips target tests, to workaround it. gcc/testsuite/ *

RE: [ARM] PR98435: Missed optimization in expanding vector constructor

2021-06-24 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Prathamesh Kulkarni > Sent: 14 June 2021 09:02 > To: Christophe Lyon > Cc: gcc Patches ; Kyrylo Tkachov > > Subject: Re: [ARM] PR98435: Missed optimization in expanding vector > constructor > > On Wed, 9 Jun 2021 at 15:58, Prathamesh Kulkarni > wrote: >

Re: [PATCH 5/6] make get_domminated_by_region return a auto_vec

2021-06-24 Thread Richard Sandiford via Gcc-patches
Richard Biener via Gcc-patches writes: > On Wed, Jun 23, 2021 at 12:22 PM Richard Sandiford > wrote: >> >> Richard Biener writes: >> > On Wed, Jun 23, 2021 at 7:23 AM Trevor Saunders >> > wrote: >> >> >> >> On Tue, Jun 22, 2021 at 02:01:24PM -0600, Martin Sebor wrote: >> >> > On 6/21/21 1:15

RE: [ARM] PR66791: Replace builtins for vdup_n and vmov_n intrinsics

2021-06-24 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Prathamesh Kulkarni > Sent: 24 June 2021 12:11 > To: gcc Patches ; Kyrylo Tkachov > > Subject: [ARM] PR66791: Replace builtins for vdup_n and vmov_n intrinsics > > Hi, > This patch replaces builtins for vdup_n and vmov_n. > The patch results in regression

Re: [PATCH 6/7] Lower for loops before lowering cond in genmatch

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/23/2021 4:19 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski While converting some fold_cond_expr_with_comparison to match, I found that I wanted to use "for cnd (cond vec_cond)" but that was not causing the lowering of cond to happen. What was happening was the lowering of

Re: [PATCH 4/7] Allow match-and-simplified phiopt to run in early phiopt

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/23/2021 4:19 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski To move a few things more to match-and-simplify from phiopt, we need to allow match_simplify_replacement to run in early phiopt. To do this we add a replacement for gimple_simplify that is explictly for phiopt. OK?

Re: replacing the backwards threader and more

2021-06-24 Thread Jeff Law via Gcc
On 6/21/2021 8:40 AM, Aldy Hernandez wrote: On 6/9/21 2:09 PM, Richard Biener wrote: On Wed, Jun 9, 2021 at 1:50 PM Aldy Hernandez via Gcc wrote: Hi Jeff.  Hi folks. What started as a foray into severing the old (forward) threader's dependency on evrp, turned into a rewrite of the

Re: [PATCH] x86: Compile CPUID functions with -mgeneral-regs-only

2021-06-24 Thread Uros Bizjak via Gcc-patches
On Thu, Jun 24, 2021 at 2:12 PM H.J. Lu wrote: > > CPUID functions are used to detect CPU features. If vector ISAs > are enabled, compiler is free to use them in these functions. Add > __attribute__ ((target("general-regs-only"))) to CPUID functions > to avoid vector instructions. These

Re: [PATCH, OpenMP 5.0] Implement relaxation of implicit map vs. existing device mappings (for mainline trunk)

2021-06-24 Thread Jakub Jelinek via Gcc-patches
On Fri, May 14, 2021 at 09:20:25PM +0800, Chung-Lin Tang wrote: > diff --git a/gcc/gimplify.c b/gcc/gimplify.c > index e790f08b23f..69c4a8e0a0a 100644 > --- a/gcc/gimplify.c > +++ b/gcc/gimplify.c > @@ -10374,6 +10374,7 @@ gimplify_adjust_omp_clauses_1 (splay_tree_node n, > void *data) >

[Bug tree-optimization/101145] niter analysis fails for until-wrap condition

2021-06-24 Thread amker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101145 --- Comment #2 from bin cheng --- (In reply to Richard Biener from comment #1) > This comes up with a pending patch to split loops like > > void > foo (int *a, int *b, unsigned l, unsigned n) > { > while (++l != n) > a[l] = b[l] + 1; > }

Re: [PATCH] c++: alias CTAD and aggregate deduction cand [PR98832]

2021-06-24 Thread Jason Merrill via Gcc-patches
On 6/24/21 11:15 AM, Patrick Palka wrote: During alias CTAD, we're accidentally ignoring the aggregate deduction candidate of the underlying template because it's added to the candidate set separately via maybe_aggr_guide (which doesn't yet handle alias templates) rather than via

Re: [[PATCH V9] 1/7] dwarf: add a dwarf2int.h internal interface

2021-06-24 Thread Jason Merrill via Gcc-patches
On 6/24/21 11:13 AM, Jose E. Marchesi wrote: This patch introduces a dwarf2int.h header, to be used by code that needs access to the internal DIE structures and their attributes. Why not put these bits in dwarf2out.h? We think that it makes sense to have a separated interface file for the

[Bug c++/101182] [concepts] ICE with ++ in non-template requires-expression

2021-06-24 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101182 --- Comment #1 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:c06493dc30afbf65b14d783c7cd53f20877ef577 commit r12-1792-gc06493dc30afbf65b14d783c7cd53f20877ef577 Author: Patrick Palka Date:

Re: [PING][PATCH 9/13] v2 Use new per-location warning APIs in LTO

2021-06-24 Thread Martin Sebor via Gcc-patches
On 6/24/21 3:32 AM, Richard Biener wrote: On Mon, Jun 21, 2021 at 11:55 PM Martin Sebor via Gcc-patches wrote: Ping: https://gcc.gnu.org/pipermail/gcc-patches/2021-June/571980.html Looking for a review of the LTO changes to switch TREE_NO_WARNING to the suppress_warning() API. Hmm, since

Re: [PATCH 7/7] Port most of the A CMP 0 ? A : -A to match

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/23/2021 4:19 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski To improve phiopt and be able to remove abs_replacement, this ports most of "A CMP 0 ? A : -A" from fold_cond_expr_with_comparison to match.pd. There is a few extra changes that are needed to remove the "A CMP 0 ?

Re: [PATCH 5/7] Try inverted comparison for match_simplify in phiopt

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/23/2021 4:19 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski Since match and simplify does not have all of the inverted comparison patterns, it make sense to just have phi-opt try to do the inversion and try match and simplify again. OK? Bootstrapped and tested on

Re: [PATCH 3/7] Duplicate the range information of the phi onto the new ssa_name

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/23/2021 4:19 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski Since match_simplify_replacement uses gimple_simplify, there is a new ssa name created sometimes and then we go and replace the phi edge with this new ssa name, the range information on the phi is lost. Placing this

[PATCH] c++: alias CTAD and aggregate deduction cand [PR98832]

2021-06-24 Thread Patrick Palka via Gcc-patches
During alias CTAD, we're accidentally ignoring the aggregate deduction candidate of the underlying template because it's added to the candidate set separately via maybe_aggr_guide (which doesn't yet handle alias templates) rather than via deduction_guides_for (which does). This patch makes

Re: [[PATCH V9] 1/7] dwarf: add a dwarf2int.h internal interface

2021-06-24 Thread Jose E. Marchesi via Gcc-patches
This patch introduces a dwarf2int.h header, to be used by code that needs access to the internal DIE structures and their attributes. >>> >>> Why not put these bits in dwarf2out.h? >> We think that it makes sense to have a separated interface file for >> the >> implementation of

Re: [PATCH 2/7] Reset the range info on the moved instruction in PHIOPT

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/23/2021 4:19 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski I had missed this when wrote the patch which allowed the gimple to be moved from inside the conditional as it. It was also missed in the review. Anyways the range information needs to be reset for the moved gimple

Re: [PATCH 1/7] Expand the comparison argument of fold_cond_expr_with_comparison

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/23/2021 4:19 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski To make things slightly easiler to convert fold_cond_expr_with_comparison over to match.pd, expanding the arg0 argument into 3 different arguments is done. Also this was simple because we don't use arg0 after

Re: [PATCH 7/7] Port most of the A CMP 0 ? A : -A to match

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/19/2021 3:49 PM, apinski--- via Gcc-patches wrote: From: Andrew Pinski To improve phiopt and be able to remove abs_replacement, this ports most of "A CMP 0 ? A : -A" from fold_cond_expr_with_comparison to match.pd. There is a few extra changes that are needed to remove the "A CMP 0 ?

Re: [PATCH 5/6] make get_domminated_by_region return a auto_vec

2021-06-24 Thread Martin Sebor via Gcc-patches
On 6/24/21 3:27 AM, Richard Biener wrote: On Thu, Jun 24, 2021 at 12:56 AM Martin Sebor wrote: On 6/23/21 1:43 AM, Richard Biener wrote: On Wed, Jun 23, 2021 at 7:23 AM Trevor Saunders wrote: On Tue, Jun 22, 2021 at 02:01:24PM -0600, Martin Sebor wrote: On 6/21/21 1:15 AM, Richard Biener

Re: [PATCH] tree-optimization/101186 - extend FRE with "equivalence map" for condition prediction

2021-06-24 Thread Andrew MacLeod via Gcc-patches
On 6/24/21 9:25 AM, Andrew MacLeod wrote: On 6/24/21 8:29 AM, Richard Biener wrote: THe original function in EVRP currently looks like:  === BB 2     :     if (a_5(D) == b_6(D))   goto ; [INV]     else   goto ; [INV] === BB 8 Equivalence set

MSPs, MSSPs Records

2021-06-24 Thread Jennifer Daly
Hi, Hope you find this email well! Are you looking for a customer base of your competitors installed base which will help you reach niche target and also helps you to grab new clients for your latest service and products? We also have an exclusive database of: 1. Cloud Service

Re: [PATCH 04/11 v3] libstdc++: Make use of __builtin_bit_cast

2021-06-24 Thread Jakub Jelinek via Gcc-patches
On Thu, Jun 24, 2021 at 03:40:09PM +0100, Jonathan Wakely wrote: > On Thu, 24 Jun 2021 at 15:34, Jonathan Wakely wrote: > > Rather than use the _GLIBCXX_HAS_BUILTIN macro more widely, I'd prefer > > to not use it where it isn't needed, as in the attached (untested) > > patch. > > My rationale for

Re: [PATCH] c++: requires-expression folding [PR101182]

2021-06-24 Thread Jason Merrill via Gcc-patches
On 6/23/21 7:37 PM, Patrick Palka wrote: Here we're crashing because cp_fold_function walks into the (templated) requirements of a requires-expression outside a template, but the folding routines aren't prepared to handle templated trees. This patch fixes this by making cp_fold use

Re: [[PATCH V9] 1/7] dwarf: add a dwarf2int.h internal interface

2021-06-24 Thread Jason Merrill via Gcc-patches
On 6/24/21 9:52 AM, Jose E. Marchesi wrote: On 5/31/21 12:57 PM, Jose E. Marchesi via Gcc-patches wrote: This patch introduces a dwarf2int.h header, to be used by code that needs access to the internal DIE structures and their attributes. Why not put these bits in dwarf2out.h? We think

Re: [PATCH 04/11 v3] libstdc++: Make use of __builtin_bit_cast

2021-06-24 Thread Jonathan Wakely via Gcc-patches
On Thu, 24 Jun 2021 at 15:34, Jonathan Wakely wrote: > Rather than use the _GLIBCXX_HAS_BUILTIN macro more widely, I'd prefer > to not use it where it isn't needed, as in the attached (untested) > patch. My rationale for this is that I'd prefer to use standardized features like __has_include and

[Bug tree-optimization/101197] New: __builtin_memmove does not perform constant optimizations

2021-06-24 Thread unlvsur at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101197 Bug ID: 101197 Summary: __builtin_memmove does not perform constant optimizations Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

Re: [PATCH 04/11 v3] libstdc++: Make use of __builtin_bit_cast

2021-06-24 Thread Jonathan Wakely via Gcc-patches
On Thu, 24 Jun 2021 at 15:21, Jakub Jelinek wrote: > > On Thu, Jun 24, 2021 at 03:11:01PM +0100, Jonathan Wakely wrote: > > On Thu, 24 Jun 2021 at 15:08, Jakub Jelinek wrote: > > > > > > On Thu, Jun 24, 2021 at 04:01:34PM +0200, Matthias Kretz wrote: > > > > ---

Re: [PATCH] add -ltrans-objects lto-plugin debug option

2021-06-24 Thread Jeff Law via Gcc-patches
On 6/22/2021 12:49 AM, Richard Biener wrote: This adds a -ltrans-objects option to lto-plugin that by-passes lto-wrapper invocation and instead feeds LD the final LTRANS objects directly from the response file given as argument to the option. This allows LD issues involving the linker-plugin

  1   2   3   >