diff options
author | Alan Modra <amodra@gmail.com> | 2020-06-16 21:25:18 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-06-16 22:12:39 +0930 |
commit | 423054beadf317757d43aefb9eddfe711a42e3e1 (patch) | |
tree | d11d2a50f931a3dad26abe6c8be4e92a11255a73 /gold/testsuite/discard_locals_test.c | |
parent | c802e8a76c4eaa3a8a62d7dcfe7be98bf718a2f0 (diff) | |
download | fsf-binutils-gdb-423054beadf317757d43aefb9eddfe711a42e3e1.zip fsf-binutils-gdb-423054beadf317757d43aefb9eddfe711a42e3e1.tar.gz fsf-binutils-gdb-423054beadf317757d43aefb9eddfe711a42e3e1.tar.bz2 |
Use __asm__ rather than asm in gold testsuite
discard_locals_test.c:28:6: error: expected declaration specifiers or
‘...’ before string constant
asm (".Lshould_be_discarded:");
^
* testsuite/discard_locals_test.c: Replace uses of asm with __asm__.
* testsuite/discard_locals_relocatable_test.c: Likewise.
Diffstat (limited to 'gold/testsuite/discard_locals_test.c')
-rw-r--r-- | gold/testsuite/discard_locals_test.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gold/testsuite/discard_locals_test.c b/gold/testsuite/discard_locals_test.c index c27ea35..96c5651 100644 --- a/gold/testsuite/discard_locals_test.c +++ b/gold/testsuite/discard_locals_test.c @@ -25,11 +25,11 @@ main program should override the shared library symbol. */ /* Local symbol format for generic ELF target. */ -asm (".Lshould_be_discarded:"); +__asm__ (".Lshould_be_discarded:"); #ifdef __i386__ /* Additional local symbol format for the i386 target. */ -asm (".Xshould_be_discarded:"); +__asm__ (".Xshould_be_discarded:"); #endif int @@ -37,4 +37,3 @@ main (void) { return 0; } - |