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
This commit is contained in:
Kazu Hirata 2002-12-25 15:02:03 +00:00 committed by Kazu Hirata
parent 7d6ac401b6
commit 7a770d8b10
2 changed files with 6 additions and 5 deletions

View 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

View File

@ -1654,10 +1654,6 @@ 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);
break;
}