[Bug tree-optimization/122103] [15/16 Regression] SVE vectorisation not honoring -ftrapping-math

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122103 --- Comment #6 from Andrew Pinski --- Created attachment 62484 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62484&action=edit Here is a modified testcase which can show it in GCC 14.3.0 also The only difference between this one and the

[Bug middle-end/122117] Add built-in memalignment

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122117 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Severity|normal

[Bug tree-optimization/122103] [15/16 Regression] SVE vectorisation not honoring -ftrapping-math

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122103 --- Comment #5 from Andrew Pinski --- (In reply to Tamar Christina from comment #2) > Note that __builtin_sqrt is correctly marked as trapping. So this doesn't > vectorize. > > void f (float *c, int n) > { > for (int i = 0; i < n; i++) >

[Bug target/122118] Bectoeization writes causes unnecessary runtime relocations

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122118 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization Target|

[Bug rtl-optimization/113682] Branches in branchless binary search rather than cmov/csel/csinc

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113682 Andrew Pinski changed: What|Removed |Added CC||rockeet at gmail dot com --- Comment #1

[Bug rtl-optimization/122116] `if(a) b = else c =` does not produce 2 cmovs

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

[Bug rtl-optimization/122116] `if(a) b = else c =` does not produce 2 cmovs

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122116 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Keywords|

[Bug rtl-optimization/122116] __builtin_expect_with_probability vs __builtin_unpredictable

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122116 --- Comment #2 from Andrew Pinski --- That is because gcc does not produce 2 cmov as you have If (a) B = Else C = That is unrelated to __builtin_expect_with_probability really.

[Bug rtl-optimization/122116] __builtin_expect_with_probability vs __builtin_unpredictable

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122116 Andrew Pinski changed: What|Removed |Added Component|c++ |rtl-optimization --- Comment #1 from An

[Bug middle-end/122068] Add -fstrict-bool, -fno-strict-bool={truncate,nonzero} option

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122068 --- Comment #4 from Andrew Pinski --- (In reply to Richard Biener from comment #3) > Is that the same as hardbool? No. Hardbool traps when the value is neither true or false value. >From the patch (https://patchwork.sourceware.org/project/gcc

[Bug tree-optimization/122110] bool prevents vectorization of simple loops

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122110 Andrew Pinski changed: What|Removed |Added Component|middle-end |tree-optimization Severity|no

[Bug tree-optimization/122110] bool prevents vectorization of simple loops

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

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 122110, which changed state. Bug 122110 Summary: bool prevents vectorization of simple loops https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122110 What|Removed |Added -

[Bug tree-optimization/101639] vectorization with bool reduction

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101639 Andrew Pinski changed: What|Removed |Added CC||manu at gcc dot gnu.org --- Comment #5

[Bug tree-optimization/122103] [15/16 Regression] SVE vectorisation not honoring -fno-trapping-math

2025-10-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122103 Andrew Pinski changed: What|Removed |Added CC||pinskia at gcc dot gnu.org --- Comment

[Bug ipa/122058] [16 regression] ICU miscompiled with -O2 -flto -fno-semantic-interposition since r16-4000-g9ee937b2f92a93

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122058 --- Comment #15 from Andrew Pinski --- Oh yes and https://github.com/sg16-unicode/sg16/issues/67 .

[Bug ipa/122096] [16 Regression] r16-4000 causing 523.xalancbmk_r codesize increase by 13-15% with "-Ofast -march=native -flto" on multiple platforms

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122096 --- Comment #2 from Andrew Pinski --- >I am not sure if it is a dup for PR122058 I doubt it. (without more debug there is a change GCC is doing the right thing there and the code in ICU is undefined).

[Bug ipa/122058] [16 regression] ICU miscompiled with -O2 -flto -fno-semantic-interposition since r16-4000-g9ee937b2f92a93

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122058 --- Comment #19 from Andrew Pinski --- (In reply to Andrew Pinski from comment #18) > (In reply to Sam James from comment #17) > > OK, tried -fno-strict-aliasing, didn't help. -fno-ipa-modref does not help > > either. Guess I need to look to see

[Bug tree-optimization/122103] [15/16 Regression] SVE vectorisation not honoring -fno-trapping-math

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122103 --- Comment #1 from Andrew Pinski --- vect__98.143_326 = .SQRT (vect_prephitmp_93.130_310); mask__15.131_311 = vect_prephitmp_93.130_310 < { 1.2081668171172168513294309377670288085938e-2, ... }; Those are the only 2 which

