diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-12 05:04:24 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-12 05:04:24 +0000 |
commit | dd64636a85779e22c53015d716435a33996a5522 (patch) | |
tree | 38fc43a69ac36ce4fee7b1638e0ed53890e86777 /tool/ruby_vm | |
parent | 7a0bc1f35098c5840eaee2b9ad69874d42b54139 (diff) | |
download | ruby-dd64636a85779e22c53015d716435a33996a5522.tar.gz |
mjit.c: print JIT failure
mjit_compile.inc.erb: show unsupported insn name on --jit-verbose=1 too.
Also, removed osboleted workaround. Now some insn-related functions are
declared with MAYBE_UNUSED.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/ruby_vm')
-rw-r--r-- | tool/ruby_vm/views/mjit_compile.inc.erb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tool/ruby_vm/views/mjit_compile.inc.erb b/tool/ruby_vm/views/mjit_compile.inc.erb index 47492a0ed8..3c4dba6786 100644 --- a/tool/ruby_vm/views/mjit_compile.inc.erb +++ b/tool/ruby_vm/views/mjit_compile.inc.erb @@ -53,10 +53,8 @@ switch (insn) { % # We don't support InstructionsUnifications yet because it's not used for now. % # We don't support TraceInstructions yet. There is no blocker for it but it's just not implemented. default: - if (mjit_opts.warnings || mjit_opts.verbose >= 3) - /* passing excessive arguments to suppress warning in insns_info.inc as workaround... */ - fprintf(stderr, "MJIT warning: Failed to compile instruction: %s (%s: %d...)\n", - insn_name(insn), insn_op_types(insn), insn_len(insn) > 0 ? insn_op_type(insn, 0) : 0); + if (mjit_opts.warnings || mjit_opts.verbose) + fprintf(stderr, "MJIT warning: Skipped to compile unsupported instruction: %s\n", insn_name(insn)); status->success = FALSE; break; } |