ruby-changes:68695
From: Maxime <ko1@a...>
Date: Thu, 21 Oct 2021 08:12:26 +0900 (JST)
Subject: [ruby-changes:68695] 5413d0918b (master): Fix GCC warning
https://git.ruby-lang.org/ruby.git/commit/?id=5413d0918b From 5413d0918b89ee46f8500ba2731ff3a7a22c6276 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert <maxime.chevalierboisvert@s...> Date: Tue, 27 Oct 2020 14:30:33 -0400 Subject: Fix GCC warning --- ujit_compile.c | 3 --- ujit_utils.c | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/ujit_compile.c b/ujit_compile.c index 60abe167d2..dc0509d703 100644 --- a/ujit_compile.c +++ b/ujit_compile.c @@ -581,9 +581,6 @@ gen_opt_send_without_block(codeblock_t* cb, codeblock_t* ocb, ctx_t* ctx) https://github.com/ruby/ruby/blob/trunk/ujit_compile.c#L581 cmp(cb, REG0, mem_opnd(64, REG1, offsetof(struct rb_callcache, klass))); jne_ptr(cb, side_exit); - // NOTE: there *has to be* a way to optimize the entry invalidated check - // Could we have Ruby invalidate the JIT code instead of invalidating CME? - // // Check that the method entry is not invalidated // cd->cc->cme->flags // #define METHOD_ENTRY_INVALIDATED(me) ((me)->flags & IMEMO_FL_USER5) diff --git a/ujit_utils.c b/ujit_utils.c index a82bf6c638..c5011cb130 100644 --- a/ujit_utils.c +++ b/ujit_utils.c @@ -55,7 +55,7 @@ void print_int(codeblock_t* cb, x86opnd_t opnd) https://github.com/ruby/ruby/blob/trunk/ujit_utils.c#L55 pop_regs(cb); } -static void print_ptr_cfun(int64_t val) +static void print_ptr_cfun(void* val) { printf("%llX\n", val); } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/