[Bug tree-optimization/120265] Optimize modular counters

2025-05-27 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120265 --- Comment #3 from mcccs at gmx dot com --- It should be implemented like LLVM did https://github.com/llvm/llvm-project/pull/104724/files as part of loop codegen, which was what LLVM developers told me

[Bug tree-optimization/120265] Optimize modular counters

2025-05-27 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120265 --- Comment #2 from mcccs at gmx dot com --- For future reference, my patch was (rightly) rejected and the discussion can be seen under "[PATCH] Match: Handle commonly used unsigned modulo counters " https://gcc.gnu.org/pipermail/g

[Bug ipa/110282] [12/13/14/15 regression] Segmentation fault with specific optimizations since r10-3311-gff6686d2e5f797

2025-05-20 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 --- Comment #21 from mcccs at gmx dot com --- Okay I'm so sorry for the misinterpretation. I thought DCE should never turn an invalid program to a valid one because DCE is always an optimization and optimizations should never modify the beh

[Bug c++/120275] [12/13/14/15/16 Regression] ICE in write_type at cp/mangle.cc:2687 when using decltype(auto) with initializer list since 11.3

2025-05-17 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120275 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug ipa/120307] ICE in combine_with_ipa_count_within, at profile-count.cc:410 during aarch64 -O3 profiledbootstrap

2025-05-16 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120307 --- Comment #2 from mcccs at gmx dot com --- r16-101-g132d01d96ea9d6

[Bug ipa/120307] ICE in combine_with_ipa_count_within, at profile-count.cc:410 during aarch64 -O3 profiledbootstrap

2025-05-16 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120307 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c/120303] [15/16 Regression] ICE , in groktypename at gcc/c/c-decl.cc:5442 with _Generic after an error

2025-05-16 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120303 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug ipa/120295] [15/16 Regression] Wrong code on -O3 for trunk version (live code is wrongly eliminated)

2025-05-15 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120295 --- Comment #6 from mcccs at gmx dot com --- (In reply to Sam James from comment #5) > (In reply to mcccs from comment #4) > > (can't bisect, because) not reproducible on aarch64 > > What about with -fsigned-char? Thanks,

[Bug c++/120291] internal compiler error: in tsubst_pack_expansion, at cp/pt.cc:13941 with -std=c++20

2025-05-15 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120291 --- Comment #1 from mcccs at gmx dot com --- r12-5952-g561414cdf8ef0d

[Bug c++/120289] internal compiler error: tree check: accessed elt 2 of 'tree_vec' with 1 elts in tsubst, at cp/pt.cc:16650 since 6.1

2025-05-15 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120289 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug ipa/120295] [15/16 Regression] Wrong code on -O3 for trunk version (live code is wrongly eliminated)

2025-05-15 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120295 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug target/120294] Missed DCE with xor when emulating __builtin_ctzg() with __builtin_ctz() and bitshift

2025-05-15 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120294 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug ipa/120295] Wrong code on -O3 for trunk version (live code is wrongly eliminated)

2025-05-15 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120295 --- Comment #2 from mcccs at gmx dot com --- Cleaned up: struct { signed a; } b; int a, f, j, l; char c, k, g, e; short d[2] = {0}; int *i = &j; void marker_37() { a++; __builtin_printf("%d\n", a); } unsigned long long m(

[Bug target/120294] Missed DCE with xor when emulating __builtin_ctzg() with __builtin_ctz() and bitshift

2025-05-15 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120294 --- Comment #1 from mcccs at gmx dot com --- pr95861 was also closed - there was a bug in intel hardware that caused dependency detection false positive, so it would be slow without the xor

[Bug c++/120273] [15/16 regression] ICE when building corral

2025-05-15 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120273 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120285] ice in digest_init_r, at cp/typeck2.cc:1397

2025-05-15 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120285 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120272] [13/14/15/16 Regression] ICE in get_local_decls, at cp/name-lookup.c:4594 since 13.3

2025-05-15 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120272 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/120265] New: Optimize modular counters

