This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] ignore DEBUG_INSN from shorten branches.
- From: Hariharan <hariharans at picochip dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 10 Sep 2009 09:40:15 +0100
- Subject: [PATCH] ignore DEBUG_INSN from shorten branches.
Hello,
I am attaching a small patch to ignore DEBUG_INSNs from
shorten_branches. This seems to be a problem only for ports that call
shorten_branches multiple times.
Okay to commit?
Thanks
Hari
ChangeLog:
* final.c (shorten_branches): Ignore DEBUG_INSNs.
Index: final.c
===================================================================
--- final.c (revision 151579)
+++ final.c (working copy)
@@ -1081,7 +1081,7 @@
INSN_ADDRESSES (uid) = insn_current_address + insn_lengths[uid];
if (NOTE_P (insn) || BARRIER_P (insn)
- || LABEL_P (insn))
+ || LABEL_P (insn) || DEBUG_INSN_P(insn))
continue;
if (INSN_DELETED_P (insn))
continue;