2012-07-16  Basile Starynkevitch  <basile@starynkevitch.net>

	* common.opt (fmelt-generated-c-file-list=): New option.

	* melt-runtime.c (melt_generated_c_files_list_fil): New static variable.
	(melt_argument): Handle generated-c-file-list.
	(melt_really_initialize): Use it.
	(do_finalize_melt): Close it.
	(melt_output_cfile_decl_impl_secondary_option): Write the
	generated C file list.

	* doc/melt.texi (Invoking MELT): Document
	-fmelt-generated-c-file-list= option.

	* Makefile.in (melt-build-param.sh): New target, a shell sourcable
	file.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189529 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-16  Basile Starynkevitch  <basile@starynkevitch.net>
	* melt-runtime.c
	(melt_output_cfile_decl_impl_secondary_option): More pretty
	generated C file list.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189531 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-16  Basile Starynkevitch  <basile@starynkevitch.net>
	* Makefile.in (melt-build-param.sh): Bettet GCCMELT_STAGE_ZERO.
	* melt-build-script.def: New file.
	* melt-build-script.tpl: New file. Not working yet.
	* melt-build-script.sh: New generated file. Not working yet.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189540 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-17  Basile Starynkevitch  <basile@starynkevitch.net>
	* melt-build-script.tpl: Emit the meltbuild_emit command. Not working yet.

	* melt-build-script.sh: New generated file. Not working yet.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189561 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-17  Basile Starynkevitch  <basile@starynkevitch.net>
	* melt-build-script.tpl: Emit the meltbuild_emit command. Still buggy.

	* melt-build-script.sh: New generated file. Still buggy.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189576 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-17  Basile Starynkevitch  <basile@starynkevitch.net>
	* melt-runtime.c (melt_load_module_index): Improved error messages
	when module is not found.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189578 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-17  Basile Starynkevitch  <basile@starynkevitch.net>
	* melt-build-script.tpl: Works up to stage3, with fix for typo
	melt-workdir -> meltbuild-workdir twice...
	* melt-build-script.sh: Regenerate.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189579 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-17  Basile Starynkevitch  <basile@starynkevitch.net>
	* Makefile.in (melt-build-param.sh): Better quoting.

	* melt-module.mk: Use GCCMELT_MODULE_DEPENDENCIES as a dependency
	for all compilations.

	* melt-build-script.tpl: Emit it.

	* melt-build-script.sh: Regenerate.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189580 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-18  Basile Starynkevitch  <basile@starynkevitch.net>

	* melt-build-script.tpl: More comments. Add meltbuild-sources
	step.

	* melt-build-script.sh: Regenerate.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189608 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-18  Basile Starynkevitch  <basile@starynkevitch.net>
	* Makefile.in (melt-build-param.mk, melt-build-param.sh): Emit
	GCCMELT_CC1_PREFIX if defined.

	* melt-build-script.tpl: Define internal variables like
	GCCMELT_STAGE or GCCMELT_SKIPEMITC.  Skip useless stages which
	don't do anything.

	* melt-build-script.sh: Regenerate.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189614 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-18  Basile Starynkevitch  <basile@starynkevitch.net>

	* melt-build-script.tpl: Compile translator modules in all flavors
	into meltbuild-modules.

	* melt-build-script.sh: Regenerate.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189615 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-18  Basile Starynkevitch  <basile@starynkevitch.net>

	* melt-build-script.tpl: Still buggy, the meltbuild-modules/
	should have files with an md5sum inside.

	* melt-build-script.sh: Regenerate.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189616 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-19  Basile Starynkevitch  <basile@starynkevitch.net>

	* melt-run.proto.h (start_module_melt): Temporary defined as
	melt_start_this_module.

	* melt-runtime.h: Use dash in copyright years.
	Improve comment about gt-melt-runtime.h inclusion.
	(melt_load_module_index): Use melt_start_this_module.
	Improve error messages when failing.
	(melt_output_cfile_decl_impl_secondary_option): Write the main C
	name in the list of generated C files.

	* melt/warmelt-outobj.melt (outpucod_initialroutine): The emitted
	module starting routine is melt_start_this_module.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189645 138bc75d-0d04-0410-961f-82ee72b054a4
