This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: One more optimize_mode_switching() problem
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: One more optimize_mode_switching() problem
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 7 Feb 2001 11:00:04 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <orhf26fjjv.fsf@guarana.lsd.ic.unicamp.br>
On Wed, Feb 07, 2001 at 04:13:24PM -0200, Alexandre Oliva wrote:
> If the last insn of a function is a DFmode store, and prologue and
> epilogue must run in single mode, the mode switching would be inserted
> before the store, because there was not NOTE_INSN_BASIC_BLOCK after it
> that ptr->insn_ptr could be pointed to.
This doesn't seem right at all. If you need to change modes
on exit of a function, you should be using insert_insn_on_edge
to the EXIT_BLOCK.
r~