+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.
/* 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
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
{
return 0;
}
-