2012-07-19  Basile Starynkevitch  <basile@starynkevitch.net>
	{{Regenerate all}}

	* melt/generated/meltrunsup-inc.c: Regenerate.
	* melt/generated/meltrunsup.h: Regenerate.
	* melt/generated/warmelt-base+01.c: Regenerate.
	* melt/generated/warmelt-base+02.c: Regenerate.
	* melt/generated/warmelt-base+03.c: Regenerate.
	* melt/generated/warmelt-base+meltdesc.c: Regenerate.
	* melt/generated/warmelt-base+melttime.h: Regenerate.
	* melt/generated/warmelt-base.c: Regenerate.
	* melt/generated/warmelt-debug+01.c: Regenerate.
	* melt/generated/warmelt-debug+02.c: Regenerate.
	* melt/generated/warmelt-debug+meltdesc.c: Regenerate.
	* melt/generated/warmelt-debug+melttime.h: Regenerate.
	* melt/generated/warmelt-debug.c: Regenerate.
	* melt/generated/warmelt-first+01.c: Regenerate.
	* melt/generated/warmelt-first+02.c: Regenerate.
	* melt/generated/warmelt-first+03.c: Regenerate.
	* melt/generated/warmelt-first+meltdesc.c: Regenerate.
	* melt/generated/warmelt-first+melttime.h: Regenerate.
	* melt/generated/warmelt-first.c: Regenerate.
	* melt/generated/warmelt-genobj+01.c: Regenerate.
	* melt/generated/warmelt-genobj+02.c: Regenerate.
	* melt/generated/warmelt-genobj+03.c: Regenerate.
	* melt/generated/warmelt-genobj+04.c: Regenerate.
	* melt/generated/warmelt-genobj+05.c: Regenerate.
	* melt/generated/warmelt-genobj+meltdesc.c: Regenerate.
	* melt/generated/warmelt-genobj+melttime.h: Regenerate.
	* melt/generated/warmelt-genobj.c: Regenerate.
	* melt/generated/warmelt-macro+01.c: Regenerate.
	* melt/generated/warmelt-macro+02.c: Regenerate.
	* melt/generated/warmelt-macro+03.c: Regenerate.
	* melt/generated/warmelt-macro+04.c: Regenerate.
	* melt/generated/warmelt-macro+05.c: Regenerate.
	* melt/generated/warmelt-macro+meltdesc.c: Regenerate.
	* melt/generated/warmelt-macro+melttime.h: Regenerate.
	* melt/generated/warmelt-macro.c: Regenerate.
	* melt/generated/warmelt-modes+01.c: Regenerate.
	* melt/generated/warmelt-modes+02.c: Regenerate.
	* melt/generated/warmelt-modes+meltdesc.c: Regenerate.
	* melt/generated/warmelt-modes+melttime.h: Regenerate.
	* melt/generated/warmelt-modes.c: Regenerate.
	* melt/generated/warmelt-normal+01.c: Regenerate.
	* melt/generated/warmelt-normal+02.c: Regenerate.
	* melt/generated/warmelt-normal+03.c: Regenerate.
	* melt/generated/warmelt-normal+04.c: Regenerate.
	* melt/generated/warmelt-normal+05.c: Regenerate.
	* melt/generated/warmelt-normal+meltdesc.c: Regenerate.
	* melt/generated/warmelt-normal+melttime.h: Regenerate.
	* melt/generated/warmelt-normal.c: Regenerate.
	* melt/generated/warmelt-normatch+01.c: Regenerate.
	* melt/generated/warmelt-normatch+02.c: Regenerate.
	* melt/generated/warmelt-normatch+03.c: Regenerate.
	* melt/generated/warmelt-normatch+04.c: Regenerate.
	* melt/generated/warmelt-normatch+05.c: Regenerate.
	* melt/generated/warmelt-normatch+meltdesc.c: Regenerate.
	* melt/generated/warmelt-normatch+melttime.h: Regenerate.
	* melt/generated/warmelt-normatch.c: Regenerate.
	* melt/generated/warmelt-outobj+01.c: Regenerate.
	* melt/generated/warmelt-outobj+02.c: Regenerate.
	* melt/generated/warmelt-outobj+03.c: Regenerate.
	* melt/generated/warmelt-outobj+04.c: Regenerate.
	* melt/generated/warmelt-outobj+05.c: Regenerate.
	* melt/generated/warmelt-outobj+meltdesc.c: Regenerate.
	* melt/generated/warmelt-outobj+melttime.h: Regenerate.
	* melt/generated/warmelt-outobj.c: Regenerate.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189646 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-19  Basile Starynkevitch  <basile@starynkevitch.net>

	* melt-run.proto.h (start_module_melt): Remove.

	* melt-runtime.c (melt_trace_dynlink_fil): Declare static
	variable.
	(melt_load_module_index): Use it.
	(melt_really_initialize): Initialize it from GCCMELT_TRACE_DYNLINK
	environment variable.
	(do_finalize_melt): Close it.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189648 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-19  Basile Starynkevitch  <basile@starynkevitch.net>
	* melt-runtime.c (melt_trace_dynlink_fil): Remove and rename as...
	(melt_trace_module_fil): New static variable, see
	GCCMELT_TRACE_MODULE environment variable.
	(melt_trace_source_fil): New static variable, see
	GCCMELT_TRACE_SOURCE environment variable.
	(MELT_FILE_LOG): New macro constant.
	(melt_find_file_at): Handle and use it.
	(meltgc_read_file): Trace source files.
	(melt_load_module_index): Trace module files.
	(meltgc_load_module_list): Trace source files.
	(melt_really_initialize): Trace using GCCMELT_TRACE_MODULE &
	GCCMELT_TRACE_SOURCE environment variables.
	(do_finalize_melt): Close trace files of modules & sources.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189649 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-19  Basile Starynkevitch  <basile@starynkevitch.net>
	* melt-runtime.c (MELT_FILE_IN_ENVIRON_PATH): Mew macro constant.
	(melt_find_file_at): Handle it.
	(meltgc_read_file, melt_load_module_index)
	(meltgc_load_module_list): Use it.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189654 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-19  Basile Starynkevitch  <basile@starynkevitch.net>

	* melt-runtime.c (melt_find_file_at): Silently continue when the
	directory or path or environment name is null or empty.
	(melt_load_module_index): Better trace message.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189656 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-19  Basile Starynkevitch  <basile@starynkevitch.net>

	* melt/warmelt-base.melt (generate_flavored_melt_module): Move.
	(generate_optimized_melt_module, generate_debug_melt_module)
	(generate_quickly_melt_module): Obsolete primitives.

	* melt/warmelt-modes.melt (runfile_docmd, rundebug_docmd): Use
	generate_flavored_melt_module.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189660 138bc75d-0d04-0410-961f-82ee72b054a4

