This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RTL sharing bootstrap failure on sparc-sun-solaris2.10
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- Cc: gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org, jh at suse dot cz
- Date: Thu, 06 Sep 2007 19:23:27 +0200
- Subject: Re: RTL sharing bootstrap failure on sparc-sun-solaris2.10
- References: <Pine.GSO.4.58.0709061316510.12686@caipclassic.rutgers.edu>
Kaveh R. GHAZI wrote:
(Sorry, first one bounced from gcc@ because it was over 400k)
Hi Jan,
On sparc-sun-solaris2.10, I'm getting new bootstrap failures in stage2
complaining several times about rtl sharing. I've included four .i files
for modules that ICEed during stage2, and the cc1 invocations below.
Would you please take a look?
Jan proposed the below patch.
I successfully tested it and I'm testing now.
Regards,
Andreas
Index: reorg.c
===================================================================
--- reorg.c (revision 128181)
+++ reorg.c (working copy)
@@ -3991,6 +3991,9 @@
if (GET_CODE (pat) == SEQUENCE)
insn = XVECEXP (pat, 0, 0);
}
+ if (INSN_P (insn) && GET_CODE (PATTERN (insn)) == USE
+ && INSN_P (XEXP (PATTERN (insn), 0)))
+ delete_insn (insn);
if (!JUMP_P (insn))
continue;