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: Bug 20375 - ia64 varadic regression


Dave Korn wrote:

  There was under varargs, which didn't require to pass a named argument to
va_start; it's only with stdargs that it would be impossible.

  I suspect that this is the underlying reason for the code having developed
this way:  sometimes the first variadic arg is the last named arg (stdargs),
sometimes it is the first arg _after_ the last named arg.

ah, yes, that explains the later comment
   /* Handle stdargs.  LAST_NAMED is a slight mis-nomer; it's also true
	 for the unnamed dummy argument following the last named argument.
	 See ABI silliness wrt strict_argument_naming and NAMED_ARG.  So
	 we only want to do this when we get to the actual last named
	 argument, which will be the first time LAST_NAMED gets set.  */
I was trying to work out what the 'unnamed dummy argument' was.  As we
no longer support varargs, this can be excised.

nathan

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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