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

ruby-changes:55740

From: Nobuyoshi <ko1@a...>
Date: Thu, 16 May 2019 22:19:24 +0900 (JST)
Subject: [ruby-changes:55740] Nobuyoshi Nakada: e0f0ab959e (trunk): Remove unused symbols

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

From e0f0ab959e9a0fa3db8dfdb2a493b057d6e7541b Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 16 May 2019 18:58:17 +0900
Subject: Remove unused symbols


diff --git a/Makefile.in b/Makefile.in
index 6e9a96b..62ee3fe 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -419,7 +419,7 @@ $(srcdir)/enc/jis/props.h: enc/jis/props.kwd https://github.com/ruby/ruby/blob/trunk/Makefile.in#L419
 
 .$(ASMEXT).@OBJEXT@:
 	@$(ECHO) assembling $<
-	$(Q) $(CC) $(ASFLAGS) -o $@ -c $<
+	$(Q) $(CC) $(ASFLAGS) -DSYMBOL_PREFIX=$(SYMBOL_PREFIX) -o $@ -c $<
 
 .c.$(ASMEXT):
 	@$(ECHO) translating $<
diff --git a/coroutine/amd64/Context.S b/coroutine/amd64/Context.S
index 6193993..42fe79c 100644
--- a/coroutine/amd64/Context.S
+++ b/coroutine/amd64/Context.S
@@ -5,14 +5,14 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/amd64/Context.S#L5
 ##  Copyright, 2018, by Samuel Williams. All rights reserved.
 ##
 
+#define TOKEN_PASTE(x,y) x##y
+#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name)
+
 .text
 
-# For older linkers
-.globl _coroutine_transfer
-_coroutine_transfer:
+.globl PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer)
+PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
 
-.globl coroutine_transfer
-coroutine_transfer:
 	# Save caller state
 	pushq %rbp
 	pushq %rbx
diff --git a/coroutine/x86/Context.S b/coroutine/x86/Context.S
index d6a0a2d..001b699 100644
--- a/coroutine/x86/Context.S
+++ b/coroutine/x86/Context.S
@@ -5,14 +5,13 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/x86/Context.S#L5
 ##  Copyright, 2018, by Samuel Williams. All rights reserved.
 ##
 
-.text
+#define TOKEN_PASTE(x,y) x##y
+#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name)
 
-.globl coroutine_transfer
-coroutine_transfer:
+.text
 
-# For older linkers
-.globl _coroutine_transfer
-_coroutine_transfer:
+.globl PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer)
+PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer):
 
 	# Save caller registers
 	pushl %ebp
-- 
cgit v0.10.2


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

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