2025-05-13 Thread mcccs at gmx dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: mcccs at gmx dot com Target Milestone: --- I have a patch, opening this pr to reserve pr number for testcase. we'd like to optimize unsigned hours = 0; for (...) { ... hours++; hours %= 60; } to unsigned hour

[Bug c++/93788] Segfault caused by infinite loop in cc1plus

2025-05-12 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93788 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug ipa/110282] [12/13/14/15 regression] Segmentation fault with specific optimizations since r10-3311-gff6686d2e5f797

2025-05-11 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 --- Comment #18 from mcccs at gmx dot com --- > this problem is first present in the output of the pass > "x.c.100t.fixup_cfg3.c" Sorry, there are non-tree dumps as well. the first wrong dump is (of course) the "inline" ipa dump

[Bug ipa/110282] [12/13/14/15 regression] Segmentation fault with specific optimizations since r10-3311-gff6686d2e5f797

2025-05-11 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 --- Comment #17 from mcccs at gmx dot com --- Actually my test file in comment 16 is invalid. This means the failure happens before the optimized pass and it needs the DCE-disabled GCC I described in comment 15 to reproduce the faulty optimized

[Bug middle-end/110282] Segmentation fault with specific optimizations

2025-05-11 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 --- Comment #16 from mcccs at gmx dot com --- Created attachment 61401 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61401&action=edit innocent gimple code failing with trunk with -O3 -fno-dce -fno-tree-dce -fno-dse -fno-tree-dse

[Bug middle-end/110282] Segmentation fault with specific optimizations

2025-05-11 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110282 --- Comment #15 from mcccs at gmx dot com --- There's indeed a miscompilation and I've confirmed it's still present in the current trunk. With -fno-dce -fno-ipa-cp -fno-tree-dce the issue was visible until r12-248 which made the i

[Bug middle-end/118072] [14/15/16 Regression] (n%7) sometimes uses udiv and sometimes does not depending on if `n/7` is used beforehand

2025-05-10 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118072 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug middle-end/109996] csmith: -O2 -fno-strict-aliasing causing run time trouble

2025-05-10 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109996 --- Comment #7 from mcccs at gmx dot com --- Thank you Sam for the prompt reply and clear instructions. I was going to do that but before it printed anything it aborted. I think the issue is INVALID because on this line: static union U3 g_979

[Bug middle-end/109996] csmith: -O2 -fno-strict-aliasing causing run time trouble

2025-05-10 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109996 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/111479] [12/13 regression] aarch64 SVE ICE: in compute_live_loop_exits, at tree-ssa-loop-manip.cc:248

2025-05-10 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111479 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120197] ICE in GCC with decltype(cout << a) in default function parameter leads to recursive diagnostics with -std=c++20

2025-05-10 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120197 --- Comment #2 from mcccs at gmx dot com --- Bisection: r10-7361-gfddfd3ce555965

[Bug c++/120197] ICE in GCC with decltype(cout << a) in default function parameter leads to recursive diagnostics with -std=c++20

2025-05-10 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120197 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/120182] Incorrect code with -O3 and constant addresses

2025-05-08 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120182 --- Comment #5 from mcccs at gmx dot com --- Created attachment 61376 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61376&action=edit gimple before store-merging Simplified gimple before the store-merging pass. If you want i

[Bug tree-optimization/120182] Incorrect code with -O3 and constant addresses

2025-05-08 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120182 --- Comment #4 from mcccs at gmx dot com --- By comparing S2 = 256 and S2 = 255, the brokenness and the major difference is first outputted by the store-merging pass. [local count: 39764240]: MEM[(struct S *)2654208B].next = 256B; MEM

[Bug tree-optimization/120182] Incorrect code with -O3 and constant addresses

2025-05-08 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120182 --- Comment #3 from mcccs at gmx dot com --- MEM [(void *)2654208B] = 256; MEM[(char *)2654209B] = 0; MEM[(char *)2654210B] = 0; MEM[(char *)2654211B] = 0; MEM[(char *)2654212B] = 0; MEM[(char *)2654213B] = 0; MEM[(char *)2654214B

