aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-11-03 18:11:16 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1994-11-03 18:11:16 -0500
commitcfaaaf2e4b2ba4652b71933c3a3cff9f3a78f14c (patch)
treeb3eb1e2b9bb36bf565d4b468fdb1610595ca7a40 /gcc
parent015183c668917b4f875429430c28ddd0a0632856 (diff)
downloadgcc-cfaaaf2e4b2ba4652b71933c3a3cff9f3a78f14c.zip
gcc-cfaaaf2e4b2ba4652b71933c3a3cff9f3a78f14c.tar.gz
gcc-cfaaaf2e4b2ba4652b71933c3a3cff9f3a78f14c.tar.bz2
(print_operand): New code '*' to print TOC register number.
(input_operand): Allow address of TOC entry. From-SVN: r8380
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/rs6000.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 060b1c5..a572d74 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -838,6 +838,11 @@ print_operand (file, x, code)
asm_fprintf (file, RS6000_CALL_GLUE);
return;
+ case '*':
+ /* Write the register number of the TOC register. */
+ fputs (TARGET_MINIMAL_TOC ? "30" : "2", file);
+ return;
+
case 'A':
/* If X is a constant integer whose low-order 5 bits are zero,
write 'l'. Otherwise, write 'r'. This is a kludge to fix a bug