aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@issan.cs.uni-dortmund.de>1999-02-03 02:03:23 +0000
committerAndreas Schwab <schwab@gcc.gnu.org>1999-02-03 02:03:23 +0000
commitc2ac2ff636b15b945c63532fc8d69ec9f294f943 (patch)
tree6c3fc09c1f63e3be3457586d428ac862596ec42c /gcc
parent6a73406ee9839b8ecb1172a3e2d14c6e0abbab10 (diff)
downloadgcc-c2ac2ff636b15b945c63532fc8d69ec9f294f943.zip
gcc-c2ac2ff636b15b945c63532fc8d69ec9f294f943.tar.gz
gcc-c2ac2ff636b15b945c63532fc8d69ec9f294f943.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/m68k/m68k.c14
2 files changed, 18 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 68b3338..d2fb5d5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/m68k/m68k.c b/gcc/config/m68k/m68k.c
index 244fa7f..3dc331f 100644
--- a/gcc/config/m68k/m68k.c
+++ b/gcc/config/m68k/m68k.c
@@ -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;
}