diff options
author | Jakub Jelinek <jakub@redhat.com> | 1999-12-16 18:12:10 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 1999-12-16 18:12:10 +0100 |
commit | 0d9484c5ad47e319a075c5c091634b8adc3b9412 (patch) | |
tree | 611ac7fd408925ef72f49ef4382a96bf45a956f2 /gcc | |
parent | 76a7c776f9da521c17d06aa131457a4137a437af (diff) | |
download | gcc-0d9484c5ad47e319a075c5c091634b8adc3b9412.zip gcc-0d9484c5ad47e319a075c5c091634b8adc3b9412.tar.gz gcc-0d9484c5ad47e319a075c5c091634b8adc3b9412.tar.bz2 |
sparc.c (print_operand): Cast fprintf arguments to match the format.
* config/sparc/sparc.c (print_operand): Cast fprintf arguments to
match the format.
From-SVN: r30981
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/sparc/sparc.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f6d8982..d2a6582 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +1999-12-16 Jakub Jelinek <jakub@redhat.com> + + * config/sparc/sparc.c (print_operand): Cast fprintf arguments + to match the format. + 1999-12-16 David S. Miller <davem@redhat.com> * expr.c (emit_move_insn_1): Only emit clobbers if one of diff --git a/gcc/config/sparc/sparc.c b/gcc/config/sparc/sparc.c index 98bc402..ee2c974 100644 --- a/gcc/config/sparc/sparc.c +++ b/gcc/config/sparc/sparc.c @@ -5512,10 +5512,10 @@ print_operand (file, x, code) || GET_MODE_CLASS (GET_MODE (x)) == MODE_INT)) { if (CONST_DOUBLE_HIGH (x) == 0) - fprintf (file, "%u", CONST_DOUBLE_LOW (x)); + fprintf (file, "%u", (unsigned int) CONST_DOUBLE_LOW (x)); else if (CONST_DOUBLE_HIGH (x) == -1 && CONST_DOUBLE_LOW (x) < 0) - fprintf (file, "%d", CONST_DOUBLE_LOW (x)); + fprintf (file, "%d", (int) CONST_DOUBLE_LOW (x)); else output_operand_lossage ("long long constant not a valid immediate operand"); } |