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 d51ea40d6cae5937322cc9ef51a099efc8d3fb3d..02e5ef52ac9f58d65263e2c0eeaa79327f8c01f1 100644 (file)
@@ -1,3 +1,8 @@
+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
index 28405dd6f6e10c750c108ab408feac6246c96fee..deb64d048aea614f2dcdd16d13d6fd57a762fc34 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;
       }