aboutsummaryrefslogtreecommitdiff
path: root/gcc/basic-block.h
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel1@de.ibm.com>2006-09-13 10:59:03 +0000
committerAndreas Krebbel <krebbel@gcc.gnu.org>2006-09-13 10:59:03 +0000
commitfcc42bcad4fac328cb9696186c30012e2454c3e2 (patch)
treed8fd1e5efab556d1ff0ca0b73b5f295e5373292b /gcc/basic-block.h
parent4b7b277aff44cffe643cff9b84d13968b29fa177 (diff)
downloadgcc-fcc42bcad4fac328cb9696186c30012e2454c3e2.zip
gcc-fcc42bcad4fac328cb9696186c30012e2454c3e2.tar.gz
gcc-fcc42bcad4fac328cb9696186c30012e2454c3e2.tar.bz2
flow.c (calculate_global_regs_live): Invalidate eh registers on eh edges.
2006-09-13 Andreas Krebbel <krebbel1@de.ibm.com> * flow.c (calculate_global_regs_live): Invalidate eh registers on eh edges. Renamed invalidated_by_call to invalidated_by_eh_edge. (propagate_block): Handle eh registers as if they were set at basic block start. * except.c (dw2_build_landing_pads): Don't emit clobbers for eh registers. * global.c (global_conflicts): Make eh registers to conflict with pseudos live at basic block begin. * basic_block.h (bb_has_eh_pred): New function. From-SVN: r116920
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r--gcc/basic-block.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h
index bc9f665..a95e5b8 100644
--- a/gcc/basic-block.h
+++ b/gcc/basic-block.h
@@ -1175,4 +1175,18 @@ extern bool rtx_equiv_p (rtx *, rtx, int, struct equiv_info *);
/* In cfgrtl.c */
extern bool condjump_equiv_p (struct equiv_info *, bool);
+/* Return true when one of the predecessor edges of BB is marked with FLAGS. */
+static inline bool bb_has_eh_pred (basic_block bb)
+{
+ edge e;
+ edge_iterator ei;
+
+ FOR_EACH_EDGE (e, ei, bb->preds)
+ {
+ if (e->flags & EDGE_EH)
+ return true;
+ }
+ return false;
+}
+
#endif /* GCC_BASIC_BLOCK_H */