This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Suggestion for function attributes on x86 architecture
- From: dewar at gnat dot com (Robert Dewar)
- To: Richard dot Earnshaw at arm dot com, dewar at gnat dot com
- Cc: bkausbk at web dot de, gcc at gcc dot gnu dot org, rth at redhat dot com
- Date: Wed, 17 Apr 2002 14:11:29 -0400 (EDT)
- Subject: Re: Suggestion for function attributes on x86 architecture
<<Doesn't help much. Consider a function that needs registers saving (maybe
it calls another function). If you make that work, consider a function
that needs some stack allocating. How much do you allocate? If you leave
out the prologue and epilogue code you open up such a can of worms that
about the only thing you should allow inside the body of a function is an
asm statement that takes no arguments and sets no values.
>>
Yes, that sounds about right, basically this makes sense only if you are
taking over 100% repsonsibility for *all* the code in a function.