[Bug tree-optimization/104992] New: [missed optimization] x / y * y == x not optimized to x % y == 0

2022-03-20 Thread tilkax at gmail dot com via Gcc-bugs
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: tilkax at gmail dot com Target Milestone: --- This is especially helpful for constant y because checking division-by-a-constant remainders against zero allows further

[Bug c++/78147] The -Wshadow warning is too aggressive with constructor parameters

2020-07-31 Thread tilkax at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78147 Tillmann Karras changed: What|Removed |Added CC||tilkax at gmail dot com --- Comment

[Bug c++/96311] false positive for -Wunused-but-set-variable (const/constexpr identifier used in generic lambda)

2020-07-27 Thread tilkax at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96311 --- Comment #2 from Tillmann Karras --- (In reply to Martin Liška from comment #1) > Confirmed, but it seems the code is rejected with clang: > [...] > Is it a valid test-case? I think so. There is a bug report for Clang: https://bugs.llvm.org/

[Bug c++/96311] New: false positive for -Wunused-but-set-variable (const/constexpr identifier used in generic lambda)

2020-07-24 Thread tilkax at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: tilkax at gmail dot com Target Milestone: --- Using gcc version 11.0.0 20200723, this code: void foo() { constexpr int used = 0; [](auto unused

[Bug target/85539] New: x86_64: loads are not always narrowed

2018-04-26 Thread tilkax at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: tilkax at gmail dot com Target Milestone: --- When casting a 64-bit memory value to 32 bits, it's possible to only load the lower 32 bits (this also avoids the REX prefix). GCC doesn't always do this: https://god