This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: making naked attr generally available
- To: bcurrie at tssc dot co dot nz (Bill Currie)
- Subject: Re: making naked attr generally available
- From: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Date: Tue, 1 Jun 1999 21:40:48 +0100 (BST)
- Cc: law at cygnus dot com, bill at taniwha dot tssc dot co dot nz, egcs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com
> Bad news: the return statement (ie ret on i386) still gets output. I
> still have to find the code that generates that.
The rtl emitting code might do it, or jump.c (look for gen_return).
I think the easiest way to fix this is just to change the predicate
of the "return" instruction in the *.md file to always return false
while a naked function is compiled.
That will force rtl generation to generate jumps to the end of the function
instead of returns, and inhibit any optimizations that generate returns.