This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[vta] fix thinko in lower-subreg handling of debug insns
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 03 Jan 2008 03:50:57 -0200
- Subject: [vta] fix thinko in lower-subreg handling of debug insns
In my previous patch for lower-subreg, a debug insn containing a
subreg of a concatn that can't be simplified (showed up on ia64 IIRC)
would cause a crash. This patch fixes it. I'm checking it in the
vta branch.
for gcc/ChangeLog.vta
from Alexandre Oliva <aoliva@redhat.com>
* lower-subreg.c (adjust_decomposed_uses): Unshare concatn
that couldn't be simplified.
Index: gcc/lower-subreg.c
===================================================================
--- gcc/lower-subreg.c.orig 2007-11-23 18:05:54.000000000 -0200
+++ gcc/lower-subreg.c 2007-12-29 03:53:37.000000000 -0200
@@ -551,6 +551,8 @@ adjust_decomposed_uses (rtx *px, void *d
if (x)
*px = x;
+ else
+ x = copy_rtx (*px);
}
if (resolve_reg_p (x))
--
Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member http://www.fsfla.org/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}