[Bug target/122102] [16 Regression] [RISCV] [Miscompile] GCC - riscv64 target, miscompiles at -O3 as well as -O2

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122102 Andrew Pinski changed: What|Removed |Added Summary|[16 Regression] [RISCV] |[16 Regression] [RISCV]

[Bug tree-optimization/122101] Large performance difference between GCC and Clang at -O3

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122101 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement --- Comment #1 from Andrew

[Bug ipa/122058] [16 regression] ICU miscompiled with -O2 -flto -fno-semantic-interposition since r16-4000-g9ee937b2f92a93

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122058 --- Comment #18 from Andrew Pinski --- (In reply to Sam James from comment #17) > OK, tried -fno-strict-aliasing, didn't help. -fno-ipa-modref does not help > either. Guess I need to look to see which pass ends up doing more as a > result of the

[Bug c++/122100] -Wunused-but-set-variable false positive of static variable used by a generic lambda

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

[Bug ipa/122058] [16 regression] ICU miscompiled with -O2 -flto -fno-semantic-interposition since r16-4000-g9ee937b2f92a93

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122058 --- Comment #13 from Andrew Pinski --- (In reply to Andrew Pinski from comment #11) > > Without -fno-semantic-interposition, the functions that cause the undefined > behavior is not inlinined so it does not show up there. I should also mention

[Bug ipa/122096] [16 Regression] r16-4000 causing 523.xalancbmk_r codesize increase by 13-15% with "-Ofast -march=native -flto" on multiple platforms

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122096 --- Comment #4 from Andrew Pinski --- (In reply to Haochen Jiang from comment #3) > > > I am not sure what more should be done here since -O3/-Ofast is > > defined/documtned as it might increase the code size without any gain over > > -O2. > >

[Bug target/122102] [16 Regression] [RISCV] [Miscompile] GCC - riscv64 target, miscompiles at -O3 as well as -O2

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122102 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > >First bad commit: 850c1ad7e3cd240e97e41fa3f1e6b38c2700106b > > > This can't be right, as that only touched the Ada front-end. Even worse that commit only tou

[Bug c++/80151] Add a warning to catch implicit string to bool conversion (-Wstring-conversion)

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80151 --- Comment #7 from Andrew Pinski --- So what about: if (vec.size()) Yes it could/should be if(!vec.empty()) But still.

[Bug c++/114450] -Wunused-but-set-variable false positive of static variable initialized by a lambda used by a generic lambda

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114450 Andrew Pinski changed: What|Removed |Added CC||olaf.krzikalla at dlr dot de --- Commen

[Bug target/122102] [16 Regression] [RISCV] [Miscompile] GCC - riscv64 target, miscompiles at -O3 as well as -O2 since r16-4134

2025-09-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122102 Andrew Pinski changed: What|Removed |Added Summary|[RISCV] [Miscompile] GCC - |[16 Regression] [RISCV]

[Bug ipa/122096] [16 Regression] r16-4000 causing 523.xalancbmk_r codesize increase by 13-15% with "-Ofast -march=native -flto" on multiple platforms

2025-09-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122096 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |16.0 Keywords|

[Bug ipa/122058] [16 regression] ICU miscompiled with -O2 -flto -fno-semantic-interposition since r16-4000-g9ee937b2f92a93

2025-09-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122058 --- Comment #14 from Andrew Pinski --- The whole template IcuCApiHelper looks very much questionable. It converts between a "C" struct to a "C++" type and I suspect there might be some aliasing issues around that but I am not 100% sure that is t

[Bug ipa/122058] [16 regression] ICU miscompiled with -O2 -flto -fno-semantic-interposition since r16-4000-g9ee937b2f92a93

2025-09-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122058 --- Comment #11 from Andrew Pinski --- Does adding -fno-strict-aliasing fix the issue? I am wondering if we devirtualizing some extra calls now that we didn't before and start to inline some other of those and there is some violation of strict a

[Bug ipa/122058] [16 regression] ICU miscompiled with -O2 -flto -fno-semantic-interposition since r16-4000-g9ee937b2f92a93

2025-09-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122058 --- Comment #12 from Andrew Pinski --- >10 works and >=11 fails. I haven't bisected between 10 and 11 yet. So modref was introduced in GCC 11, at r11-3308-gd119f34c952f87 and this has the feeling of an aliasing violation.

[Bug target/122095] Missed optimization for _mm_insert_xxx

2025-09-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122095 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/122095] Missed optimization for _mm_insert_xxx

2025-09-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122095 --- Comment #1 from Andrew Pinski --- Created attachment 62468 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62468&action=edit Full testcase

