[Bug tree-optimization/103221] New: evrp removes |SIGN but does not propagate the ssa name

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103221 Bug ID: 103221 Summary: evrp removes |SIGN but does not propagate the ssa name Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: missed-optimization Severity:

[Bug tree-optimization/103218] (a < 0) << signbit is not always optimized to a & signbitmask at the gimple level

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103218 --- Comment #4 from Andrew Pinski --- Created attachment 51782 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51782=edit patch in testing Patch in testing.

[Bug libffi/102874] [12 regression] src/x86/win64.S doesn't assemble with Solaris as

2021-11-12 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102874 --- Comment #8 from H.J. Lu --- The proposed fix should be submitted to GCC and put it in libffi/LOCAL_PATCHES after it is checked in.

[Bug tree-optimization/103216] missed optimization, phiopt/vrp?

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103216 --- Comment #4 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > I am going to implement this. I think I only need the first conversion (and > making sure cond goes away which leads to the second one) which should lead > to

[Bug tree-optimization/103220] New: missed casting issue with |/&?

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103220 Bug ID: 103220 Summary: missed casting issue with |/&? Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: missed-optimization, TREE Severity: enhancement

[Bug tree-optimization/103216] missed optimization, phiopt/vrp?

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103216 Andrew Pinski changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug tree-optimization/103216] missed optimization, phiopt/vrp?

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103216 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|

[Bug tree-optimization/103219] [12 Regression] ICE Segmentation fault at -O3 (during GIMPLE pass: unrolljam)

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103219 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |12.0

[Bug tree-optimization/103219] New: [12 Regression] ICE Segmentation fault at -O3 (during GIMPLE pass: unrolljam)

2021-11-12 Thread haoxintu at gmail dot com via Gcc-bugs
model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 2022 (experimental) (GCC) Can also check here: https://godbolt.org/z/r7TKr8MxW Thanks, Haoxin

[Bug tree-optimization/103218] (a < 0) << signbit is not always optimized to a & signbitmask at the gimple level

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103218 --- Comment #3 from Andrew Pinski --- There is code in fold_ternary_loc which does: /* A < 0 ? : 0 is simply (A & ). */ And this works as fold also does (a<0)<

[Bug tree-optimization/103218] (a < 0) << signbit is not always optimized to a & signbitmask at the gimple level

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103218 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-11-13

[Bug tree-optimization/103216] missed optimization, phiopt/vrp?

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103216 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > For x86_64 we might be able to solve this at the RTL level during combine: > (set (reg/v:QI 84 [ ]) > (if_then_else:QI (lt (subreg:QI (reg:SI 86 [ a ]) 0)

[Bug tree-optimization/103218] (a < 0) << signbit is not always optimized to a & signbitmask at the gimple level

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103218 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/103218] New: (a < 0) << signbit is not always optimized to a & signbitmask at the gimple level

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103218 Bug ID: 103218 Summary: (a < 0) << signbit is not always optimized to a & signbitmask at the gimple level Product: gcc Version: 12.0 Status: UNCONFIRMED

[Bug libffi/102874] [12 regression] src/x86/win64.S doesn't assemble with Solaris as

2021-11-12 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102874 Hans-Peter Nilsson changed: What|Removed |Added CC||hp at gcc dot gnu.org --- Comment

[Bug testsuite/103179] [12 regression] Excess errors in gfortran.dg/do_subscript_3.f90 after r12-5126

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103179 Jan Hubicka changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug tree-optimization/103189] [12 regression] g++.dg/tree-ssa/pta-delete-1.C etc. FAIL

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103189 Bug 103189 depends on bug 103182, which changed state. Bug 103182 Summary: [12 Regression] Recent change causes code correctness regression https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103182 What|Removed

[Bug tree-optimization/103182] [12 Regression] Recent change causes code correctness regression

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103182 Jan Hubicka changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/103166] [12 regression] wrong dependency on getentropy on newlib-based targets

2021-11-12 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103166 --- Comment #9 from Hans-Peter Nilsson --- Elaboration: there may be (newlib) targets (build/test setups) where the test-setup can't link and thus erroneously gets a "yes" for these functions. If that happens for you, look into fixing newlib

[Bug tree-optimization/103182] [12 Regression] Recent change causes code correctness regression

2021-11-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103182 --- Comment #6 from CVS Commits --- The master branch has been updated by Jan Hubicka : https://gcc.gnu.org/g:2f3d43a35155685b1795b4392e20e1c14a33c38f commit r12-5221-g2f3d43a35155685b1795b4392e20e1c14a33c38f Author: Jan Hubicka Date: Sat

[Bug libstdc++/103166] [12 regression] wrong dependency on getentropy on newlib-based targets

2021-11-12 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103166 Hans-Peter Nilsson changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libstdc++/103166] [12 regression] wrong dependency on getentropy on newlib-based targets

2021-11-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103166 --- Comment #7 from CVS Commits --- The master branch has been updated by Hans-Peter Nilsson : https://gcc.gnu.org/g:60f761c7e54f96a287c73a71d0b09ee2b2f8426d commit r12-5220-g60f761c7e54f96a287c73a71d0b09ee2b2f8426d Author: Hans-Peter Nilsson

[Bug c/20785] Pragma STDC * (C99 FP) unimplemented

2021-11-12 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20785 --- Comment #17 from Vincent Lefèvre --- (In reply to Pavel M from comment #16) > Note: The #pragma STDC FENV_ACCESS is unknown and ignored (leading to FP > issues), however, the __STDC_IEC_559__ is defined to 1. Confused. Yes, and IMHO, with

[Bug tree-optimization/103216] missed optimization, phiopt/vrp?

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103216 --- Comment #1 from Andrew Pinski --- For x86_64 we might be able to solve this at the RTL level during combine: (set (reg/v:QI 84 [ ]) (if_then_else:QI (lt (subreg:QI (reg:SI 86 [ a ]) 0) (const_int 0 [0])) (ior:QI

[Bug analyzer/99269] False positive -Wanalyzer-malloc-leak/-Wanalyzer-double-free with -fanalyzer

2021-11-12 Thread npfhrotynz-ptnqh.myvf at noclue dot notk.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99269 Dominique Martinet changed: What|Removed |Added CC||npfhrotynz-ptnqh.myvf@noclu

[Bug analyzer/103217] New: analyzer false positive on leak warning when using indirect strdup

2021-11-12 Thread npfhrotynz-ptnqh.myvf at noclue dot notk.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103217 Bug ID: 103217 Summary: analyzer false positive on leak warning when using indirect strdup Product: gcc Version: 11.2.1 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/103216] New: missed optimization, phiopt/vrp?

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103216 Bug ID: 103216 Summary: missed optimization, phiopt/vrp? Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: enhancement

[Bug tree-optimization/88443] [meta-bug] bogus/missing -Wstringop-overflow warnings

2021-11-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88443 Bug 88443 depends on bug 103176, which changed state. Bug 103176 Summary: -foptimize-strlen causes stringop-overflow warning https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103176 What|Removed |Added

[Bug tree-optimization/103176] -foptimize-strlen causes stringop-overflow warning

2021-11-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103176 Martin Sebor changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug middle-end/103193] gcc for x86_64: wrong code generation: ucomiss instead of comiss

2021-11-12 Thread joseph at codesourcery dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103193 --- Comment #5 from joseph at codesourcery dot com --- On Fri, 12 Nov 2021, rguenth at gcc dot gnu.org via Gcc-bugs wrote: > /* Simplify comparison of something with itself. For IEEE >floating-point, we can only do some of these

[Bug c++/103212] requires expression with lambda inside causes a parse error

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103212 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid

[Bug tree-optimization/103209] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r12-4324-g008e7397dad971c0

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103209 Jan Hubicka changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug tree-optimization/103209] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r12-4324-g008e7397dad971c0

2021-11-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103209 --- Comment #5 from CVS Commits --- The master branch has been updated by Jan Hubicka : https://gcc.gnu.org/g:4d2d5565a0953eaa829d10006baf007cf33bab89 commit r12-5217-g4d2d5565a0953eaa829d10006baf007cf33bab89 Author: Jan Hubicka Date: Fri

[Bug fortran/83646] (PDT) Use statement with PDTs excludes the specific instances.

2021-11-12 Thread aldot at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83646 Bernhard Reutner-Fischer changed: What|Removed |Added CC||aldot at gcc dot gnu.org ---

[Bug ada/103070] ICE in gimple_call_static_chain_flags, at gimple.c:1669

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103070 Bug 103070 depends on bug 103058, which changed state. Bug 103058 Summary: [12 Regression] ICE in gimple_call_static_chain_flags, at gimple.c:1669 when building 527.cam4_r https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103058 What

