]> granicus.if.org Git - gc/commitdiff
Fix gcconfig.h to handle mips64-linux target
authorDavid Daney <ddaney@avtrex.com>
Tue, 27 Dec 2011 07:18:11 +0000 (11:18 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 27 Dec 2011 07:18:11 +0000 (11:18 +0400)
(Apply part of commit 3cf0bae from 'gcc_boehmgc' branch)

* include/private/gcconfig.h (CPP_WORDSZ, ALIGNMENT): Handle
mips64-linux n64 ABI.

include/private/gcconfig.h

index ebc1fc36510d2ce4215924a40d6653ba9bb32104..df14b6c329f5dcbad4220c6beb84f2d2dcff50d0 100644 (file)
 #     define DATAEND (ptr_t)(_end)
       extern int __data_start[];
 #     define DATASTART ((ptr_t)(__data_start))
-#     define CPP_WORDSZ _MIPS_SZPTR
-#     define ALIGNMENT (_MIPS_SZPTR/8)
+#     ifdef _MIPS_SZPTR
+#       define CPP_WORDSZ _MIPS_SZPTR
+#       define ALIGNMENT (_MIPS_SZPTR/8)
+#     else
+#       define ALIGNMENT 4
+#     endif
 #     if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 2 || __GLIBC__ > 2
 #       define LINUX_STACKBOTTOM
 #     else