summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/varargs.h
Commit message (Collapse)AuthorAgeFilesLines
* Gcc 3.1 varargs support.obrien2002-05-101-0/+18
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fixed va_arg() to work for small args (as in stdarg.h).bde1997-06-211-9/+6
|
* Fixed the gcc ellipsis change to work with gcc-1.x.bde1997-02-281-3/+5
|
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-221-1/+1
| | | | ready for it yet.
* I have no idea what this is all about, but it works and Bruce hasn'tphk1997-02-071-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | complained so it cannot be entirely bad :-) I include the email that probably explains it for people who already know: > >Compiling with -O3 inlines functions. However the function that is being > >inlined in makeinfo.c (add_word_args()) is a vararg function and must not be > >inlined. > > > >The code in question is K&R style, and AFIK, there is no way for the compiler > >to determine that the function uses vararg. Either change the code to use > >prototypes, or use stdarg, or add a directive to prevent inlining. > > Not declaring a varargs function as varargs before it is used gives > undefined behaviour. > > However, in practice the bug is probably in FreeBSD's <varargs.h>, which > doesn't use gcc's __builtin_next_arg(). gcc should notice that it is > used and not inline functions that have it. <stdarg.h.> uses it, but I > think there's another gcc builtin that it should be using. Patch attached. The ellipsis causes gcc to flag this as a varargs function, and the name "__builtin_va_alist" is special cased in gcc to hide the last argument in the arglist. Reviewed by: bde & phk Submitted by: jlemon@americantv.com (Jonathan Lemon)
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Added $Id$dg1994-08-021-0/+1
|
* BSD 4.4 Lite Kernel Sourcesrgrimes1994-05-251-0/+62
OpenPOWER on IntegriCloud