[Bug c++/95310] [concepts] Unrelated template parameters printed in diagnostic

2020-10-16 Thread ensadc at mailnesia dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95310 --- Comment #3 from ensadc at mailnesia dot com --- When verifying the fix, I noticed a new bug: template requires true using iter_reference_t = decltype(*T{}); template struct result { using type = iter_reference_t; }; template

[Bug c++/97452] [coroutines] incorrect sequencing of await_resume() when multiple co_await expressions occur in a single statement

2020-10-16 Thread davidledger at live dot com.au via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97452 David Ledger changed: What|Removed |Added CC||davidledger at live dot com.au ---

Re: [PATCH] libgccjit: add some reflection functions in the jit C api

2020-10-16 Thread Antoni Boucher via Gcc-patches
Hi. Thanks for the review. See the comments below. I attached the updated patch. On Thu, Oct 15, 2020 at 05:52:33PM -0400, David Malcolm wrote: On Thu, 2020-10-15 at 13:39 -0400, Antoni Boucher wrote: Thanks. I updated the patch with these changes. Thanks for patch; review below. Sorry if

[Bug libstdc++/97465] cross build gcc with vtv enabled failed. Cannot find out headers in glibc why?

2020-10-16 Thread euloanty at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97465 --- Comment #3 from fdlbxtqi --- (In reply to Jonathan Wakely from comment #2) > e.g. what kind of cross build? We're not psychic. I try to build x86_64-linux-gnu to x86_64-linux-gnu lol since I do not want vtv to ruin my ABIs. However, after

gcc-9-20201016 is now available

2020-10-16 Thread GCC Administrator via Gcc
Snapshot gcc-9-20201016 is now available on https://gcc.gnu.org/pub/gcc/snapshots/9-20201016/ 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 c++/82343] internal compiler error: Segmentation fault - template recurrency, SFINAE

2020-10-16 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82343 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug tree-optimization/97466] New: ICE in vect_get_and_check_slp_defs, at tree-vect-slp.c:538 (at -O3)

2020-10-16 Thread su at cs dot ucdavis.edu via Gcc-bugs
compression algorithms: zlib gcc version 11.0.0 20201016 (experimental) [master revision 3e8d8f3b883:93f23a96b87:02629b116eed7c6911ef0eb2ef97e1883e9fb1de] (GCC) [504] % [504] % gcctk -O2 small.c [505] % [505] % gcctk -O3 small.c during GIMPLE pass: vect small.c: In function ‘main’: small.c:59:5

[Bug fortran/97039] -fbounds-check misses violation with slice of array but not an element

2020-10-16 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97039 anlauf at gcc dot gnu.org changed: What|Removed |Added Keywords||diagnostic Last

[Bug libstdc++/97465] cross build gcc with vtv enabled failed. Cannot find out headers in glibc why?

2020-10-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97465 --- Comment #2 from Jonathan Wakely --- e.g. what kind of cross build? We're not psychic.

Re: [PATCH 1/9, revised] PowerPC: Map long double built-in functions if IEEE 128-bit long double.

2020-10-16 Thread Segher Boessenkool
On Fri, Oct 09, 2020 at 12:35:44AM -0400, Michael Meissner wrote: > This patch is revised from the first version of the patch posted. In the future, please send a NEW series, in a NEW thread, when you have a new series. I was waiting for a new series (because you needed changes), and I missed

[Bug libstdc++/97465] cross build gcc with vtv enabled failed. Cannot find out headers in glibc why?

2020-10-16 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97465 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |WAITING Ever confirmed|0

[Bug bootstrap/97355] [11 Regression] Bootstrap comparison failure!

2020-10-16 Thread mark at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97355 --- Comment #15 from Mark Wielaard --- (In reply to Jakub Jelinek from comment #14) > In any case, the change to use -gdwarf-* by default even when not compiling > just assembly was based on the assumption that gas would in that case pretty >

[Bug libstdc++/97465] New: cross build gcc with vtv enabled failed. Cannot find out headers in glibc why?

