h8300.c (print_operand_address): Do not negate a negative number when printing one.
authorKazu Hirata <kazu@cs.umass.edu>
Wed, 25 Dec 2002 15:02:03 +0000 (15:02 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Wed, 25 Dec 2002 15:02:03 +0000 (15:02 +0000)
* config/h8300/h8300.c (print_operand_address): Do not negate
a negative number when printing one.

From-SVN: r60501

gcc/ChangeLog
gcc/config/h8300/h8300.c

index d51ea40..02e5ef5 100644 (file)
@@ -1,5 +1,10 @@
 2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
 
+       * config/h8300/h8300.c (print_operand_address): Do not negate
+       a negative number when printing one.
+
+2002-12-25  Kazu Hirata  <kazu@cs.umass.edu>
+
        * config/h8300/h8300-protos.h: Add prototypes for
        output_plussi, compute_plussi_length, and compute_plussi_cc.
        * config/h8300/h8300.c (output_plussi): New.
index 28405dd..deb64d0 100644 (file)
@@ -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;
       }