# add bcmp implementation as LLVM 9 now emits those · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/720ed74413f086a93f5ed66159300d8dd48e8034)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 720ed74413f086a93f5ed66159300d8dd48e8034

Requested commit: 720ed74413f086a93f5ed66159300d8dd48e8034

Commit: 720ed74413f086a93f5ed66159300d8dd48e8034

Tree: 872e89106fc138feff34c5f9a5814d6fbab283c3

Author: Shawn Landden

Committer: Andrew Kelley

## Message

```
add bcmp implementation as LLVM 9 now emits those

The optimizer will now convert calls to memcmp into a calls to bcmp
in some circumstances. Users who are building freestanding code (not
depending on the platform’s libc) without specifying -ffreestanding may
need to either pass -fno-builtin-bcmp, or provide a bcmp function.

http://llvm.org/docs/ReleaseNotes.html#non-comprehensive-list-of-changes-in-this-release

```

## Parents

- [404e4b026888471d50ff74306a9c3ec75039f6a9](https://git.cafe/gitcafe/zig/commit/404e4b026888471d50ff74306a9c3ec75039f6a9?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/720ed74413f086a93f5ed66159300d8dd48e8034?format=markdown)
