diff options
author | Michael Meissner <meissner@redhat.com> | 2000-04-05 04:35:39 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2000-04-05 04:35:39 +0000 |
commit | 79ba6d3437c591fcada6417649089d974f6b1c0f (patch) | |
tree | 199a38a321735bef9aa10720bd0543eaac80a663 /gcc | |
parent | c0ee5d521e38b3c7f0fe43bc9b93c9ec2da32f81 (diff) | |
download | gcc-79ba6d3437c591fcada6417649089d974f6b1c0f.zip gcc-79ba6d3437c591fcada6417649089d974f6b1c0f.tar.gz gcc-79ba6d3437c591fcada6417649089d974f6b1c0f.tar.bz2 |
Make memory reference + update work with -mregnames
From-SVN: r32922
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 38c450f..8c113d2 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 83eb642..82ad6ed 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)); } |