summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-01 15:14:27 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-01 15:14:27 +0900
commit1a6f3becbbd2b6f497dc6a5ebcc01316d5564243 (patch)
tree4a809777ce4db91c4c817304db896abbb10b5fdc /vm_core.h
parent2952dbad5eedb3ed7d0bfdd8b6c7a546c775c76b (diff)
Fallback `rb_iseq_complete`
For compilers that do not eliminate references to functions that are never called, such as SunC.
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index a76f57e596..4338d65d5e 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -552,6 +552,9 @@ struct rb_iseq_struct {
#define USE_LAZY_LOAD 0
#endif
+#if !USE_LAZY_LOAD
+static inline const rb_iseq_t *rb_iseq_complete(const rb_iseq_t *iseq) {return 0;}
+#endif
const rb_iseq_t *rb_iseq_complete(const rb_iseq_t *iseq);
static inline const rb_iseq_t *