Message ID | 0DA23CC379F5F945ACB41CF394B982776A6DAAF9@LEMAIL01.le.imgtec.org |
---|---|
State | New |
Headers | show |
Andrew Bennett <Andrew.Bennett@imgtec.com> writes: > gcc/ > * config/mips/mips.c (mips_print_operand_address): Pass the mode > argument to > mips_classify_address. Changelog content should wrap at 74 chars. > I have tested the patch on the mips-mti-elf toolchain and there have > been no regressions. OK, if a linux testsuite run is also clean. I do not expect any changes in output from this change. Thanks, Matthew
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 399f231..6cdda3b 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -8634,11 +8634,14 @@ mips_print_operand (FILE *file, rtx op, int letter) /* Implement TARGET_PRINT_OPERAND_ADDRESS. */ static void -mips_print_operand_address (FILE *file, machine_mode /*mode*/, rtx x) +mips_print_operand_address (FILE *file, machine_mode mode, rtx x) { struct mips_address_info addr; - if (mips_classify_address (&addr, x, word_mode, true)) + if (mode == VOIDmode) + mode = word_mode; + + if (mips_classify_address (&addr, x, mode, true)) switch (addr.type) { case ADDRESS_REG: