FreeBSD src
Go to file
Poul-Henning Kamp b7a652ab84 I have no idea what this is all about, but it works and Bruce hasn't
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)
1997-02-07 20:22:15 +00:00
bin Sweep through the tree fixing mmap() usage: 1997-01-16 21:58:40 +00:00
contrib Config information for FreeBSD 1997-02-07 03:46:28 +00:00
eBones Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
etc Add worm(4)'s bdev entry. 1997-02-06 22:23:26 +00:00
games The fact that people can't put the proper source on Kierkegaards 1997-02-03 20:15:11 +00:00
gnu Don't force postscript output when "man -t" is specified. 1997-02-05 14:22:13 +00:00
include Submitted by: John Birrell 1997-02-05 23:26:09 +00:00
lib Include "setlocale.h" for _PathLocale like other parts already did 1997-02-07 13:05:51 +00:00
libexec Fix a hop count datatype bogon pointed out in PR#2642 (though my fix 1997-02-07 20:03:49 +00:00
lkm Make ibcs2 a little bit saver. Add copyright. 1997-02-02 14:40:38 +00:00
release It's easier to go forwards than backwards with this, and the RELENG_2_1_0 1997-02-07 04:27:24 +00:00
sbin Replace "mfs" with "mount_mfs" in the NAME section. 1997-02-06 17:49:55 +00:00
secure Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00
share Updates for the 2.1.7-to-be. 1997-02-07 19:17:22 +00:00
sys I have no idea what this is all about, but it works and Bruce hasn't 1997-02-07 20:22:15 +00:00
tools Add a tools to get at the primary or grown defect list of a SCSI disk. 1997-02-02 11:39:51 +00:00
usr.bin Fix off-by-one error in proxy host:port parser. 1997-02-07 17:55:01 +00:00
usr.sbin Yet another formatting consistency check. 1997-02-07 11:31:42 +00:00
COPYRIGHT This is the official 4.4 Lite copyright. 1994-09-11 07:53:28 +00:00
Makefile Add uudecode to lib-tools so that the -p option is available for 1997-01-21 13:12:10 +00:00
README Make the long-awaited change from $Id$ to $FreeBSD$ 1997-01-14 07:20:47 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on: $FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel.  Please see the top of the Makefile for more information on
the standard build targets and compile-time flags.

Building a kernel with config(8) is a somewhat more involved process,
documentation for which can be found at:
   http://www.freebsd.org/handbook/kernelconfig.html
And in the config(8) man page.

The sample kernel configuration files reside in the sys/i386/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file LINT contains entries for all possible devices, not
just those commonly used, and is meant more as a general reference
than an actual kernel configuration file (a kernel built from it
wouldn't even run).


Source Roadmap:
---------------
bin		System/User commands.

contrib		Packages contributed by 3rd parties.

eBones		Kerberos package - NOT FOR EXPORT!

etc		Template files for /etc

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

lib		System libraries.

libexec		System daemons.

lkm		Loadable Kernel Modules.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		DES and DES-related utilities - NOT FOR EXPORT!

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/handbook/synching.html