diff options
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/combine.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 00273e5fc39..0e4794ce36f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-11-05 Segher Boessenkool <segher@kernel.crashing.org> + + PR rtl-optimization/87871 + * combine.c (make_more_copies): Skip if dest is frame_pointer_rtx. + 2018-11-05 Paul Koning <ni1d@arrl.net> * doc/sourcebuild.texi (target attributes): Document new "inf" diff --git a/gcc/combine.c b/gcc/combine.c index 3e2042886d5..93bd3da26d7 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -14959,6 +14959,9 @@ make_more_copies (void) rtx dest = SET_DEST (set); if (dest == pc_rtx) continue; + /* See PR87871. */ + if (dest == frame_pointer_rtx) + continue; rtx src = SET_SRC (set); if (!(REG_P (src) && HARD_REGISTER_P (src))) continue; |