зеркало из https://github.com/github/ruby.git
transform_mjit_header.rb: add static to Init_*
as well, to make CI succeed with VM_CHECK_MODE > 1. vm_insnhelper.c: drop unnecessary MJIT_HEADER ifdef. This is intended to be ignored by having `static inline`. Removing that by macro would be helpful for minimizing compilation time, but the impact is not so big and having many MJIT_HEADER check would be bad for maintainability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0f3bd3e6a8
Коммит
24e30ef76e
|
@ -15,7 +15,7 @@ module MJITHeader
|
|||
# VALUE __attribute__ ((foo)) bar(int baz)
|
||||
# __attribute__ ((foo)) VALUE bar(int baz)
|
||||
FUNC_HEADER_REGEXP = /\A[^\[{(]*(\s*#{ATTR_REGEXP})*[^\[{(]*\((#{ATTR_REGEXP}|[^()])*\)(\s*#{ATTR_REGEXP})*\s*/
|
||||
TARGET_NAME_REGEXP = /\A(rb|ruby|vm|insn|attr)_/
|
||||
TARGET_NAME_REGEXP = /\A(rb|ruby|vm|insn|attr|Init)_/
|
||||
|
||||
# Predefined macros for compilers which are already supported by MJIT.
|
||||
# We're going to support cl.exe too (WIP) but `cl.exe -E` can't produce macro.
|
||||
|
|
|
@ -3930,6 +3930,6 @@ vm_canary_is_found_dead(enum ruby_vminsn_type i, VALUE c)
|
|||
rb_bug("dead canary found at %s: %s", insn, str);
|
||||
}
|
||||
|
||||
#elif !defined(MJIT_HEADER)
|
||||
#else
|
||||
void Init_vm_stack_canary(void) { /* nothing to do */ }
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче