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.
This commit is contained in:
parent
c802e8a76c
commit
423054bead
|
@ -1,3 +1,8 @@
|
|||
2020-06-16 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* testsuite/discard_locals_test.c: Replace uses of asm with __asm__.
|
||||
* testsuite/discard_locals_relocatable_test.c: Likewise.
|
||||
|
||||
2020-06-16 Alan Modra <amodra@gmail.com>
|
||||
|
||||
* testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE.
|
||||
|
|
|
@ -29,14 +29,14 @@
|
|||
/* Local symbol format for generic ELF target.
|
||||
Use GCC -Wa,-L option to preserve this local symbol
|
||||
in the output object file. */
|
||||
asm (".Lshould_be_discarded:");
|
||||
__asm__ (".Lshould_be_discarded:");
|
||||
|
||||
#ifdef __powerpc__
|
||||
/* Test wants to keep one local. Satisfy it. */
|
||||
#ifdef __powerpc64__
|
||||
asm (".reloc 0,R_PPC64_NONE,.LC0");
|
||||
__asm__ (".reloc 0,R_PPC64_NONE,.LC0");
|
||||
#else
|
||||
asm (".reloc 0,R_PPC_NONE,.LC0");
|
||||
__asm__ (".reloc 0,R_PPC_NONE,.LC0");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue