]> granicus.if.org Git - gc/commit
Fix 'undeclared identifier USRSTACK' compiler error on OpenBSD-6.2
authorPeter Wang <novalazy@gmail.com>
Wed, 24 Jan 2018 14:37:23 +0000 (17:37 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 24 Jan 2018 14:37:23 +0000 (17:37 +0300)
commitef879a9d20aac4d841196fc68fce12a50020d9d9
treeb0b2a7ab30e11fb2f621dd8687a6cbe3469b3bfd
parented70f24c5196c793518d3b8b0c6ee3c1830fe149
Fix 'undeclared identifier USRSTACK' compiler error on OpenBSD-6.2

Issue #198 (bdwgc).

USRSTACK macro is defined in <machine/vmparam.h> but that is protected
by "ifdef _KERNEL" in <uvm/uvm_param.h>.

* include/private/gcconfig.h [POWERPC && OPENBSD && !GC_OPENBSD_THREADS]
(STACKBOTTOM): Add comment.
* include/private/gcconfig.h [(POWERPC || SPARC || I386 || MIPS
|| HP_PA || ALPHA || ARM32 || SH && !SH4 || X86_64) && OPENBSD
&& !GC_OPENBSD_THREADS] (STACKBOTTOM): Define only if USRSTACK is
defined.
* include/private/gcconfig.h [MIPS && OPENBSD]: Reformat code.
include/private/gcconfig.h