]> granicus.if.org Git - gc/commitdiff
Fix word size and alignment for OpenBSD/mips64(el)
authorJasper Lievisse Adriaanse <jasper@openbsd.org>
Sat, 27 Jun 2015 13:21:29 +0000 (13:21 +0000)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 15 May 2019 08:21:44 +0000 (11:21 +0300)
* include/private/gcconfig.h [MIPS && OPENBSD] (CPP_WORDSZ): Define
macro; add comment.
* include/private/gcconfig.h [MIPS && OPENBSD] (ALIGNMENT): Define to 8
(instead of 4).

include/private/gcconfig.h

index 4e7e444a8881679357934e7e90303b73f3c0217b..cf4ebc9e58cd3ab2a3195a67dc40f277529eecd1 100644 (file)
@@ -1850,7 +1850,8 @@ EXTERN_C_BEGIN
 #  endif
 #  ifdef OPENBSD
 #     define OS_TYPE "OPENBSD"
-#     define ALIGNMENT 4
+#     define CPP_WORDSZ 64 /* all OpenBSD/mips platforms are 64-bit */
+#     define ALIGNMENT 8
 #     ifndef GC_OPENBSD_THREADS
         EXTERN_C_END
 #       include <sys/param.h>