Use __asm__ rather than asm in ld testsuite

Alan Modra amodra@gmail.com
Tue Jun 16 13:13:32 GMT 2020


I missed a couple.

	* testsuite/ld-elf/pr19553c.c: Replace asm with __asm__.
	* testsuite/ld-elfvers/vers27b.c: Likewise.

diff --git a/ld/testsuite/ld-elf/pr19553c.c b/ld/testsuite/ld-elf/pr19553c.c
index 7587b4afbe..dac09d9f3f 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 3fe5615baa..95f9f43380 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));

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list