ruby-changes:67355
From: Nobuyoshi <ko1@a...>
Date: Mon, 30 Aug 2021 09:06:55 +0900 (JST)
Subject: [ruby-changes:67355] 26e74c6b1f (master): Suppress redefinition warnings of GET_SELF()
https://git.ruby-lang.org/ruby.git/commit/?id=26e74c6b1f From 26e74c6b1f1e53aea7d1c431b91cab4d87185f78 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 30 Aug 2021 09:06:36 +0900 Subject: Suppress redefinition warnings of GET_SELF() --- mjit_compile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mjit_compile.c b/mjit_compile.c index d68d440..a336ca5 100644 --- a/mjit_compile.c +++ b/mjit_compile.c @@ -348,6 +348,7 @@ mjit_compile_body(FILE *f, const rb_iseq_t *iseq, struct compile_status *status) https://github.com/ruby/ruby/blob/trunk/mjit_compile.c#L348 fprintf(f, " static const VALUE *const original_body_iseq = (VALUE *)0x%"PRIxVALUE";\n", (VALUE)body->iseq_encoded); fprintf(f, " VALUE cfp_self = reg_cfp->self;\n"); // cache self across the method + fprintf(f, "#undef GET_SELF\n"); fprintf(f, "#define GET_SELF() cfp_self\n"); // Generate merged ivar guards first if needed -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/