[Bug tree-optimization/120182] Incorrect code with -O3 and constant addresses

2025-05-08 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120182 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/120182] Incorrect code with -O3 and constant addresses

2025-05-08 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120182 --- Comment #2 from mcccs at gmx dot com --- Unsurprisingly the following also fails, but if you change always_inline to noipa it works __attribute__((always_inline)) inline char * x() { return (char *)0x288000ull; } int main (void) { int

[Bug c++/119954] "a < b < c < d < ..." taking long time to process to generate error message

2025-05-08 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119954 mcccs at gmx dot com changed: What|Removed |Added Keywords||error-recovery --- Comment #4

[Bug c/120180] [OpenMP] ICE in C (c_parser_consume_token) / C++ cp_parser_skip_to_pragma_eol in error recovery for metadirective

2025-05-08 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120180 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120174] ICE (Segfault) in GCC when passing array of class to generic lambda taking decltype of lambda with -std=c++20

2025-05-08 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120174 --- Comment #2 from mcccs at gmx dot com --- Actually this is most likely an original bug because unlike other bugs that started with the same commit, this one segfaults without printing any stacktrace.

[Bug c++/119954] "a < b < c < d < ..." taking long time to process to generate error message

2025-05-08 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119954 --- Comment #3 from mcccs at gmx dot com --- Bisection found r9-3807-g5d9a0e3b99e31a

[Bug c++/120174] ICE (Segfault) in GCC when passing array of class to generic lambda taking decltype of lambda with -std=c++20

2025-05-08 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120174 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/120143] [15/16 Regression] ICE with -fwhole-program on undefined extern var in verify_ssa

2025-05-07 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120143 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120149] ICE in GCC when deducing return type with nested lambdas using accumulate with -std=c++20

2025-05-07 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120149 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120161] [14/15/16 Regression] Deduction failure with nested dependent type with a class base classes of 2 of the inner type

2025-05-07 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120161 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120127] ICE in GCC when calling destructor of undefined type name in lambda (lookup_template_class crash)

2025-05-07 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120127 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120134] internal compiler error: in coerce_template_parms, at cp/pt.cc:9488

2025-05-07 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120134 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120142] internal compiler error: in tsubst, at cp/pt.cc:16670

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120142 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120136] internal compiler error: tree check: accessed elt 1 of 'tree_vec' with -1 elts in add_to_template_args, at cp/pt.cc:612

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120136 --- Comment #4 from mcccs at gmx dot com --- > In 16 it was pointing at the same line Oh sorry I missed that, then the simplification most likely uncovered something latent

[Bug c++/120136] internal compiler error: tree check: accessed elt 1 of 'tree_vec' with -1 elts in add_to_template_args, at cp/pt.cc:612

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120136 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120125] [15/16 Regression] ICE in add_to_same_comdat_group when using -Os or -fdeclone-ctor-dtor

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120125 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120133] internal compiler error: Segmentation fault signal terminated program cc1plus

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120133 --- Comment #3 from mcccs at gmx dot com --- bisect bad commit: r9-6542-gf869f40780836d

[Bug c++/120133] internal compiler error: Segmentation fault signal terminated program cc1plus

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120133 --- Comment #2 from mcccs at gmx dot com --- bisecting

[Bug c++/120129] Internal Compiler Error (ICE) with decltype(auto) and nested initializer list since r12-6008-g06d5dcef72542b

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120129 --- Comment #5 from mcccs at gmx dot com --- Created attachment 61339 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61339&action=edit reduced.cpp

[Bug c++/120133] internal compiler error: Segmentation fault signal terminated program cc1plus

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120133 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120129] Internal Compiler Error (ICE) with decltype(auto) and nested initializer list

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120129 --- Comment #2 from mcccs at gmx dot com --- Bisection-found commit: r12-6008-g06d5dcef72542b Reducing

