diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | eval.c | 4 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ +Sun Jun 29 18:19:11 2008 Akinori MUSHA <knu@iDaemons.org> + + * eval.c (PUSH_FRAME, PUSH_CLASS): Add volatile to avoid a + possible optimization bug on OS X/PPC. This at least makes + build with gcc -O1 and `make test' pass. + Sun Jun 29 17:24:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/rdoc/parsers/parse_rb.rb (RDoc#collect_first_comment): skip @@ -758,7 +758,7 @@ static struct SCOPE *top_scope; static unsigned long frame_unique = 0; #define PUSH_FRAME() do { \ - struct FRAME _frame; \ + volatile struct FRAME _frame; \ _frame.prev = ruby_frame; \ _frame.tmp = 0; \ _frame.node = ruby_current_node; \ @@ -1055,7 +1055,7 @@ VALUE ruby_class; static VALUE ruby_wrapper; /* security wrapper */ #define PUSH_CLASS(c) do { \ - VALUE _class = ruby_class; \ + volatile VALUE _class = ruby_class; \ ruby_class = (c) #define POP_CLASS() ruby_class = _class; \ @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-29" #define RUBY_VERSION_CODE 187 #define RUBY_RELEASE_CODE 20080629 -#define RUBY_PATCHLEVEL 28 +#define RUBY_PATCHLEVEL 29 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |