diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2018-04-26 15:21:09 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2018-04-26 15:21:09 +0000 |
commit | 7ee1f872ca6effdc4bb5bdb229ff1f53b89e9385 (patch) | |
tree | c5ee16213b94233b8839722176d5b11fe7d89b08 /gcc/loop-invariant.c | |
parent | b1ea83878ef38b1dd22c042349ec4c1bcf48240e (diff) | |
download | gcc-7ee1f872ca6effdc4bb5bdb229ff1f53b89e9385.zip gcc-7ee1f872ca6effdc4bb5bdb229ff1f53b89e9385.tar.gz gcc-7ee1f872ca6effdc4bb5bdb229ff1f53b89e9385.tar.bz2 |
* loop-invariant.c (may_assign_reg_p): Return false for frame pointer.
From-SVN: r259683
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r-- | gcc/loop-invariant.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c index bd31a51..e3b2eda1 100644 --- a/gcc/loop-invariant.c +++ b/gcc/loop-invariant.c @@ -660,6 +660,9 @@ may_assign_reg_p (rtx x) return (GET_MODE (x) != VOIDmode && GET_MODE (x) != BLKmode && can_copy_p (GET_MODE (x)) + /* Do not mess with the frame pointer adjustments that can + be generated e.g. by expand_builtin_setjmp_receiver. */ + && x != frame_pointer_rtx && (!REG_P (x) || !HARD_REGISTER_P (x) || REGNO_REG_CLASS (REGNO (x)) != NO_REGS)); |