summaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-12 00:30:50 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-12 00:30:50 +0000
commit16c364121b8fe725087dadad8c19f45a4eddc958 (patch)
treeab87f34d7680ad8910cb011ab7441cf4a31bbf8c /st.c
parentf3ee8b01c935be9691e0ded2fabc9cdef06d16b4 (diff)
merge revision(s) 32544: [Backport #6005]
* regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): Power PC does not allow unaligned word access. * st.c (UNALIGNED_WORD_ACCESS): x86_64 allows unaligned word access as well as i386. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/st.c b/st.c
index 56ee31e..fda5784 100644
--- a/st.c
+++ b/st.c
@@ -1002,7 +1002,9 @@ strhash(st_data_t arg)
#else
#ifndef UNALIGNED_WORD_ACCESS
-# if defined __i386__ || defined _M_IX86
+# if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
+ defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD86) || \
+ defined(__mc68020__)
# define UNALIGNED_WORD_ACCESS 1
# endif
#endif