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

ruby-changes:13704

From: naruse <ko1@a...>
Date: Tue, 27 Oct 2009 05:14:31 +0900 (JST)
Subject: [ruby-changes:13704] Ruby:r25493 (trunk): * vm_exec.c (DECL_SC_REG): check defined(__asm__) before use it.

naruse	2009-10-27 05:14:16 +0900 (Tue, 27 Oct 2009)

  New Revision: 25493

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25493

  Log:
    * vm_exec.c (DECL_SC_REG): check defined(__asm__) before use it.
      LLVM/clang defines __GNUC__ but doesn't have __asm__..

  Modified files:
    trunk/ChangeLog
    trunk/vm_exec.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 25492)
+++ ChangeLog	(revision 25493)
@@ -1,3 +1,8 @@
+Tue Oct 27 05:11:49 2009  NARUSE, Yui  <naruse@r...>
+
+	* vm_exec.c (DECL_SC_REG): check defined(__asm__) before use it.
+	  LLVM/clang defines __GNUC__ but doesn't have __asm__..
+
 Tue Oct 27 03:45:39 2009  Nobuyoshi Nakada  <nobu@r...>
 
 	* win32/Makefile.sub (config.h): added RUBY_SITEARCH to use
Index: vm_exec.c
===================================================================
--- vm_exec.c	(revision 25492)
+++ vm_exec.c	(revision 25493)
@@ -14,10 +14,10 @@
 #if VMDEBUG > 0
 #define DECL_SC_REG(type, r, reg) register type reg_##r
 
-#elif __GNUC__ && __x86_64__
+#elif __GNUC__ && __x86_64__ && defined(__asm__)
 #define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("r" reg)
 
-#elif __GNUC__ && __i386__
+#elif __GNUC__ && __i386__ && defined(__asm__)
 #define DECL_SC_REG(type, r, reg) register type reg_##r __asm__("e" reg)
 
 #else

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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