aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@looxix.net>2005-06-27 23:26:34 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 15:30:03 -0700
commit2cec905cb5d11e5b3a928f1038788d7c23a1cc33 (patch)
treedf767d596dbe5322e3b99654d84626838d83d18a /compile-i386.c
parent[PATCH] remove multi-inclusion guard from target.c (diff)
downloadsparse-2cec905cb5d11e5b3a928f1038788d7c23a1cc33.tar.gz
sparse-2cec905cb5d11e5b3a928f1038788d7c23a1cc33.tar.bz2
sparse-2cec905cb5d11e5b3a928f1038788d7c23a1cc33.zip
[PATCH] makes some needlessly global code static
This makes some needlessly global code static so that sparse don't complain when self checking. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@looxix.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'compile-i386.c')
-rw-r--r--compile-i386.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/compile-i386.c b/compile-i386.c
index f740005..f2f7de7 100644
--- a/compile-i386.c
+++ b/compile-i386.c
@@ -169,8 +169,8 @@ struct atom {
};
-struct function *current_func = NULL;
-struct textbuf *unit_post_text = NULL;
+static struct function *current_func = NULL;
+static struct textbuf *unit_post_text = NULL;
static const char *current_section;
static void emit_comment(const char * fmt, ...);
@@ -256,7 +256,7 @@ static inline struct storage * reginfo_reg(struct reg_info *info)
return hardreg_storage_table + info->own_regno;
}
-struct storage * get_hardreg(struct storage *reg, int clear)
+static struct storage * get_hardreg(struct storage *reg, int clear)
{
struct reg_info *info = reg->reg;
const unsigned char *aliases;
@@ -278,7 +278,7 @@ busy:
exit(1);
}
-void put_reg(struct storage *reg)
+static void put_reg(struct storage *reg)
{
struct reg_info *info = reg->reg;
int regno = info->own_regno;
@@ -298,7 +298,7 @@ static struct regclass regclass_16 = { "16-bit", { AX, DX, CX, BX, SI, DI, BP }}
static struct regclass regclass_32 = { "32-bit", { EAX, EDX, ECX, EBX, ESI, EDI, EBP }};
static struct regclass regclass_64 = { "64-bit", { EAX_EDX, ECX_EBX, ESI_EDI }};
-struct regclass regclass_32_8 = { "32-bit bytes", { EAX, EDX, ECX, EBX }};
+static struct regclass regclass_32_8 = { "32-bit bytes", { EAX, EDX, ECX, EBX }};
static struct regclass *get_regclass_bits(int bits)
{
@@ -332,7 +332,7 @@ busy:
return 1;
}
-struct storage *get_reg(struct regclass *class)
+static struct storage *get_reg(struct regclass *class)
{
const unsigned char *regs = class->regs;
int regno;
@@ -347,7 +347,7 @@ struct storage *get_reg(struct regclass *class)
exit(1);
}
-struct storage *get_reg_value(struct storage *value, struct regclass *class)
+static struct storage *get_reg_value(struct storage *value, struct regclass *class)
{
struct reg_info *info;
struct storage *reg;