diff options
author | Yonggang Luo <luoyonggang@gmail.com> | 2022-12-18 00:52:03 +0800 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2022-12-21 19:04:19 +0100 |
commit | 1984819d6ee2dc56583d3f11b9f6e3b2f491f62e (patch) | |
tree | 6975eb46783ac4fdd8932ef639a524e446963a3f /libcpu | |
parent | 304741e11018c29e7ff17751e05dcc5c786a3fd9 (diff) | |
download | elfutils-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')
-rw-r--r-- | libcpu/ChangeLog | 4 | ||||
-rw-r--r-- | libcpu/i386_disasm.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog index bd517b94..6d4b717a 100644 --- a/libcpu/ChangeLog +++ b/libcpu/ChangeLog @@ -1,3 +1,7 @@ +2022-12-18 Yonggang Luo <luoyonggang@gmail.com> + + * i386_disasm.c (i386_disasm): Use __asm instead of asm. + 2022-12-20 Mark Wielaard <mark@klomp.org> * bpf_disasm.c: Include common.h and libeblP.h. 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)); } |