[Bug target/98877] [AArch64] Inefficient code generated for tbl NEON intrinsics

2021-08-22 Thread tnfchris at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98877 Tamar Christina changed: What|Removed |Added Version|11.0|12.0 --- Comment #5 from Tamar

[Bug fortran/102011] New: Infinite loop in heron iteration when optimization is enabled with gfortran 10.3.0

2021-08-22 Thread Ralph-Trenkler--- via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102011 Bug ID: 102011 Summary: Infinite loop in heron iteration when optimization is enabled with gfortran 10.3.0 Product: gcc Version: unknown Status: UNCONFIRMED

[Bug objc/101666] Objective-C frontend crashes with `-fobjc-nilcheck`

2021-08-22 Thread iains at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101666 Iain Sandoe changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |iains at gcc dot gnu.org

[Bug c/100532] ICE: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at gimple-expr.c:259

2021-08-22 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100532 H.J. Lu changed: What|Removed |Added Summary|[12 Regression] ICE: tree |ICE: tree check: expected

[Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90458 Andrew Pinski changed: What|Removed |Added CC||nightstrike at gmail dot com ---

[Bug target/97795] internal compiler error: in i386_pe_seh_unwind_emit

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97795 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug c/102010] ICE in stack-check-8.c in i386_pe_seh_unwind_emit

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102010 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug c/102014] New: [missed optimization] __uint128_t % uint64_t emits a call to __umodti3 instead of div instruction

2021-08-22 Thread kamkaz at windowslive dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102014 Bug ID: 102014 Summary: [missed optimization] __uint128_t % uint64_t emits a call to __umodti3 instead of div instruction Product: gcc Version: 11.2.1 Status:

[Bug rtl-optimization/55549] zero_extend and vectors

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55549 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Keywords|

[Bug rtl-optimization/64537] Aarch64 redundant sxth instruction gets generated

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

[Bug c/102014] [missed optimization] __uint128_t % uint64_t emits a call to __umodti3 instead of div instruction

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

[Bug tree-optimization/82803] Wildly excessive calls to __tls_get_addr with optimizations enabled.

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

[Bug rtl-optimization/81501] Unneccessary calls to __tls_get_addr() in simple thread-singleton pattern

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501 Andrew Pinski changed: What|Removed |Added CC||amohr at amohr dot org --- Comment #4

[Bug rtl-optimization/87238] Redundant Restore of $x0 when memcpy always returns the first argument.

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

[Bug rtl-optimization/87238] Redundant Restore of $x0 when memcpy always returns the first argument.

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87238 Andrew Pinski changed: What|Removed |Added Keywords||ra --- Comment #4 from Andrew Pinski

[Bug target/98877] [AArch64] Inefficient code generated for tbl NEON intrinsics

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98877 --- Comment #4 from Andrew Pinski --- Here is another example where GCC messes up: #include "arm_neon.h" uint8x16_t g(void); uint8x16_t fun(uint8x16_t lo, uint8x16_t hi, uint8x16_t idx) { uint8x16x2_t tab = { .val = {g(), g()} }; uint8x16_t

[Bug target/98877] [AArch64] Inefficient code generated for tbl NEON intrinsics

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98877 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug target/43147] SSE shuffle merge

2021-08-22 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43147 H.J. Lu changed: What|Removed |Added Keywords||patch URL|

[Bug c++/102013] New: Incorrect aggregate initialization of union

2021-08-22 Thread fchelnokov at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102013 Bug ID: 102013 Summary: Incorrect aggregate initialization of union Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug fortran/102011] Infinite loop in heron iteration when optimization is enabled with gfortran 10.3.0

2021-08-22 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102011 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org

[Bug target/90458] mingw64: ICE in i386_pe_seh_unwind_emit, at config/i386/winnt.c:1258 with -fstack-clash-protection

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90458 Andrew Pinski changed: What|Removed |Added CC||vladimir.kokovic at gmail dot com ---

[Bug libstdc++/69331] FAIL: 20_util/shared_ptr/thread/default_weaktoshared.cc execution test

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

[Bug libstdc++/89461] FAIL: experimental/net/timer/waitable/cons.cc

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

[Bug libstdc++/89461] FAIL: experimental/net/timer/waitable/cons.cc

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

[Bug c/102010] New: ICE in stack-check-8.c in i386_pe_seh_unwind_emit

2021-08-22 Thread nightstrike at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102010 Bug ID: 102010 Summary: ICE in stack-check-8.c in i386_pe_seh_unwind_emit Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/80266] ICE in store_pairsi condition with -mabi=ilp32

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

[Bug middle-end/80295] [7 Regression] ICE in __builtin_update_setjmp_buf expander

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80295 --- Comment #16 from Andrew Pinski --- *** Bug 80266 has been marked as a duplicate of this bug. ***

[Bug target/86713] 'nofp', 'nosimd', 'nocrypto' and 'nofp16' feature modifiers for Aarch64 fail to build

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86713 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Keywords|

[Bug target/89517] [8/9 Regression] AArch64's configure option --with-arch can silently lead to incorrectly configured compiler

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89517 Andrew Pinski changed: What|Removed |Added CC||vladimir at bashkirtsev dot com ---

[Bug rtl-optimization/81501] mulitple calls to __tls_get_addr() with -fPIC

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81501 Andrew Pinski changed: What|Removed |Added Summary|Unneccessary calls to |mulitple calls to

[Bug rtl-optimization/86901] [AArch64] Suboptimal register allocation for int/float reinterpret

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86901 Andrew Pinski changed: What|Removed |Added Keywords|ra | Last reconfirmed|2020-05-16 00:00:00

[Bug target/80881] Implement Windows native TLS

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80881 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug rtl-optimization/96031] suboptimal codegen for store low 16-bits value

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96031 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement See Also|

[Bug rtl-optimization/64537] Aarch64 redundant sxth instruction gets generated

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

[Bug c++/102012] New: GCC accepts any non-bool atomic constraint type

2021-08-22 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102012 Bug ID: 102012 Summary: GCC accepts any non-bool atomic constraint type Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/58897] Improve 128/64 division

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58897 Andrew Pinski changed: What|Removed |Added CC||kamkaz at windowslive dot com ---

[Bug rtl-optimization/57448] GCSE generates incorrect code with acquire barrier

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57448 Andrew Pinski changed: What|Removed |Added CC||lucenadeveloper at gmail dot com ---

[Bug c++/77312] Lambda that deletes itself accesses freed memory, but only if class is templated

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77312 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Target Milestone|---

[Bug c/98397] C2X: pointers to arrays with qualifiers are now pointers to qualified types

2021-08-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98397 --- Comment #2 from CVS Commits --- The master branch has been updated by Martin Uecker : https://gcc.gnu.org/g:972eab51f53d1db26864ec7d62d40c2ff83407ec commit r12-3060-g972eab51f53d1db26864ec7d62d40c2ff83407ec Author: Martin Uecker Date:

[Bug c++/81880] thread_local static member template initialisation fails

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81880 --- Comment #4 from Andrew Pinski --- Reduced testcase: extern "C" void abort(void); struct tt { int *tt1 = new int{1}; int bucket_count() const {return *tt1;} }; struct A { template thread_local static tt m; }; template thread_local tt

[Bug c++/78223] [DR1454] struct containing default member initializer fails constexpr test in aggregate initialization

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78223 Andrew Pinski changed: What|Removed |Added Summary|struct containing default |[DR1454] struct containing

[Bug c++/78753] non-ambiguous overload resolution with function template partial ordering rules

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78753 Andrew Pinski changed: What|Removed |Added Keywords||accepts-invalid --- Comment #2 from

[Bug c++/88162] GCC does not accept non-type template parameters of class type

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88162 --- Comment #1 from Andrew Pinski --- ICC also rejects this at both -std=c++17 and -std=c++20: (15): error: a nontype template parameter may not have class type template class T> using nttp_t = typename decltype( f(T()) )::type;

[Bug c/29511] 0x80000000/-1 causes FPE on Intel/AMD

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29511 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #3 from Andrew

[Bug c++/55885] Modulo operator crashes for int and long variables if they have minimal value

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55885 Andrew Pinski changed: What|Removed |Added CC||Eric.Deplagne at nerim dot net ---

[Bug c++/44613] Declaring an array with non-constant length inside a switch corrupts stack pointer.

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44613 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |4.9.0 Status|NEW

[Bug c/98397] C2X: pointers to arrays with qualifiers are now pointers to qualified types

2021-08-22 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98397 Martin Uecker changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/15533] Missed move to partial register

2021-08-22 Thread peter at cordes dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15533 Peter Cordes changed: What|Removed |Added CC||peter at cordes dot ca --- Comment #5

[Bug c++/60673] c++11 static thread_local members may cause a segfault when accessed via 'this->'

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60673 --- Comment #3 from Andrew Pinski --- (In reply to Jonathan Wakely from comment #2) > This seems to be fixed in GCC 5 onwards (and recent Clang versions). It was not fixed until GCC 7.5, 8.4 and 9+. Here is a reduced testcase which shows it was

[Bug c++/16191] Note for missing 'template' reports wrong template parameter

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16191 --- Comment #7 from Andrew Pinski --- Hmm, this code started be accepted in GCC 10+; I suspect by the fix for PR 94057. was that really expected?

[Bug c++/94057] [9 Regression] -std=gnu++20 causes failure naming nested templated class since r9-4536

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94057 Andrew Pinski changed: What|Removed |Added Target Milestone|9.4 |10.0

[Bug c++/62227] [DR535] Templated move not elided

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62227 --- Comment #5 from Andrew Pinski --- C++17 and C++20 modes no longer print move since GCC 7. Most likely due to the patches to implement p0135. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0135r1.html

[Bug c++/102015] New: [missed optimization] Small memory overhead in _Rb_tree_impl (fix would require ABI break)

2021-08-22 Thread kamkaz at windowslive dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102015 Bug ID: 102015 Summary: [missed optimization] Small memory overhead in _Rb_tree_impl (fix would require ABI break) Product: gcc Version: 11.2.1 Status: UNCONFIRMED

[Bug tree-optimization/79334] Segfault on tree loop hoisting

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79334 --- Comment #5 from Andrew Pinski --- (In reply to Alan Modra from comment #4) > When you have the tree optimization bug fixed, this becomes an rtl > optimization bug since rtl pre does the same as tree pre.. GCSE was fixed with PR 78812. So

[Bug libstdc++/89979] subtract_with_carry_engine incorrect carry flag

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89979 --- Comment #3 from Andrew Pinski --- LLVM's libc++ does not go into the 0 loop but still does not do a good job: 4294967295 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 4294967295 1 0 0 0 0 0 4294967295 4294967295 1 0 0 0 0 4294967295 4294967295

[Bug c++/60673] c++11 static thread_local members may cause a segfault when accessed via 'this->'

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

[Bug c++/59994] [meta-bug] thread_local

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59994 Bug 59994 depends on bug 60673, which changed state. Bug 60673 Summary: c++11 static thread_local members may cause a segfault when accessed via 'this->' https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60673 What|Removed

[Bug c++/60702] thread_local initialization

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60702 Andrew Pinski changed: What|Removed |Added CC||michael at ensslin dot cc --- Comment

[Bug c++/82947] Variadic `using` directive incorrectly compiled without base classes (with class template argument deduction)

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82947 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |11.0 Keywords|

[Bug target/49001] GCC uses VMOVAPS/PD AVX instructions to access stack variables that are not 32-byte aligned

2021-08-22 Thread arthur200126 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49001 --- Comment #6 from Mingye Wang --- FWIW, the ticket about doing stuff to align the stack in the prologue is bug 54412. Apologies for the noisy emails, but thing is I can't do the see-also thing here.

[Bug rtl-optimization/57448] GCSE generates incorrect code with acquire barrier

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57448 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |8.0 Keywords|

