m68k.c (print_operand_address): When printing a SYMBOL_REF that ends in `.<letter>' put parentheses around it.
* config/m68k/m68k.c (print_operand_address): When printing a SYMBOL_REF that ends in `.<letter>' put parentheses around it. From-SVN: r25000
This commit is contained in:
parent
6a73406ee9
commit
c2ac2ff636
2 changed files with 18 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Feb 3 10:59:07 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
|
||||
|
||||
* config/m68k/m68k.c (print_operand_address): When printing a
|
||||
SYMBOL_REF that ends in `.<letter>' put parentheses around it.
|
||||
|
||||
Tue Feb 2 23:38:35 1999 David O'Brien <obrien@FreeBSD.org>
|
||||
|
||||
* i386/freebsd*.h now allows '$' in label names and does not use the
|
||||
|
|
|
@ -3176,7 +3176,19 @@ print_operand_address (file, addr)
|
|||
}
|
||||
else
|
||||
{
|
||||
output_addr_const (file, addr);
|
||||
/* Special case for SYMBOL_REF if the symbol name ends in
|
||||
`.<letter>', this can be mistaken as a size suffix. Put
|
||||
the name in parentheses. */
|
||||
if (GET_CODE (addr) == SYMBOL_REF
|
||||
&& strlen (XSTR (addr, 0)) > 2
|
||||
&& XSTR (addr, 0)[strlen (XSTR (addr, 0)) - 2] == '.')
|
||||
{
|
||||
putc ('(', file);
|
||||
output_addr_const (file, addr);
|
||||
putc (')', file);
|
||||
}
|
||||
else
|
||||
output_addr_const (file, addr);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue