[Bug c/98503] [11 regression] -Warray-bounds false positive with global variables at -O2

2021-01-02 Thread w at 1wt dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503 --- Comment #1 from Willy Tarreau --- Re-reading godbolt's version more closely, it's just 1 day old (I thought I read 20201010) so the issue is still valid.

[Bug c/98503] New: [11 regression] -Warray-bounds false positive with global variables at -O2

2021-01-02 Thread w at 1wt dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98503 Bug ID: 98503 Summary: [11 regression] -Warray-bounds false positive with global variables at -O2 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: norma

[Bug c/98502] New: Optimised memcpy breaks __scalar_storage_order__

2021-01-02 Thread noring at nocrew dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98502 Bug ID: 98502 Summary: Optimised memcpy breaks __scalar_storage_order__ Product: gcc Version: 9.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/98501] New: potential optimization for base<->derived pointer casts

2021-01-02 Thread vanyacpp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98501 Bug ID: 98501 Summary: potential optimization for base<->derived pointer casts Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Prior

[Bug c++/95768] [11 Regression] -march=sandybridge -O2 -Wall crashes as 'during GIMPLE pass: uninit ... Segmentation fault'

2021-01-02 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95768 --- Comment #8 from Martin Sebor --- Updated patch: https://gcc.gnu.org/pipermail/gcc-patches/2021-January/562665.html

[Bug c++/98499] [11 Regression] Possibly bad std::string initialization in constructors

2021-01-02 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98499 --- Comment #1 from Sergei Trofimovich --- Managed to get rid of external dependency: ``` struct string { char * _M_buf; // local store char _M_local_buf[16]; string(const string &__str) : _M_buf(_M_local_buf) {} string(const char *

[Bug c++/80016] error is positioned incorrectly

2021-01-02 Thread vanyacpp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80016 Ivan Sorokin changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug fortran/98490] Unexpected out of bounds in array constructor with implied do loop

2021-01-02 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490 --- Comment #7 from Steve Kargl --- On Sat, Jan 02, 2021 at 04:12:27AM +, jvdelisle at charter dot net wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490 > > --- Comment #5 from Jerry DeLisle --- > Patch regresses several test case

[Bug fortran/96986] [8/9/10/11 Regression] Explicit interface required: volatile argument for ENTRY subroutine

2021-01-02 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96986 --- Comment #7 from Steve Kargl --- On Sat, Jan 02, 2021 at 07:53:17PM +, anlauf at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96986 > > --- Comment #6 from anlauf at gcc dot gnu.org --- > (In reply to kargl from c

[Bug fortran/96986] [8/9/10/11 Regression] Explicit interface required: volatile argument for ENTRY subroutine

2021-01-02 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96986 --- Comment #6 from anlauf at gcc dot gnu.org --- (In reply to kargl from comment #5) >If the ENTRY statement is in a subroutine subprogram, an additional >subroutine is defined by that subprogram. The name of the subroutine >is entry

[Bug tree-optimization/98393] [11 Regression] valgrind error for ./gcc.target/m68k/pr52573.c since r11-5928-gfc7b4248172561a9

2021-01-02 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98393 --- Comment #10 from David Binderman --- Reduced test case: typedef struct { short a; struct { unsigned short b; unsigned short c } d[] } e; enum { f, g, h, i }; e j; char k, l; e *m; void n(void) { int o; char *q, *r = 0, *s,

[Bug tree-optimization/95771] Failure to optimize popcount idiom when argument is unsigned char

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95771 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Assignee|unassigned a

[Bug web/32927] Online installation instructions only for mainline

2021-01-02 Thread gerald at pfeifer dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=32927 Gerald Pfeifer changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug go/98496] [11 Regression] bootstrap broken in libgo on i686-gnu

2021-01-02 Thread svante.signell at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98496 --- Comment #3 from Svante Signell --- On Sat, 2021-01-02 at 17:49 +, doko at debian dot org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98496 > > Matthias Klose changed: > >What|Removed |Added

[Bug target/98461] Suboptimal codegen for negating a movemask

2021-01-02 Thread denis.yaroshevskij at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98461 --- Comment #8 from Denis Yaroshevskiy --- Thank you for the fast fix. I can already see that the code is in trunk and works for both 256 and 128 bit registers. 256: https://godbolt.org/z/5sT48f 128: https://godbolt.org/z/Exo3d9 I am a bit con

[Bug go/98496] [11 Regression] bootstrap broken in libgo on i686-gnu

2021-01-02 Thread doko at debian dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98496 Matthias Klose changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|FIXED

[Bug fortran/98472] internal compiler error: in gfc_conv_expr_descriptor, at fortran/trans-array.c:7352

2021-01-02 Thread dominiq at lps dot ens.fr via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98472 Dominique d'Humieres changed: What|Removed |Added Last reconfirmed||2021-01-02 Status|UNC

[Bug bootstrap/98493] [11 regression] bootstrap build fails in go part of build after r11-6371

2021-01-02 Thread seurer at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98493 seurer at gcc dot gnu.org changed: What|Removed |Added Ever confirmed|0 |1 Resolution|FIXED

[Bug tree-optimization/96921] Failure to optimize combined boolean not patterns

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

[Bug c++/98500] New: ICE template template parameter with default parameter lambda

2021-01-02 Thread bastien.penavayre at epitech dot eu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98500 Bug ID: 98500 Summary: ICE template template parameter with default parameter lambda Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal P

[Bug c++/98499] New: [11 Regression] Possibly bad std::string initialization in constructors

2021-01-02 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98499 Bug ID: 98499 Summary: [11 Regression] Possibly bad std::string initialization in constructors Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/96930] Failure to optimize out arithmetic with bigger size when it can't matter with division transformed into right shift

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96930 --- Comment #3 from Jakub Jelinek --- I guess it could be either optimized using a match.pd pattern like we have for: /* Convert (outertype)((innertype0)a+(innertype1)b) into ((newtype)a+(newtype)b) where newtype is the widest mode from all

[Bug tree-optimization/96930] Failure to optimize out arithmetic with bigger size when it can't matter with division transformed into right shift

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96930 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug fortran/98498] Interp request: defined operators and unlimited polymorphic

2021-01-02 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98498 Paul Thomas changed: What|Removed |Added Last reconfirmed||2021-01-02 Status|UNCONFIRMED

[Bug tree-optimization/96782] Failure to optimize comparison with bitwise not-ed with self

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96782 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|prathamesh34

[Bug fortran/98498] New: Interp request: defined operators and unlimited polymorphic

2021-01-02 Thread pault at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98498 Bug ID: 98498 Summary: Interp request: defined operators and unlimited polymorphic Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Pri

[Bug tree-optimization/96697] Failure to optimize mod+div to 0

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96697 --- Comment #3 from Jakub Jelinek --- On the other side, we do have: /* X % Y is smaller than Y. */ (for cmp (lt ge) (simplify (cmp (trunc_mod @0 @1) @1) (if (TYPE_UNSIGNED (TREE_TYPE (@0))) { constant_boolean_node (cmp == LT_EXPR, type)

[Bug tree-optimization/96707] Failure to optimize right shift+unsigned compare of two variables optimally

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96707 Jakub Jelinek changed: What|Removed |Added CC||amacleod at redhat dot com,

[Bug tree-optimization/96696] Failure to optimize div+mul to mod+sub

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96696 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/96697] Failure to optimize mod+div to 0

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96697 Jakub Jelinek changed: What|Removed |Added CC||amacleod at redhat dot com,

[Bug tree-optimization/98443] Failure to optimize out vector operations into a constant when possible

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

[Bug rtl-optimization/94798] Failure to optimize subtraction and 0 literal properly

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94798 --- Comment #5 from Jakub Jelinek --- Related to what I wrote in PR94802 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94802#c5

[Bug tree-optimization/94802] Failure to recognize identities with __builtin_clz

2021-01-02 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94802 --- Comment #5 from Jakub Jelinek --- Even when the optimization is restricted to GIMPLE only, the single_use in there doesn't work really well before fre1 optimizes it, because the above mentioned testcase doesn't reuse the same expression, but