libexecinfo: Include terminating null in byte count

Otherwise, a formatted string with a strlen equal to the remaining
buffer space would have the last character omitted (because vsnprintf
always null-terminates), and later the assert in backtrace_symbols_fmt
would fail.

MFC after:	3 days
Sponsored by:	DARPA, AFRL


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258426 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For PCI<->PCI bridges, #address-cells may be 3. Allow this when parsing the
ibm,dma-window properties. This is especially a concern when
#ibm,dma-address-cells is not specified and we have to use the regular
#address-cells property.

MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
gcc: another round of merges from the gcc pre-43 branch.

Bring The following revisions from the gcc43 branch[1]:

118360, 118361, 118363, 118576, 119820,
123906, 125246, and 125721.

They all have in common that the were merged long ago
into Apple's gcc and should help improve the general
quality of the compiler and make it easier to bring
new features from Apple's gcc42.

For details please review the additions to the files:
gcc/ChangeLog.gcc43
gcc/cp/ChangeLog.gcc43 (new, adds previous revisions)

Reference:
[1] http://gcc.gnu.org/viewcvs/gcc/trunk/?pathrev=126700

Obtained from:	gcc pre4.3 (GPLv2) branch
MFC after:	3 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libstdc++: merge non-abi changes from Apple's developer tools

Take some changes from Apple's Developer Tools 4.0 [1]:

block.patch
emergency-buffer-reduction.patch
test_cleanup.patch

vector_copy_no_alloc.patch
	problem/6473222 copy-constructing a std::vector	from an
	empty std::vector calls malloc

2008-10-27  Howard Hinnant
stl_tree_system_header.patch
	Added #pragma GCC system_header to stl_tree.h.
copy_doc.patch
	Corrected documentation concerning copy in stl_algobase.h.
string_compare.patch
	Fixed basic_string.h, basic_string.tcc, incorrect 64bit to
	32bit narrowing.

Reference:

[1] http://opensource.apple.com/source/libstdcxx/libstdcxx-39/patches-4.2.1/

Obtained from:	Apple
MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove unused line -- cruft left over from SVN r258360.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Disable amd64 boot time memory test by default

The page presence memory test takes a long time on large memory systems
and has little value on contemporary amd64 hardware.

Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update copyrights

Submitted by: skreuzer


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Update text related to Intel CPU support and Apple hardware support.

Submitted by: skreuzer


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258433 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Refactor amd64 startup SMAP parsing

Extracted from the projects/uefi branch, this change is a reasonable
cleanup and will reduce the diffs to review when bringing in the
UEFI work.

Reviewed by:	kib@
Sponsored by:	The FreeBSD Foundation


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Sync with NetBSD.  The funtional change is to make the output when
comparing a directory to an mtree file more compatible with fmtree when
FreeBSD 9 compatiblity mode is on.  This output is clearly intended for
humans not computers, but some tools such as mergemaster's -U option rely
on it.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258437 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix reference to ioctl(2).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258438 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
f_die() (see `bsdconfig includes -dF die') uses a dialog box (and has been
documented as such; I just forgot). These utilities are command-line only
and as such should stick to either using f_die without arguments or printf)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
mdoc: remove EOL whitespace.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
cxgbe(4): update the internal list of device features.

MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258441 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Kill ARM_VFP_SUPPORT, it's been removed some time ago.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258443 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Catch up with OpenPAM Nummularia.

This fixes libpam for build32 target to dlopen() pam libraries in /usr/lib32.

Reviewed by:	des (a while ago)
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix cross compilation after r258428.

Reviewed by:	pfg


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258445 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add static where appropriate.
Sync with some of DragonflyBSD's latest cleanups

Reviewed by:	mjg


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258446 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Introduce a WEAK_REFERENCE() alias and use it. Get rid of the CNAME and the
CONCAT macros in SYS.h.

Reviewed by:	bde, kib


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258447 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Have the GPT probe return a lower priority when the MBR is not a PMBR
The purpose of the PMBR is to have the disk appear in use to GPT
unaware utilities (like fdisk).  However, if the PMBR has been changed
by a GPT unaware utlity then we must assume that this was deliberate
(as it involved removal of the special slice) and we should not treat
the unmodified GPT-specific sectors as being valid.  By lowering the
probe priority in that case, the MBR scheme will take precedence and
the kernel will end up using the MBR and not the GPT. We will still
use the GPT if the kernel does not support the MBR scheme.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@258448 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f