Message ID | 9e78a6b1a3239ef2bfa57361f9d452647ac123f3.1465347472.git.segher@kernel.crashing.org |
---|---|
State | New |
Headers | show |
diff --git a/gcc/regcprop.c b/gcc/regcprop.c index 933cc8a..0c01aab 100644 --- a/gcc/regcprop.c +++ b/gcc/regcprop.c @@ -829,6 +829,10 @@ copyprop_hardreg_forward_1 (basic_block bb, struct value_data *vd) } } + /* Don't change prologue instructions. */ + if (RTX_FRAME_RELATED_P (insn)) + set = NULL; + /* Special-case plain move instructions, since we may well be able to do the move from a different register class. */ if (set && REG_P (SET_SRC (set)))