[前][次][番号順一覧][スレッド一覧]

ruby-changes:63674

From: Takashi <ko1@a...>
Date: Sat, 21 Nov 2020 17:30:50 +0900 (JST)
Subject: [ruby-changes:63674] a6db9e8d7b (master): Remove the unused o_file definition

https://git.ruby-lang.org/ruby.git/commit/?id=a6db9e8d7b

From a6db9e8d7bfbaa6b2880e06b68c60821217b2395 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Sat, 21 Nov 2020 00:29:51 -0800
Subject: Remove the unused o_file definition

It's calculated inside compile_c_to_so again.

diff --git a/mjit_worker.c b/mjit_worker.c
index 2a3cf97..d410117 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -1084,10 +1084,6 @@ convert_unit_to_func(struct rb_mjit_unit *unit) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L1084
     int c_file_len = (int)sizeof(c_file_buff);
     static const char c_ext[] = ".c";
     static const char so_ext[] = DLEXT;
-#ifndef _MSC_VER
-    static const char o_ext[] = ".o";
-    char *o_file;
-#endif
 
     c_file_len = sprint_uniq_filename(c_file_buff, c_file_len, unit->id, MJIT_TMP_PREFIX, c_ext);
     if (c_file_len >= (int)sizeof(c_file_buff)) {
@@ -1097,11 +1093,6 @@ convert_unit_to_func(struct rb_mjit_unit *unit) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L1093
     }
     ++c_file_len;
 
-#ifndef _MSC_VER
-    o_file = alloca(c_file_len - sizeof(c_ext) + sizeof(o_ext));
-    memcpy(o_file, c_file, c_file_len - sizeof(c_ext));
-    memcpy(&o_file[c_file_len - sizeof(c_ext)], o_ext, sizeof(o_ext));
-#endif
     so_file = alloca(c_file_len - sizeof(c_ext) + sizeof(so_ext));
     memcpy(so_file, c_file, c_file_len - sizeof(c_ext));
     memcpy(&so_file[c_file_len - sizeof(c_ext)], so_ext, sizeof(so_ext));
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]