mirror of
https://github.com/pret/agbcc.git
synced 2026-07-19 16:51:16 -05:00
fix bug with -fhex-asm and negative integers
This commit is contained in:
parent
6c251db3ed
commit
5c3aa03ece
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user