01d7ebdd80
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. |
||
---|---|---|
.. | ||
Makefile | ||
ansi.h | ||
aout_machdep.h | ||
armreg.h | ||
asm.h | ||
bswap.h | ||
bus_defs.h | ||
bus_funcs.h | ||
byte_swap.h | ||
cdefs.h | ||
cpu.h | ||
cpu_counter.h | ||
db_machdep.h | ||
disklabel.h | ||
elf_machdep.h | ||
endian.h | ||
endian_machdep.h | ||
fenv.h | ||
float.h | ||
frame.h | ||
ieee.h | ||
ieeefp.h | ||
int_const.h | ||
int_fmtio.h | ||
int_limits.h | ||
int_mwgwtypes.h | ||
int_types.h | ||
intr.h | ||
kcore.h | ||
limits.h | ||
lock.h | ||
locore.h | ||
math.h | ||
mcontext.h | ||
mutex.h | ||
param.h | ||
pcb.h | ||
pmap.h | ||
pmc.h | ||
proc.h | ||
profile.h | ||
psl.h | ||
pte.h | ||
ptrace.h | ||
reg.h | ||
rwlock.h | ||
setjmp.h | ||
signal.h | ||
sysarch.h | ||
trap.h | ||
types.h | ||
vmparam.h | ||
wchar_limits.h |