summaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2019-08-13 11:04:52 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2019-08-13 11:04:52 +0000
commit3010ee5514a16902c1c31fd8afbbd0285d0134c0 (patch)
treea86ebb4ea1de27932e3f5b6d6b3446334d6e4f1e /gcc/rtl.h
parentfb802d91461a2d65e9618abb6298c6ca7d39e7d7 (diff)
Handle casesi dispatch tablejumps in create_trace_edges (as well)
* rtlanal.c (tablejump_casesi_pattern): New function, to determine if a tablejump insn is a casesi dispatcher. Extracted from patch_jump_insn. * rtl.h (tablejump_casesi_pattern): Declare. * cfgrtl.c (patch_jump_insn): Use it. * dwarf2cfi.c (create_trace_edges): Use it. testsuite/ * gnat.dg/casesi.ad[bs], test_casesi.adb: New test. From-SVN: r274377
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 039ab05f951..bb67a133142 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -2945,6 +2945,7 @@ extern rtvec shallow_copy_rtvec (rtvec);
extern bool shared_const_p (const_rtx);
extern rtx copy_rtx (rtx);
extern enum rtx_code classify_insn (rtx);
+extern rtx tablejump_casesi_pattern (const rtx_insn *insn);
extern void dump_rtx_statistics (void);
/* In emit-rtl.c */