[Bug c/122087] internal compiler error: in build_real, at tree.cc:2390

2025-09-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122087 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug c++/122088] include/c++/13.2.0/variant:1383:43: internal compiler error: Segmentation fault

2025-09-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122088 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Target Milestone|---

[Bug middle-end/43374] ICE with __builtin_isinf() and _Decimal argument

2025-09-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43374 Andrew Pinski changed: What|Removed |Added CC||qingren2hxb at gmail dot com --- Comment

[Bug libstdc++/122071] defines static functions at namespace scope in header

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

[Bug c++/122070] [14/15/16 Regression] ICE in C++23 type deduction

2025-09-29 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122070 --- Comment #2 from Andrew Pinski --- Created attachment 62463 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62463&action=edit testcase from godbolt Please next time attach the testcase, bugzilla has a way to paste it into a text field i

[Bug tree-optimization/122086] [16 regression] gcc.target/riscv/cmo-zicboz-zic64-1.c fails after r16-4081

2025-09-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
|ASSIGNED Target Milestone|--- |16.0 Last reconfirmed||2025-09-28 Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug tree-optimization/122086] New: [16 regression] gcc.target/riscv/cmo-zicboz-zic64-1.c fails after r16-4081

2025-09-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
: missed-optimization, testsuite-fail Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Target: riscv As mentioned in https

[Bug target/117576] -mveclibabi=aocl: Support vectorized array functions and maybe also sincos

2025-09-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117576 Andrew Pinski changed: What|Removed |Added CC||wilco at gcc dot gnu.org --- Comment #2

[Bug tree-optimization/40770] Vectorization of complex types, vectorization of sincos missing

2025-09-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40770 Andrew Pinski changed: What|Removed |Added CC||wilco at gcc dot gnu.org --- Comment #27

[Bug tree-optimization/40770] Vectorization of complex types, vectorization of sincos missing

2025-09-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40770 Andrew Pinski changed: What|Removed |Added CC||blaffablaffa at gmail dot com --- Commen

[Bug tree-optimization/70901] vectorized sin cos is wrongly optimized into scalar sincos

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

[Bug c++/101295] constexpr destructor: ''result_decl' not supported by dump_expr' is not a constant expression

2025-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101295 Andrew Pinski changed: What|Removed |Added CC||blubban at gmail dot com --- Comment #2

[Bug c++/122084] Self-referential objects work poorly in constexpr dtors

2025-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122084 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|UNCONFIRME

[Bug tree-optimization/122083] [15/16 Regression] Bogus -Wnonnull for call to memcmp with length determined using <=> operator

2025-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122083 Andrew Pinski changed: What|Removed |Added Keywords||missed-optimization --- Comment #4 from

[Bug tree-optimization/122083] [15/16 Regression] Bogus -Wnonnull for call to memcmp with length determined using <=> operator

2025-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122083 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |15.3

[Bug target/122074] Not fusim unaligned load into cmp with mask for avx512 intrinsic

2025-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122074 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement Status|WAITING

[Bug target/122081] [16 Regression] ICE; 'global_options' are modified in local context

2025-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122081 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |16.0 Keywords|

[Bug tree-optimization/121999] [16 Regression] 453.povray build ICEs since r16-3945-gc30f58c3f7ec25

2025-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121999 --- Comment #7 from Andrew Pinski --- (In reply to Filip Kastl from comment #6) > (In reply to Richard Biener from comment #5) > > hoping for a non-FDO testcase from fuzzers/rebuilders ;) > > Alright. I'll be on the lookout for that :) PR 12

[Bug tree-optimization/122079] [16 regression] ICE on valid code at -O{s,2,3} with "-fno-tree-loop-im" on x86_64-linux-gnu: in compute_antic, at tree-ssa-pre.cc:2449

2025-09-27 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122079 Andrew Pinski changed: What|Removed |Added Summary|ICE on valid code at|[16 regression] ICE on

[Bug middle-end/122073] Bogus -Wstringop-overread with [[gnu::nonstring]] and type punning

2025-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122073 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug middle-end/122073] Bogus -Wstringop-overread with [[gnu::nonstring]] and type punning

2025-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122073 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic --- Comment #1 from Andrew P

[Bug target/122074] Wrong code for avx512 intrinsic

2025-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122074 --- Comment #2 from Andrew Pinski --- Icx at -O0 has a similar issue

[Bug target/122074] Wrong code for avx512 intrinsic

2025-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122074 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-09-26 Status|UNCONFIRM

[Bug middle-end/122068] Add -fstrict-bool, -fno-strict-bool={truncate,nonzero} option

2025-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
|1 Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED --- Comment #2 from Andrew Pinski --- So maybe arguments needs to be done at expand but the rest can be done via an early pass. Let

[Bug middle-end/122068] Add -fstrict-bool, -fno-strict-bool={truncate,nonzero} option

2025-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122068 --- Comment #1 from Andrew Pinski --- The only problem with doing at expand phase is we might be loading via byte for bools, e.g vectorization. So doing at the front-end in gimplification or an early pass will get away from that issue.

[Bug middle-end/122068] New: Add -fstrict-bool, -fno-strict-bool={truncate,nonzero} option

2025-09-26 Thread pinskia at gcc dot gnu.org via Gcc-bugs
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- https://discourse.llvm.org/t/defining-what-happens-when-a-bool-isn-t-0-or-1/86778/34?u=pinskia This is nice security option

[Bug target/122064] [Trunk] LoongArch and MIPS: miscompile at -O2/O3

2025-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122064 --- Comment #3 from Andrew Pinski --- This was broken on the 16th but fixed on the 22nd. Always try a latest git sources when reporting a bug, it might already been fixed like this one.

[Bug tree-optimization/122021] [16 regression] libvpx miscompiled with -m32 since r16-3890

2025-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122021 Andrew Pinski changed: What|Removed |Added CC||xxs_chy at outlook dot com --- Comment

[Bug target/122064] [Trunk] LoongArch and MIPS: miscompile at -O2/O3

2025-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122064 Andrew Pinski changed: What|Removed |Added Resolution|--- |DUPLICATE Status|WAITING

[Bug c++/122061] Wmismatched-new-delete extension

2025-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122061 --- Comment #2 from Andrew Pinski --- Expensive in compile time that is.

[Bug c++/122061] Wmismatched-new-delete extension

2025-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122061 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic, false-negative Se

[Bug debug/122060] ICE when compiling geany (debian/x86-64)

2025-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122060 Andrew Pinski changed: What|Removed |Added Status|WAITING |UNCONFIRMED Ever confirmed|1

[Bug c++/122060] ICE when compiling geany (debian/x86-64)

2025-09-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122060 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug ipa/122058] [16 regression] ICU miscompiled with -O2 -flto -fno-semantic-interposition since r16-4000-g9ee937b2f92a93

2025-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122058 --- Comment #10 from Andrew Pinski --- > Other advantage of the patch is that the multi-target devirtualizatoin gets tested without profile feedback so we more likely notice problems with it. So Jan must have known that multi-target devirtuali

[Bug ipa/122058] [16 regression] ICU miscompiled with -O2 -flto -fno-semantic-interposition since r16-4000-g9ee937b2f92a93

2025-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122058 --- Comment #5 from Andrew Pinski --- Can you modify the inplace operator new and add a asm("":"+m"(r)); for the return value? I am trying to figure out if there is a lifetime change that got missed.

[Bug ipa/122058] [16 regression] ICU miscompiled with -O2 -flto -fno-semantic-interposition since r16-4000-g9ee937b2f92a93

2025-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122058 --- Comment #3 from Andrew Pinski --- Does fno-devirtualize-speculatively fix it?

[Bug rtl-optimization/122057] MIPS -fstack-protector-strong ICE

2025-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122057 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug tree-optimization/122054] [15 Regression] Spurious "may be used uninitialized" warning

2025-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122054 --- Comment #2 from Andrew Pinski --- Created attachment 62445 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62445&action=edit Preprocessed source

[Bug tree-optimization/122054] [15 Regression] Spurious "may be used uninitialized" warning

2025-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122054 Andrew Pinski changed: What|Removed |Added Known to fail||15.1.0, 15.2.0 Known to work|

[Bug fortran/122052] SPEC CPU2017 654.roms_s fails to run correctly on AArch64 with GCC 15.1/15.2

2025-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122052 Andrew Pinski changed: What|Removed |Added Component|middle-end |fortran Ever confirmed|0

[Bug c/122050] statement expressions with an empty expression at the end have different behavior between C and C++

2025-09-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122050 --- Comment #3 from Andrew Pinski --- (In reply to Richard Biener from comment #2) > What does ({1;({});}) do? void type for both C and C++ front-ends.

[Bug c/122050] statement expressions with an empty expression at the end have different behavior between C and C++

2025-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122050 --- Comment #1 from Andrew Pinski --- Note the C front-end behavior didn't change between GCC 4.0 and 4.1 so the behavior was there with the older bison compiler.

