This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575
- From: "manjian2006 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 08 Mar 2014 10:43:42 +0000
- Subject: [Bug debug/60438] [4.9 Regression] dwarf2cfi :2239 still assert,not the same cause as PR 59575
- Auto-submitted: auto-generated
- References: <bug-60438-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60438
--- Comment #16 from linzj <manjian2006 at gmail dot com> ---
I have dodged this bug by the following patch:
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c
index 77196ee..d7c2b1e 100644
--- a/gcc/cfgcleanup.c
+++ b/gcc/cfgcleanup.c
@@ -1106,20 +1106,7 @@ old_insns_match_p (int mode ATTRIBUTE_UNUSED, rtx i1,
rtx i2)
/* ??? Do not allow cross-jumping between different stack levels. */
p1 = find_reg_note (i1, REG_ARGS_SIZE, NULL);
p2 = find_reg_note (i2, REG_ARGS_SIZE, NULL);
- if (p1 && p2)
- {
- p1 = XEXP (p1, 0);
- p2 = XEXP (p2, 0);
- if (!rtx_equal_p (p1, p2))
- return dir_none;
-
- /* ??? Worse, this adjustment had better be constant lest we
- have differing incoming stack levels. */
- if (!frame_pointer_needed
- && find_args_size_adjust (i1) == HOST_WIDE_INT_MIN)
- return dir_none;
- }
- else if (p1 || p2)
+ if (p1 || p2)
return dir_none;
p1 = PATTERN (i1);
I don't expect this patch used formally though.It's just a dodge.