]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
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 bd517b94568473f2c79aea1b35090f73d68952eb..6d4b717a6114baf4d600eaf557cacef49b9d10d9 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 c42f8d1cc1974b4ed5ed204f2cfe98ad280272c1..09946273e02874c006e25c508e6530459c9ef285 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));
            }