2012-07-19  Basile Starynkevitch  <basile@starynkevitch.net>
	{{Regenerate all}}

	* melt/generated/warmelt-base+01.c: Regenerate.
	* melt/generated/warmelt-base+02.c: Regenerate.
	* melt/generated/warmelt-base+03.c: Regenerate.
	* melt/generated/warmelt-base+meltdesc.c: Regenerate.
	* melt/generated/warmelt-base+melttime.h: Regenerate.
	* melt/generated/warmelt-base.c: Regenerate.
	* melt/generated/warmelt-debug+meltdesc.c: Regenerate.
	* melt/generated/warmelt-debug+melttime.h: Regenerate.
	* melt/generated/warmelt-first+meltdesc.c: Regenerate.
	* melt/generated/warmelt-first+melttime.h: Regenerate.
	* melt/generated/warmelt-genobj+meltdesc.c: Regenerate.
	* melt/generated/warmelt-genobj+melttime.h: Regenerate.
	* melt/generated/warmelt-macro+meltdesc.c: Regenerate.
	* melt/generated/warmelt-macro+melttime.h: Regenerate.
	* melt/generated/warmelt-modes+01.c: Regenerate.
	* melt/generated/warmelt-modes+02.c: Regenerate.
	* melt/generated/warmelt-modes+meltdesc.c: Regenerate.
	* melt/generated/warmelt-modes+melttime.h: Regenerate.
	* melt/generated/warmelt-modes.c: Regenerate.
	* melt/generated/warmelt-normal+meltdesc.c: Regenerate.
	* melt/generated/warmelt-normal+melttime.h: Regenerate.
	* melt/generated/warmelt-normatch+meltdesc.c: Regenerate.
	* melt/generated/warmelt-normatch+melttime.h: Regenerate.
	* melt/generated/warmelt-outobj+meltdesc.c: Regenerate.
	* melt/generated/warmelt-outobj+melttime.h: Regenerate.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@189661 138bc75d-0d04-0410-961f-82ee72b054a4