diff options
author | Alan Modra <amodra@gmail.com> | 2020-06-16 21:46:00 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-06-16 22:13:20 +0930 |
commit | 07e7fdfd429985f061630c46e91cb10579607233 (patch) | |
tree | ede8a18c253a31669fe7f7159e9ed8e287a5a885 /ld/testsuite/ld-elfvsb | |
parent | 423054beadf317757d43aefb9eddfe711a42e3e1 (diff) | |
download | gdb-07e7fdfd429985f061630c46e91cb10579607233.zip gdb-07e7fdfd429985f061630c46e91cb10579607233.tar.gz gdb-07e7fdfd429985f061630c46e91cb10579607233.tar.bz2 |
Use __asm__ rather than asm in ld testsuite
* testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
* testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
* testsuite/ld-elf/indirect2.c: Likewise.
* testsuite/ld-elf/indirect3b.c: Likewise.
* testsuite/ld-elf/indirect4b.c: Likewise.
* testsuite/ld-elf/pr14323-2.c: Likewise.
* testsuite/ld-elf/pr18720b.c: Likewise.
* testsuite/ld-elf/pr23428.c: Likewise.
* testsuite/ld-elfvsb/common.c: Likewise.
* testsuite/ld-elfvsb/main.c: Likewise.
* testsuite/ld-elfvsb/sh1.c: Likewise.
* testsuite/ld-elfvsb/test.c: Likewise.
* testsuite/ld-pe/aligncomm-1.c: Likewise.
* testsuite/ld-pe/aligncomm-2.c: Likewise.
* testsuite/ld-pe/aligncomm-3.c: Likewise.
* testsuite/ld-pe/aligncomm-4.c: Likewise.
* testsuite/ld-plugin/pr23958.c: Likewise.
* testsuite/ld-size/size-1b.c: Likewise.
* testsuite/ld-size/size-2b.c: Likewise.
* testsuite/ld-size/size-3a.c: Likewise.
* testsuite/ld-size/size-3b.c: Likewise.
* testsuite/ld-size/size-3c.c: Likewise.
* testsuite/ld-size/size-4b.c: Likewise.
* testsuite/ld-size/size-5b.c: Likewise.
* testsuite/ld-size/size-6a.c: Likewise.
* testsuite/ld-size/size-7a.c: Likewise.
* testsuite/ld-size/size-8a.c: Likewise.
* testsuite/ld-size/size-9b.c: Likewise.
* testsuite/ld-size/size-10b.c: Likewise.
Diffstat (limited to 'ld/testsuite/ld-elfvsb')
-rw-r--r-- | ld/testsuite/ld-elfvsb/common.c | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvsb/main.c | 18 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvsb/sh1.c | 22 | ||||
-rw-r--r-- | ld/testsuite/ld-elfvsb/test.c | 4 |
4 files changed, 23 insertions, 23 deletions
diff --git a/ld/testsuite/ld-elfvsb/common.c b/ld/testsuite/ld-elfvsb/common.c index 7d05eb7..0432a07 100644 --- a/ld/testsuite/ld-elfvsb/common.c +++ b/ld/testsuite/ld-elfvsb/common.c @@ -1,5 +1,5 @@ int foo; -asm (".hidden foo"); +__asm__ (".hidden foo"); int _start (void) diff --git a/ld/testsuite/ld-elfvsb/main.c b/ld/testsuite/ld-elfvsb/main.c index 5419826..c2c9291 100644 --- a/ld/testsuite/ld-elfvsb/main.c +++ b/ld/testsuite/ld-elfvsb/main.c @@ -96,7 +96,7 @@ main_visibility_checkvar (void) #ifndef PROTECTED_UNDEF_TEST int shared_data = 1; -asm (".protected shared_data"); +__asm__ (".protected shared_data"); int shared_func (void) @@ -104,7 +104,7 @@ shared_func (void) return 1; } -asm (".protected shared_func"); +__asm__ (".protected shared_func"); extern int * shared_data_p (); typedef int (*func) (); @@ -152,7 +152,7 @@ shlib_overriddencall2 (void) #ifdef HIDDEN_NORMAL_TEST int visibility_com; -asm (".hidden visibility_com"); +__asm__ (".hidden visibility_com"); int main_visibility_checkcom (void) @@ -174,19 +174,19 @@ main_visibility_checkcom (void) #pragma weak visibility_undef_var_weak extern int visibility_undef_var_weak; -asm (".hidden visibility_undef_var_weak"); +__asm__ (".hidden visibility_undef_var_weak"); #pragma weak visibility_undef_func_weak extern int visibility_undef_func_weak (); -asm (".hidden visibility_undef_func_weak"); +__asm__ (".hidden visibility_undef_func_weak"); #pragma weak visibility_var_weak extern int visibility_var_weak; -asm (".hidden visibility_var_weak"); +__asm__ (".hidden visibility_var_weak"); #pragma weak visibility_func_weak extern int visibility_func_weak (); -asm (".hidden visibility_func_weak"); +__asm__ (".hidden visibility_func_weak"); int main_visibility_checkweak () @@ -198,9 +198,9 @@ main_visibility_checkweak () } #elif defined (HIDDEN_UNDEF_TEST) extern int visibility_def; -asm (".hidden visibility_def"); +__asm__ (".hidden visibility_def"); extern int visibility_func (); -asm (".hidden visibility_func"); +__asm__ (".hidden visibility_func"); int main_visibility_checkcom (void) diff --git a/ld/testsuite/ld-elfvsb/sh1.c b/ld/testsuite/ld-elfvsb/sh1.c index b275424..1aba63c 100644 --- a/ld/testsuite/ld-elfvsb/sh1.c +++ b/ld/testsuite/ld-elfvsb/sh1.c @@ -203,7 +203,7 @@ visibility () #endif #ifdef HIDDEN_NORMAL_TEST -asm (".hidden visibility_normal"); +__asm__ (".hidden visibility_normal"); int visibility_normal () @@ -265,7 +265,7 @@ int visibility_var = 2; #endif #ifdef HIDDEN_NORMAL_TEST -asm (".hidden visibility_var_normal"); +__asm__ (".hidden visibility_var_normal"); int visibility_var_normal = 2; #endif @@ -325,18 +325,18 @@ visibility_varval () } #if defined (HIDDEN_TEST) || defined (HIDDEN_UNDEF_TEST) -asm (".hidden visibility"); -asm (".hidden visibility_var"); +__asm__ (".hidden visibility"); +__asm__ (".hidden visibility_var"); #else #if defined (PROTECTED_TEST) || defined (PROTECTED_UNDEF_TEST) || defined (PROTECTED_WEAK_TEST) -asm (".protected visibility"); -asm (".protected visibility_var"); +__asm__ (".protected visibility"); +__asm__ (".protected visibility_var"); #endif #endif #ifdef HIDDEN_NORMAL_TEST int shlib_visibility_com; -asm (".hidden shlib_visibility_com"); +__asm__ (".hidden shlib_visibility_com"); int shlib_visibility_checkcom () @@ -352,19 +352,19 @@ shlib_visibility_checkweak () #elif defined (HIDDEN_WEAK_TEST) #pragma weak shlib_visibility_undef_var_weak extern int shlib_visibility_undef_var_weak; -asm (".hidden shlib_visibility_undef_var_weak"); +__asm__ (".hidden shlib_visibility_undef_var_weak"); #pragma weak shlib_visibility_undef_func_weak extern int shlib_visibility_undef_func_weak (); -asm (".hidden shlib_visibility_undef_func_weak"); +__asm__ (".hidden shlib_visibility_undef_func_weak"); #pragma weak shlib_visibility_var_weak extern int shlib_visibility_var_weak; -asm (".hidden shlib_visibility_var_weak"); +__asm__ (".hidden shlib_visibility_var_weak"); #pragma weak shlib_visibility_func_weak extern int shlib_visibility_func_weak (); -asm (".hidden shlib_visibility_func_weak"); +__asm__ (".hidden shlib_visibility_func_weak"); int shlib_visibility_checkcom () diff --git a/ld/testsuite/ld-elfvsb/test.c b/ld/testsuite/ld-elfvsb/test.c index ca23d38..d2210ac 100644 --- a/ld/testsuite/ld-elfvsb/test.c +++ b/ld/testsuite/ld-elfvsb/test.c @@ -1,10 +1,10 @@ #pragma weak main_hidden_data extern int main_hidden_data; -asm (".hidden main_hidden_data"); +__asm__ (".hidden main_hidden_data"); #pragma weak main_hidden_func extern int main_hidden_func (); -asm (".hidden main_hidden_func"); +__asm__ (".hidden main_hidden_func"); int _start (void) |