This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR rtl-optimization/15381: reorg incorrectly removes
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: law at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 20 May 2004 13:20:06 -0400 (EDT)
- Subject: Re: [patch] Fix PR rtl-optimization/15381: reorg incorrectly removes
> If we wanted to be extra safe for 3.3/3.4 we could do something like:
>
> if (had_barrier
> || (GET_CODE (trial) == JUMP_INSN
> && (simplejump_p (trial) || GET_CODE (PATTER (trial)) == RETURN))
The reason I didn't do this is because it's too late to be adding in
missing barriers at this point. Reorg makes several passes through
the insn stream, and mark_target_live_regs needs a correct set of
barriers right from the start to work correctly.
Dave
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)