From 434666e3827d2f238a123a8a14d2ba052d5c5e0f Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 5 Apr 2000 04:35:39 +0000 Subject: Make memory reference + update work with -mregnames git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@32922 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.c | 8 ++++---- 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 + + * config/rs6000/rs6000.c (print_operand): Patch from Jonathan + Walton to make memory references with update + work wtih -mregnames. + 2000-04-04 Kaveh R. Ghazi * 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)); } -- cgit v1.2.3