ruby-changes:54328
From: shyouhei <ko1@a...>
Date: Tue, 25 Dec 2018 12:15:27 +0900 (JST)
Subject: [ruby-changes:54328] shyouhei:r66538 (trunk): vm_insnhelper.c: use COLDFUNC
shyouhei 2018-12-25 12:15:22 +0900 (Tue, 25 Dec 2018) New Revision: 66538 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66538 Log: vm_insnhelper.c: use COLDFUNC COLDFUNC is introduced in r66228. Use it for pre-existing __attribute__((__cold__)) usages. Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 66537) +++ vm_insnhelper.c (revision 66538) @@ -3941,10 +3941,7 @@ vm_trace(rb_execution_context_t *ec, rb_ https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3941 } #if VM_CHECK_MODE > 0 -static NORETURN( NOINLINE( -#if GCC_VERSION_SINCE(4, 3, 0) -__attribute__((__cold__)) -#endif +static NORETURN( NOINLINE( COLDFUNC void vm_canary_is_found_dead(enum ruby_vminsn_type i, VALUE c))); static VALUE vm_stack_canary; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/