NetBSD/sys/arch/sparc
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
..
compile
conf Don't expand unwanted symbols by cpp(1). 2015-08-25 02:58:59 +00:00
dev Use C99-style initializers for struct dkdriver. 2015-04-26 15:15:19 +00:00
fpu
include Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant 2015-08-27 12:30:50 +00:00
sparc Sync sparc64 kernel's OF_seek with ofwboot's one, but sparc version 2015-03-27 06:10:25 +00:00
stand Remove .proc 1, it has been ignored by gas for ages. 2015-08-23 10:59:15 +00:00
Makefile