ruby-changes:20496
From: nobu <ko1@a...>
Date: Fri, 15 Jul 2011 01:51:38 +0900 (JST)
Subject: [ruby-changes:20496] nobu:r32544 (trunk): * regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): Power PC does not
nobu 2011-07-15 01:51:29 +0900 (Fri, 15 Jul 2011) New Revision: 32544 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32544 Log: * 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. Modified files: trunk/ChangeLog trunk/regint.h trunk/st.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32543) +++ ChangeLog (revision 32544) @@ -1,3 +1,11 @@ +Fri Jul 15 01:51:25 2011 Nobuyoshi Nakada <nobu@r...> + + * 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. + Thu Jul 14 12:19:34 2011 Hiroshi Nakamura <nahi@r...> * ext/openssl/ossl.c (ossl_verify_cb): trap the exception from Index: st.c =================================================================== --- st.c (revision 32543) +++ st.c (revision 32544) @@ -999,7 +999,9 @@ #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 Index: regint.h =================================================================== --- regint.h (revision 32543) +++ regint.h (revision 32544) @@ -48,7 +48,6 @@ #endif #if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \ - (defined(__ppc__) && defined(__APPLE__)) || \ defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD86) || \ defined(__mc68020__) #define PLATFORM_UNALIGNED_WORD_ACCESS -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/