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]

function structure


Hi, all

RTL representation of function-call insns looks like:
(call (mem:fm addr) nbytes)
here the nbytes refers to the number of bytes of arguments being passed to the subroutine.

So, does (cfun->outgoing_args_size == 0) equals to (nbytes == 0) ?
(I mean in "int a();" both cfun->outgoing_args-size and nbytes are 0;
and in "int b(int);" neither of them is 0)

I've tested and it seemed that's right, but I'm not quite sure.
If this is wrong, please tell me how to determine whether a function has arguments, thanks.

WangYi

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