[Bug tree-optimization/102943] [12 Regression] Jump threader compile-time hog with 521.wrf_r

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102943 Bug 102943 depends on bug 103058, which changed state. Bug 103058 Summary: [12 Regression] ICE in gimple_call_static_chain_flags, at gimple.c:1669 when building 527.cam4_r https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103058 What

[Bug middle-end/26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 Bug 26163 depends on bug 103058, which changed state. Bug 103058 Summary: [12 Regression] ICE in gimple_call_static_chain_flags, at gimple.c:1669 when building 527.cam4_r https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103058 What

[Bug fortran/103058] [12 Regression] ICE in gimple_call_static_chain_flags, at gimple.c:1669 when building 527.cam4_r

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103058 Jan Hubicka changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Bug tree-optimization/103182] [12 Regression] Recent change causes code correctness regression

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103182 --- Comment #5 from Jan Hubicka --- What happens here is that we optimize the loop to memcpy and memcpy EAF flags coming from fnspec are quite interesting. The copied argument is marked as escaping but used only directly. This is correct but

[Bug tree-optimization/103215] [12 regression] gcc generates unexpected warnings on libx11-1.7.2: error: array subscript -2 is outside array bounds of

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103215 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2021-11-12

[Bug c/20785] Pragma STDC * (C99 FP) unimplemented

2021-11-12 Thread pavel.morozkin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20785 --- Comment #16 from Pavel M --- Note: The #pragma STDC FENV_ACCESS is unknown and ignored (leading to FP issues), however, the __STDC_IEC_559__ is defined to 1. Confused.

[Bug tree-optimization/103207] [12 Regression] ICE in verify_range, at value-range.cc:385 since r12-4766-g113dab2b9d511f3a

2021-11-12 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103207 --- Comment #3 from Aldy Hernandez --- That is, is the overflowed 0 allowed in the switch's case?

[Bug fortran/102368] Failure to compile program using the C_SIZEOF function in ISO_C_BINDING

2021-11-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102368 --- Comment #4 from anlauf at gcc dot gnu.org --- Note: Steve Lionel of Intel thinks the code in comment#0 is invalid. But nvfortran, flang and crayftn all accept it without complaining. @Bill: any more detailed thoughts how to resolve this?

[Bug tree-optimization/103215] [12 regression] gcc generates unexpected warnings on libx11-1.7.2: error: array subscript -2 is outside array bounds of

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103215 --- Comment #2 from Andrew Pinski --- >Does double post-increment `if (type-- == name_and_type || type-- == >name_and_type)` have defined behaviour? Yes as the || acts as a sequence point. My bet is there is a (bad) transformation going on

[Bug tree-optimization/103215] [12 regression] gcc generates unexpected warnings on libx11-1.7.2: error: array subscript -2 is outside array bounds of

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

[Bug c++/67491] [meta-bug] concepts issues

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67491 Bug 67491 depends on bug 67901, which changed state. Bug 67901 Summary: [concepts] overloading bug when considered more specialized vs more constrained https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67901 What|Removed

[Bug c++/67901] [concepts] overloading bug when considered more specialized vs more constrained

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67901 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |10.2 Resolution|---

[Bug tree-optimization/103195] [12 Regression] tfft2 text grows by 70% with -Ofast since r12-5113-gd70ef65692fced7a

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103195 Jan Hubicka changed: What|Removed |Added CC||mjambor at suse dot cz --- Comment #4

[Bug c++/100055] [10/11/12 Regression] ICE on invalid requires expression

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100055 Andrew Pinski changed: What|Removed |Added CC||lts-rudolph at gmx dot de --- Comment

[Bug c++/96111] checking type of attribute with concepts results in compilation error or ICE

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96111 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/98939] [C++23] Implement P1787R6 "Declarations and where to find them"

2021-11-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98939 --- Comment #2 from Marek Polacek --- I'm having trouble with "Default template arguments are now complete-class contexts": class C { template struct _List; template struct S; // #1 template struct S<_Sz, _List<_Uint, _UInts...>>;

[Bug tree-optimization/103209] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r12-4324-g008e7397dad971c0

2021-11-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103209 --- Comment #4 from Martin Liška --- Wow, what a bug :P

[Bug tree-optimization/103209] [12 Regression] wrong code at -O1 on x86_64-linux-gnu since r12-4324-g008e7397dad971c0

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103209 --- Comment #3 from Jan Hubicka --- This is bug I introduced to tree-ssa-structalias where I reversed order of flags which deterine global memory read and writes. So pure functions are handled as functions writting global memory but not reading

