Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

#defined __anyPowerPC__

  • Loading branch information...
commit 2ea481bf2c0a6769c50232809f45244e5981fbe7 1 parent 3f0da39
@brentr authored
Showing with 16 additions and 5 deletions.
  1. +6 −0 ChangeLog
  2. +7 −2 rubysig.h
  3. +3 −3 version.h
View
6 ChangeLog
@@ -1,3 +1,9 @@
+Wed Feb 27 12:01:19 2009 Brent Roman <brent@mbari.org>
+
+ * rubysig.c: added support for __anyPowerPC__
+
+ * version.h: bumped date
+
Wed Feb 25 12:01:19 2009 Brent Roman <brent@mbari.org>
* gc.c: default GC.limit=2e6*sizeof(VALUE)
View
9 rubysig.h
@@ -15,6 +15,11 @@
#include <errno.h>
+#if defined __ppc__ || defined __powerpc__ || \
+ defined __ppc64__ || defined __powerpc64__
+#define __anyPowerPC__ 1 /* for compatibility with older gcc versions */
+#endif
+
/* STACK_WIPE_SITES determines where attempts are made to exorcise
"ghost object refereces" from the stack and how the stack is cleared:
@@ -65,7 +70,7 @@
#ifndef STACK_WIPE_SITES
# ifdef __x86_64__ /* deal with "red zone" by not inlining stack clearing */
# define STACK_WIPE_SITES 0x6770
-# elif defined __ppc__ || defined __ppc64__ /* On any PowerPC, deal with... */
+# elif defined __anyPowerPC__ /* On any PowerPC, deal with... */
# define STACK_WIPE_SITES 0x7764 /* red zone & alloc(0) doesn't return sp */
# else
# define STACK_WIPE_SITES 0x8770 /*normal case, use 0x4770 if problems arise*/
@@ -211,7 +216,7 @@ static inline VALUE *__sp(void) \
VALUE *sp; asm(asmb); \
return sp; \
}
-# if defined __ppc__ || defined __ppc64__
+# ifdef __anyPowerPC__
__defspfn("addi %0, r1, 0": "=r"(sp))
# elif defined __i386__
__defspfn("movl %%esp, %0": "=r"(sp))
View
6 version.h
@@ -1,7 +1,7 @@
#define RUBY_VERSION "1.8.7"
-#define RUBY_RELEASE_DATE "2009-2-26"
+#define RUBY_RELEASE_DATE "2009-2-27"
#define RUBY_VERSION_CODE 187
-#define RUBY_RELEASE_CODE 20090226
+#define RUBY_RELEASE_CODE 20090227
#define RUBY_PATCHLEVEL 72
#define RUBY_VERSION_MAJOR 1
@@ -9,7 +9,7 @@
#define RUBY_VERSION_TEENY 7
#define RUBY_RELEASE_YEAR 2009
#define RUBY_RELEASE_MONTH 2
-#define RUBY_RELEASE_DAY 26
+#define RUBY_RELEASE_DAY 27
#ifdef RUBY_EXTERN
RUBY_EXTERN const char ruby_version[];
Please sign in to comment.
Something went wrong with that request. Please try again.