From: Alan Modra Date: Tue, 16 Jun 2020 13:09:44 +0000 (+0930) Subject: Re: Use __asm__ rather than asm in ld testsuite X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5f8989944880cad1bfffab3801214a0a9b67b72e;p=binutils-gdb.git Re: Use __asm__ rather than asm in ld testsuite * testsuite/ld-elf/pr19553c.c: Replace asm with __asm__. * testsuite/ld-elfvers/vers27b.c: Likewise. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index aa20f50580d..ad268c84688 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -7,7 +7,9 @@ * testsuite/ld-elf/indirect4b.c: Likewise. * testsuite/ld-elf/pr14323-2.c: Likewise. * testsuite/ld-elf/pr18720b.c: Likewise. + * testsuite/ld-elf/pr19553c.c: Likewise. * testsuite/ld-elf/pr23428.c: Likewise. + * testsuite/ld-elfvers/vers27b.c: Likewise. * testsuite/ld-elfvsb/common.c: Likewise. * testsuite/ld-elfvsb/main.c: Likewise. * testsuite/ld-elfvsb/sh1.c: Likewise. diff --git a/ld/testsuite/ld-elf/pr19553c.c b/ld/testsuite/ld-elf/pr19553c.c index 7587b4afbe3..dac09d9f3f5 100644 --- a/ld/testsuite/ld-elf/pr19553c.c +++ b/ld/testsuite/ld-elf/pr19553c.c @@ -6,7 +6,7 @@ foo (void) printf ("pr19553c\n"); } -asm (".symver foo,foo@FOO"); +__asm__ (".symver foo,foo@FOO"); #if defined __powerpc64__ && defined _CALL_AIXDESC && !defined _CALL_LINUX -asm (".symver .foo,.foo@FOO"); +__asm__ (".symver .foo,.foo@FOO"); #endif diff --git a/ld/testsuite/ld-elfvers/vers27b.c b/ld/testsuite/ld-elfvers/vers27b.c index 3fe5615baa4..95f9f43380a 100644 --- a/ld/testsuite/ld-elfvers/vers27b.c +++ b/ld/testsuite/ld-elfvers/vers27b.c @@ -1,3 +1,3 @@ #include "vers.h" void foo () {} -asm (".hidden " SYMPFX(foo)); +__asm__ (".hidden " SYMPFX(foo));