Commit c2ac2ff6 by Andreas Schwab Committed by Andreas Schwab

m68k.c (print_operand_address): When printing a SYMBOL_REF that ends in…

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
parent 6a73406e
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment