From 7a770d8b104d6ce00bf9d56b22dc6428b969f1ba Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 25 Dec 2002 15:02:03 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/config/h8300/h8300.c | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) 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; } -- 2.30.2