diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2002-12-25 15:02:03 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2002-12-25 15:02:03 +0000 |
commit | 7a770d8b104d6ce00bf9d56b22dc6428b969f1ba (patch) | |
tree | 832718e6af495506b988c79e8f36ba6ecccfa754 /gcc | |
parent | 7d6ac401b6272a6a2109bdcca220798bbf6ddf90 (diff) | |
download | gcc-7a770d8b104d6ce00bf9d56b22dc6428b969f1ba.zip gcc-7a770d8b104d6ce00bf9d56b22dc6428b969f1ba.tar.gz gcc-7a770d8b104d6ce00bf9d56b22dc6428b969f1ba.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d51ea40..02e5ef5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 28405dd..deb64d0 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; } |