[Bug libstdc++/103166] [12 regression] wrong dependency on getentropy on newlib-based targets

2021-11-12 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103166 Hans-Peter Nilsson changed: What|Removed |Added URL||https://gcc.gnu.org/piperma

[Bug c/103215] [12 regression] gcc generates unexpected warnings on libx11-1.7.2: error: array subscript -2 is outside array bounds of

2021-11-12 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103215 --- Comment #1 from Sergei Trofimovich --- Created attachment 51781 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51781=edit orig.bug.c Attaching orig.bug.c in case I corrupted original too much.

[Bug middle-end/97048] [meta-bug] bogus/missing -Wstringop-overread warnings

2021-11-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97048 Bug 97048 depends on bug 98465, which changed state. Bug 98465 Summary: Bogus -Wstringop-overread with -std=gnu++20 -O2 and std::string::insert https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465 What|Removed

[Bug middle-end/98465] Bogus -Wstringop-overread with -std=gnu++20 -O2 and std::string::insert

2021-11-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98465 Martin Sebor changed: What|Removed |Added Known to fail|11.0| Resolution|---

[Bug c/103215] New: [12 regression] gcc generates unexpected warnings on libx11-1.7.2: error: array subscript -2 is outside array bounds of

2021-11-12 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103215 Bug ID: 103215 Summary: [12 regression] gcc generates unexpected warnings on libx11-1.7.2: error: array subscript -2 is outside array bounds of Product: gcc

[Bug tree-optimization/103202] [12 regression] gcc miscompiles ed-1.17 since r12-3876-g4a960d548b7d7d94

2021-11-12 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103202 Aldy Hernandez changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/103202] [12 regression] gcc miscompiles ed-1.17 since r12-3876-g4a960d548b7d7d94

2021-11-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103202 --- Comment #11 from CVS Commits --- The master branch has been updated by Aldy Hernandez : https://gcc.gnu.org/g:264f061997c0a5349cdce6d73f0dc167ac7fc8f4 commit r12-5216-g264f061997c0a5349cdce6d73f0dc167ac7fc8f4 Author: Aldy Hernandez Date:

[Bug c++/103213] Lambda type name overlap

2021-11-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103213 Jonathan Wakely changed: What|Removed |Added Last reconfirmed||2021-11-12

[Bug tree-optimization/98512] [11/12 Regression] “#pragma GCC diagnostic ignored” ineffective in conjunction with alias attribute

2021-11-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98512 Martin Sebor changed: What|Removed |Added Known to work||12.0 Resolution|---

[Bug middle-end/24639] [meta-bug] bug to track all Wuninitialized issues

2021-11-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639 Bug 24639 depends on bug 98871, which changed state. Bug 98871 Summary: Cannot silence -Wmaybe-uninitialized at declaration site https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98871 What|Removed |Added

[Bug middle-end/98871] Cannot silence -Wmaybe-uninitialized at declaration site

2021-11-12 Thread msebor at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98871 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/102043] Wrong array types used for negative stride accesses

2021-11-12 Thread mikael at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043 --- Comment #12 from Mikael Morin --- (In reply to Thomas Koenig from comment #11) > (In reply to Richard Biener from comment #10) > > > Is there any case where the frontend would make 'data' point into the > > middle of the array and

[Bug libstdc++/103166] [12 regression] wrong dependency on getentropy on newlib-based targets

2021-11-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103166 --- Comment #5 from Jonathan Wakely --- There's no other patch as far as I know, so that would be great, thanks.

[Bug c++/100583] [modules] ICE when importing

2021-11-12 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100583 --- Comment #4 from Johel Ernesto Guerrero Peña --- As pointed out in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103118#c3: > What works is including them in a non-module unit translation unit. > > ```C++ > #if defined(__GNUC__) and not

[Bug c++/103118] [modules] ICE tree check in get_merge_kind at cp/module.cc

2021-11-12 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103118 --- Comment #3 from Johel Ernesto Guerrero Peña --- What works is including them in a non-module unit translation unit. ```C++ #if defined(__GNUC__) and not defined(__clang__) # include // Workaround GCC bug 103118. # include//

[Bug c++/103186] [11/12 Regression] ICE with fold-expression and lambdas as default since r11-7965-g23be03a0f243a084

2021-11-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103186 Martin Liška changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug c++/67901] [concepts] overloading bug when considered more specialized vs more constrained

2021-11-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67901 Martin Liška changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug c++/96111] checking type of attribute with concepts results in compilation error or ICE

