[Bug c++/116127] __builtin_lgamma(1.0e+0) is not a constant expression

2024-07-29 Thread tomerv at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116127 --- Comment #2 from Tomer Vromen --- Jakub, thanks for the quick answer! I see that this is a POSIX extension. I also see that according to cppreference, std::lgamma is "constexpr since C++26". I do wonder how that will work. Is there a conste

[Bug c++/116127] New: __builtin_lgamma(1.0e+0) is not a constant expression

2024-07-29 Thread tomerv at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116127 Bug ID: 116127 Summary: __builtin_lgamma(1.0e+0) is not a constant expression Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Com

[Bug c/107277] New: Spurious -Wformat-overflow when combined with __builtin_expect()

2022-10-16 Thread tomerv at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107277 Bug ID: 107277 Summary: Spurious -Wformat-overflow when combined with __builtin_expect() Product: gcc Version: 12.2.1 Status: UNCONFIRMED Severity: normal

[Bug ipa/106716] Identical Code Folding (-fipa-icf) confuses between functions with different [[likely]] attributes

2022-08-22 Thread tomerv at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106716 --- Comment #2 from Tomer Vromen --- IMO, attribute information should be checked in this optimization stage, so that ipa-icf knows the functions are different. It seems like maybe this is already partially the behavior - removing the attribute

[Bug ipa/106716] New: Identical Code Folding (-fipa-icf) confuses between functions with different [[likely]] attributes

2022-08-22 Thread tomerv at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106716 Bug ID: 106716 Summary: Identical Code Folding (-fipa-icf) confuses between functions with different [[likely]] attributes Product: gcc Version: 12.1.0 Status: UNCONFIRM