2020-10-16 Thread euloanty at live dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97465 Bug ID: 97465 Summary: cross build gcc with vtv enabled failed. Cannot find out headers in glibc why? Product: gcc Version: 11.0 Status: UNCONFIRMED Severity:

[Bug fortran/95979] [10/11 Regression] ICE in get_kind, at fortran/simplify.c:129

2020-10-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95979 --- Comment #6 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:02629b116eed7c6911ef0eb2ef97e1883e9fb1de commit r11-4020-g02629b116eed7c6911ef0eb2ef97e1883e9fb1de Author: Harald Anlauf Date:

[Bug bootstrap/94761] host != target

2020-10-16 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94761 --- Comment #3 from Segher Boessenkool --- Commit e69bf64be925 added the host and target flags originally, and it seems to have been just a mistake that is used --build=${build_alias} --host=${build_alias}. (Now of course that has spread to

Where did my function go?

2020-10-16 Thread Gary Oblock via Gcc
I have a tiny program composed of a few functions and one of those functions (setupB) has gone missing. Since I need to walk its GIMPLE, this is a problem. The program: -- aux.h - #include "stdlib.h" typedef struct A A_t; typedef struct A B_t; struct A {

Re: [patch, fortran] Partial fix for PR97454, declarations of some library functions

2020-10-16 Thread Thomas Koenig via Gcc-patches
I wrote: Regression-tested. OK for trunk? I will remove this part - When an actual argument list is provided, skip the absent arguments. + When an actual argument list is provided, skip the absent arguments + unless copy_type is true. To be used together with

Re: *PING* [PATCH] PR fortran/95979 - [10/11 Regression] ICE in get_kind, at fortran/simplify.c:129

2020-10-16 Thread Thomas Koenig via Gcc-patches
Hello Harald, *ping* OK for master / 10-branch? OK for both (with a suitable waiting period). Best regards Thomas

[patch, fortran] Partial fix for PR97454, declarations of some library functions

2020-10-16 Thread Thomas Koenig via Gcc-patches
Hello world, here's a patch which corrects some wrong declarations (and fixes the segfault for FINDLOC on Darwin ARM). Regression-tested. OK for trunk? Best regards Thomas Correct decls for functions which do not pass actual arguments. A wrong decl for findloc caused segfaults at

Re: [PATCH 0/9] PowerPC: Patches to enable changing the long double default to IEEE 128-bit on little endian PowerPC 64-bit Linux systems

2020-10-16 Thread Segher Boessenkool
On Thu, Sep 24, 2020 at 04:20:36PM -0400, Michael Meissner wrote: > This series of 9 patches is an attempt to gather together all of the patches > that are needed to be able to configure and build a little endian 64-bit > PowerPC Linux GCC compiler where the defualt long double format uses the

[PATCH] Don't display ranges for dead ssa-names.

2020-10-16 Thread Andrew MacLeod via Gcc-patches
AS Jakub  observed in an earlier testcase (97325),  when EVRP dumps the known SSA_RANGES, it isn't expecting names to be deleted that it could not delete, so it wasn't checking. With the hybrid model, ranger sometimes deletes things that EVRP calculated a range for, and the resulting dump was

[Bug other/96927] [11 regression] ICE in libstdc++-v3/include/chrono:442

2020-10-16 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96927 seurer at gcc dot gnu.org changed: What|Removed |Added Status|WAITING |RESOLVED

[PATCH] pointer_plus [0, 0] + const folding

2020-10-16 Thread Andrew MacLeod via Gcc-patches
In order to match evrp behaviour, adjust POINTER_PLUS_EXPR processing to handle a zero constant plus something to return the something. ie [0, 0]  + CONST    will now return [CONST, CONST] instead of the previous behaviour of [1, +INF]. Bootstrapped on x86_64-pc-linux-gnu, no regressions,

[PATCH] Don't invoke range_of_expr multiple times.

