From: Michael Hayes Date: Sun, 25 Jan 2004 23:58:39 +0000 (+0000) Subject: * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12fb52cf279c409d5a4bd373e0c2163b490aa296;p=gcc.git * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref. From-SVN: r76598 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b6de596f5c..186bdb985b2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-01-26 Michael Hayes + + * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref. + 2003-04-25 Chris Demetriou * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2, diff --git a/gcc/config/c4x/c4x.h b/gcc/config/c4x/c4x.h index 37d0c9b42dd..ca82dd81216 100644 --- a/gcc/config/c4x/c4x.h +++ b/gcc/config/c4x/c4x.h @@ -1305,7 +1305,7 @@ CUMULATIVE_ARGS; if (! TARGET_SMALL) \ { \ int i; \ - X = gen_rtx_LO_SUM (GET_MODE (X), \ + (X) = gen_rtx_LO_SUM (GET_MODE (X), \ gen_rtx_HIGH (GET_MODE (X), X), X); \ i = push_reload (XEXP (X, 0), NULL_RTX, \ &XEXP (X, 0), NULL, \ @@ -1316,6 +1316,12 @@ CUMULATIVE_ARGS; rld[i].reg_rtx = gen_rtx_REG (Pmode, DP_REGNO); \ rld[i].nocombine = 1; \ } \ + else \ + { \ + /* make_memloc in reload will substitute invalid memory \ + references. We need to fix them up. */ \ + (X) = gen_rtx_LO_SUM (Pmode, gen_rtx_REG (Pmode, DP_REGNO), (X)); \ + } \ goto WIN; \ } \ else if (MODE != HImode \