This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Simple returns are broken in gcc 3.X


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]