aboutsummaryrefslogtreecommitdiffstats
path: root/common.mk
Commit message (Collapse)AuthorAgeFilesLines
* removes the dtrace support. reverts r26239, r26238 and r26235.yugui2010-01-051-11/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * trace.h: new file. wraps tracing mechanisms.yugui2010-01-031-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * defs/dtrace.d: new file. defined a dtrace provider "ruby". * include/ruby/ruby.h (LIKELY): moved from vm.c. (UNLIKELY): ditto. (OBJSETUP): probe "object-create". (RUBY_EVENT_RESCUE): new event. * vm_exec.c (DEBUG_ENTER_INSN): embeded a probe insn-entry into it. (DEBUG_END_INSN): insn-return. * vm.c (LIKELY): moved into ruby.h. (UNLIKELY): ditto. (Init_BareVM): embeded a probe "raise" into it. * variable.c (rb_class2name_without_alloc): new utility function. * tool/rbinstall.rb (install?(:ext, :arch, :'ext-arch')): installs dtrace.d if necessary. * thread_pthread.c (add_signal_thread_list): probe "raise". (rb_thread_create_timer_thread): ditto. * thread.c (rb_thread_schedule_rec): probes "thread-enter" and "thread-leave", (thread_start_func_2): ditto. (thread_cleanup_func): probe "thread-term" * lib/mkmf.rb: supports dtrace postprocessor on making an extension. * iseq.c (rb_vm_insn_name): new utility function. (rb_vm_insn_len): ditto. * insns.def (hook): probes "method-etnry", "method-return", "line", and "rescue". * compile.c (iseq_compile_each): adds a trace op for "rescue" probe. * gc.c (garbage_collect): probes "gc-begin" and "gc-end". (obj_free): probe "object-free" (garbage_collect_with_gvl): probe "raise" (negative_size_allocation_error): ditto. (rb_memerror): ditto. * eval.c (rb_rescue2): probe "rescue" (rb_longjmp): probe "raise" * ext/probe/probe.c: new extension for application defined probes. * ext/probe/extconf.rb: ditto. * configure.in (--with-tracing-model): new option to choose a tracing mechanism. (DTRACE): new substitution. name of dtrace(1). (RUBY_TRACING_MODEL): new substitution. (DTRACE_OBJ): ditto. (MINIDTRACE_OBJ): ditto. (GOLFDTRACE_OBJ): ditto. (LIBRUBY_DTRACE_OBJ): ditto. (RUBY_DTRACE_POSTPROCESS): new macro. checks whether the dtrace on the system needs postprocessing. (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether the dtrace supports USDT. * Makefile.in: (DTRACE): new variable. name of dtrace(1). (TRACING_MODEL): new variable. name of the chosen tracing mechanism. (DTRACE_OBJ): same as the one in configure.in. (MINIDTRACE_OBJ): ditto. (GOLFDTRACE_OBJ): ditto. (LIBRUBY_DTRACE_OBJ): ditto. (CPPOUTFILE): new substitution. necessary for generating dtrace.d (trace_none.h): new target for TRACING_MODEL=none (RUBY_H_INCLUDES): appended a header for tracing. (distclean-local): also removes preprocessed version of dtrace.d ($(LIBRUBY_A)): needs $(LIBRUBY_DTRACE_OBJ) if dtrace needs postprocessing. ($(PROGRAM)): ditto. (golf): ditto. (miniruby): ditto. ($(arch_hdrdir)/ruby/dtrace.d): new target. preprocessed verson of defs/dtrace.d. generated if necessary. ($(arch_hdrdir)/ruby/trace_dtrace.h): new target. definition of probes. ($(LIBRUBY_DTRACE_OBJ)): new target. generated if dtrace needs postprocessing. ($(DTRACE_OBJ)): ditto. ($(MINIDTRACE_OBJ)): ditto. ($(GOLFDTRACE_OBJ)): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * node.c: node management added. Currently, only pretty-dumper ismame2009-12-091-0/+3
| | | | | | | | | | implemented. [ruby-dev:39853] * ruby.c: --dump=parsetree and --dump=parsetree_with_comment options added. This is just for debug or research purpose. Note that the compatibility of these options are not supported at all. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (config.h): added RUBY_SITEARCH to usenobu2009-10-261-1/+1
| | | | | | | different name from RUBY_ARCH. [ruby-core:26324] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, Makefile.in, win32/Makefile.sub (XRUBY): runnablenobu2009-10-221-1/+1
| | | | | | | | | ruby without current libraries. * common.mk (rdoc): use XRUBY. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, Makefile.in (LIBRUBY_SO), common.mk (ruby.imp),nobu2009-10-101-1/+1
| | | | | | | win32/mkexports.rb (each_export): exclude _threadptr_ functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (ruby.imp): add text section [Bug #2064].kanemoto2009-09-271-1/+3
| | | | | | | * common.mk (ruby.imp): do not export Init_*. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (eval.o): needs vm.h.nobu2009-09-181-1/+1
| | | | | | | | | | | * eval.c (ruby_cleanup): destruct current VM before exit. * gc.c (rb_objspace_free): free object space. * vm.c (ruby_vm_destruct): destruct and free VM struct. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (CAPITARGET): enable iff doxygen is available.nobu2009-09-161-10/+14
| | | | | | | | | | | | * configure.in (INSTALLDOC): enable if rdoc or doxygen are enabled. * common.mk (docs): target to make documents. * Makefile.in, win32/Makefile.sub (install-{all,nodoc}): trigger by $(INSTALLDOC) from install. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (main): makes also encs.nobu2009-09-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (install-rdoc), configure.in (RDOCTARGET): removednobu2009-09-151-0/+1
| | | | | | | circular dependency. [ruby-dev:39339] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (install-all): target to install all.nobu2009-09-141-2/+9
| | | | | | | * tool/rbinstall.rb (parse_args): accept all install targets. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, common.mk, */configure.bat (rdoc): make beforenobu2009-09-141-2/+3
| | | | | | | install if rdoc is enabled. [ruby-dev:39325] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (check-ruby): run all test of ruby itself.nobu2009-09-141-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, common.mk: move a id.h generation rule.ko12009-09-061-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: dependencies updated.akr2009-08-301-18/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (MAKEDIRS): define.usa2009-08-241-1/+1
| | | | | | | | * common.mk (capi): using $(MAKEDIRS), so depends on $(PREP). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/unicode/name2ctype.h: split from enc/unicode.c and made anobu2009-08-211-2/+4
| | | | | | | perfect hash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (yes-test-knownbug): use RUNRUBY instead of MINIRUBY.usa2009-08-121-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (class2path, w_unique, w_extended, w_class, w_uclass):nobu2009-08-091-1/+1
| | | | | | | | | | | | | deal with non-ascii class path. [ruby-core:24790] * marshal.c (r_unique, path2class, path2module, obj_alloc_by_path), (r_object0): ditto. * variable.c (rb_path_to_class): new encoding-aware function to get a class from its name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (ruby.imp): excluded prelude.o to get rid of circularnobu2009-08-091-4/+5
| | | | | | | dependency. [ruby-dev:39052] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: replaces "require" with in-place evaluationyugui2009-07-301-1/+1
| | | | | | | | | | | so that copy & paste for lib/rubygems/default.rb is not necessary. * gem_prelude.rb: removes copied codes from lib/rubygems/defaults.rb. uses require instead. * common.mk (prelude.c): adds dependency for lib/rubygems/defaults.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (class.o): depends on vm_core.h.nobu2009-07-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, Makefile.in (TEST_RUNNABLE): tests are notnobu2009-07-201-5/+15
| | | | | | | | | runnable if cross-compiling. * common.mk (btest*, test*): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: add method.h.ko12009-07-151-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/rbinstall.rb: renamed to get rid of collision againstnobu2009-06-301-1/+1
| | | | | | | instruction.rb on command line completion of shell. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Doxyfile.in: removed. merged into template/Doxyfile.templateyugui2009-06-291-2/+2
| | | | | | | | | | | | * configure.in: new checking for dot and doxygen. * template/Doxyfile.template: merged with Doxyfile.in. configured some options. * common.mk (capi): use $(DOXYGEN) instead of "doxygen". (Doxyfile): removed a duplicate entry in the dependency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (COMPILE_PRELUDE): need -I. before -rrbconfig.usa2009-06-261-1/+1
| | | | | | | | [ruby-dev:38714] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (bignum.o, numeric.o): depend on util.h.nobu2009-05-261-2/+2
| | | | | | | | | | | * bignum.c, marshal.c: fixed types. * numeric.c (infinite_value): use ruby_div0. * include/ruby/util.h (ruby_div0): moved from marshal.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: moved into tool/.yugui2009-05-221-4/+4
| | | | | | | | | | | | | | | | * mkconfig.rb: ditto. * rubytest.rb: ditto. * runruby.rb: ditto. * common.mk: follows the moves. * configure.in: ditto. * win32/Makefile.sub: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: marked PHONY targets.nobu2009-05-141-11/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_cleanup): the order of local variables on stack isnobu2009-04-191-1/+1
| | | | | | | | | | | | undefined. should use outermost VALUE for ruby_init_stack. * gc.c (ruby_get_stack_grow_direction, Init_stack): allows volatile pointer. * thread_*.c (ruby_init_stack): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (up): updates timestamp file.nobu2009-04-101-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (info): shows configured names.nobu2009-04-071-0/+10
| | | | | | | | * configure.in (Makefile): works even if RUBY_INSTALL_NAME contains macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (ruby.imp): all symbols in static library need to benobu2009-03-281-2/+2
| | | | | | | | | exported, so that encoding-extensions can be loaded. based on a patch from Yutaka Kanemoto <kinpoco AT gmail.com> at [ruby-talk:332282]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (REVISION_H): keeps timestamp of revision.h.nobu2009-03-161-4/+9
| | | | | | | | | [ruby-core:22900] * tool/ifchange, win32/ifchange.bat: extended --timestamp option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, common.mk, win32/Makefile.sub: added preprocessing rules.nobu2009-03-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (.y.c): use SRC_FILE which contains slashes instead ofnobu2009-03-151-1/+1
| | | | | | | backslashes. [ruby-core:22891] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (srcs-ext): creates ext/dl/callback/callback.c also.nobu2009-03-141-3/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/ytab.sed: replaces backslashes with slash for nmake.nobu2009-03-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: removed a comment already has no meaning.nobu2009-03-061-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in, Makefile.in, win32/Makefile.sub (CHDIR): cd usingnobu2009-03-061-3/+3
| | | | | | | phisical directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, win32/Makefile.sub (INSNS): moved variablenobu2009-03-061-3/+0
| | | | | | | definition before rule. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (make_insns_rules): rule to make rules for insns.nobu2009-03-051-12/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (main): passes $(MAKE) to mkmain_cmdnobu2009-03-031-1/+1
| | | | | | | * ext/extmk.rb (command_output): uses arguments to invoke make. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (.y.c): removed extra backslash. [ruby-core:22602]nobu2009-03-011-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (INSNS, newline.c, miniprelude.c, prelude.c),nobu2009-02-261-0/+9
| | | | | | | | (node_name.inc, known_errors.inc): unified from Makefile.in and win32/Makefile.sub. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (main): split from exts and makes main program afternobu2009-02-241-3/+10
| | | | | | | | | | | | | | building exts with miniruby, to get rid of overwriting running program. [ruby-core:22339] * Makefile.in, win32/Makefile.sub (RUNCMD, MKMAIN_CMD): macros to run script file. * ext/extmk.rb (parse_args): added --command-output option which creates script file to make main program. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (ripper.c): exec can't work on Windows.nobu2009-02-241-1/+1
| | | | | | | * ext/ripper/depend (.SUFFIXES): nmake doesn't have .y by default. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (id.h): updates from parse.h.nobu2009-02-041-4/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e