[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 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 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 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 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 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] 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 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 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 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 libstdc++/86130] Expect SIGSEGV but program just silently exits

2023-10-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86130 --- Comment #21 from Jeremy R. --- Another option might be just do nothing and don't set the badbit, just pretend it's an empty string. This shouldn't break existing programs and would at least be something a programmer could more easily track do

[Bug libstdc++/86130] Expect SIGSEGV but program just silently exits

2023-10-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86130 --- Comment #20 from Jeremy R. --- Silently ruining the behavior of the rest of a program and leaving the programmer to pull their hair out over what on earth is happening seems very un-ideal behavior. This is a very easy mistake to make and the

[Bug libstdc++/111729] Design considerations for operator<<(basic_ostream&, const charT*)

2023-10-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111729 --- Comment #2 from Jeremy R. --- Thank you for the quick response

[Bug libstdc++/111729] New: Design considerations for operator<<(basic_ostream&, const charT*)

2023-10-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111729 Bug ID: 111729 Summary: Design considerations for operator<<(basic_ostream&, const charT*) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/111242] New: Out of bounds pointer arithmetic not caught in constexpr

2023-08-30 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111242 Bug ID: 111242 Summary: Out of bounds pointer arithmetic not caught in constexpr Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal P

[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/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] 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/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 tree-optimization/109044] New: Missed fold for (n - 1) / 2 when n is odd

2023-03-06 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109044 Bug ID: 109044 Summary: Missed fold for (n - 1) / 2 when n is odd Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree

[Bug c++/107178] Diagnosis for colon vs semi-colon in a member function declaration

2022-10-06 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107178 --- Comment #2 from Jeremy R. --- The easy solution is to mention both the bitfield and "hey maybe you meant to use a ;"

[Bug c++/107178] New: Diagnosis for colon vs semi-colon in a member function declaration

2022-10-06 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107178 Bug ID: 107178 Summary: Diagnosis for colon vs semi-colon in a member function declaration Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal

[Bug tree-optimization/106727] New: Missed fold / canonicalization for checking if a number is a power of 2

2022-08-23 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106727 Bug ID: 106727 Summary: Missed fold / canonicalization for checking if a number is a power of 2 Product: gcc Version: 12.1.1 Status: UNCONFIRMED Severity: norm

[Bug c++/105811] New: Diagnostics for template class member call with missing template parameters can be improved

2022-06-01 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105811 Bug ID: 105811 Summary: Diagnostics for template class member call with missing template parameters can be improved Product: gcc Version: 12.1.0 Status: UNCONFIRMED

[Bug c++/105734] [12/13 Regression]: Incorrect "error: invalid use of 'auto'" for explicit destructor inside a template

2022-06-01 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105734 --- Comment #14 from Jeremy R. --- Thank you for the quick patch :)

[Bug c++/105734] [12/13 Regression]: Incorrect "error: invalid use of 'auto'" for explicit destructor inside a template

2022-05-26 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105734 --- Comment #10 from Jeremy R. --- One workaround in the general case is decltype(ns::expression_decomposer(ns::expression_decomposer{} << expr)) = libassert_decomposer = ns::expression_decomposer(ns::expression_decomposer{} << expr); But this

[Bug c++/105734] [12/13 Regression]: Incorrect "error: invalid use of 'auto'" for explicit destructor inside a template

2022-05-26 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105734 --- Comment #9 from Jeremy R. --- (In reply to Jonathan Wakely from comment #7) > (In reply to Jeremy R. from comment #1) > > More minimal: https://godbolt.org/z/WcGab4W8T > > The https://gcc.gnu.org/bugs very clearly says to provide the testca

[Bug c++/105734] Regression: Incorrect "error: invalid use of 'auto'"

2022-05-25 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105734 --- Comment #1 from Jeremy R. --- More minimal: https://godbolt.org/z/WcGab4W8T

[Bug c++/105734] New: Regression: Incorrect "error: invalid use of 'auto'"

2022-05-25 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105734 Bug ID: 105734 Summary: Regression: Incorrect "error: invalid use of 'auto'" Product: gcc Version: 12.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Comp

[Bug tree-optimization/103765] New: Missed arithmetic simplification for multiplication + division

2021-12-18 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103765 Bug ID: 103765 Summary: Missed arithmetic simplification for multiplication + division Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal

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

2021-12-04 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103559 Bug ID: 103559 Summary: Can't optimize away < 0 check on sqrt Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optim

[Bug tree-optimization/103072] Folding common switch code

2021-11-04 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103072 --- Comment #3 from Jeremy R. --- (In reply to Jakub Jelinek from comment #1) > So maybe the switchconv pass could be > improved not to do just the linear etc. expression handling, but also > consider code sequences that are the same except for

