Skip to content

Commit

Permalink
merge revision(s) 34306:
Browse files Browse the repository at this point in the history
	* ext/json/parser/parser.rl (json_string_unescape): workaround fix
	  for over optimization of GCC 4.7. [ruby-core:42085] [Bug #5888]
	  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51862


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Feb 5, 2012
1 parent e892c81 commit 63da304
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
Mon Feb 6 00:06:39 2012 NARUSE, Yui <naruse@ruby-lang.org>

* ext/json/parser/parser.rl (json_string_unescape): workaround fix
for over optimization of GCC 4.7. [ruby-core:42085] [Bug #5888]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51862

Fri Feb 3 16:16:10 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>

* test/ruby/envutil.rb (EnvUtil.invoke_ruby): yield also child pid
Expand Down
2 changes: 1 addition & 1 deletion ext/json/parser/parser.c
Expand Up @@ -1293,6 +1293,7 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
{
char *p = string, *pe = string, *unescape;
int unescape_len;
char buf[4];

while (pe < stringEnd) {
if (*pe == '\\') {
Expand Down Expand Up @@ -1325,7 +1326,6 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
if (pe > stringEnd - 4) {
return Qnil;
} else {
char buf[4];
UTF32 ch = unescape_unicode((unsigned char *) ++pe);
pe += 3;
if (UNI_SUR_HIGH_START == (ch & 0xFC00)) {
Expand Down
2 changes: 1 addition & 1 deletion ext/json/parser/parser.rl
Expand Up @@ -393,6 +393,7 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
{
char *p = string, *pe = string, *unescape;
int unescape_len;
char buf[4];

while (pe < stringEnd) {
if (*pe == '\\') {
Expand Down Expand Up @@ -425,7 +426,6 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
if (pe > stringEnd - 4) {
return Qnil;
} else {
char buf[4];
UTF32 ch = unescape_unicode((unsigned char *) ++pe);
pe += 3;
if (UNI_SUR_HIGH_START == (ch & 0xFC00)) {
Expand Down
6 changes: 3 additions & 3 deletions version.h
@@ -1,10 +1,10 @@
#define RUBY_VERSION "1.9.3"
#define RUBY_PATCHLEVEL 31
#define RUBY_PATCHLEVEL 32

#define RUBY_RELEASE_DATE "2012-02-03"
#define RUBY_RELEASE_DATE "2012-02-06"
#define RUBY_RELEASE_YEAR 2012
#define RUBY_RELEASE_MONTH 2
#define RUBY_RELEASE_DAY 3
#define RUBY_RELEASE_DAY 6

#include "ruby/version.h"

Expand Down

0 comments on commit 63da304

Please sign in to comment.