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]

Re: Q: inline of functions with var args?


Oskar Enoksson <osken393@student.liu.se> writes:

|> Can egcs inline functions with variable number of arguments?
|> 
|> For example, the following does not seem to be inlined by the current 
|> snapshot. Maybe there is some fundamental reason why it can't be inlined?

That's because va_start/va_arg usually do something very unclean, like
taking the address of a parameter and expecting that to give contiguous
access to the unnamed parameters.  That won't work when inlined.

-- 
Andreas Schwab                                      "And now for something
schwab@issan.cs.uni-dortmund.de                      completely different"
schwab@gnu.org


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