ruby-changes:41471
From: nobu <ko1@a...>
Date: Fri, 15 Jan 2016 22:11:46 +0900 (JST)
Subject: [ruby-changes:41471] nobu:r53545 (trunk): disable unaligned word access
nobu 2016-01-15 22:12:17 +0900 (Fri, 15 Jan 2016) New Revision: 53545 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53545 Log: disable unaligned word access * regint.h: disable unaligned word access with gcc 6 or later. [Bug #11831] Modified files: trunk/regint.h Index: regint.h =================================================================== --- regint.h (revision 53544) +++ regint.h (revision 53545) @@ -48,6 +48,10 @@ https://github.com/ruby/ruby/blob/trunk/regint.h#L48 #endif #endif +#if !defined(UNALIGNED_WORD_ACCESS) && defined(__GNUC__) && __GNUC__ >= 6 +# define UNALIGNED_WORD_ACCESS 0 +#endif + #ifndef UNALIGNED_WORD_ACCESS #if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \ defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/