diff options
| author | sin | 2015-03-14 09:38:11 +0000 |
|---|---|---|
| committer | sin | 2015-03-14 09:38:22 +0000 |
| commit | 37eb2c9c1d71c2ff21605ecaf46cdd926244d361 (patch) | |
| tree | 9670721c2b0caa931efa40f00a64a3fadf6c9619 /include/strings.h | |
| parent | d12254166a55d17932ea4143fbd50fb52539ff8b (diff) | |
Add __artificial__ to aid in debugging
Diffstat (limited to 'include/strings.h')
| -rw-r--r-- | include/strings.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/strings.h b/include/strings.h index 4c1a591..02811a3 100644 --- a/include/strings.h +++ b/include/strings.h | |||
| @@ -16,7 +16,7 @@ extern "C" { | |||
| 16 | #undef bzero | 16 | #undef bzero |
| 17 | extern void __bcopy_orig(const void *, void *, size_t) | 17 | extern void __bcopy_orig(const void *, void *, size_t) |
| 18 | __asm__(__USER_LABEL_PREFIX__ "bcopy"); | 18 | __asm__(__USER_LABEL_PREFIX__ "bcopy"); |
| 19 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 19 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 20 | void bcopy(const void *src, void *dest, size_t n) | 20 | void bcopy(const void *src, void *dest, size_t n) |
| 21 | { | 21 | { |
| 22 | size_t bos = __builtin_object_size(dest, 0); | 22 | size_t bos = __builtin_object_size(dest, 0); |
| @@ -28,7 +28,7 @@ void bcopy(const void *src, void *dest, size_t n) | |||
| 28 | 28 | ||
| 29 | extern void __bzero_orig(void *, size_t) | 29 | extern void __bzero_orig(void *, size_t) |
| 30 | __asm__(__USER_LABEL_PREFIX__ "bzero"); | 30 | __asm__(__USER_LABEL_PREFIX__ "bzero"); |
| 31 | extern __inline __attribute__((__always_inline__,__gnu_inline__)) | 31 | extern __inline __attribute__((__always_inline__,__gnu_inline__,__artificial__)) |
| 32 | void bzero(void *src, size_t n) | 32 | void bzero(void *src, size_t n) |
| 33 | { | 33 | { |
| 34 | size_t bos = __builtin_object_size(src, 0); | 34 | size_t bos = __builtin_object_size(src, 0); |