2020-10-16 Thread Andrew MacLeod via Gcc-patches
In the hybrid folder, range_of_stmt and range_on_edge invoke the same routines in both evrp_folder and ranger_folder and compare results. In implementing hybrid folder, I inherited it from evrp_folder since EVRP has a few pre-and post statement things to do. when the hybdrid folder calls

[Bug tree-optimization/97462] ICE in op1_range, at range-op.cc:1580 (-Os and above)

2020-10-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97462 --- Comment #2 from CVS Commits --- The master branch has been updated by Andrew Macleod : https://gcc.gnu.org/g:4a135bd987e7bff6d3b94efa085e0c246348b486 commit r11-4016-g4a135bd987e7bff6d3b94efa085e0c246348b486 Author: Andrew MacLeod Date:

[PATCH] Don't assert on a negative shift.

2020-10-16 Thread Andrew MacLeod via Gcc-patches
We were asserting that the shifts should not be negative, instead, just return false indicating we can't tell anything about operand1 from the result. Bootstrapped on x86_64-pc-linux-gnu,  no regressions, pushed. Andrew 2020-10-16 Andrew Macleod PR tree-optimization/97462 gcc/ *

Re: Trying to chase down a scheduler bug in gcc 4.4.1

2020-10-16 Thread Nathan Sidwell
On 10/16/20 2:46 PM, Alan Lehotsky wrote: I’m in the process of upgrading a gcc port, but my client is using a gcc 4.4.1 port right now and has run into a scheduler bug. This seems to have been fixed at some point, as the 8.3.1 code base doesn’t seem to have the bug. But they’d like a fix

[Bug tree-optimization/97456] [10/11 Regression] An incorrect optimization causes a function to always return the same value when using -flto

2020-10-16 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97456 Martin Jambor changed: What|Removed |Added Component|ipa |tree-optimization --- Comment #7 from

[Bug ipa/97456] [10/11 Regression] An incorrect optimization causes a function to always return the same value when using -flto

2020-10-16 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97456 --- Comment #6 from Martin Jambor --- I have posted the patch to the mailing list: https://gcc.gnu.org/pipermail/gcc-patches/2020-October/556399.html

[PATCH] cplxlower: Avoid a transform when looking at a default definition

2020-10-16 Thread Martin Jambor
Hi, in PR 97456, IPA-SRA triggers a bug in tree-complex.c where it converts: a$_M_value_21 = COMPLEX_EXPR ; (where ISRA.18 is IPA-SRA created PARM_DECL with DECL_IGNORED_P set, which is why it only happens with IPA-SRA) into: a$_M_value_21 = COMPLEX_EXPR ; i.e. it replaces two

Trying to chase down a scheduler bug in gcc 4.4.1

2020-10-16 Thread Alan Lehotsky
I’m in the process of upgrading a gcc port, but my client is using a gcc 4.4.1 port right now and has run into a scheduler bug. This seems to have been fixed at some point, as the 8.3.1 code base doesn’t seem to have the bug. But they’d like a fix on their 4.4.1 base. Basically, what I see

Re: [RFC] Remove include/precompiled/expc++.h

2020-10-16 Thread Ed Smith-Rowland via Gcc-patches
On 10/15/20 7:21 PM, Jonathan Wakely wrote: Ed, In commit r232377 (aka 2be75957b80b640c0aac4356ab861edd0c2f1b9d in the git repo) you added a new header to the include/precompiled directory. That wasn't mentioned in the ChangeLog, wasn't in the patch posted to

Re: [PATCH] Check for working assembler --gdwarf-[45] options

2020-10-16 Thread H.J. Lu via Gcc-patches
On Fri, Oct 16, 2020 at 11:17 AM Jakub Jelinek wrote: > > On Fri, Oct 16, 2020 at 10:58:34AM -0700, H.J. Lu wrote: > > Don't set HAVE_AS_GDWARF_5_DEBUG_FLAG nor HAVE_AS_WORKING_DWARF_4_FLAG > > if there is an extra assembly input file in debug info generated by > > --gdwarf-5/--gdwarf-4: > > > >

[r11-3966 Regression] FAIL: gcc.dg/vect/slp-21.c scan-tree-dump-times vect "vectorizing stmts using SLP" 2 on Linux/x86_64

2020-10-16 Thread sunil.k.pandey via Gcc-patches
On Linux/x86_64, 429ad0bb0d3dc77e44f95620341da4938d49168e is the first bad commit commit 429ad0bb0d3dc77e44f95620341da4938d49168e Author: Richard Biener Date: Thu Oct 15 11:55:53 2020 +0200 tree-optimization/97428 - split SLP groups for loop vectorization caused FAIL:

Re: [PATCH] Check for working assembler --gdwarf-[45] options

2020-10-16 Thread Jakub Jelinek via Gcc-patches
On Fri, Oct 16, 2020 at 10:58:34AM -0700, H.J. Lu wrote: > Don't set HAVE_AS_GDWARF_5_DEBUG_FLAG nor HAVE_AS_WORKING_DWARF_4_FLAG > if there is an extra assembly input file in debug info generated by > --gdwarf-5/--gdwarf-4: > > https://sourceware.org/bugzilla/show_bug.cgi?id=25878 >

[Bug bootstrap/97451] [11 Regression] r11-3959 failed --with-build-config=bootstrap-cet

2020-10-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97451 H.J. Lu changed: What|Removed |Added Keywords||patch --- Comment #5 from H.J. Lu --- (In

[PATCH] Check for working assembler --gdwarf-[45] options

2020-10-16 Thread H.J. Lu via Gcc-patches
Don't set HAVE_AS_GDWARF_5_DEBUG_FLAG nor HAVE_AS_WORKING_DWARF_4_FLAG if there is an extra assembly input file in debug info generated by --gdwarf-5/--gdwarf-4: https://sourceware.org/bugzilla/show_bug.cgi?id=25878 https://sourceware.org/bugzilla/show_bug.cgi?id=26740 Also replace success with

[Bug c++/97464] New: Missed redundant store optimization opportunity

2020-10-16 Thread pdimov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97464 Bug ID: 97464 Summary: Missed redundant store optimization opportunity Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/97460] [11 Regression] A boost ICE since r11-3883-g068644a14976ce67

2020-10-16 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97460 Nathan Sidwell changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/97460] [11 Regression] A boost ICE since r11-3883-g068644a14976ce67

2020-10-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97460 --- Comment #2 from CVS Commits --- The master branch has been updated by Nathan Sidwell : https://gcc.gnu.org/g:ccb4f20cbee1756c464033bbdda2f27b6aa2a63f commit r11-4015-gccb4f20cbee1756c464033bbdda2f27b6aa2a63f Author: Nathan Sidwell Date:

c++: Fix nullptr deref [pr97460[

2020-10-16 Thread Nathan Sidwell
My changes to friend handling meant that there are now cases where a friend doesn't get a lang-specific object. So we need to check there is one before looking inside it. PR c++/97460 gcc/cp/ * pt.c (push_template_decl): Check DECL_LANG_SPECIFIC in friend case.

[Bug bootstrap/94761] host != target

2020-10-16 Thread segher at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94761 Segher Boessenkool changed: What|Removed |Added CC||segher at gcc dot gnu.org ---

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #21 from Andrew Macleod --- (In reply to rguent...@suse.de from comment #20) > > > >Is this your preferred solution? > > The backen should use more lowlevel functions to build this type rather than > copying from a type that isn't

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #20 from rguenther at suse dot de --- On October 16, 2020 5:46:28 PM GMT+02:00, amacleod at redhat dot com wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > >--- Comment #19 from Andrew Macleod --- >(In reply to

[Bug c/97463] [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration

2020-10-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97463 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/97462] ICE in op1_range, at range-op.cc:1580 (-Os and above)

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97462 Andrew Macleod changed: What|Removed |Added CC||amacleod at redhat dot com --- Comment

[Bug c/96171] [10 Regression] ICE on invalid VLA argument declaration and attribute access

2020-10-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96171 Martin Sebor changed: What|Removed |Added Known to work||11.0, 9.3.0 Known to fail|11.0

[Bug c++/97460] [11 Regression] A boost ICE since r11-3883-g068644a14976ce67

2020-10-16 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97460 Nathan Sidwell changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug bootstrap/97451] [11 Regression] r11-3959 failed --with-build-config=bootstrap-cet

2020-10-16 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97451 H.J. Lu changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug c++/96258] [11 Regression] ICE: Segmentation fault (in cp_parser_declaration)