[Bug c++/118526] infinite compile time

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118526 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120129] Internal Compiler Error (ICE) with decltype(auto) and nested initializer list

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120129 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/120123] [12/13/14/15 Regression] Implicit this is not used in a requires clause in nested lambdas

2025-05-06 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120123 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/117042] [12/13/14/15/16 Regression] internal compiler error: Segmentation fault in tsubst(tree_node*, tree_node*, int, tree_node*)

2025-05-05 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117042 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug target/120119] [15/16 Regression] GCC 15.1.0 ICEs (segfaults) compiling VK-GL-CTS on aarch64/musl target

2025-05-05 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120119 --- Comment #4 from mcccs at gmx dot com --- Bisect bad commit: r15-5422-g279475fd7236a9

[Bug target/120119] [15/16 Regression] GCC 15.1.0 ICEs (segfaults) compiling VK-GL-CTS on aarch64/musl target

2025-05-05 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120119 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/120080] [16 regression] ICE when building llvm-20.1.3 (find_bit_tests, at tree-switch-conversion.cc:1799) since r16-347-g1381a5114788a2

2025-05-05 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120080 --- Comment #9 from mcccs at gmx dot com --- Created attachment 61324 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61324&action=edit improved reduction.c Andrew's reduction modified for reproducing on latest trunk, fortunat

[Bug tree-optimization/120080] [16 regression] ICE when building llvm-20.1.3 (find_bit_tests, at tree-switch-conversion.cc:1799) since r16-347-g1381a5114788a2

2025-05-05 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120080 --- Comment #8 from mcccs at gmx dot com --- Since r16-372-g064cac730f88dc Andrew's reduction does not cause an error on my computer. I haven't checked the original file after this revision

[Bug middle-end/120093] [16 Regression] FAIL: gcc.dg/vect/pr101145.c

2025-05-05 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120093 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/120089] [15/16 regression] GCC miscompiles VK-GL-CTS (on aarch64) with -O3 since r15-7533-g589d79e6268b05

2025-05-04 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120089 --- Comment #23 from mcccs at gmx dot com --- I dumped all optimization trees before and after the bad commit, the divergence starts with "vect", where the bad tree output is three times as long.

[Bug tree-optimization/120089] [15/16 regression] GCC miscompiles VK-GL-CTS (on aarch64) with -O3 since r15-7533-g589d79e6268b05

2025-05-04 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120089 mcccs at gmx dot com changed: What|Removed |Added Attachment #61295|0 |1 is obsolete

[Bug tree-optimization/120089] [15/16 regression] GCC miscompiles VK-GL-CTS (on aarch64) with -O3 since r15-7533-g589d79e6268b05

2025-05-04 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120089 --- Comment #20 from mcccs at gmx dot com --- Created attachment 61295 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61295&action=edit further cleanup and converted to C

[Bug tree-optimization/120089] [15/16 regression] GCC miscompiles VK-GL-CTS (on aarch64) with -O3 since r15-7533-g589d79e6268b05

2025-05-04 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120089 --- Comment #19 from mcccs at gmx dot com --- -O3 can be replaced with -O2 -funswitch-loops -fvect-cost-model=dynamic

[Bug tree-optimization/120089] [15/16 regression] GCC miscompiles VK-GL-CTS (on aarch64) with -O3 since r15-7533-g589d79e6268b05

2025-05-04 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120089 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c/120095] [12/13/14/15 regression] ICE in convert_mode_scalar when casting double (*)(double) to int (*)(float) and calling it with a large argument

2025-05-04 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120095 --- Comment #1 from mcccs at gmx dot com --- Created attachment 61293 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61293&action=edit reduction.c

[Bug tree-optimization/120080] [16 regression] ICE when building llvm-20.1.3 (find_bit_tests, at tree-switch-conversion.cc:1799)

2025-05-03 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120080 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug target/120083] Use vcvtneps2bf16 AVX512BF instruction to convert float to __bf16 on -O3 without needing -Ofast

2025-05-03 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120083 --- Comment #6 from mcccs at gmx dot com --- Thank you, reported https://github.com/llvm/llvm-project/issues/138424

[Bug target/120083] Use vcvtneps2bf16 AVX512BF instruction to convert float to __bf16 on -O3 without needing -Ofast

2025-05-03 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120083 --- Comment #5 from mcccs at gmx dot com --- Ah I see then there's the problem of denormals. I guess I'll report this to LLVM so that they may cripple naive AI libraries using O3.

[Bug target/120083] Use vcvtneps2bf16 AVX512BF instruction to convert float to __bf16 on -O3 without needing -Ofast

2025-05-03 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120083 --- Comment #4 from mcccs at gmx dot com --- By the way Andrew, wouldn't it be more performant to check for sNaN then use vcvtneps2bf16 instead of completely avoiding vcvtneps2bf16?

[Bug target/120083] Use vcvtneps2bf16 AVX512BF instruction to convert float to __bf16 on -O3 without needing -Ofast

2025-05-03 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120083 --- Comment #1 from mcccs at gmx dot com --- So the issue is doing what GCC does for Ofast for O3 as well, many thanks and kind regards

[Bug target/120083] New: Use vcvtneps2bf16 AVX512BF instruction to convert float to __bf16

2025-05-03 Thread mcccs at gmx dot com via Gcc-bugs
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mcccs at gmx dot com Target Milestone: --- pr119626 was for arm, this is for x86. Copy LLVM 21's behavior: With -mavx512vl -mavx512bf16 and -O3 __bf16 cvt(float r) { r

[Bug target/118100] [14/15/16 Regression] Segment Fault by rvv intrinsic compilation at `-O2` and `-O3`.

2025-05-02 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118100 --- Comment #2 from mcccs at gmx dot com --- I meant spike --isa=rv64gcv_zvfh pk a.out

[Bug target/118100] [14/15/16 Regression] Segment Fault by rvv intrinsic compilation at `-O2` and `-O3`.

2025-05-02 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118100 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/120035] Loops are not optimized when "unsigned i" is used

2025-05-02 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120035 --- Comment #3 from mcccs at gmx dot com --- I compared the outputs of passes. The divergence starts with cddce3. The unsigned version has this added line: > cannot prove finiteness of loop 2

[Bug middle-end/120052] [13/14/15/16 Regression] VLA with OpenMP vs -fsanitize=undefined

2025-05-01 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120052 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug ipa/120048] [16 Regression] ICE on valid code at -O{s,2} with "-fno-tree-vrp -fno-tree-fre" on x86_64-linux-gnu: in type, at value-range.h:982

2025-05-01 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120048 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/120035] New: Loops are not optimized when "unsigned i" is used

2025-04-30 Thread mcccs at gmx dot com via Gcc-bugs
iority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mcccs at gmx dot com Target Milestone: --- This code: __attribute__((noipa)) bool g(int i) { return true; } __attribute__((noipa)) bool f(){ bool retval = false; for(long unsigned

[Bug tree-optimization/120003] [12/13/14/15/16 Regression] missed optimization around a loop with a checker

2025-04-30 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120003 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug middle-end/119999] [12/13 Regression] explicit infinite goto loop removed causing assert

2025-04-29 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=11 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/119954] "a < b < c < d < ..." taking long time to process to generate error message

2025-04-28 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119954 --- Comment #2 from mcccs at gmx dot com --- Created attachment 61219 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61219&action=edit testcase that should be run with -std=c++20 or above.cpp Uploaded testcase

[Bug c++/119916] [15/16 Regression] folly (2025.04.14.00 and earlier): coroutine tests fail with GCC 15 since r15-3153-g68ee624bc52ba1

2025-04-27 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119916 --- Comment #11 from mcccs at gmx dot com --- Created attachment 61216 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61216&action=edit reduction.cpp Probably correct reduction

[Bug tree-optimization/119959] [15/16 regression] simple loop miscompiled into an endless loop since r15-580-gf3e5f4c58591f5

2025-04-27 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119959 --- Comment #9 from mcccs at gmx dot com --- Also to make sure my bisections are correct, after running the script automatically, I manually checkout to the bad commit and its parent and compare them. My previously pasted commit was my previous

