mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
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:
@ -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>
|
2020-06-16 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE.
|
* testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE.
|
||||||
|
@ -29,14 +29,14 @@
|
|||||||
/* Local symbol format for generic ELF target.
|
/* Local symbol format for generic ELF target.
|
||||||
Use GCC -Wa,-L option to preserve this local symbol
|
Use GCC -Wa,-L option to preserve this local symbol
|
||||||
in the output object file. */
|
in the output object file. */
|
||||||
asm (".Lshould_be_discarded:");
|
__asm__ (".Lshould_be_discarded:");
|
||||||
|
|
||||||
#ifdef __powerpc__
|
#ifdef __powerpc__
|
||||||
/* Test wants to keep one local. Satisfy it. */
|
/* Test wants to keep one local. Satisfy it. */
|
||||||
#ifdef __powerpc64__
|
#ifdef __powerpc64__
|
||||||
asm (".reloc 0,R_PPC64_NONE,.LC0");
|
__asm__ (".reloc 0,R_PPC64_NONE,.LC0");
|
||||||
#else
|
#else
|
||||||
asm (".reloc 0,R_PPC_NONE,.LC0");
|
__asm__ (".reloc 0,R_PPC_NONE,.LC0");
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -25,11 +25,11 @@
|
|||||||
main program should override the shared library symbol. */
|
main program should override the shared library symbol. */
|
||||||
|
|
||||||
/* Local symbol format for generic ELF target. */
|
/* Local symbol format for generic ELF target. */
|
||||||
asm (".Lshould_be_discarded:");
|
__asm__ (".Lshould_be_discarded:");
|
||||||
|
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
/* Additional local symbol format for the i386 target. */
|
/* Additional local symbol format for the i386 target. */
|
||||||
asm (".Xshould_be_discarded:");
|
__asm__ (".Xshould_be_discarded:");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -37,4 +37,3 @@ main (void)
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user