diff options
Diffstat (limited to 'gcc/alias.c')
-rw-r--r-- | gcc/alias.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/alias.c b/gcc/alias.c index cb5a6363779..be46281dcfc 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1131,6 +1131,9 @@ find_base_term (x) case LABEL_REF: return x; + case ADDRESSOF: + return REG_BASE_VALUE (frame_pointer_rtx); + default: return 0; } @@ -1454,6 +1457,18 @@ memrefs_conflict_p (xsize, x, ysize, y, c) return memrefs_conflict_p (xsize, x, ysize, XEXP (y, 0), c); } + if (GET_CODE (x) == ADDRESSOF) + { + if (y == frame_pointer_rtx + || GET_CODE (y) == ADDRESSOF) + return xsize <= 0 || ysize <= 0; + } + if (GET_CODE (y) == ADDRESSOF) + { + if (x == frame_pointer_rtx) + return xsize <= 0 || ysize <= 0; + } + if (CONSTANT_P (x)) { if (GET_CODE (x) == CONST_INT && GET_CODE (y) == CONST_INT) |