[Bug c/122050] New: statement expressions with an empty expression at the end have different behavior between C and C++

2025-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
: UNCONFIRMED Keywords: stmt-expr, wrong-code Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- Take: ``` int foo() { return ({1; 2; 3;;}); } ``` The C

[Bug c++/122049] Missing warning when a deprecated class template is used via CTAD in function scope

2025-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122049 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug c++/102439] deprecated attributes do not work on struct/class if type is auto deduced

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

[Bug c++/108456] attribute deprecated on enum doesn't warn

2025-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108456 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/122048] unevaluated use of non-static data member rejected in generic lambda

2025-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122048 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug middle-end/122035] Wrong behavior under -O2 and -O3 optimization

2025-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122035 --- Comment #16 from Andrew Pinski --- As I mentioned at -O2, the undefined behavior is removed as we can figure out strlen(&a) is always 0.

[Bug middle-end/122035] Wrong behavior under -O2 and -O3 optimization

2025-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122035 --- Comment #14 from Andrew Pinski --- (In reply to Krzysztof Pecka from comment #13) > Can you give me the command that prints you this? I am not getting anything, > after adding `-fsanitize=undefined -fsanitize=address` This was at runtime.

[Bug c++/122043] ICE: in type_dependent_expression_p, at cp/pt.cc:29600

2025-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122043 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug testsuite/122045] Problems with check-function-bodies

2025-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122045 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2025-09-23 Ever confirmed|0

[Bug c/122042] wrong code at -Ofast only with attribute `cold` assigned

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

[Bug tree-optimization/120341] [13/14 Regression] wrong code at -O1 and above with "-fallow-store-data-races" on x86_64-linux-gnu

2025-09-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120341 --- Comment #9 from Andrew Pinski --- *** Bug 122042 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/122040] -fisolate-erroneous-paths-dereference turns division by zero into a trap but the behavior is undocumented

2025-09-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122040 --- Comment #2 from Andrew Pinski --- (In reply to Xi Ruoyao from comment #1) > I'm unsure if there are more undocumented code patterns causing > -fisolate-erroneous-paths-dereference to produce ud2. No that is it currently. stmt_uses_name_in_

[Bug middle-end/122035] Wrong behavior under -O2 and -O3 optimization

2025-09-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122035 --- Comment #12 from Andrew Pinski --- (In reply to Krzysztof Pecka from comment #11) > Interesting. I honestly forgot about null character. > Still for me, interesting to see those different behaviors with different > optimization flags. Well

[Bug target/122024] [16 Regression] wrong sign extension on aarch64 and armv7 with -O2 -fwrapv

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

[Bug tree-optimization/122021] [16 regression] libvpx miscompiled with -m32 since r16-3890

2025-09-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122021 Andrew Pinski changed: What|Removed |Added CC||zsojka at seznam dot cz --- Comment #9

[Bug tree-optimization/122039] [13/14/15/16 Regression] fab could in theory go into an infinite loop and is not as effective any more

2025-09-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122039 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug tree-optimization/122039] New: [13/14/15/16 Regression] fab could in theory go into an infinite loop and is not as effective any more

2025-09-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: tree-optimization Assignee: pinskia at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target Milestone: --- The code does: ``` for (i = gsi_start_bb

[Bug d/122036] [d] inner static struct methods not inlined

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

[Bug middle-end/111875] With -Og ubsan check inserted even though __builtin_assume_aligned guarantees no UB

2025-09-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111875 --- Comment #7 from Andrew Pinski --- (In reply to Richard Biener from comment #3) > git blame might tell - It was done for PR 56977. __builtin_constant_p folding in fab. > there was the alternative to > perform this propagation in fold_built

[Bug sanitizer/122013] c-c++-common/ubsan/null-12.c fails if only using -fsanitize=null without -fsanitize=alignment

2025-09-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122013 Andrew Pinski changed: What|Removed |Added Blocks|101758 | Keywords|

[Bug sanitizer/119416] spurious store with null sanitizer

2025-09-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119416 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|NEW --- Comment #4 from Andrew Pinski

[Bug tree-optimization/101758] Inconsistent optimizations with UBSan

2025-09-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101758 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|pinskia at gcc

[Bug middle-end/111875] With -Og ubsan check inserted even though __builtin_assume_aligned guarantees no UB

2025-09-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111875 --- Comment #6 from Andrew Pinski --- Created attachment 62439 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62439&action=edit patch which moves the folding of assume_aligned to gimple fold from fab I should have looked for this bug earl

  1   2   3   4   5   6   7   8   9   10   >