This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix m32r_is_insn
- From: Nick Clifton <nickc at redhat dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 28 Sep 2009 13:17:38 +0100
- Subject: Fix m32r_is_insn
Hi Guys,
I am applying the patch below to fix the m32r_is_insn function in
the M32R backend so that it will ignore debugging insns.
Cheers
Nick
gcc/ChangeLog
2009-09-28 Nick Clifton <nickc@redhat.com>
* config/m32r/m32r.c (m32r_is_insn): Return false for debugging
insns.
Index: gcc/config/m32r/m32r.c
===================================================================
--- gcc/config/m32r/m32r.c (revision 152230)
+++ gcc/config/m32r/m32r.c (working copy)
@@ -1211,7 +1211,7 @@
static int
m32r_is_insn (rtx insn)
{
- return (INSN_P (insn)
+ return (NONDEBUG_INSN_P (insn)
&& GET_CODE (PATTERN (insn)) != USE
&& GET_CODE (PATTERN (insn)) != CLOBBER
&& GET_CODE (PATTERN (insn)) != ADDR_VEC);