NetBSD/sys
pooka 01d7ebdd80 Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant
pthread types in C++ builds, attempt 2.

The problem with attempt 1 was making assumptions of what the MD
__cpu_simple_lock_t (declared volatile) looks like.  To get a same type
except non-volatile, we change the MD type to __cpu_simple_lock_nv_t
and typedef __cpu_simple_lock_t as a volatile __cpu_simple_lock_nv_t.
IMO, __cpu_simple_lock_t should not be volatile at all, but changing it
now is too risky.

Fixes at least Rumprun w/ gcc 5.1/5.2.  Furthermore, the mpd application
(and possibly others) will no longer require NetBSD-specific patches.

Tested: build.sh for i386, Rumprun for x86_64 w/ gcc 5.2.

Based on the patch from Christos in lib/49989.
2015-08-27 12:30:50 +00:00
..
altq
arch Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant 2015-08-27 12:30:50 +00:00
coda include "ioconf.h" to get the 'void <driver>attach(int count);' prototype. 2015-08-20 14:40:16 +00:00
compat to garnish, dust with _KERNEL_OPT 2015-08-24 22:50:32 +00:00
conf netbsd depends on $S/kern/kern_ksyms_buf.c; rarely updated but better safe. 2015-08-27 06:28:09 +00:00
crypto More rnd.h user cleanup. 2015-04-13 22:43:41 +00:00
ddb Add support for 'q' qualifier for 64-bit values on examine and write. 2015-06-06 22:06:05 +00:00
dev Added some missing SPI device names. 2015-08-27 09:59:06 +00:00
dist/pf include "ioconf.h" to get the 'void <driver>attach(int count);' prototype. 2015-08-20 14:40:16 +00:00
external CID 1320410: Don't call free on uninitalized pointer. 2015-08-26 02:01:55 +00:00
fs Use vfs_vnode_iterator for udf_do_sync. 2015-08-24 08:31:56 +00:00
gdbscripts
ipkdb
kern Constify a little. 2015-08-27 02:43:20 +00:00
lib Hack up dinode usage to be 64 vs. 32 as needed. Part 1. 2015-08-12 18:28:00 +00:00
miscfs Unused inits (harmless). 2015-07-24 13:02:52 +00:00
modules consistency with: src/sys/external/bsd/drm2/i915drm/files.i915drmkms 2015-08-21 09:10:48 +00:00
net sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
net80211 sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
netatalk make connect syscall use sockaddr_big and modify pr_{send,connect} 2015-05-02 17:18:03 +00:00
netbt make connect syscall use sockaddr_big and modify pr_{send,connect} 2015-05-02 17:18:03 +00:00
netinet sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
netinet6 sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
netipsec make connect syscall use sockaddr_big and modify pr_{send,connect} 2015-05-02 17:18:03 +00:00
netisdn
netkey
netmpls sprinkle _KERNEL_OPT 2015-08-24 22:21:26 +00:00
netnatm make connect syscall use sockaddr_big and modify pr_{send,connect} 2015-05-02 17:18:03 +00:00
netsmb include "ioconf.h" to get the 'void <driver>attach(int count);' prototype. 2015-08-20 14:40:16 +00:00
nfs Fix soft NFS force unmount 2015-07-15 03:28:55 +00:00
opencrypto include "ioconf.h" to get the 'void <driver>attach(int count);' prototype. 2015-08-20 14:40:16 +00:00
rump initialize ncpuonline 2015-08-25 14:53:25 +00:00
secmodel Add kernel code to support intrctl(8). 2015-08-17 06:16:02 +00:00
stand
sys Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant 2015-08-27 12:30:50 +00:00
ufs lfs_writevnodes: replace mnt_vnodelist traversal with vfs_vnode_iterator. 2015-08-21 07:35:56 +00:00
uvm to garnish, dust with _KERNEL_OPT 2015-08-24 22:50:32 +00:00
Makefile