aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
Commit message (Collapse)AuthorAgeFilesLines
* common.mk: update-gemsnobu2014-09-231-0/+8
| | | | | | * common.mk (update-gems): update bundled gem files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (encs enc trans libencs libenc libtrans): force to runusa2014-09-101-1/+1
| | | | | | | | enk.mk because common.mk does not know the dependency, but enk.mk knows. [ruby-dev:48530] [Bug #10220] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/runner.rb: reporting test coverage for test-all with COVERAGE env.hsbt2014-09-021-0/+2
| | | | | | | | | [Feature #10189][ruby-core:64681] * Makefile.in: added task for coverage report. * common.mk: added definition of forked simplecov url. * .gitignore: ignored coverage directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: remove vm_core.h dependency [ruby-core:64627]normal2014-08-291-1/+1
| | | | | | | * string.c: revert part of r47311, add rb_vm_fstring_table(), remove vm_core.h dependency. [ruby-core:64627] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: move frozen_strings table to rb_vm_tnormal2014-08-291-1/+2
| | | | | | | | | | | | | | | | | Cleanup in case MVM development proceeds. * string.c: remove static frozen_strings * string.c (Init_frozen_strings): new function * string.c (rb_fstring): remove check for frozen strings, use per-VM table * string.c (rb_str_free): use per-VM table * string.c (Init_String): use per-VM table * vm_core.h (rb_vm_t): add frozen_strings table * internal.h (Init_frozen_strings): new function prototype * eval.c (ruby_setup): call Init_frozen_strings [Feature #10182] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/vcs.rb: no time.rbnobu2014-08-221-1/+1
| | | | | | | * common.mk (Doxyfile): revert r43888, not to require preinstalled ruby. [ruby-core:64488] [Bug #10161] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sprintf.c: rational 'f' formatnobu2014-08-181-1/+1
| | | | | | | * sprintf.c (rb_str_format): support rational 'f' format. [ruby-core:64382] [Bug #10136] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: ignore timestamp directorynobu2014-08-101-1/+1
| | | | | | | * common.mk (clean-ext): ignore error on removing non-existent timestamp directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: null device namenobu2014-07-281-1/+1
| | | | | | | * common.mk (clean-platform): use $(NULL) as portabile null device name instead of hard coded /dev/null for the portability. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r46859 and r46860nobu2014-07-181-1/+1
| | | | | | revert "enum.c: optimize any? object allocations for Array and Hash" git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* enum.c: optimize any? object allocations for Array and Hashnobu2014-07-181-1/+1
| | | | | | | | * enum.c (enum_any): optimize object allocations for Array and Hash when `each` is not redefined, always false if empty and the case without a block. [fix GH-617] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* symbol.c: remove dependency on parse.hnobu2014-07-111-1/+1
| | | | | | | | | | | * symbol.c (op_tbl): remove non-regular symbols. * symbol.c (global_symbols): start from the next of the preserved ID. * symbol.c: (rb_id2str): op_tbl does not exceed tLAST_OP_ID. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (DTRACE_DEPENDENT_OBJS): fix build failure on Solarisngoto2014-07-091-0/+1
| | | | | | | | introduced in r46768. Object files containing dtrace probes should be listed in DTRACE_DEPENDENT_OBJS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* symbol.c, symbol.h: split from parse.ynobu2014-07-091-1/+5
| | | | | | | * symbol.c, symbol.h: Symbol class implementation and internals, split from parse.y. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: integrate clean targetsnobu2014-07-071-0/+12
| | | | | | | | | | | | * common.mk (clean-rdoc, clean-capi, clean-platform): integrate from Makefile.in and win32/Makefile.sub. * win32/Makefile.sub (RMALL): now use rm.bat instead of rmall.bat which does not handle any options and convert slashes. * win32/rmall.bat: no longer used. use rm.bat with -r instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y: do not use rb_gc_resurrect(), but create a new dynamicko12014-07-071-1/+1
| | | | | | | | | symbol for garbage dynamic symbol. * common.mk: use gc.h by parse.y. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (fstr_update_callback): do not use rb_gc_resurrect()ko12014-07-061-1/+1
| | | | | | | | | | any more. Make new frozen string and replace with garbage frozen string. * common.mk: use gc.h from string.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: ignore clean-runnable errorsnobu2014-07-051-3/+3
| | | | | | | * common.mk (clean-runnable): get rid of errors running again after clean-runnable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: remove sizes.onobu2014-07-051-2/+0
| | | | | | * common.mk (sizes.o): remove stale target. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: empty by distcleannobu2014-07-051-1/+8
| | | | | | | | | | * common.mk (clean-runnable): remove files made by mkrunnable. * common.mk (clean-extout): remove archir too. * common.mk (clean-ext): remove timestamp directory git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: move DEFAULT_PRELUDESnobu2014-07-041-0/+1
| | | | | | | * common.mk (DEFAULT_PRELUDES): no longer configurable since r43278, move from Makefile.in and win32/Makefile.sub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.in: fix static-linked-extnobu2014-07-031-3/+3
| | | | | | | | | | * configure.in (--with-static-linked-ext): fix for extensions to be linked statically. * Makefile.in, common.mk: use ENCSTATIC for enc directory. * ext/extmk.rb: supply dependencies of statically linked extension libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* extmk.rb: GNU make -C optionnobu2014-07-031-1/+2
| | | | | | * ext/extmk.rb: use -C option for GNU make instead of shell. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: fix dependenciesnobu2014-06-191-18/+18
| | | | | | | * common.mk, defs/gmake.mk: fix install and uninstall dependencies with parallel make. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* constify character property tablesnobu2014-05-221-1/+2
| | | | | | | | * enc/jis/props.kwd: constify character property tables of JIS based encodings by perfect hash. * enc/euc_jp.c, enc/shift_jis.c: use character property functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm*: doubly-linked list from ccan to manage vm->living_threadsnormal2014-05-101-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A doubly-linked list for tracking living threads guarantees constant-time insert/delete performance with no corner cases of a hash table. I chose this ccan implementation of doubly-linked lists over the BSD sys/queue.h implementation since: 1) insertion and removal are both branchless 2) locality is improved if a struct may be a member of multiple lists (0002 patch in Feature 9632 will introduce a secondary list for waiting FDs) This also increases cache locality during iteration: improving performance in a new IO#close benchmark with many sleeping threads while still scanning the same number of threads. vm_thread_close 1.762 * vm_core.h (rb_vm_t): list_head and counter for living_threads (rb_thread_t): vmlt_node for living_threads linkage (rb_vm_living_threads_init): new function wrapper (rb_vm_living_threads_insert): ditto (rb_vm_living_threads_remove): ditto * vm.c (rb_vm_living_threads_foreach): new function wrapper * thread.c (terminate_i, thread_start_func_2, thread_create_core, thread_fd_close_i, thread_fd_close): update to use new APIs * vm.c (vm_mark_each_thread_func, rb_vm_mark, ruby_vm_destruct, vm_memsize, vm_init2, Init_VM): ditto * vm_trace.c (clear_trace_func_i, rb_clear_trace_func): ditto * benchmark/bm_vm_thread_close.rb: added to show improvement * ccan/build_assert/build_assert.h: added as a dependency of list.h * ccan/check_type/check_type.h: ditto * ccan/container_of/container_of.h: ditto * ccan/licenses/BSD-MIT: ditto * ccan/licenses/CC0: ditto * ccan/str/str.h: ditto (stripped of unused macros) * ccan/list/list.h: ditto * common.mk: add CCAN_LIST_INCLUDES [ruby-core:61871][Feature 9632 (part 1)] Apologies for the size of this commit, but I think a good doubly-linked list will be useful for future features, too. This may be used to add ordering to a container_of-based hash table to preserve compatibility if required (e.g. feature 9614). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: Unused target, $(MKMAIN_CMD), removed.akr2014-04-131-3/+0
| | | | | | | | | | * Makefile.in (MKMAIN_CMD): Unused macro removed. * win32/Makefile.sub (MKMAIN_CMD): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: Use redmine-2.x url for DeveloperHowto wiki.hsbt2014-04-021-1/+1
| | | | | | [ruby-core:60657] [Bug #9511] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* hash.c: use ID_SCOPE_SHIFTnobu2014-03-231-1/+1
| | | | | | | * hash.c (rb_any_hash): use ID_SCOPE_SHIFT instead of magic number. [Feature #9425] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * internal.h, vm_core.h: move LIKELY/UNLIKELY/UNINITIALIZED_VAR()ko12014-02-051-1/+1
| | | | | | | | | | macros from vm_core.h to internal.h. * string.c: remove dependency to "vm_core.h". * common.mk: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: fix command errornobu2014-01-161-2/+1
| | | | | | * common.mk (capi): flags cannot be separated by escaped newlines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: ignore capi failurenobu2014-01-151-0/+1
| | | | | | * common.mk (capi): ignore doxygen failure (temporarily). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby/util.h: DECIMAL_SIZE_OF_BITSnobu2014-01-121-1/+3
| | | | | | | | | | | | | * include/ruby/util.h (DECIMAL_SIZE_OF_BITS): a preprocessor constant macro to approximate decimal representation size of n-bits integer. * iseq.c (register_label): use DECIMAL_SIZE_OF_BITS for better approximation. * ext/bigdecimal/bigdecimal.c (BigMath_s_log): ditto. * common.mk (iseq.o), ext/bigdecimal/depend (bigdecimal.o): add dependency to ruby/util.h for DECIMAL_SIZE_OF_BITS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* verconf.h.tmpl: renamenobu2013-12-271-2/+2
| | | | | | | | | * template/verconf.h.tmpl: rename from .in since this is an erb template file, but not for config.status. * common.mk (verconf.h): rename the dependent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid circular dependency on AIXkanemoto2013-12-081-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: use BASERUBYnobu2013-11-281-1/+1
| | | | | | | | * common.mk (Doxyfile): tool/file2lastrev.rb needs running with BASERUBY since r43617. [ruby-dev:47823] [Bug #9169] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: add useful config "set breakpoint pending on"ko12013-11-261-1/+2
| | | | | | | | for run.gdb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/rbconfig/sizeof: move to an extension librarynobu2013-11-181-8/+8
| | | | | | | | | | | | * common.mk, ext/rbconfig/sizeof: move RbConfig::SIZEOF to an extension library to get rid of annoying nmake VPATH rule. * inits.c (rb_call_inits), miniinit.c (Init_sizes): RbConfig::SIZEOF is no loger built-in. * template/sizes.c.tmpl (Init_sizeof): rename initialization function. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (help): add texts about gcbench.tarui2013-11-061-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk, ext/objspace/depend, ext/coverage/depend,akr2013-10-281-4/+4
| | | | | | | ext/-test-/debug/depend, ext/date/depend: Update dependencies. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ruby.c: gem_prelude to load rubygemsnobu2013-10-141-2/+0
| | | | | | | | | * ruby.c (process_options): use gem_prelude instead of requiring rubygems directly when --enable=gems is given. * Makefile.in (DEFAULT_PRELUDES): always use gem_prelude regardless of --disable-rubygems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: revert r43137 and r43145nobu2013-10-051-2/+2
| | | | | | | * common.mk (sizes.c): revert r43137 and r43145, because the former commit made sizes.c rebuild always each build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: sizes.c depends on PREP nownobu2013-10-051-1/+1
| | | | | | | * common.mk (sizes.c): now depends on PREP, which is miniruby if native compile or fake.rb otherwise, to run MINIRUBY [Bug #8968] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: make sizes.c with MINIRUBYnobu2013-10-041-1/+1
| | | | | | | | * common.mk (sizes.c): use MINIRUBY because Init_sizes() for miniruby is defined in miniinit.c and miniruby does not depend on this file. [Bug #8968] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: use RUNRUBY for test-samplenobu2013-10-031-1/+1
| | | | | | | * common.mk (yes-test-sample): use RUNRUBY instead of MINIRUBY to set runtime library path and run the built ruby. [Bug #8971] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: RUN_OPTS to testsnobu2013-09-201-4/+4
| | | | | | | | | | * common.mk (btest, btest-ruby, test-knownbug): add $(RUN_OPTS) to ruby to be run, so that tests are runnable before making exts. * common.mk (test-sample): ditto, and use $(MINIRUBY) as rubytest.rb does not need extension libraries. * tool/rubytest.rb: pass $(RUN_OPTS) to testing ruby using --run-opt. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk, win32/Makefile.sub: refix sizez.c for nmakenobu2013-09-081-1/+1
| | | | | | | | * common.mk (sizes.c): revert r42854 and r42883. * win32/Makefile.sub (sizes.c): rule for outplace build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: in-place buildnobu2013-09-071-1/+1
| | | | | | * common.mk (sizes.c): try to fix for in-place build. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: use RUNRUBY instead of MINIRUBY because MINIRUBY can'tglass2013-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | require extension libraries. The patch is from nobu (Nobuyoshi Nakada). * ext/thread/extconf.rb: for build ext/thread/thread.c. * include/ruby/intern.h: ditto. * thread.c: ditto. * lib/thread.rb: removed and replaced by ext/thread/thread.c. * ext/thread/thread.c: Queue, SizedQueue and ConditionVariable implementations in C. This patch is based on patches from panaggio (Ricardo Panaggio) and funny_falcon (Yura Sokolov) and ko1 (Koichi Sasada). [ruby-core:31513] [Feature #3620] * test/thread/test_queue.rb (test_queue_thread_raise): add a test for ensuring that killed thread should be removed from waiting threads. It is based on a code by ko1 (Koichi Sasada). [ruby-core:45950] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: sizes.c for nmakenobu2013-09-061-1/+1
| | | | | | * common.mk (sizes.c): needs VPATH to outplace build with nmake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e