making naked attr generally available

Joern Rennecke amylaar@cygnus.co.uk
Tue Jun 1 13:42:00 GMT 1999


> 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.


More information about the Gcc-patches mailing list