2021-11-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96111 Martin Liška changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug c++/101149] Coroutine compiler error with ternary operator

2021-11-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101149 Martin Liška changed: What|Removed |Added Keywords|needs-bisection | Resolution|---

[Bug c++/103118] [modules] ICE tree check in get_merge_kind at cp/module.cc

2021-11-12 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103118 --- Comment #2 from Johel Ernesto Guerrero Peña --- Or not. I forgot to uncomment uses of the chrono library.

[Bug fortran/102043] Wrong array types used for negative stride accesses

2021-11-12 Thread tkoenig at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102043 --- Comment #11 from Thomas Koenig --- (In reply to Richard Biener from comment #10) > Is there any case where the frontend would make 'data' point into the > middle of the array and iteration over the array would end up accessing > elements

[Bug fortran/102368] Failure to compile program using the C_SIZEOF function in ISO_C_BINDING

2021-11-12 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102368 anlauf at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |anlauf at gcc dot

[Bug libstdc++/103166] [12 regression] wrong dependency on getentropy on newlib-based targets

2021-11-12 Thread hp at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103166 Hans-Peter Nilsson changed: What|Removed |Added CC||hp at gcc dot gnu.org --- Comment

[Bug c++/103118] [modules] ICE tree check in get_merge_kind at cp/module.cc

2021-11-12 Thread johelegp at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103118 --- Comment #1 from Johel Ernesto Guerrero Peña --- To work around this - Do not include ``. - Explicitly import a module that exports its definitions when you need to use the chrono library. I use the headers above to compile a header unit,

[Bug ipa/103211] [12 Regression] 416.gamess crashes after r12-5177-g494bdadf28d0fb35

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103211 --- Comment #5 from Jan Hubicka --- There is wrong change in my patch (I mixed up this_looping variable for looping) diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index b831844afa6..5056850c0a8 100644 --- a/gcc/ipa-pure-const.c +++

[Bug ipa/103211] [12 Regression] 416.gamess crashes after r12-5177-g494bdadf28d0fb35

2021-11-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103211 --- Comment #4 from Martin Liška --- Yes: grep 'found to' * | grep master unport.fppized.f.025t.nothrow:Function found to be nothrow: master.0.setfm unport.fppized.f.084i.pure-const:Function found to be pure: master.0.setfm/8

[Bug c++/84930] Brace-closed initialization of cstring (i.e."abcdefghi") to coresponding aggregate types fails in certain situation

2021-11-12 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84930 --- Comment #9 from Marek Polacek --- Comment 3 was fixed in r11-7102.

[Bug ipa/103211] [12 Regression] 416.gamess crashes after r12-5177-g494bdadf28d0fb35

2021-11-12 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103211 --- Comment #3 from hubicka at kam dot mff.cuni.cz --- > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103211 > > --- Comment #2 from Martin Liška --- > Optimized dump differs for couple of functions in the same way: > > diff -u good bad > ---

Re: [Bug ipa/103211] [12 Regression] 416.gamess crashes after r12-5177-g494bdadf28d0fb35

2021-11-12 Thread Jan Hubicka via Gcc-bugs
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103211 > > --- Comment #2 from Martin Liška --- > Optimized dump differs for couple of functions in the same way: > > diff -u good bad > --- good2021-11-12 17:42:36.995947103 +0100 > +++ bad 2021-11-12 17:41:56.728194961 +0100 > @@ -38,7

[Bug ipa/103211] [12 Regression] 416.gamess crashes after r12-5177-g494bdadf28d0fb35

2021-11-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103211 --- Comment #2 from Martin Liška --- Optimized dump differs for couple of functions in the same way: diff -u good bad --- good2021-11-12 17:42:36.995947103 +0100 +++ bad 2021-11-12 17:41:56.728194961 +0100 @@ -38,7 +38,6 @@ ;;

[Bug tree-optimization/103202] [12 regression] gcc miscompiles ed-1.17 since r12-3876-g4a960d548b7d7d94

2021-11-12 Thread slyfox at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103202 --- Comment #10 from Sergei Trofimovich --- (In reply to Aldy Hernandez from comment #9) > Created attachment 51780 [details] > patch in testing The patch fixed real ed-1.17 test suite as well. Thank you!

[Bug ipa/103211] [12 Regression] 416.gamess crashes after r12-5177-g494bdadf28d0fb35

2021-11-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103211 --- Comment #1 from Martin Liška --- The following file is miscompiled with: gfortran -c -o unport.fppized.o -O2 -march=skylake -g -std=legacy -fno-aggressive-loop-optimizations unport.fppized.f

[Bug web/103214] Incorrect function signatures for __builtin_ia32_pblendd* instructions

2021-11-12 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103214 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment

[Bug web/103214] New: Incorrect function signatures for __builtin_ia32_pblendd* instructions

2021-11-12 Thread gnugcc at bdwjn dot 33mail.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103214 Bug ID: 103214 Summary: Incorrect function signatures for __builtin_ia32_pblendd* instructions Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/102997] [12 Regression] 45% 454.calculix regression with LTO+PGO -march=native -Ofast on Zen since r12-4526-gd8edfadfc7a9795b65177a50ce44fd348858e844

2021-11-12 Thread hubicka at kam dot mff.cuni.cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102997 --- Comment #31 from hubicka at kam dot mff.cuni.cz --- > It likely was the loop header copying missing on cold loops then. Yep. It is good we worked that out.

[Bug target/99657] ICE: in extract_insn, at recog.c:2769 with SVE code without -march=+sve

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99657 --- Comment #10 from Andrew Pinski --- *** Bug 103206 has been marked as a duplicate of this bug. ***

[Bug target/103206] ICE in insn_default_length, at config/aarch64/aarch64.md:1183

2021-11-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103206 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/103175] [12 Regression] internal compiler error: in handle_call_arg, at tree-ssa-structalias.c:4139

2021-11-12 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103175 Jan Hubicka changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug tree-optimization/103175] [12 Regression] internal compiler error: in handle_call_arg, at tree-ssa-structalias.c:4139

2021-11-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103175 --- Comment #7 from CVS Commits --- The master branch has been updated by Jan Hubicka : https://gcc.gnu.org/g:4526ec20f17a6182f754da9460d9d944dd123cc0 commit r12-5201-g4526ec20f17a6182f754da9460d9d944dd123cc0 Author: Jan Hubicka Date: Fri

[Bug target/93082] macOS Authorization.h needs fixinclude

2021-11-12 Thread egallager at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93082 Eric Gallager changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/103202] [12 regression] gcc miscompiles ed-1.17 since r12-3876-g4a960d548b7d7d94

2021-11-12 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103202 --- Comment #9 from Aldy Hernandez --- Created attachment 51780 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51780=edit patch in testing

[Bug tree-optimization/103202] [12 regression] gcc miscompiles ed-1.17 since r12-3876-g4a960d548b7d7d94

2021-11-12 Thread aldyh at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103202 Aldy Hernandez changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |aldyh at gcc dot gnu.org ---

[Bug c++/84930] Brace-closed initialization of cstring (i.e."abcdefghi") to coresponding aggregate types fails in certain situation

2021-11-12 Thread wjwray at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84930 Will Wray changed: What|Removed |Added CC||wjwray at gmail dot com --- Comment #8 from

[Bug target/103201] [12 Regression] trunk 20211111 ftbfs for amdgcn – libgomp/teams.c:49:6: error: 'struct gomp_thread' has no member named 'num_teams'

2021-11-12 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103201 --- Comment #4 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:f49c7a4fb23d82c89c97acec88770b300c903d9a commit r12-5200-gf49c7a4fb23d82c89c97acec88770b300c903d9a Author: Jakub Jelinek Date:

[Bug target/103201] [12 Regression] trunk 20211111 ftbfs for amdgcn – libgomp/teams.c:49:6: error: 'struct gomp_thread' has no member named 'num_teams'

2021-11-12 Thread ams at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103201 --- Comment #3 from Andrew Stubbs --- I did some preliminary testing on your patch: the libgomp.c/target-teams-1.c testcase runs fine on amdgcn. I presume that that covers most of the existing features of those runtime calls?

[Bug other/89863] [meta-bug] Issues in gcc that other static analyzers (cppcheck, clang-static-analyzer, PVS-studio) find that gcc misses

2021-11-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89863 Bug 89863 depends on bug 89259, which changed state. Bug 89259 Summary: liboffloadmic/runtime/offload_omp_host.cpp:692: pointless test ? https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89259 What|Removed |Added

[Bug other/89259] liboffloadmic/runtime/offload_omp_host.cpp:692: pointless test ?

2021-11-12 Thread marxin at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89259 Martin Liška changed: What|Removed |Added Resolution|--- |WONTFIX Status|ASSIGNED

  1   2   >