This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR optimization/12215
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 15 Sep 2003 07:58:36 +0200
- Subject: Re: Fix PR optimization/12215
- References: <200309122358.20727.ebotcazou@libertysurf.fr>
+ if (control_flow_insn_p (p))
+ /* p can cause a control flow transfer so it
+ is the last insn of a basic block. We can't
+ therefore use emit_insn_after. */
+ emit_insn_before (move, next_nonnote_insn (p));
+ else
+ emit_insn_after (move, p);
next_active_insn might be more correct here.
--
Eric Botcazou