libcpu: Use __asm instead of asm to mark variables as used
authorYonggang Luo <luoyonggang@gmail.com>
Sat, 17 Dec 2022 16:52:03 +0000 (00:52 +0800)
committerMark Wielaard <mark@klomp.org>
Wed, 21 Dec 2022 18:04:19 +0000 (19:04 +0100)
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>
libcpu/ChangeLog
libcpu/i386_disasm.c

index bd517b9..6d4b717 100644 (file)
@@ -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.
index c42f8d1..0994627 100644 (file)
@@ -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));
            }