diff options
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 7f72e68..7173013 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -1078,6 +1078,16 @@ old_insns_match_p (int mode ATTRIBUTE_UNUSED, rtx i1, rtx i2) if (NOTE_INSN_BASIC_BLOCK_P (i1) && NOTE_INSN_BASIC_BLOCK_P (i2)) return dir_both; + /* ??? Do not allow cross-jumping between different stack levels. */ + p1 = find_reg_note (i1, REG_ARGS_SIZE, NULL); + p2 = find_reg_note (i2, REG_ARGS_SIZE, NULL); + if (p1) + p1 = XEXP (p1, 0); + if (p2) + p2 = XEXP (p2, 0); + if (!rtx_equal_p (p1, p2)) + return dir_none; + p1 = PATTERN (i1); p2 = PATTERN (i2); |