diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index 2a6ee837af2e4cee146d1e9b31536cc0488be443..fc9c8a1895f5b87695ca1a37c9ccb69a33e7fca3 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -285,7 +285,7 @@ static inline void tgen_arithi(TCGContext *s, int c, int r0, int32_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_arithi(s, ARITH_ADD, reg, val); diff --git a/tcg/tcg.c b/tcg/tcg.c index f5399a1914edc966c0173c76a0a8952d343b77f8..35ca05a4efd49b8e6275bb6945c49004bfef8dba 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -886,7 +886,7 @@ void tcg_dump_ops(TCGContext *s, FILE *outfile) val = args[1]; th = tcg_find_helper(s, val); if (th) { - fprintf(outfile, th->name); + fprintf(outfile, "%s", th->name); } else { if (c == INDEX_op_movi_i32) fprintf(outfile, "0x%x", (uint32_t)val);