From 1a6f3becbbd2b6f497dc6a5ebcc01316d5564243 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 1 Jul 2023 15:14:27 +0900 Subject: [PATCH] Fallback `rb_iseq_complete` For compilers that do not eliminate references to functions that are never called, such as SunC. --- vm_core.h | 3 +++ 1 file changed, 3 insertions(+) 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 *