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 4e7e444..cf4ebc9 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>