aboutsummaryrefslogtreecommitdiff
path: root/i386-gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'i386-gen.c')
-rw-r--r--i386-gen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/i386-gen.c b/i386-gen.c
index 759f33c..a93d5a2 100644
--- a/i386-gen.c
+++ b/i386-gen.c
@@ -70,9 +70,6 @@ enum {
/* maximum alignment (for aligned attribute support) */
#define MAX_ALIGN 8
-/* generate jmp to a label */
-#define gjmp2(instr,lbl) oad(instr,lbl)
-
/******************************************************/
#else /* ! TARGET_DEFS_ONLY */
/******************************************************/
@@ -148,7 +145,7 @@ ST_FUNC void gsym(int t)
}
/* instruction + 4 bytes data. Return the address of the data */
-ST_FUNC int oad(int c, int s)
+static int oad(int c, int s)
{
int t;
if (nocode_wanted)
@@ -159,6 +156,9 @@ ST_FUNC int oad(int c, int s)
return t;
}
+/* generate jmp to a label */
+#define gjmp2(instr,lbl) oad(instr,lbl)
+
/* output constant with relocation if 'r & VT_SYM' is true */
ST_FUNC void gen_addr32(int r, Sym *sym, long c)
{