qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6740] Sparse fixes: add extern to ELF opcode tables to avoid warnings
@ 2009-03-07 15:59 Blue Swirl
  0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2009-03-07 15:59 UTC (permalink / raw)
  To: qemu-devel

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,                                                             \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-07 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-07 15:59 [Qemu-devel] [6740] Sparse fixes: add extern to ELF opcode tables to avoid warnings Blue Swirl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).