diff options
Diffstat (limited to 'contrib/gcc/cse.c')
-rw-r--r-- | contrib/gcc/cse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/gcc/cse.c b/contrib/gcc/cse.c index 447d972..72af39a 100644 --- a/contrib/gcc/cse.c +++ b/contrib/gcc/cse.c @@ -3518,6 +3518,9 @@ fold_rtx (rtx x, rtx insn) addr = addr_ent->const_rtx; } + /* Call target hook to avoid the effects of -fpic etc.... */ + addr = targetm.delegitimize_address (addr); + /* If address is constant, split it into a base and integer offset. */ if (GET_CODE (addr) == SYMBOL_REF || GET_CODE (addr) == LABEL_REF) base = addr; |