diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-17 20:26:25 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-17 20:26:25 +0000 |
commit | 8fcd36920e1b0e5ff92efb16f7ae05112cd4defa (patch) | |
tree | a9fa6061ef07e7648ecc19cffddd422e9f82b489 /tcg | |
parent | a5f1b965dae70f7d41721edaacb109d80721b966 (diff) | |
download | qemu-8fcd36920e1b0e5ff92efb16f7ae05112cd4defa.zip qemu-8fcd36920e1b0e5ff92efb16f7ae05112cd4defa.tar.gz qemu-8fcd36920e1b0e5ff92efb16f7ae05112cd4defa.tar.bz2 |
Fix some warnings that would be generated by gcc -Wmissing-prototypes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5022 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tcg.c | 17 | ||||
-rw-r--r-- | tcg/x86_64/tcg-target.c | 4 |
2 files changed, 4 insertions, 17 deletions
@@ -196,19 +196,6 @@ void tcg_pool_reset(TCGContext *s) s->pool_current = NULL; } -/* free all the pool */ -void tcg_pool_free(TCGContext *s) -{ - TCGPool *p, *p1; - - for(p = s->pool_first; p != NULL; p = p1) { - p1 = p->next; - qemu_free(p); - } - s->pool_first = NULL; - s->pool_cur = s->pool_end = NULL; -} - void tcg_context_init(TCGContext *s) { int op, total_args, n; @@ -655,7 +642,7 @@ void tcg_gen_shifti_i64(TCGv ret, TCGv arg1, } #endif -void tcg_reg_alloc_start(TCGContext *s) +static void tcg_reg_alloc_start(TCGContext *s) { int i; TCGTemp *ts; @@ -1025,7 +1012,7 @@ static inline void tcg_la_bb_end(TCGContext *s, uint8_t *dead_temps) /* Liveness analysis : update the opc_dead_iargs array to tell if a given input arguments is dead. Instructions updating dead temporaries are removed. */ -void tcg_liveness_analysis(TCGContext *s) +static void tcg_liveness_analysis(TCGContext *s) { int i, op_index, op, nb_args, nb_iargs, nb_oargs, arg, nb_ops; TCGArg *args; diff --git a/tcg/x86_64/tcg-target.c b/tcg/x86_64/tcg-target.c index 168faab..bc5694a 100644 --- a/tcg/x86_64/tcg-target.c +++ b/tcg/x86_64/tcg-target.c @@ -108,7 +108,7 @@ static inline int tcg_target_get_call_iarg_regs_count(int flags) } /* parse target specific constraints */ -int target_parse_constraint(TCGArgConstraint *ct, const char **pct_str) +static int target_parse_constraint(TCGArgConstraint *ct, const char **pct_str) { const char *ct_str; @@ -404,7 +404,7 @@ static inline void tgen_arithi64(TCGContext *s, int c, int r0, int64_t val) } } -void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val) +static void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val) { if (val != 0) tgen_arithi64(s, ARITH_ADD, reg, val); |