aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meissner <meissner@redhat.com>2000-04-05 04:35:39 +0000
committerMichael Meissner <meissner@redhat.com>2000-04-05 04:35:39 +0000
commit434666e3827d2f238a123a8a14d2ba052d5c5e0f (patch)
tree199a38a321735bef9aa10720bd0543eaac80a663
parent84de5288641bc3b6ad5b9b440513012d95cceff0 (diff)
Make memory reference + update work with -mregnames
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@32922 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/rs6000.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 38c450f9310..8c113d23f69 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2000-04-05 Michael Meissner <meissner@redhat.com>
+
+ * config/rs6000/rs6000.c (print_operand): Patch from Jonathan
+ Walton <jonboy@gordian.com> to make memory references with update
+ work wtih -mregnames.
+
2000-04-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* regrename.c (regno_first_use_in): Wrap prototype in PARAMS.
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 83eb642f251..82ad6ed086c 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -3928,11 +3928,11 @@ print_operand (file, x, code)
/* We need to handle PRE_INC and PRE_DEC here, since we need to
know the width from the mode. */
if (GET_CODE (XEXP (x, 0)) == PRE_INC)
- fprintf (file, "%d(%d)", GET_MODE_SIZE (GET_MODE (x)),
- REGNO (XEXP (XEXP (x, 0), 0)));
+ fprintf (file, "%d(%s)", GET_MODE_SIZE (GET_MODE (x)),
+ reg_names[REGNO (XEXP (XEXP (x, 0), 0))]);
else if (GET_CODE (XEXP (x, 0)) == PRE_DEC)
- fprintf (file, "%d(%d)", - GET_MODE_SIZE (GET_MODE (x)),
- REGNO (XEXP (XEXP (x, 0), 0)));
+ fprintf (file, "%d(%s)", - GET_MODE_SIZE (GET_MODE (x)),
+ reg_names[REGNO (XEXP (XEXP (x, 0), 0))]);
else
output_address (XEXP (x, 0));
}