[前][次][番号順一覧][スレッド一覧]

ruby-changes:42781

From: naruse <ko1@a...>
Date: Sat, 30 Apr 2016 23:42:30 +0900 (JST)
Subject: [ruby-changes:42781] naruse:r54855 (trunk): revert UNALIGNED_WORD_ACCESS for GCC6

naruse	2016-05-01 00:39:03 +0900 (Sun, 01 May 2016)

  New Revision: 54855

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54855

  Log:
    revert UNALIGNED_WORD_ACCESS for GCC6
    
    Released GCC 6.0 fixed the issue.
    https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69291
    [ruby-core:72211] [Bug #11831] [Bug #11979]

  Modified files:
    trunk/include/ruby/defines.h
    trunk/regint.h
    trunk/st.c
Index: st.c
===================================================================
--- st.c	(revision 54854)
+++ st.c	(revision 54855)
@@ -1377,10 +1377,6 @@ strhash(st_data_t arg) https://github.com/ruby/ruby/blob/trunk/st.c#L1377
 }
 #else
 
-#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) || \
Index: regint.h
===================================================================
--- regint.h	(revision 54854)
+++ regint.h	(revision 54855)
@@ -48,10 +48,6 @@ 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) || \
Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h	(revision 54854)
+++ include/ruby/defines.h	(revision 54855)
@@ -260,10 +260,6 @@ void rb_ia64_flushrs(void); https://github.com/ruby/ruby/blob/trunk/include/ruby/defines.h#L260
     RUBY_ALIAS_FUNCTION_TYPE(VALUE, prot, name, args)
 #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/

[前][次][番号順一覧][スレッド一覧]