[Bug ipa/119006] IPA ICF and LTO cause strcmp condition to be omitted

2025-02-24 Thread jeff-gcc at caffeinated dot me.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119006 --- Comment #2 from Jeff Snyder --- Further simplified: template struct FixedString { bool operator==(const char* rhs_) const { return rhs_ and not __builtin_strcmp(_str, rhs_); } bool operator!=(const char* rhs_) const { return !(*this

[Bug ipa/119006] New: IPA ICF and LTO cause strcmp condition to be omitted

2025-02-24 Thread jeff-gcc at caffeinated dot me.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119006 Bug ID: 119006 Summary: IPA ICF and LTO cause strcmp condition to be omitted Product: gcc Version: 14.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Comp