[Bug tree-optimization/119959] [15/16 regression] simple loop miscompiled into an endless loop

2025-04-27 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119959 --- Comment #7 from mcccs at gmx dot com --- Sorry right that's the parent commit! I pasted the wrong hash. Bisection says r15-580-gf3e5f4c58591f5

[Bug tree-optimization/119959] [15/16 regression] simple loop miscompiled into an endless loop

2025-04-27 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119959 --- Comment #5 from mcccs at gmx dot com --- Bisection points at r15-988-g5316c35b13cf53 also target aarch64 as well .L8: add x19, x19, 8 cmp x20, x19 beq .L16 versus .L7: add x19, x19, 8

[Bug c++/119916] [15/16 Regression] folly (2025.04.14.00 and earlier): coroutine tests fail with GCC 15

2025-04-26 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119916 --- Comment #8 from mcccs at gmx dot com --- bisect bad commit: r15-3153-g68ee624bc52ba1 reduce is running, we can't know if the fault is in a commit or in the source for now

[Bug tree-optimization/119959] [15/16 regression] simple loop miscompiled into an endless loop

2025-04-26 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119959 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug c++/119916] [15/16 Regression] folly (2025.04.14.00 and earlier): coroutine tests fail with GCC 15

2025-04-26 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119916 mcccs at gmx dot com changed: What|Removed |Added Attachment #61203|0 |1 is obsolete

[Bug c++/119916] [15/16 Regression] folly (2025.04.14.00 and earlier): coroutine tests fail with GCC 15

2025-04-26 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119916 --- Comment #6 from mcccs at gmx dot com --- Created attachment 61203 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61203&action=edit preprocessed.cpp.xz The preprocessed source

[Bug c++/119916] [15/16 Regression] folly (2025.04.14.00 and earlier): coroutine tests fail with GCC 15

2025-04-26 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119916 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug tree-optimization/112307] Segmentation fault with -O1 -fcode-hoisting

2025-04-26 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112307 --- Comment #23 from mcccs at gmx dot com --- Yes that's what I think! Thanks

[Bug middle-end/119954] New: "a < b < c < d < ..." taking long time to process to generate error message

2025-04-26 Thread mcccs at gmx dot com via Gcc-bugs
MED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: mcccs at gmx dot com Target Milestone: --- While trying to reduce pr118526, I found that source code of just "a < b < c < d <

[Bug tree-optimization/112307] Segmentation fault with -O1 -fcode-hoisting

2025-04-26 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112307 --- Comment #21 from mcccs at gmx dot com --- Sorry again, there's a function of int type that didn't return anything but the compiler didn't catch it so the reduction script allowed it. My last reduction is also invalid.

[Bug tree-optimization/112307] Segmentation fault with -O1 -fcode-hoisting

2025-04-25 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112307 mcccs at gmx dot com changed: What|Removed |Added Attachment #61179|0 |1 is obsolete

[Bug tree-optimization/112307] Segmentation fault with -O1 -fcode-hoisting

2025-04-23 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112307 --- Comment #15 from mcccs at gmx dot com --- Thanks Jonathan for -x c++, it was just what GCC on my system needed

[Bug tree-optimization/112307] Segmentation fault with -O1 -fcode-hoisting

2025-04-23 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112307 --- Comment #14 from mcccs at gmx dot com --- Created attachment 61179 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61179&action=edit reduced.cpp I think this reduction is valid. Fails with -O1 -fcode-hoisting, doesn't fail

[Bug tree-optimization/112307] Segmentation fault with -O1 -fcode-hoisting

2025-04-21 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112307 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

[Bug target/118008] [14/15/16 regression] ICE when bootstrapping with Go on arm (gen_movdi, at config/arm/arm.md:6296)

2025-04-21 Thread mcccs at gmx dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118008 mcccs at gmx dot com changed: What|Removed |Added CC||mcccs at gmx dot com --- Comment

  1   2   >