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]
Other format: [Raw text]

Re: Suggestion for function attributes on x86 architecture


> I would assume that it never made sense to use __naked unless you used
> assembler insertions to do specialized epilogs or prologs

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.

R.


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