Skip to content

Commit 08a04c8

Browse files
committed
merge revision(s) 14255:
* gc.c (stack_end_address): use local variable address instead of __builtin_frame_address(0) to avoid SEGV on SunOS 5.11 on x86 with gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent bd82f4c commit 08a04c8

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Sun Jun 8 05:32:45 2008 Tanaka Akira <akr@fsij.org>
2+
3+
* gc.c (stack_end_address): use local variable address instead of
4+
__builtin_frame_address(0) to avoid SEGV on SunOS 5.11 on x86 with
5+
gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802).
6+
17
Sun Jun 8 05:24:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
28

39
* configure.in (RUBY_CHECK_VARTYPE): check if a variable is defined

gc.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,12 +438,13 @@ static unsigned int STACK_LEVEL_MAX = 655300;
438438
# if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3
439439
__attribute__ ((noinline))
440440
# endif
441-
static VALUE *
442-
stack_end_address(void)
441+
static void
442+
stack_end_address(VALUE **stack_end_p)
443443
{
444-
return (VALUE *)__builtin_frame_address(0);
444+
VALUE stack_end;
445+
*stack_end_p = &stack_end;
445446
}
446-
# define SET_STACK_END VALUE *stack_end = stack_end_address()
447+
# define SET_STACK_END VALUE *stack_end; stack_end_address(&stack_end)
447448
# else
448449
# define SET_STACK_END VALUE *stack_end = alloca(1)
449450
# endif

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2008-06-08"
33
#define RUBY_VERSION_CODE 186
44
#define RUBY_RELEASE_CODE 20080608
5-
#define RUBY_PATCHLEVEL 159
5+
#define RUBY_PATCHLEVEL 160
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)