From: Kazu Hirata Date: Wed, 25 Dec 2002 15:02:03 +0000 (+0000) Subject: h8300.c (print_operand_address): Do not negate a negative number when printing one. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a770d8b104d6ce00bf9d56b22dc6428b969f1ba;p=gcc.git h8300.c (print_operand_address): Do not negate a negative number when printing one. * config/h8300/h8300.c (print_operand_address): Do not negate a negative number when printing one. From-SVN: r60501 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d51ea40d6ca..02e5ef52ac9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-12-25 Kazu Hirata + + * config/h8300/h8300.c (print_operand_address): Do not negate + a negative number when printing one. + 2002-12-25 Kazu Hirata * config/h8300/h8300-protos.h: Add prototypes for diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 28405dd6f6e..deb64d048ae 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -1654,11 +1654,7 @@ print_operand_address (file, addr) int n = INTVAL (addr); if (TARGET_H8300) n = (int) (short) n; - if (n < 0) - /* ??? Why the special case for -ve values? */ - fprintf (file, "-%d", -n); - else - fprintf (file, "%d", n); + fprintf (file, "%d", n); break; }