[Bug tree-optimization/96758] New: strncmp miscompiles as memcmp

2020-08-23 Thread gcc-bugs at vgkmb dot com
Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugs at vgkmb dot com Target Milestone: --- Created attachment 49106 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49106&action=edit strncmp test program strncmp(x, y, n) == 0 generates the wrong code un

[Bug tree-optimization/96758] [10/11 Regression] strncmp miscompiles as memcmp since r10-3920-g27c14dbc6b01d5b7

2020-08-24 Thread gcc-bugs at vgkmb dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96758 --- Comment #3 from R. Evans --- Thanks for the quick patch! Applied to head (87c753ac) and confirmed that it passes the test case and fixes the problem with smartmontools-7.1.