summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-19 09:37:10 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-19 09:37:10 +0000
commitfec2c12c29df1fdc33a4d7fc110673adc35b7432 (patch)
tree371583bde9dc8ac5c435407a492957e66bcd31f3 /gc.c
parent5f1284ca8dfbee247d534e6d8f0c22d1c0f36c72 (diff)
downloadbundler-fec2c12c29df1fdc33a4d7fc110673adc35b7432.tar.gz
* gc.c (STACK_LENGTH) [SPARC] : 0x80 offset removed. [ruby-dev:33857]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gc.c b/gc.c
index 4ef74f6e36..849c15ff69 100644
--- a/gc.c
+++ b/gc.c
@@ -574,9 +574,7 @@ rb_data_object_alloc(VALUE klass, void *datap, RUBY_DATA_FUNC dmark, RUBY_DATA_F
#define STACK_END (th->machine_stack_end)
#define STACK_LEVEL_MAX (th->machine_stack_maxsize/sizeof(VALUE))
-#if defined(sparc) || defined(__sparc__)
-# define STACK_LENGTH (STACK_START - STACK_END + 0x80)
-#elif STACK_GROW_DIRECTION < 0
+#if STACK_GROW_DIRECTION < 0
# define STACK_LENGTH (STACK_START - STACK_END)
#elif STACK_GROW_DIRECTION > 0
# define STACK_LENGTH (STACK_END - STACK_START + 1)