[Bug target/109279] RISC-V: complex constants synthesized should be improved

2023-03-24 Thread vineet.gupta at linux dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109279 --- Comment #11 from Vineet Gupta --- With change suggested by @pinksia, I do see that in split1, riscv_move_integer() -> riscv_split_integer() is now called.

[Bug target/109279] RISC-V: complex constants synthesized should be improved

2023-03-24 Thread vineet.gupta at linux dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109279 --- Comment #13 from Vineet Gupta --- Ok it seems I missed _some_ improvement with prev change, although not ideal still. With 2e886eef7f2b li a0,0x0101_ addia0,a0,0x0101 sllia0,a0,16 addia0

[Bug tree-optimization/103559] Can't optimize away < 0 check on sqrt

2023-03-29 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103559 --- Comment #6 from Jeremy R. --- Thanks!

[Bug target/109279] RISC-V: complex constants synthesized should be improved

2023-03-30 Thread vineet.gupta at linux dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109279 --- Comment #14 from Vineet Gupta --- (In reply to Andrew Pinski from comment #12) > Here is something to look into: > #define const1 0x0101010101010101ULL > #define const0 const1 > unsigned long long f(unsigned long long occ, const unsigned

[Bug c++/109683] New: [13/14 Regression] False cyclic dependency error reported for constraint

2023-05-01 Thread dani at danielbertalan dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109683 Bug ID: 109683 Summary: [13/14 Regression] False cyclic dependency error reported for constraint Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: nor

[Bug c++/109727] New: [13/14 Regression] -Warray-bounds false positive with -fsanitize=undefined

2023-05-03 Thread dani at danielbertalan dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109727 Bug ID: 109727 Summary: [13/14 Regression] -Warray-bounds false positive with -fsanitize=undefined Product: gcc Version: 13.1.0 Status: UNCONFIRMED Keywords: d

[Bug ipa/114784] New: [14 Regression] Inlining fails for always_inline inheriting constructor

2024-04-19 Thread dani at danielbertalan dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114784 Bug ID: 114784 Summary: [14 Regression] Inlining fails for always_inline inheriting constructor Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal

[Bug ipa/114784] [14 Regression] Inlining fails for always_inline inheriting constructor

2024-04-19 Thread dani at danielbertalan dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114784 --- Comment #1 from Daniel Bertalan --- Forgot to actually post the error message itself: In constructor 'ErrorOr::ErrorOr(int)', inlined from 'ErrorOr run()' at :29:10, inlined from 'int serenity_main()' at :32:8: :13:39: error: inlini

[Bug ipa/114784] [14 Regression] Inlining fails for always_inline inheriting constructor

2024-04-19 Thread dani at danielbertalan dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114784 --- Comment #5 from Daniel Bertalan --- I tried Jakub's patch (thank you for the super quick response!), it crashes if the constructor has non-type template parameters: template struct SpanImpl { template SpanImpl(); }; template struct Sp

[Bug c++/114854] New: [14 Regression] ICE with default initializer of const reference member at cp/cp-gimplify.cc:900

2024-04-25 Thread dani at danielbertalan dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114854 Bug ID: 114854 Summary: [14 Regression] ICE with default initializer of const reference member at cp/cp-gimplify.cc:900 Product: gcc Version: 14.0 Status: UNCONFIRMED

[Bug tree-optimization/115201] New: Recursive binary search is incorrectly inlined

2024-05-22 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115201 Bug ID: 115201 Summary: Recursive binary search is incorrectly inlined Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug ipa/115201] Recursive binary search is incorrectly inlined

2024-05-22 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115201 --- Comment #2 from Jeremy R. --- Does recursive inlining here interfere with TCO, or is GCC just not able to TCO in this case? I can understand why some bounded recursive inlining may be desirable, however in this case it seems very not ideal.

[Bug debug/115235] New: Non-standard .debug_addr section

2024-05-26 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115235 Bug ID: 115235 Summary: Non-standard .debug_addr section Product: gcc Version: 13.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug

[Bug debug/115235] Non-standard .debug_addr section

2024-05-26 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115235 --- Comment #1 from Jeremy R. --- Ope, my bad, it appears the section is generated properly with -gsplit-dwarf -gdwarf-5.

[Bug debug/115235] Non-standard .debug_addr section

2024-05-27 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115235 --- Comment #3 from Jeremy R. --- Hi, can you clarify what you mean? Why does -gsplit-dwarf without -gdwarf-5 emit in debug fission with extended dwarf-4 if it's specifically dealing with dwarf 5?

[Bug c++/115313] New: False positive -fanalyzer use of uninitialized value due to std::string's default constructor

2024-05-31 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115313 Bug ID: 115313 Summary: False positive -fanalyzer use of uninitialized value due to std::string's default constructor Product: gcc Version: 14.1.1 Status: UNCONFIRMED

[Bug analyzer/115313] False positive -fanalyzer use of uninitialized value due to std::string's default constructor

2024-05-31 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115313 --- Comment #1 from Jeremy R. --- Reduced: #include std::string foo() { std::string str; return str; } : In function 'std::string foo()': :4:17: warning: use of uninitialized value '' [CWE-457] [-Wanalyzer-use-of-uninitialized-value

[Bug tree-optimization/110203] New: Sum should optimize to closed form

2023-06-10 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110203 Bug ID: 110203 Summary: Sum should optimize to closed form Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimi

[Bug tree-optimization/110203] Sum should optimize to closed form

2023-06-10 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110203 --- Comment #2 from Jeremy R. --- I wasn't able to get this to work with unsigned either https://godbolt.org/z/bGcW7ebjd but maybe there's some other way to trigger this optimization

[Bug tree-optimization/110203] Sum should optimize to closed form

2023-06-10 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110203 --- Comment #4 from Jeremy R. --- Thanks for tracking down the duplicates

[Bug tree-optimization/113392] New: Missed fold of loading 8 consecutive bytes leading to a missed byteswap optimization

2024-01-14 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113392 Bug ID: 113392 Summary: Missed fold of loading 8 consecutive bytes leading to a missed byteswap optimization Product: gcc Version: unknown Status: UNCONFIRMED

[Bug tree-optimization/117217] New: ICE in tree-sra when copying struct with a union of packed structs with bitfields

2024-10-18 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117217 Bug ID: 117217 Summary: ICE in tree-sra when copying struct with a union of packed structs with bitfields Product: gcc Version: 15.0 Status: UNCONFIRMED Severi

[Bug tree-optimization/117217] ICE in tree-sra when copying struct with a union of packed structs with bitfields

2024-10-18 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117217 --- Comment #1 from Jeremy R. --- This ICEs on trunk without [[gnu::packed]]: struct a { int b; long c; long d; bool f; }; struct g { int b; long c; long d; bool : 1; } h; struct l { union i { a j; g k; i(g m) : k

[Bug c++/118147] New: #pragma GCC diagnostic push causes errors when used in IILE in struct member initializer

2024-12-19 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118147 Bug ID: 118147 Summary: #pragma GCC diagnostic push causes errors when used in IILE in struct member initializer Product: gcc Version: 4.7.1 Status: UNCONFIRMED

[Bug libstdc++/101587] ranges::uninitialized_copy/move incorrectly uses std::min

2025-01-21 Thread gcc at jonathanmueller dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101587 Jonathan Müller changed: What|Removed |Added CC||gcc at jonathanmueller dot dev --- Co

[Bug c++/118670] New: -Wdangling-reference false positive when returning a reference from a reference_wrapper

2025-01-26 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118670 Bug ID: 118670 Summary: -Wdangling-reference false positive when returning a reference from a reference_wrapper Product: gcc Version: 15.0 Status: UNCONFIRMED

[Bug c++/118670] -Wdangling-reference false positive when returning a reference from a reference_wrapper

2025-01-26 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118670 Jeremy R. changed: What|Removed |Added Resolution|DUPLICATE |FIXED --- Comment #3 from Jeremy R. --- Th

[Bug tree-optimization/119294] New: Strange (buggy?) codegen when passing cleared vector as argument

2025-03-14 Thread gcc at haasn dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119294 Bug ID: 119294 Summary: Strange (buggy?) codegen when passing cleared vector as argument Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/119103] New: Very suboptimal AVX2 code generation of simple shift loop

2025-03-03 Thread gcc at haasn dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119103 Bug ID: 119103 Summary: Very suboptimal AVX2 code generation of simple shift loop Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Pri

[Bug tree-optimization/119103] shift not demotated when shift amount range is known

2025-03-04 Thread gcc at haasn dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119103 --- Comment #12 from Niklas Haas --- Out of curiosity, is there a work-around that I could use to get current versions of GCC to compile the right thing, but without breaking cross-platform compatibility? I did try replacing the assertion by "x

[Bug tree-optimization/119103] shift not demotated when shift amount range is known

2025-03-05 Thread gcc at haasn dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119103 --- Comment #16 from Niklas Haas --- (In reply to Alexander Monakov from comment #15) > (In reply to Niklas Haas from comment #12) > > Out of curiosity, is there a work-around that I could use to get current > > versions of GCC to compile the ri

[Bug tree-optimization/119103] Very suboptimal AVX2 code generation of simple shift loop

2025-03-03 Thread gcc at haasn dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119103 --- Comment #1 from Niklas Haas --- Clang's output for comparison: lshift: vmovdqu ymm0, ymmword ptr [rdi] vmovd xmm1, esi vpsllw ymm0, ymm0, xmm1 vmovdqu ymmword ptr [rdi], ymm0 vzeroupper ret

[Bug c/82134] warn_unused_result triggers on empty structs even when they are used

2025-06-09 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82134 Jeremy R. changed: What|Removed |Added CC||llvm at rifkin dot dev --- Comment #7 from J

[Bug c++/120475] New: vector is 60x slower with ASan detect_stack_use_after_return=1

2025-05-29 Thread dani at danielbertalan dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120475 Bug ID: 120475 Summary: vector is 60x slower with ASan detect_stack_use_after_return=1 Product: gcc Version: 13.3.0 Status: UNCONFIRMED Severity: normal

[Bug sanitizer/120475] vector is 60x slower with ASan detect_stack_use_after_return=1

2025-05-30 Thread dani at danielbertalan dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120475 Daniel Bertalan changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

<    1   2