Re: Use __asm__ rather than asm in ld testsuite
authorAlan Modra <amodra@gmail.com>
Tue, 16 Jun 2020 13:09:44 +0000 (22:39 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 16 Jun 2020 13:14:13 +0000 (22:44 +0930)
* testsuite/ld-elf/pr19553c.c: Replace asm with __asm__.
* testsuite/ld-elfvers/vers27b.c: Likewise.

ld/ChangeLog
ld/testsuite/ld-elf/pr19553c.c
ld/testsuite/ld-elfvers/vers27b.c

index aa20f50580d235e342ac0f353d59ec0ff698f016..ad268c8468840e72b20d4fc5bec1e6f7a89bac09 100644 (file)
@@ -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.
index 7587b4afbe3a65563960005ba13107d1ea2bbabf..dac09d9f3f529d3a1821afda310637e22da583b7 100644 (file)
@@ -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
index 3fe5615baa4f186397b15560bb13e30ef601a349..95f9f43380ae9edff8246bffa5983125e51daf8e 100644 (file)
@@ -1,3 +1,3 @@
 #include "vers.h"
 void foo () {}
-asm (".hidden " SYMPFX(foo));
+__asm__ (".hidden " SYMPFX(foo));