From: Iain Sandoe Date: Thu, 16 Aug 2018 11:58:25 +0000 (+0000) Subject: Add __USER_LABEL_PREFIX__ to the asm names for targets that need it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba9d634f417a95d7efb875408573872c883f710a;p=gcc.git Add __USER_LABEL_PREFIX__ to the asm names for targets that need it. 2018-08-16 Iain Sandoe gcc/testsuite * gcc.dg/memcmp-1.c (lib_memcmp): Apply __USER_LABEL_PREFIX__. (lib_strncmp): Likewise. From-SVN: r263586 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f3b2b1dd0f9..6311e0bacc7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-08-16 Iain Sandoe + + * gcc.dg/memcmp-1.c (lib_memcmp): Apply __USER_LABEL_PREFIX__. + (lib_strncmp): Likewise. + 2018-08-16 Iain Sandoe * c-c++-common/asan/pointer-subtract-3.c: Skip for Darwin. diff --git a/gcc/testsuite/gcc.dg/memcmp-1.c b/gcc/testsuite/gcc.dg/memcmp-1.c index a79db512b66..619cf9b0d73 100644 --- a/gcc/testsuite/gcc.dg/memcmp-1.c +++ b/gcc/testsuite/gcc.dg/memcmp-1.c @@ -8,8 +8,13 @@ #include #include -int lib_memcmp(const void *a, const void *b, size_t n) asm("memcmp"); -int lib_strncmp(const char *a, const char *b, size_t n) asm("strncmp"); +#define STR1(X) #X +#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 #ifdef TEST_ALL