summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-08 13:47:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-08 13:47:48 +0000
commit6a852b7c2b46faa1876763e46e1847cbab77b071 (patch)
tree4cd9f55d6303d2a41854108ec0d450045968f728
parente6a8cc7e2bee761f0b9ab86b4888b1ae8cf2a0f2 (diff)
* vm_insnhelper.c (opt_eq_func): large function to make inline.
* bcc32/Makefile.sub (config.h): cannot compile a big inline function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--bcc32/Makefile.sub1
-rw-r--r--vm_insnhelper.c6
3 files changed, 12 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 70e1c95417..c757450403 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Aug 8 22:47:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (opt_eq_func): large function to make inline.
+
+ * bcc32/Makefile.sub (config.h): cannot compile a big inline function.
+
Fri Aug 8 21:09:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
* common.mk (enk.mk): give not RUBY but MINIRUBY.
diff --git a/bcc32/Makefile.sub b/bcc32/Makefile.sub
index ae5236e6c5..6ce6d4f9bd 100644
--- a/bcc32/Makefile.sub
+++ b/bcc32/Makefile.sub
@@ -252,6 +252,7 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
@if not exist $(arch_hdrdir:/=\) md $(arch_hdrdir:/=\)
@if not exist $(arch_hdrdir:/=\)\ruby md $(arch_hdrdir:/=\)\ruby
@$(IFCHANGE) $(RUBY_CONFIG_H:/=\) &&|
+\#define NO_BIG_INLINE 1
\#define HAVE_SYS_TYPES_H 1
\#define HAVE_SYS_STAT_H 1
\#define HAVE_STDLIB_H 1
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index bdccfd1ca1..a886685be6 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1412,7 +1412,11 @@ check_cfunc(const NODE *mn, const void *func)
}
}
-static inline VALUE
+static
+#ifndef NO_BIG_INLINE
+inline
+#endif
+VALUE
opt_eq_func(VALUE recv, VALUE obj, IC ic)
{
VALUE val = Qundef;