This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Q: inline of functions with var args?
- To: Oskar Enoksson <osken393 at student dot liu dot se>
- Subject: Re: Q: inline of functions with var args?
- From: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Date: 06 Jan 1999 11:16:16 +0100
- Cc: egcs at cygnus dot com
- References: <Pine.GSO.3.96.990105192114.15307F-100000@lystra.lysator.liu.se>
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