From: Yonggang Luo Date: Sat, 17 Dec 2022 16:52:03 +0000 (+0800) Subject: libcpu: Use __asm instead of asm to mark variables as used X-Git-Tag: elfutils-0.189~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1984819d6ee2dc56583d3f11b9f6e3b2f491f62e;p=thirdparty%2Felfutils.git 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 --- diff --git a/libcpu/ChangeLog b/libcpu/ChangeLog index bd517b945..6d4b717a6 100644 --- a/libcpu/ChangeLog +++ b/libcpu/ChangeLog @@ -1,3 +1,7 @@ +2022-12-18 Yonggang Luo + + * i386_disasm.c (i386_disasm): Use __asm instead of asm. + 2022-12-20 Mark Wielaard * bpf_disasm.c: Include common.h and libeblP.h. diff --git a/libcpu/i386_disasm.c b/libcpu/i386_disasm.c index c42f8d1cc..09946273e 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)); }