From aac632cdaafc60988bda02f7947c5f9b2b117320 Mon Sep 17 00:00:00 2001 From: bwilson Date: Sat, 23 Mar 2002 01:28:03 +0000 Subject: [PATCH] * config/xtensa/xtensa.c (print_operand): Fix incorrect mode passed to adjust_address. Fix comment formatting. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51215 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 6 ++++++ gcc/config/xtensa/xtensa.c | 17 ++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 287ddeb12d8..e2a210283c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-03-22 Bob Wilson + + * config/xtensa/xtensa.c (print_operand): Fix incorrect mode + passed to adjust_address. Fix comment formatting. + + 2002-03-22 Zack Weinberg * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE. diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index a791da00fb7..e99d53740df 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -1926,10 +1926,8 @@ print_operand (file, op, letter) } case MEM: - /* - * For a volatile memory reference, emit a MEMW before the - * load or store. - */ + /* For a volatile memory reference, emit a MEMW before the + load or store. */ if (letter == 'v') { if (MEM_VOLATILE_P (op) && TARGET_SERIALIZE_VOLATILE) @@ -1937,7 +1935,16 @@ print_operand (file, op, letter) break; } else if (letter == 'N') - op = adjust_address (op, GET_MODE (op), 4); + { + enum machine_mode mode; + switch (GET_MODE (op)) + { + case DFmode: mode = SFmode; break; + case DImode: mode = SImode; break; + default: abort (); + } + op = adjust_address (op, mode, 4); + } output_address (XEXP (op, 0)); break; -- 2.11.4.GIT