summaryrefslogtreecommitdiff
path: root/regint.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-15 13:12:17 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-15 13:12:17 (GMT)
commit04c55c0783340a7737c3b8d3467cb9965c758ca2 (patch)
tree011d58bfff31b07655ae9e7fcad0158f8ccc2ab2 /regint.h
parent78d4bc9294cb9193e3dfe7dbb15bf01ca8bc0137 (diff)
disable unaligned word access
* regint.h: disable unaligned word access with gcc 6 or later. [Bug #11831] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regint.h')
-rw-r--r--regint.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/regint.h b/regint.h
index 80d3523..97b2e1b 100644
--- a/regint.h
+++ b/regint.h
@@ -48,6 +48,10 @@
#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) || \