Commit 33d67485 by Andreas Schwab Committed by Andreas Schwab

m68k.c (m68k_delegitimize_address): Don't do anything if the argument is not a MEM.

* config/m68k/m68k.c (m68k_delegitimize_address): Don't do
anything if the argument is not a MEM.

From-SVN: r160763
parent 22963fee
2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
* config/m68k/m68k.c (m68k_delegitimize_address): Don't do
anything if the argument is not a MEM.
2010-06-14 Alexandre Oliva <aoliva@redhat.com> 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
PR debug/43650 PR debug/43650
......
...@@ -4624,16 +4624,17 @@ m68k_output_dwarf_dtprel (FILE *file, int size, rtx x) ...@@ -4624,16 +4624,17 @@ m68k_output_dwarf_dtprel (FILE *file, int size, rtx x)
and turn them back into a direct symbol reference. */ and turn them back into a direct symbol reference. */
static rtx static rtx
m68k_delegitimize_address (rtx x) m68k_delegitimize_address (rtx orig_x)
{ {
rtx orig_x = delegitimize_mem_from_attrs (x); rtx x, y;
rtx y;
rtx addend = NULL_RTX; rtx addend = NULL_RTX;
rtx result; rtx result;
x = orig_x; orig_x = delegitimize_mem_from_attrs (orig_x);
if (MEM_P (x)) if (! MEM_P (orig_x))
x = XEXP (x, 0); return orig_x;
x = XEXP (orig_x, 0);
if (GET_CODE (x) == PLUS if (GET_CODE (x) == PLUS
&& GET_CODE (XEXP (x, 1)) == CONST && GET_CODE (XEXP (x, 1)) == CONST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment