aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-06-16 22:39:44 +0930
committerAlan Modra <amodra@gmail.com>2020-06-16 22:44:13 +0930
commit5f8989944880cad1bfffab3801214a0a9b67b72e (patch)
tree9d83a2a87412e2934ee94e4b18b72fd935a2d8c7 /ld
parent07e7fdfd429985f061630c46e91cb10579607233 (diff)
downloadgdb-5f8989944880cad1bfffab3801214a0a9b67b72e.zip
gdb-5f8989944880cad1bfffab3801214a0a9b67b72e.tar.gz
gdb-5f8989944880cad1bfffab3801214a0a9b67b72e.tar.bz2
Re: Use __asm__ rather than asm in ld testsuite
* testsuite/ld-elf/pr19553c.c: Replace asm with __asm__. * testsuite/ld-elfvers/vers27b.c: Likewise.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog2
-rw-r--r--ld/testsuite/ld-elf/pr19553c.c4
-rw-r--r--ld/testsuite/ld-elfvers/vers27b.c2
3 files changed, 5 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index aa20f50..ad268c8 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 7587b4a..dac09d9 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 3fe5615..95f9f43 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));