mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_exec.c (DECL_SC_REG): check defined(__asm__) before use it.
LLVM/clang defines __GNUC__ but doesn't have __asm__.. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c21350f902
commit
2215293a66
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Oct 27 05:11:49 2009 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* win32/Makefile.sub (config.h): added RUBY_SITEARCH to use
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue