ruby-changes:62127
From: Nobuyoshi <ko1@a...>
Date: Sun, 5 Jul 2020 17:29:51 +0900 (JST)
Subject: [ruby-changes:62127] 41168f69fb (master): Prefix export symbol prefix to coroutine_transfer
https://git.ruby-lang.org/ruby.git/commit/?id=41168f69fb From 41168f69fbeb32cfc88210911d62e419b8116589 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 5 Jul 2020 17:27:12 +0900 Subject: Prefix export symbol prefix to coroutine_transfer diff --git a/coroutine/arm32/Context.S b/coroutine/arm32/Context.S index 08a0491..c5338f0 100644 --- a/coroutine/arm32/Context.S +++ b/coroutine/arm32/Context.S @@ -5,14 +5,17 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/arm32/Context.S#L5 ## Copyright, 2018, by Samuel Williams. ## +#define TOKEN_PASTE(x,y) x##y +#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name) + .file "Context.S" .text -.globl coroutine_transfer +.globl PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer) .align 2 -.type coroutine_transfer,%function +.type PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer),%function .syntax unified -coroutine_transfer: +PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): # Save caller state (8 registers + return address) push {r4-r11,lr} diff --git a/coroutine/arm64/Context.S b/coroutine/arm64/Context.S index 701ae21..04e3f6d 100644 --- a/coroutine/arm64/Context.S +++ b/coroutine/arm64/Context.S @@ -5,11 +5,14 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/arm64/Context.S#L5 ## Copyright, 2018, by Samuel Williams. ## +#define TOKEN_PASTE(x,y) x##y +#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name) + .text .align 2 -.global coroutine_transfer -coroutine_transfer: +.global PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer) +PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): # Make space on the stack for caller registers sub sp, sp, 0xb0 diff --git a/coroutine/ppc64le/Context.S b/coroutine/ppc64le/Context.S index 1b39086..61be9ef 100644 --- a/coroutine/ppc64le/Context.S +++ b/coroutine/ppc64le/Context.S @@ -1,9 +1,12 @@ https://github.com/ruby/ruby/blob/trunk/coroutine/ppc64le/Context.S#L1 +#define TOKEN_PASTE(x,y) x##y +#define PREFIXED_SYMBOL(prefix,name) TOKEN_PASTE(prefix,name) + .text .align 2 -.globl coroutine_transfer -.type coroutine_transfer, @function -coroutine_transfer: +.globl PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer) +.type PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer), @function +PREFIXED_SYMBOL(SYMBOL_PREFIX,coroutine_transfer): # Make space on the stack for caller registers addi 1,1,-152 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/