Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The bug report is not wrong. Rather, whether the current behavior is correct depends on the platform.

For example, Darwin's libc offers this contract for memcpy and clang is perfectly within its rights to generate such code (note that the IR it generates is still violating LLVM's contract on the memcpy intrinsic); glibc offers no such contract for memcpy, and so clang's code is nonconformant.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: