From 3010ee5514a16902c1c31fd8afbbd0285d0134c0 Mon Sep 17 00:00:00 2001 From: Olivier Hainque Date: Tue, 13 Aug 2019 11:04:52 +0000 Subject: 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 --- gcc/rtl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/rtl.h') diff --git a/gcc/rtl.h b/gcc/rtl.h index 039ab05..bb67a13 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 */ -- cgit v1.1