2020-10-16 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96258 Nathan Sidwell changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/96258] [11 Regression] ICE: Segmentation fault (in cp_parser_declaration)

2020-10-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96258 --- Comment #3 from CVS Commits --- The master branch has been updated by Nathan Sidwell : https://gcc.gnu.org/g:a16da48bf19bb139e5461e5b5b7f072d5369b054 commit r11-4014-ga16da48bf19bb139e5461e5b5b7f072d5369b054 Author: Nathan Sidwell Date:

c++: Fix null deref at EOF [PR96258]

2020-10-16 Thread Nathan Sidwell
cp_parser_declaration peeks at 1 or 2 tokens, when I changed it not to peek past EOF, I set the second token to NULL. But there are paths through the function that just look at the second token. Fixed by setting that token to EOF rather than NULL in this case. PR c++/96258

[Bug c/97463] New: [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration

2020-10-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97463 Bug ID: 97463 Summary: [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug c/97463] [11 Regression] ICE in warn_parm_ptrarray_mismatch on an incompatible function redeclaration

2020-10-16 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97463 Martin Sebor changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org

[patch] vxworks; Fix the vx_crtstuff handling of kernel/rtp variations

2020-10-16 Thread Olivier Hainque
Hello, The VxWorks ports come with specific crtstuff objects to cope with the variety of possible means to load code on a target, as kernel modules or RTPS (Real Time Processes). Compilation of those objects is currently explicitly replicated for the two modes, through t-vxcrtstuff:

[Bug tree-optimization/97462] New: ICE in op1_range, at range-op.cc:1580 (-Os and above)

2020-10-16 Thread su at cs dot ucdavis.edu via Gcc-bugs
20201016 (experimental) [master revision 37753588116:be453072dd2:6c6e0cafa38cee8309f37b846cb7db813a472a54] (GCC) [555] % [555] % gcctk -O1 -c -w small.c [556] % gcctk -Os -c -w small.c during GIMPLE pass: evrp small.c: In function ‘d’: small.c:7:1: internal compiler error: in op1_range, at range-op.cc

[Bug c++/83417] Pointer-to-member template parameter with auto member type dependent container type does not work (C++17)

2020-10-16 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83417 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW CC|

[Bug rtl-optimization/97459] __uint128_t remainder for division by 3

2020-10-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97459 --- Comment #3 from Jakub Jelinek --- Or: unsigned r3_128u_v4 (__uint128_t n) { unsigned long a; a = (n >> 96); a += (n >> 64) & 0xULL; a += (n >> 32) & 0xULL; a += (n & 0xULL); return a % 3; } if the target

[Bug ipa/97456] [10/11 Regression] An incorrect optimization causes a function to always return the same value when using -flto

2020-10-16 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97456 --- Comment #5 from Martin Jambor --- And indeed the following avoids the issue: diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c index 2e54bbb917c..71ad7c18523 100644 --- a/gcc/tree-complex.c +++ b/gcc/tree-complex.c @@ -570,8 +570,10 @@

[Bug rtl-optimization/97459] __uint128_t remainder for division by 3

2020-10-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97459 --- Comment #2 from Jakub Jelinek --- E.g. unsigned r3_128u_v3 (__uint128_t n) { unsigned long a; a = (n >> 88); a += (n >> 44) & 0xfffULL; a += (n & 0xfffULL); return a % 3; } could work, but haven't measured how fast

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #19 from Andrew Macleod --- (In reply to rguent...@suse.de from comment #18) > On October 16, 2020 4:17:43 PM GMT+02:00, amacleod at redhat dot com > > > > >Yeah, I haven't tripped over it in ADA. This was a 512 byte quad on the >

[Bug c++/97460] [11 Regression] A boost ICE since r11-3883-g068644a14976ce67

2020-10-16 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97460 Martin Liška changed: What|Removed |Added Keywords|needs-reduction | --- Comment #1 from Martin Liška ---

[PATCH] c++: Deducing type from initializer_list [PR93107]

2020-10-16 Thread Marek Polacek via Gcc-patches
In this testcase we weren't able to deduce b's type: template void Task() { } auto b = { }; because resolve_nondeduced_context doesn't iterate on the {}'s elements. So make sure to look into {} too. We don't need to handle nested {} here. We could either tweak resolve_nondeduced_context

[Bug target/97457] [10/11 Regression] SVE: wrong code since r10-4752-g2d56600c

2020-10-16 Thread acoplan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97457 --- Comment #2 from Alex Coplan --- For the similar testcase: long a; short b; signed char c(char d, char e) { return d + e; } int main(void) { a = -30; for (; a < 24; a = c(a, 5)) { short *f = (*f)--; } if (b != -11)

[Bug rtl-optimization/97459] __uint128_t remainder for division by 3

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

[Bug c++/97419] crash in decl_as_string(TFF_DECL_SPECIFIERS | TFF_CHASE_TYPEDEF) from plugin using std::declval()

2020-10-16 Thread sphink at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97419 --- Comment #7 from Steve Fink --- I can workaround the bug by avoiding declval: - using Iter = decltype(std::declval().begin()); - using Elem = decltype(*std::declval()); + using Iter = decltype(static_cast(nullptr)->begin()); + using

[Bug gcov-profile/97461] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #3 from Sergei Trofimovich --- Probably started from https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=871e5ada6d53d5eb ("Make TOPN counter dynamically allocated.") when dynamic memory allocation call was added to

[Bug gcov-profile/97461] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #2 from Sergei Trofimovich --- Original firefox lockup is slightly more complicated: malloc() call happens in a constructor of external library (at _gpg_err_init()). (gdb) bt #0 __lll_lock_wait (futex=0x5591defd9720 , private=0) at

[Bug gcov-profile/97461] allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 --- Comment #1 from Sergei Trofimovich --- Created attachment 49388 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49388=edit a.c

[Bug gcov-profile/97461] New: allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion)

2020-10-16 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461 Bug ID: 97461 Summary: allocate_gcov_kvp() deadlocks in firefox LTO+PGO build (overridden malloc() recursion) Product: gcc Version: 11.0 Status: UNCONFIRMED

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #18 from rguenther at suse dot de --- On October 16, 2020 4:17:43 PM GMT+02:00, amacleod at redhat dot com wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > >--- Comment #17 from Andrew Macleod --- >(In reply to

[Bug ipa/97456] [10/11 Regression] An incorrect optimization causes a function to always return the same value when using -flto

2020-10-16 Thread jamborm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97456 --- Comment #4 from Martin Jambor --- Looking at Martin's reduced testcase (In reply to Richard Biener from comment #2) > Confirmed with -fwhole-program -O3 IPA SRA messes things up here cloning > wrong > and producing the strange > >

[Bug rtl-optimization/97129] [11 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2405

2020-10-16 Thread ubizjak at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97129 Uroš Bizjak changed: What|Removed |Added Resolution|--- |INVALID Status|NEW

[Bug c++/96258] [11 Regression] ICE: Segmentation fault (in cp_parser_declaration)

2020-10-16 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96258 Nathan Sidwell changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org

Ping #2: [PATCH 0/9] PowerPC: Patches to enable changing the long double default to IEEE 128-bit on little endian PowerPC 64-bit Linux systems

2020-10-16 Thread Michael Meissner via Gcc-patches
Ping (#2) the following 9 patches to add support for building a GCC toolchain where the default long double is IEEE 128-bit floating point instead of the IBM extended double floating point. The first patch was revised with input from Joesph Myers. I will list that patch in this list. Most of

[Bug c++/96258] [11 Regression] ICE: Segmentation fault (in cp_parser_declaration)

2020-10-16 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96258 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #2

[Bug rtl-optimization/97129] [11 Regression] ICE in maybe_record_trace_start, at dwarf2cfi.c:2405

2020-10-16 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97129 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org,

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #17 from Andrew Macleod --- (In reply to rguent...@suse.de from comment #16) > On Fri, 16 Oct 2020, amacleod at redhat dot com wrote: > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > > > > --- Comment #15 from Andrew

[Bug c++/97460] New: [11 Regression] A boost ICE since r11-3883-g068644a14976ce67

2020-10-16 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97460 Bug ID: 97460 Summary: [11 Regression] A boost ICE since r11-3883-g068644a14976ce67 Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code

[Bug c++/97460] [11 Regression] A boost ICE since r11-3883-g068644a14976ce67

2020-10-16 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97460 Martin Liška changed: What|Removed |Added Target Milestone|--- |11.0 Last reconfirmed|

[PATCH v2] Add if-chain to switch conversion pass.

2020-10-16 Thread Martin Liška
Hello. There's another version of the patch that should be based on what I discussed with Richi and Jakub: - the first patch introduces a new option -fbit-tests that analogue to -fjump-tables and will control the new if-to-switch conversion pass - the second patch adds the pass - I share

[Bug c++/97453] Implement CWG issue 2303

2020-10-16 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97453 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread rguenther at suse dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #16 from rguenther at suse dot de --- On Fri, 16 Oct 2020, amacleod at redhat dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 > > --- Comment #15 from Andrew Macleod --- > Well it seems far more incorrect that

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #15 from Andrew Macleod --- Well it seems far more incorrect that types_compatible_p () is FALSE for a type and its MIN/MAX value? Whats the point of MIN/MAX if you cant count on them being the right types, or at least conmpatible.

[Bug target/97327] -mcpu=cortex-m55 warns without -mfloat-abi=hard or -march=armv8.1-m.main

2020-10-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97327 --- Comment #6 from CVS Commits --- The master branch has been updated by SRINATH PARVATHANENI : https://gcc.gnu.org/g:90042c43a92c452a5f9f3afbfcdad511ea09a54f commit r11-4006-g90042c43a92c452a5f9f3afbfcdad511ea09a54f Author: Srinath

RE: [PATCH][GCC] arm: Fix the warning -mcpu=cortex-m55 conflicting with -march=armv8.1-m.main (pr97327).

2020-10-16 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Srinath Parvathaneni > Sent: 16 October 2020 14:21 > To: gcc-patches@gcc.gnu.org > Cc: Kyrylo Tkachov > Subject: [PATCH][GCC] arm: Fix the warning -mcpu=cortex-m55 conflicting > with -march=armv8.1-m.main (pr97327). > > Hello, > > This patch fixes

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #14 from Richard Biener --- But that's just a waste of memory ... the expectation that the min/max values are of the same type is simply wrong.

[Bug sanitizer/97414] AddressSanitizer CHECK failed: detect_stack_use_after_return and detect_invalid_pointer_pairs

2020-10-16 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97414 Martin Liška changed: What|Removed |Added URL||https://reviews.llvm.org/D8

[Bug tree-optimization/97360] [11 Regression] ICE in range_on_exit

2020-10-16 Thread amacleod at redhat dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97360 --- Comment #13 from Andrew Macleod --- Created attachment 49386 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49386=edit Patch to create integral MAX and MiN Joy. I'll try it and see what happens. And back to the first problem where

[Bug rtl-optimization/97459] New: __uint128_t remainder for division by 3

2020-10-16 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97459 Bug ID: 97459 Summary: __uint128_t remainder for division by 3 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[PATCH][GCC] arm: Fix the warning -mcpu=cortex-m55 conflicting with -march=armv8.1-m.main (pr97327).

2020-10-16 Thread Srinath Parvathaneni via Gcc-patches
Hello, This patch fixes (PR97327) the warning -mcpu=cortex-m55 conflicts with -march=armv8.1-m.main for -mfloat-abi=soft by adding the isa_bit_mve_float to clearing FP bit list. The following combination are fixed with this patch: $ cat bug.c int main(){ return 0; } $ arm-none-eabi-gcc

[PATCH] Adjust BB vectorization SLP build heuristics

2020-10-16 Thread Richard Biener
This changes SLP def gathering to not fail due to mismatched def type but instead demote the def to external. This allows the new testcase to be vectorized in full (with GCC 10 it is not vectorized at all and with current trunk we vectorize only the store). This is important since with BB

Re: [PATCH] fold x << (n % C) to x << (n & C-1) if C meets power2

2020-10-16 Thread Richard Biener
On Thu, 15 Oct 2020, guojiufu wrote: > Hi, > > I just had a check on below patch for PR66552. > https://gcc.gnu.org/pipermail/gcc-patches/2020-February/540930.html > It seems this patch works fine now. This patch fixes PR66552 which > request to optimizes (x shift (n mod C)) to > (x shift (n

[Bug tree-optimization/97428] -O3 is great for basic AoSoA packing of complex arrays, but horrible one step above the basic

2020-10-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97428 --- Comment #10 from Richard Biener --- (In reply to Michael_S from comment #9) > Hopefully, you did regression tests for all main AoS<->SoA cases. We only test what we have in the testsuite ;) > I.e. > > typedef struct { double re, im; }

[Bug target/96914] missing MVE intrinsics

2020-10-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96914 --- Comment #13 from CVS Commits --- The releases/gcc-10 branch has been updated by SRINATH PARVATHANENI : https://gcc.gnu.org/g:7591fc054f40c96fabe05d74d61d1c144798354b commit r10-8907-g7591fc054f40c96fabe05d74d61d1c144798354b Author:

[Bug target/96914] missing MVE intrinsics

2020-10-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96914 --- Comment #12 from CVS Commits --- The releases/gcc-10 branch has been updated by SRINATH PARVATHANENI : https://gcc.gnu.org/g:c4fb78e5d79b02ae720b2db42fa00e2c8d2d7ed5 commit r10-8906-gc4fb78e5d79b02ae720b2db42fa00e2c8d2d7ed5 Author:

[Bug target/96914] missing MVE intrinsics

2020-10-16 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96914 --- Comment #11 from CVS Commits --- The releases/gcc-10 branch has been updated by SRINATH PARVATHANENI : https://gcc.gnu.org/g:f5d0b57da1a0529a44da772f4f0b227cd5c50fd5 commit r10-8905-gf5d0b57da1a0529a44da772f4f0b227cd5c50fd5 Author:

GCC 11.0.0 Status Report (2020-10-16), Stage 1 ends Nov 15th

2020-10-16 Thread Richard Biener
Status == GCC trunk which eventually will become GCC 11 is still open for general development. Stage 1 will end on the end of Sunday, Nov 15th 2020 at which point we will transition into Stage 3 which allows for general bugfixing. We have accumulated quite a number of regressions, a lot

GCC 11.0.0 Status Report (2020-10-16), Stage 1 ends Nov 15th

2020-10-16 Thread Richard Biener
Status == GCC trunk which eventually will become GCC 11 is still open for general development. Stage 1 will end on the end of Sunday, Nov 15th 2020 at which point we will transition into Stage 3 which allows for general bugfixing. We have accumulated quite a number of regressions, a lot

RE: [PATCH][GCC-10 backport] arm: [MVE] Remove illegal intrinsics (PR target/96914)

2020-10-16 Thread Kyrylo Tkachov via Gcc-patches
> -Original Message- > From: Srinath Parvathaneni > Sent: 16 October 2020 12:45 > To: gcc-patches@gcc.gnu.org > Cc: Kyrylo Tkachov > Subject: [PATCH][GCC-10 backport] arm: [MVE] Remove illegal intrinsics (PR > target/96914) > > Hello, > > Applied cleanly, Ok for backporting this

  1   2   3   >