From 339ba33b4f6f90b30f41705cfc71e1ec2b81ac27 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Mon, 19 May 2014 06:49:58 +0000 Subject: reg-notes.def (CROSSING_JUMP): Likewise. gcc/ * reg-notes.def (CROSSING_JUMP): Likewise. * rtl.h (rtx_def): Update comment for jump flag. (CROSSING_JUMP_P): Define. * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead of a REG_CROSSING_JUMP note. * cfghooks.c (tidy_fallthru_edges): Likewise. * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise. * emit-rtl.c (try_split): Likewise. * haifa-sched.c (sched_create_recovery_edges): Likewise. * ifcvt.c (find_if_case_1, find_if_case_2): Likewise. * jump.c (redirect_jump_2): Likewise. * reorg.c (follow_jumps, fill_slots_from_thread): Likewise. (relax_delay_slots): Likewise. * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise. (bbit_di): Likewise. * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise. * config/sh/sh.md (jump_compact): Likewise. * bb-reorder.c (rotate_loop): Likewise. (pass_duplicate_computed_gotos::execute): Likewise. (add_reg_crossing_jump_notes): Rename to... (update_crossing_jump_flags): ...this. (pass_partition_blocks::execute): Update accordingly. From-SVN: r210603 --- gcc/rtl.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/rtl.h') diff --git a/gcc/rtl.h b/gcc/rtl.h index d9460a0..10ae1e9 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -276,6 +276,7 @@ struct GTY((chain_next ("RTX_NEXT (&%h)"), /* 1 in a MEM if we should keep the alias set for this mem unchanged when we access a component. + 1 in a JUMP_INSN if it is a crossing jump. 1 in a CALL_INSN if it is a sibling call. 1 in a SET that is for a return. In a CODE_LABEL, part of the two-bit alternate entry field. @@ -942,6 +943,10 @@ extern void rtl_check_failed_flag (const char *, const_rtx, const char *, #define INSN_DELETED_P(RTX) \ (RTL_INSN_CHAIN_FLAG_CHECK ("INSN_DELETED_P", (RTX))->volatil) +/* 1 if JUMP RTX is a crossing jump. */ +#define CROSSING_JUMP_P(RTX) \ + (RTL_FLAG_CHECK1 ("CROSSING_JUMP_P", (RTX), JUMP_INSN)->jump) + /* 1 if RTX is a call to a const function. Built from ECF_CONST and TREE_READONLY. */ #define RTL_CONST_CALL_P(RTX) \ -- cgit v1.1