[Bug rtl-optimization/70889] memory reordering across loads tagged as memory_order_seq_cst

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

[Bug tree-optimization/93013] PPC: optimization around modulo leads to incorrect result

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93013 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |DUPLICATE --- Comment #8 from Andrew

[Bug c++/55885] Modulo operator crashes for int and long variables if they have minimal value

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55885 Andrew Pinski changed: What|Removed |Added CC||jens.seifert at de dot ibm.com ---

[Bug c++/55885] Modulo operator crashes for int and long variables if they have minimal value

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55885 --- Comment #7 from Andrew Pinski --- Note PR 30484 is for the -fwrapv issue with %.

[Bug c++/16191] Note for missing 'template' reports wrong template parameter

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16191 --- Comment #8 from Andrew Pinski --- Looks like the resolution of DR1710 (though it was supposed to be C++17+) causes the code without the template to be accepted which means this should be rejected for C++98, C++03, C++11 and C++14

[Bug c++/82947] Variadic `using` directive incorrectly compiled without base classes (with class template argument deduction)

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82947 --- Comment #1 from Andrew Pinski --- In GCC 11+ we get: : In instantiation of 'struct foo >': :16:19: required from here :8:29: error: type 'main()::' is not a base type for type 'foo >' 8 | using Ts::operator()...; |

[Bug c++/92494] ICE on function templates with placeholder return type decltype([]{}) and if return type doesn't match

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92494 --- Comment #1 from Andrew Pinski --- This is fixed in GCC 10+.

[Bug target/54412] minimal 32-byte stack alignment with -mavx on 64-bit Windows

2021-08-22 Thread arthur200126 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54412 Mingye Wang changed: What|Removed |Added CC||arthur200126 at gmail dot com --- Comment

[Bug ipa/101949] [11/12 Regression] git miscompiled with -flto -fipa-pta since r11-5061-g85ebbabd85e03bdc

2021-08-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101949 --- Comment #15 from CVS Commits --- The master branch has been updated by Jan Hubicka : https://gcc.gnu.org/g:9b08f7764cecd16cba84944f2a8b67a7f73a7ce7 commit r12-3059-g9b08f7764cecd16cba84944f2a8b67a7f73a7ce7 Author: Jan Hubicka Date: Sun

[Bug target/101296] Addition of x86 addsub SLP patterned slowed down 433.milc by 12% on znver2 with -Ofast -flto

2021-08-22 Thread hubicka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101296 --- Comment #7 from Jan Hubicka --- "every access" means that we no longer track individual bases+offsets+sizes and everything matching the base/ref alias set will be considered conflicting. I planned to implement smarter merging of accesses

[Bug rtl-optimization/97836] wrong code at -O1 on x86_64-pc-linux-gnu by r11-5029

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

[Bug ipa/101949] [11/12 Regression] git miscompiled with -flto -fipa-pta since r11-5061-g85ebbabd85e03bdc

2021-08-22 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101949 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #16

[Bug c++/15272] lookup, dependent base

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15272 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |8.0

[Bug c++/87312] statics in lambdas should be weak not local symbols

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

[Bug c++/92073] references/pointers to thread_local are not constant expressions

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

[Bug c++/61991] Destructors not always called for statically initialized thread_local objects

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61991 --- Comment #2 from Andrew Pinski --- GCC, clang and ICC all have this same behavior in that if y is not used, the y is not initialized or deconstructed.

[Bug c++/86959] Use of a variadic alias template unexpectedly breaks compilation

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86959 --- Comment #1 from Andrew Pinski --- clang ICEs with -std=c++20 :). GCC ICEs starting in GCC 9: : In substitution of 'template template using Alias = Outer< >::Inner [with T = {void}; = void]': :18:38: required from here :8:11: internal

[Bug target/49001] GCC uses VMOVAPS/PD AVX instructions to access stack variables that are not 32-byte aligned

2021-08-22 Thread arthur200126 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49001 Mingye Wang changed: What|Removed |Added CC||arthur200126 at gmail dot com --- Comment

[Bug libstdc++/102015] [missed optimization] Small memory overhead in _Rb_tree_impl (fix would require ABI break)

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102015 --- Comment #1 from Andrew Pinski --- https://stackoverflow.com/questions/66573773/is-there-a-reason-for-8-bytes-of-size-overhead-in-libstdc-stdmultiset-map

[Bug rtl-optimization/70889] memory reordering across loads tagged as memory_order_seq_cst

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70889 --- Comment #1 from Andrew Pinski --- Testcase: #include #include std::atomic seq_; std::size_t value; auto load() { std::size_t copy; std::size_t seq0; do { seq0 = seq_.load(); if (!seq0) continue;

[Bug fortran/94070] Assumed-rank arrays – bounds mishandled, SIZE/SHAPE/UBOUND/LBOUND

2021-08-22 Thread sandra at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94070 sandra at gcc dot gnu.org changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |sandra at gcc dot

[Bug libstdc++/102015] [missed optimization] Small memory overhead in _Rb_tree_impl (fix would require ABI break)

2021-08-22 Thread kamkaz at windowslive dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102015 --- Comment #2 from Kamil Kaznowski --- (In reply to Andrew Pinski from comment #1) > https://stackoverflow.com/questions/66573773/is-there-a-reason-for-8-bytes- > of-size-overhead-in-libstdc-stdmultiset-map This is my post, I forgot to post a

[Bug c/102014] [missed optimization] __uint128_t % uint64_t emits a call to __umodti3 instead of div instruction

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102014 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE

[Bug ipa/101257] [11/12 Regression] Maybe wrong code since IPA mod ref was introduced

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

[Bug c++/77312] Lambda that deletes itself accesses freed memory, but only if class is templated

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77312 --- Comment #7 from Andrew Pinski --- This is fixed in GCC 8: if (SAVE_EXPR <(struct LambdaHolder *) this> != 0B) { try { LambdaHolder::~LambdaHolder (SAVE_EXPR <(struct LambdaHolder *) this>); }

[Bug middle-end/82940] Suboptimal code for (a & 0x7f) | (b & 0x80) on powerpc

2021-08-22 Thread peter at cordes dot ca via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82940 Peter Cordes changed: What|Removed |Added CC||peter at cordes dot ca --- Comment #6

[Bug ipa/101949] [11/12 Regression] git miscompiled with -flto -fipa-pta since r11-5061-g85ebbabd85e03bdc

2021-08-22 Thread hjl.tools at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101949 --- Comment #17 from H.J. Lu --- (In reply to H.J. Lu from comment #16) > On Linux/x86-64 with -m32, r12-3059 gave > > FAIL: gcc.dg/lto/pr101949 c_lto_pr101949_0.o-c_lto_pr101949_1.o execute -O2 > -fipa-pta -flto -flto-partition=1to1 It also

[Bug target/30484] INT_MIN % -1 is well defined for -fwrapv

2021-08-22 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30484 --- Comment #12 from Vincent Lefèvre --- (In reply to Joseph S. Myers from comment #10) > There is still a bug for the -fwrapv case, where clearly both INT_MIN / -1 > and INT_MIN % -1 should be well defined, but probably the extra checks > if

[Bug c++/86234] non-type template argument is not a constant expression

2021-08-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86234 --- Comment #1 from Andrew Pinski --- If I place "A t;" before main(), then ICC, clang and MSVC all accept the code. That seems out a bit backwards for me but I don't know the C++ standard really. But it might point out why GCC is accepting the

[Bug target/101922] mips: illegal instruction at -O3 with -mmsa -mloongson-mmi

2021-08-22 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101922 --- Comment #4 from CVS Commits --- The master branch has been updated by Xi Ruoyao : https://gcc.gnu.org/g:f93f0868919ab32bfbc24adb40158298031a4d58 commit r12-3063-gf93f0868919ab32bfbc24adb40158298031a4d58 Author: Xi Ruoyao Date: Fri Aug