This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Simple returns are broken in gcc 3.X
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Subject: Re: Simple returns are broken in gcc 3.X
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 30 Jul 2001 19:30:23 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <200107302233.f6UMXEMK026255@hiauly1.hia.nrc.ca>
On Mon, Jul 30, 2001 at 06:33:14PM -0400, John David Anglin wrote:
> It looks to me like there needs to be a common set of code used to expand
> returns. Thoughts?
You'd do just as well to disable the "return" pattern until
after reload. Given that most other targets can't guarantee
to use return directly until then you'll save yourself from
executing code paths that no one else uses.
Further, the post-reload optimizers can easily put the return
everywhere it's needed, so you don't actually gain anything
by generating it early.
r~