summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Daney <ddaney@avtrex.com>2011-12-27 08:18:11 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-12-27 13:33:46 +0100
commit1b084eb5412aa0a6f7b8f7767841b810f1b17e8d (patch)
treedffcf7169885c296e6948737c322f06f40b51b36 /include
parentc2ff2621f11db61915c5a962e597f7633a7435b8 (diff)
Fix gcconfig.h to handle mips64-linux target
(Apply part of commit 3cf0bae from 'gcc_boehmgc' branch) * include/private/gcconfig.h (CPP_WORDSZ, ALIGNMENT): Handle mips64-linux n64 ABI.
Diffstat (limited to 'include')
-rw-r--r--include/private/gcconfig.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h
index 0ff805a..7775338 100644
--- a/include/private/gcconfig.h
+++ b/include/private/gcconfig.h
@@ -1463,8 +1463,12 @@
# 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