This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] reorg.c janitor patch 2: handle DEBUG_INSN
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Eric Botcazou <ebotcazou at adacore dot com>
- Date: Sun, 25 Nov 2012 12:59:48 +0100
- Subject: [patch] reorg.c janitor patch 2: handle DEBUG_INSN
Hi,
stop_search_p will reach the default case on DEBUG_INSN, and the
default case is "gcc_unreachable()". I suppose this means nobody is
using DWARF3+ on a dbr_sched target, it can't possibly ever have
worked. Eric?
Anyway, also obvious: Don't stop on DEBUG_INSNs.
Ciao!
Steven
* reorg.c (stop_search_p): Don't crash on DEBUG_INSNs.
Index: reorg.c
===================================================================
--- reorg.c (revision 193787)
+++ reorg.c (working copy)
@@ -260,6 +260,7 @@ stop_search_p (rtx insn, int labels_p)
{
case NOTE:
case CALL_INSN:
+ case DEBUG_INSN:
return 0;
case CODE_LABEL: