summaryrefslogtreecommitdiff
path: root/libcpu/i386_disasm.c
diff options
context:
space:
mode:
authorYonggang Luo <luoyonggang@gmail.com>2022-12-18 00:52:03 +0800
committerMark Wielaard <mark@klomp.org>2022-12-21 19:04:19 +0100
commit1984819d6ee2dc56583d3f11b9f6e3b2f491f62e (patch)
tree6975eb46783ac4fdd8932ef639a524e446963a3f /libcpu/i386_disasm.c
parent304741e11018c29e7ff17751e05dcc5c786a3fd9 (diff)
downloadelfutils-1984819d6ee2dc56583d3f11b9f6e3b2f491f62e.tar.gz
libcpu: Use __asm instead of asm to mark variables as used
This block of code can not be removed. As it's contains a goto label enomem that been used elsewhere. Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Diffstat (limited to 'libcpu/i386_disasm.c')
-rw-r--r--libcpu/i386_disasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/i386_disasm.c b/libcpu/i386_disasm.c
index c42f8d1c..09946273 100644
--- a/libcpu/i386_disasm.c
+++ b/libcpu/i386_disasm.c
@@ -480,8 +480,8 @@ i386_disasm (Ebl *ebl __attribute__((unused)),
/* gcc is not clever enough to see the following variables
are not used uninitialized. */
- asm (""
- : "=mr" (opoff), "=mr" (correct_prefix), "=mr" (codep),
+ __asm (""
+ : "=mr" (opoff), "=mr" (correct_prefix), "=mr" (codep),
"=mr" (next_curr), "=mr" (len));
}