diff options
author | YamaArashi <shadow962@live.com> | 2016-10-18 00:23:50 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-10-18 00:24:15 -0700 |
commit | 5c3aa03eceb8ba45eb635d1e7cbb742b709aac7b (patch) | |
tree | 8f8625ed05e8d621a8184705c346b586a6918cae /gcc | |
parent | 6c251db3ed98d343712b3868d2752a31ea62a7cf (diff) |
fix bug with -fhex-asm and negative integers
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/final.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/final.c b/gcc/final.c index a886f87..87f9641 100755 --- a/gcc/final.c +++ b/gcc/final.c @@ -2670,14 +2670,14 @@ output_addr_const (file, x) if (GET_CODE (XEXP (x, 0)) == CONST_INT) { output_addr_const (file, XEXP (x, 1)); - if (INTVAL (XEXP (x, 0)) >= 0) + if (INTVAL (XEXP (x, 0)) >= 0 || flag_hex_asm) fprintf (file, "+"); output_addr_const (file, XEXP (x, 0)); } else { output_addr_const (file, XEXP (x, 0)); - if (INTVAL (XEXP (x, 1)) >= 0) + if (INTVAL (XEXP (x, 1)) >= 0 || flag_hex_asm) fprintf (file, "+"); output_addr_const (file, XEXP (x, 1)); } |