[Bug tree-optimization/103072] New: Folding common switch code

2021-11-03 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103072 Bug ID: 103072 Summary: Folding common switch code Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/102232] Missed arithmetic fold

2021-09-07 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102232 --- Comment #1 from Jeremy R. --- Correction on first line: *GCC optimizes bar into tgt here but not foo. Pardon my sloppy copy-paste from my bug report over on LLVM's bugzilla!

[Bug tree-optimization/102232] New: Missed arithmetic fold

2021-09-07 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102232 Bug ID: 102232 Summary: Missed arithmetic fold Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/101822] Codegen bug for popcount

2021-08-09 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101822 --- Comment #3 from Jeremy R. --- Interestingly it's optimized correctly on -Os

[Bug target/101821] Redundant xor eax eax

2021-08-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101821 --- Comment #9 from Jeremy R. --- Thank you for the resources and for your insight, it's much appreciated. Is there interest in updating the intentional false-dependency logic to not fire for architectures newer than cannonlake?

[Bug tree-optimization/101822] Codegen bug for popcount

2021-08-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101822 --- Comment #1 from Jeremy R. --- Never mind, 101821 was invalid and the initial xor eax eax is by design (still wondering whether this applies to new CPUs though). There is still a discrepancy between this code and the __builtin_popcount code t

[Bug target/101821] Redundant xor eax eax

2021-08-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101821 --- Comment #7 from Jeremy R. --- Does the false dependency still apply to modern CPUs?

[Bug target/101821] Redundant xor eax eax

2021-08-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101821 --- Comment #6 from Jeremy R. --- Ah thank you @Andrew Pinski @Jakub Jelinek

[Bug tree-optimization/101822] New: Codegen bug for popcount

2021-08-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101822 Bug ID: 101822 Summary: Codegen bug for popcount Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/101821] Redundant xor eax eax related to popcount intrinsic

2021-08-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101821 Jeremy R. changed: What|Removed |Added Summary|Redundant xor eax eax |Redundant xor eax eax |re

[Bug tree-optimization/101821] Redundant xor eax eax

2021-08-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101821 --- Comment #1 from Jeremy R. --- This happens with __builtin_popcount as well, not just std::popcount. This appears to have started in GCC 4.9.2. https://godbolt.org/z/4dGWvT5zr

[Bug tree-optimization/101821] New: Redundant xor eax eax

2021-08-08 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101821 Bug ID: 101821 Summary: Redundant xor eax eax Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug c++/101790] New: ICE on invalid regression in trunk: tree check: expected class 'type', have 'exceptional' (error_mark)

2021-08-05 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101790 Bug ID: 101790 Summary: ICE on invalid regression in trunk: tree check: expected class 'type', have 'exceptional' (error_mark) Product: gcc Version: 12.0 Status: UNCONFI

[Bug tree-optimization/101754] New: Missed fold for a/b*b

2021-08-03 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101754 Bug ID: 101754 Summary: Missed fold for a/b*b Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/101701] GCC optimization and code generation for if-else chains vs ternary chains vs a switch

2021-07-30 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101701 --- Comment #4 from Jeremy R. --- I see with gcc x86_64 it does get the fold correct if another term (val == 5) is added to the if-else chain: https://godbolt.org/z/TE15Wf1bo.

[Bug c++/101701] New: GCC optimization and code generation for if-else chains vs ternary chains vs a switch

2021-07-30 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101701 Bug ID: 101701 Summary: GCC optimization and code generation for if-else chains vs ternary chains vs a switch Product: gcc Version: 12.0 Status: UNCONFIRMED Se

[Bug sanitizer/101300] New: -fsanitize=undefined suppresses -Wuninitialized

2021-07-02 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101300 Bug ID: 101300 Summary: -fsanitize=undefined suppresses -Wuninitialized Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug c++/101213] Improve support for decltype(std)

2021-06-25 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101213 --- Comment #2 from Jeremy R. --- (In reply to Jonathan Wakely from comment #1) > This is just how GCC recovers from a bad parse, so that it can attempt to > continue and give diagnostics for the rest of the code. An invalid type in > certain de

[Bug c++/101213] New: Improve support for decltype(std)

2021-06-25 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101213 Bug ID: 101213 Summary: Improve support for decltype(std) Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/92105] [8/9/10 Regression] decltype(decltype(decltype)) prints exponential number of repeated errors

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

[Bug c++/100829] New: ICE with type that can't be determined

2021-05-29 Thread llvm at rifkin dot dev via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100829 Bug ID: 100829 Summary: ICE with type that can't be determined Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++