This is the mail archive of the gcc-patches@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: [patch] alias.c: Replace "return NULL_RTX" with "return 0".


On Jun 12, 2003, "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu> wrote:

> I thought variadic function introduce extra overhead to avoid this
> issue.

Good ABIs generally try to get things to work, even if at some
overhead.  Such ABIs are not mandated by the Standard.

> Otherwise how would va_arg know where to get the data from?

It would look at the type of the argument and choose the appropriate
register.  We already do this in ABIs that pass floating-point values
in floating-point registers, for example, even in varargs.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer


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