gcc/gcc c-common.c c-common.h c-decl.c c-incpa ...
mrs@gcc.gnu.org
mrs@gcc.gnu.org
Thu Jan 22 04:10:00 GMT 2004
CVSROOT: /cvs/gcc
Module name: gcc
Branch: compile-server-branch
Changes by: mrs@gcc.gnu.org 2004-01-22 04:10:28
Modified files:
gcc : c-common.c c-common.h c-decl.c c-incpath.c
c-incpath.h c-objc-common.c c-opts.c c-pch.c
ChangeLog cppfiles.c cppinit.c cpplib.h gcc.c
Makefile.in opts.c toplev.c
gcc/config : darwin-c.c
gcc/cp : ChangeLog cp-lang.c decl.c lang-specs.h lex.c
gcc/objc : lang-specs.h
Log message:
Move options processing from server command line to client command
line, default server starting to on.
* c-pch.c (c_common_read_pch): Allow options to initialized more
than once.
(c_common_no_more_pch): Don't unmap more than once, as other
compilation units can reuse the PCH state as is.
* c-opts.c (max_deferred): Add.
(defer_opt): Add bounds check.
(c_common_init_options): Allow options to initialized more than
once.
(c_common_post_options): Likewise.
(reinit_copts): Likewise.
(init_c_common_once): Likewise.
(c_common_parse_file): Likewise.
(c_common_parse_file): Moved pch-init to here.
(finish_options): Allow options to initialized more than once.
* c-objc-common.c (init_c_objc_common_once): Allow options to
initialized more than once.
* c-incpath.h (reinit_incpath): Add.
* c-incpath.c (reinit_incpath): Add.
* c-decl.c (init_c_decl_processing_eachsrc): Don't
reset_cpp_hashnodes.
(init_c_decl_processing_once): Allow options to initialized more
than once.
* c-common.h (synthetic_exit_fragment): Add.
* c-common.c (create_builtins_fragment): Allow options to
initialized more than once.
(gather_fragment_statistics): Always output fragment stats, for now.
(reset_cpp_hashnodes): Allow options to initialized more than
once.
(synthetic_exit_fragment): Add.
(create_output_fragment): Only create output fragments when in
sever mode 2.
(end_output_fragment): Likewise.
(create_output_fragment): Set the name of the fragment.
(create_cmdline_fragment): Add.
(end_cmdline_fragment): Add.
(init_cmdline_fragment): Add.
(activate_cmdline_fragment): Add.
* toplev.c (wrapup_global_declarations): Call
DECL_NEWEST_DUPLICATE on decl.
(wrapup_global_declarations): Don't infinitely loop if the decl
has been written out already.
(lang_dependent_init): Move pch_init from here.
(init_compile_once): Allow options to initialized more than once.
(server_loop): Free asm_file_name and input filenames.
(server_loop): Allow options to initialized more than once.
(toplev_main): Allow options to initialized more than once.
* opts.c (reinit_opts): Add.
(decode_options): Allow options to initialized more than once.
* objc/lang-specs.h: Simplify and allow -server to be the default.
* Makefile.in (TEST_TARGET): Remove coverage.o, as it cannot be
processed twice.
(start-server): Remove unneeded arguments.
* gcc.c: Default server to on.
(write_input_request): Remove.
(write_input_requests): Remove.
(cpp_unique_options): Simplify and allow -server to be the default.
(cc1_options): Likewise.
(default_compilers): Likewise.
(execute): Add code to allow -server to be the default.
(start_server): Add.
(waitforgo): Add.
(get_server_socket): Add compile server starting.
(write_switch_fds_request): Use waitforgo.
(process_command): Don't -pipe, as it defeats snarf-n-barf of asm
for fragments.
(pexecute_server): Remove call to write_input_requests as we now
handle them normally.
* cpplib.h (cpp_notice_updates): Add.
* cppinit.c (cpp_push_main_file): We start a new fragment for C++
for the main file.
* cppfiles.c (struct _cpp_file_data): Add generation.
(generation): Add.
(file_modified): Add.
(cpp_notice_updates): Add.
(open_file): Notice when a file has been modified.
(_cpp_find_file): Don't reuse a PCH file that has been read once.
(_cpp_find_file): If we re-validate the PCH file, reuse the fd.
(read_file_guts): Track the generation number of file that are
read.
(file_changed): Add.
(read_file): Notice when a file has been modified.
(_cpp_stack_file): Remove fragment starting code, as it is now
redundant with normal fragment processing.
(purge_fragments): Use delete_fragment.
(_cpp_pop_file_buffer): Add code to allow C++ to reuse the main
file.
* config/darwin-c.c (reinit_frameworks): Add.
(darwin_register_frameworks_real): Use reinit_frameworks to
reinitialize framework processing.
* c-common.c (reset_hashnode): Also clear NODE_DIAGNOSTIC.
cp:
* lex.c (lang_clear_identifier): Don't clear symbol table as we
use a conditional symbol table.
* lang-specs.h: Simplify and allow -server to be the default.
* decl.c (init_cxx_decl_processing_once): Allow options to
initialized more than once.
(init_cxx_decl_processing_eachsrc): Likewise.
* lex.c (init_cxx_once): Likewise.
(init_cxx_eachsrc): Likewise.
(extract_interface_info): Likewise.
* cp-lang.c (LANG_HOOKS_FINISH_SERVER): Add.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.438.2.19&r2=1.438.2.20
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-common.h.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.194.2.13&r2=1.194.2.14
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-decl.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.417.2.15&r2=1.417.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-incpath.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.8.2.4&r2=1.8.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-incpath.h.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.3.4.2&r2=1.3.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-objc-common.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.29.2.10&r2=1.29.2.11
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-opts.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.79.2.15&r2=1.79.2.16
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-pch.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.13.4.2&r2=1.13.4.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=2.618.2.87&r2=2.618.2.88
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppfiles.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.177.2.18&r2=1.177.2.19
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cppinit.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.289.2.3&r2=1.289.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cpplib.h.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.261.2.11&r2=1.261.2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcc.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.389.2.11&r2=1.389.2.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/Makefile.in.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.1123.2.6&r2=1.1123.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/opts.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.31.4.7&r2=1.31.4.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/toplev.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.813.2.16&r2=1.813.2.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/darwin-c.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.5.6.3&r2=1.5.6.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.3550.2.8&r2=1.3550.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/cp-lang.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.57.2.5&r2=1.57.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/decl.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.1098.2.5&r2=1.1098.2.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/lang-specs.h.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.61.6.3&r2=1.61.6.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/lex.c.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.314.2.4&r2=1.314.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/lang-specs.h.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=1.32.6.3&r2=1.32.6.4
More information about the Gcc-cvs
mailing list