GNU Binutils with patches for OS216
修訂 | 423054beadf317757d43aefb9eddfe711a42e3e1 (tree) |
---|---|
時間 | 2020-06-16 21:42:39 |
作者 | Alan Modra <amodra@gmai...> |
Commiter | Alan Modra |
Use asm rather than asm in gold testsuite
discard_locals_test.c:28:6: error: expected declaration specifiers or
‘...’ before string constant
* testsuite/discard_locals_test.c: Replace uses of asm with asm.
* testsuite/discard_locals_relocatable_test.c: Likewise.
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2020-06-16 Alan Modra <amodra@gmail.com> |
2 | 2 | |
3 | + * testsuite/discard_locals_test.c: Replace uses of asm with __asm__. | |
4 | + * testsuite/discard_locals_relocatable_test.c: Likewise. | |
5 | + | |
6 | +2020-06-16 Alan Modra <amodra@gmail.com> | |
7 | + | |
3 | 8 | * testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE. |
4 | 9 | (plugin_test_wrap_symbols_1.o): Likewise. |
5 | 10 | (plugin_test_wrap_symbols_2.o): Likewise. |
@@ -29,14 +29,14 @@ | ||
29 | 29 | /* Local symbol format for generic ELF target. |
30 | 30 | Use GCC -Wa,-L option to preserve this local symbol |
31 | 31 | in the output object file. */ |
32 | -asm (".Lshould_be_discarded:"); | |
32 | +__asm__ (".Lshould_be_discarded:"); | |
33 | 33 | |
34 | 34 | #ifdef __powerpc__ |
35 | 35 | /* Test wants to keep one local. Satisfy it. */ |
36 | 36 | #ifdef __powerpc64__ |
37 | -asm (".reloc 0,R_PPC64_NONE,.LC0"); | |
37 | +__asm__ (".reloc 0,R_PPC64_NONE,.LC0"); | |
38 | 38 | #else |
39 | -asm (".reloc 0,R_PPC_NONE,.LC0"); | |
39 | +__asm__ (".reloc 0,R_PPC_NONE,.LC0"); | |
40 | 40 | #endif |
41 | 41 | #endif |
42 | 42 |
@@ -25,11 +25,11 @@ | ||
25 | 25 | main program should override the shared library symbol. */ |
26 | 26 | |
27 | 27 | /* Local symbol format for generic ELF target. */ |
28 | -asm (".Lshould_be_discarded:"); | |
28 | +__asm__ (".Lshould_be_discarded:"); | |
29 | 29 | |
30 | 30 | #ifdef __i386__ |
31 | 31 | /* Additional local symbol format for the i386 target. */ |
32 | -asm (".Xshould_be_discarded:"); | |
32 | +__asm__ (".Xshould_be_discarded:"); | |
33 | 33 | #endif |
34 | 34 | |
35 | 35 | int |
@@ -37,4 +37,3 @@ main (void) | ||
37 | 37 | { |
38 | 38 | return 0; |
39 | 39 | } |
40 | - |