qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [6740] Sparse fixes: add extern to ELF opcode tables to avo


From: Blue Swirl
Subject: [Qemu-devel] [6740] Sparse fixes: add extern to ELF opcode tables to avoid warnings
Date: Sat, 07 Mar 2009 15:59:10 +0000

Revision: 6740
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6740
Author:   blueswir1
Date:     2009-03-07 15:59:09 +0000 (Sat, 07 Mar 2009)
Log Message:
-----------
Sparse fixes: add extern to ELF opcode tables to avoid warnings

Modified Paths:
--------------
    trunk/target-ppc/translate.c

Modified: trunk/target-ppc/translate.c
===================================================================
--- trunk/target-ppc/translate.c        2009-03-07 15:53:15 UTC (rev 6739)
+++ trunk/target-ppc/translate.c        2009-03-07 15:59:09 UTC (rev 6740)
@@ -604,6 +604,7 @@
 
 #if defined(DO_PPC_STATISTICS)
 #define GEN_OPCODE(name, op1, op2, op3, invl, _typ)                           \
+extern opcode_t opc_##name;                                                   \
 OPCODES_SECTION opcode_t opc_##name = {                                       \
     .opc1 = op1,                                                              \
     .opc2 = op2,                                                              \
@@ -633,6 +634,7 @@
 }
 #else
 #define GEN_OPCODE(name, op1, op2, op3, invl, _typ)                           \
+extern opcode_t opc_##name;                                                   \
 OPCODES_SECTION opcode_t opc_##name = {                                       \
     .opc1 = op1,                                                              \
     .opc2 = op2,                                                              \
@@ -646,6 +648,7 @@
     .oname = stringify(name),                                                 \
 }
 #define GEN_OPCODE2(name, onam, op1, op2, op3, invl, _typ)                    \
+extern opcode_t opc_##name;                                                   \
 OPCODES_SECTION opcode_t opc_##name = {                                       \
     .opc1 = op1,                                                              \
     .opc2 = op2,                                                              \
@@ -661,6 +664,7 @@
 #endif
 
 #define GEN_OPCODE_MARK(name)                                                 \
+extern opcode_t opc_##name;                                                   \
 OPCODES_SECTION opcode_t opc_##name = {                                       \
     .opc1 = 0xFF,                                                             \
     .opc2 = 0xFF,                                                             \





reply via email to

[Prev in Thread] Current Thread [Next in Thread]