Project

General

Profile

Actions

Bug #4566

closed

followup of [ruby-core:32747]

Added by jojelino (jojelino _) over 13 years ago. Updated over 13 years ago.

Status:
Third Party's Issue
Target version:
ruby -v:
revision 31234
Backport:
[ruby-core:35683]

Description

=begin
[ruby-core:32747]

Index: vm_exec.c

--- vm_exec.c (revision 31234)
+++ vm_exec.c (working copy)
@@ -11,7 +11,7 @@

#include <math.h>

-#if VMDEBUG > 0
+#if (VMDEBUG > 0) | ((GNUC >= 4) && (GNUC_MINOR >= 6) && (GNUC_PATCHLEVEL >= 0))
#define DECL_SC_REG(type, r, reg) register type reg_##r

#elif GNUC && x86_64 && !clang

please apply this, it resolves segmentation fault in gcc > 4.6
specifying register name explicitly fails. although it worked in previous version.
if you continue using explicit register name, you gotta find workaround about it ;)
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0