+2019-03-25 Alexander Monakov <amonakov@ispras.ru>
+
+ PR rtl-optimization/88347
+ PR rtl-optimization/88423
+ * sched-deps.c (sched_analyze_insn): Take into account that for
+ tablejumps the barrier appears after a label and a jump_table_data.
+
2019-03-25 Martin Sebor <msebor@redhat.com>
PR c/89812
if (JUMP_P (insn))
{
rtx_insn *next = next_nonnote_nondebug_insn (insn);
+ /* ??? For tablejumps, the barrier may appear not immediately after
+ the jump, but after a label and a jump_table_data insn. */
+ if (next && LABEL_P (next) && NEXT_INSN (next)
+ && JUMP_TABLE_DATA_P (NEXT_INSN (next)))
+ next = NEXT_INSN (NEXT_INSN (next));
if (next && BARRIER_P (next))
reg_pending_barrier = MOVE_BARRIER;
else
+2019-03-25 David Malcolm <dmalcolm@redhat.com>
+
+ PR rtl-optimization/88347
+ PR rtl-optimization/88423
+ * gcc.c-torture/compile/pr88347.c: New test.
+ * gcc.c-torture/compile/pr88423.c: New test.
+
2019-03-25 Martin Sebor <msebor@redhat.com>
PR c/89812
--- /dev/null
+/* { dg-do compile { target { powerpc-*-* powerpcle-*-* } } } */
+/* { dg-options "-mcpu=603e -fsched-stalled-insns -fsched2-use-superblocks -fschedule-insns2 -fno-dce -fno-guess-branch-probability --param max-cse-insns=4" } */
+
+#include "../../gcc.target/powerpc/ppc-switch-2.c"
--- /dev/null
+/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-options "-march=skylake -fPIC -fsched2-use-superblocks -fno-if-conversion" } */
+/* { dg-require-effective-target fpic } */
+
+#include "../../gcc.dg/20030309-1.c"