This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [hubicka@ucw.cz: Re: EH notes and split instructions]
- From: Jan Hubicka <jh at suse dot cz>
- To: Anthony Green <green at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Cc: Jan Hubicka <jh at suse dot cz>, Richard Henderson <rth at redhat dot com>, gcc-bugs at gcc dot gnu dot org
- Date: Thu, 7 Mar 2002 16:51:57 +0100
- Subject: Re: [hubicka@ucw.cz: Re: EH notes and split instructions]
- References: <20020226185112.GB8182@atrey.karlin.mff.cuni.cz> <20020226160937.F28704@redhat.com> <1014910009.4921.72.camel@dhcppc2> <20020228152805.GG6576@atrey.karlin.mff.cuni.cz> <1015029571.1754.256.camel@dhcppc2> <20020307143325.GF911@atrey.karlin.mff.cuni.cz> <1015514008.1819.5.camel@dhcppc2>
> On Thu, 2002-03-07 at 06:33, Jan Hubicka wrote:
> > Hmm, I feel ashamed to ask:
> > bash-2.04$ ./jc1 -O2 EngineUtils.java
> > EngineUtils.java:0: Can't find default package `java.lang'. Check the CLASSPATH
> > environment variable and the access to the archives
> > 1 error
>
> jc1 is complaining that it can find the core class files. These are
> installed as libgcj.jar. If you don't have this installed, and you have
> it built in your build directory, use "jc1
> -fclasspath=/path/to/libgcj.jar". If you don't even have it built, but
> have a configured tree, you might be able to get away with "jc1
> -fclasspath=/path/to/libjavasrc:/path/to/libjavabuild".
Should be fixed by attached patch.
I've bootstrapped it and going to install it as obivous to mainline.
OK for the branch?
Thu Mar 7 16:49:18 CET 2002 Jan Hubicka <jh@suse.cz>
* reload1.c (reload_cse_delete_noop_set): Purge dead edges.
Index: reload1.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/reload1.c,v
retrieving revision 1.326
diff -c -3 -p -r1.326 reload1.c
*** reload1.c 2002/03/06 23:07:08 1.326
--- reload1.c 2002/03/07 15:47:19
*************** static void
*** 8019,8024 ****
--- 8019,8025 ----
reload_cse_delete_noop_set (insn, value)
rtx insn, value;
{
+ bool purge = BLOCK_FOR_INSN (insn)->end == insn;
if (value)
{
PATTERN (insn) = gen_rtx_USE (VOIDmode, value);
*************** reload_cse_delete_noop_set (insn, value)
*** 8027,8032 ****
--- 8028,8035 ----
}
else
delete_insn (insn);
+ if (purge)
+ purge_dead_edges (BLOCK_FOR_INSN (insn));
}
/* See whether a single set SET is a noop. */