summaryrefslogtreecommitdiff
path: root/gc.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-27 06:54:03 (GMT)
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-27 06:54:03 (GMT)
commited58a66fa8bf2af5e085529887e16c2a9498bb1e (patch)
tree1d8bc8e8531ba54f1bf75e0db5d91378606d2f15 /gc.h
parent613a324f6156f3dc3b666ceef23ad7e54df59a37 (diff)
* gc.h (SET_MACHINE_STACK_END): use __i386.
Some compiler may not define __i386__. Solaris 64-bit Developer's Guide: http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.h')
-rw-r--r--gc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.h b/gc.h
index 0bb70c5..d835b9b 100644
--- a/gc.h
+++ b/gc.h
@@ -4,7 +4,7 @@
#if defined(__x86_64__) && defined(__GNUC__)
#define SET_MACHINE_STACK_END(p) __asm__("movq\t%%rsp, %0" : "=r" (*p))
-#elif defined(__i386__) && defined(__GNUC__)
+#elif defined(__i386) && defined(__GNUC__)
#define SET_MACHINE_STACK_END(p) __asm__("movl\t%%esp, %0" : "=r" (*p))
#else
NOINLINE(void rb_gc_set_stack_end(VALUE **stack_end_p));