• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


コミットメタ情報

リビジョン423054beadf317757d43aefb9eddfe711a42e3e1 (tree)
日時2020-06-16 21:42:39
作者Alan Modra <amodra@gmai...>
コミッターAlan Modra

ログメッセージ

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.

変更サマリ

差分

--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,5 +1,10 @@
11 2020-06-16 Alan Modra <amodra@gmail.com>
22
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+
38 * testsuite/Makefile.am (export_dynamic_plugin.o): Use CXXCOMPILE.
49 (plugin_test_wrap_symbols_1.o): Likewise.
510 (plugin_test_wrap_symbols_2.o): Likewise.
--- a/gold/testsuite/discard_locals_relocatable_test.c
+++ b/gold/testsuite/discard_locals_relocatable_test.c
@@ -29,14 +29,14 @@
2929 /* Local symbol format for generic ELF target.
3030 Use GCC -Wa,-L option to preserve this local symbol
3131 in the output object file. */
32-asm (".Lshould_be_discarded:");
32+__asm__ (".Lshould_be_discarded:");
3333
3434 #ifdef __powerpc__
3535 /* Test wants to keep one local. Satisfy it. */
3636 #ifdef __powerpc64__
37-asm (".reloc 0,R_PPC64_NONE,.LC0");
37+__asm__ (".reloc 0,R_PPC64_NONE,.LC0");
3838 #else
39-asm (".reloc 0,R_PPC_NONE,.LC0");
39+__asm__ (".reloc 0,R_PPC_NONE,.LC0");
4040 #endif
4141 #endif
4242
--- a/gold/testsuite/discard_locals_test.c
+++ b/gold/testsuite/discard_locals_test.c
@@ -25,11 +25,11 @@
2525 main program should override the shared library symbol. */
2626
2727 /* Local symbol format for generic ELF target. */
28-asm (".Lshould_be_discarded:");
28+__asm__ (".Lshould_be_discarded:");
2929
3030 #ifdef __i386__
3131 /* Additional local symbol format for the i386 target. */
32-asm (".Xshould_be_discarded:");
32+__asm__ (".Xshould_be_discarded:");
3333 #endif
3434
3535 int
@@ -37,4 +37,3 @@ main (void)
3737 {
3838 return 0;
3939 }
40-