Commit ba9d634f by Iain Sandoe Committed by Iain Sandoe

Add __USER_LABEL_PREFIX__ to the asm names for targets that need it.

2018-08-16  Iain Sandoe <iain@sandoe.co.uk>

gcc/testsuite

        * gcc.dg/memcmp-1.c (lib_memcmp): Apply __USER_LABEL_PREFIX__.
        (lib_strncmp): Likewise.

From-SVN: r263586
parent e56c0215
2018-08-16 Iain Sandoe <iain@sandoe.co.uk> 2018-08-16 Iain Sandoe <iain@sandoe.co.uk>
* gcc.dg/memcmp-1.c (lib_memcmp): Apply __USER_LABEL_PREFIX__.
(lib_strncmp): Likewise.
2018-08-16 Iain Sandoe <iain@sandoe.co.uk>
* c-c++-common/asan/pointer-subtract-3.c: Skip for Darwin. * c-c++-common/asan/pointer-subtract-3.c: Skip for Darwin.
* c-c++-common/asan/pointer-subtract-4.c: Likewise. * c-c++-common/asan/pointer-subtract-4.c: Likewise.
* g++.dg/torture/pr44295.C : Likewise. * g++.dg/torture/pr44295.C : Likewise.
......
...@@ -8,8 +8,13 @@ ...@@ -8,8 +8,13 @@
#include <string.h> #include <string.h>
#include <stdint.h> #include <stdint.h>
int lib_memcmp(const void *a, const void *b, size_t n) asm("memcmp"); #define STR1(X) #X
int lib_strncmp(const char *a, const char *b, size_t n) asm("strncmp"); #define STR2(X) STR1(X)
int lib_memcmp(const void *a, const void *b, size_t n)
asm(STR2(__USER_LABEL_PREFIX__) "memcmp");
int lib_strncmp(const char *a, const char *b, size_t n)
asm(STR2(__USER_LABEL_PREFIX__) "strncmp");
#ifndef NRAND #ifndef NRAND
#ifdef TEST_ALL #ifdef TEST_ALL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment