This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
gcc/gcc cpplib.h cppfiles.c c-common.h c-commo ...
- From: bothner at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: 1 Dec 2003 06:08:29 -0000
- Subject: gcc/gcc cpplib.h cppfiles.c c-common.h c-commo ...
CVSROOT: /cvs/gcc
Module name: gcc
Branch: compile-server-branch
Changes by: bothner@gcc.gnu.org 2003-12-01 06:08:29
Modified files:
gcc : cpplib.h cppfiles.c c-common.h c-common.c
ChangeLog
Log message:
* cpplib.h (struct cpp_callbacks): Remove use of PARAMS macro.
Drop last two parameters of enter_fragment call-back.
* cppfiles.c (_cpp_enter_fragment): Likewise.
* c-common.h (cb_enter_fragment): Likewise.
* c-common.h (track_dependencies, track_declarations): New globals.
* c-common.c (track_dependencies, track_declarations): New globals.
(create_builtins_fragment): Set track_declarations.
(register_fragment_dependency): Do nothing unless track_dependencies.
(cb_enter_fragment): Calculate file name and line internally,
rather than being passed as parameters.
Set track_dependencies and track_declarations.
(cb_exit_fragment): Clear track_dependencies and track_declarations.
* c-common.c (cb_enter_fragment): Tweak inform messages.
* c-common.c (count_register_fragment_dependency_calls,
count_nonredundant_register_fragment_dependency_calls,
count_fragment_declarations, count_fragment_tags,
int count_new_fragments, count_new_empty_fragments,
lines_new_fragments, count_reread_fragments,
count_reread_empty_fragments, lines_reread_fragments,
count_reused_fragments, count_reused_empty_fragments,
lines_reused_fragments, current_fragment_is_new,
current_fragment_nested_at_start, current_fragment_nested_at_end):
New counters used for gathering statistics.
(note_fragment_binding_1, note_fragment_binding_3,
register_fragment_dependency, cb_enter_fragment, cb_exit_fragment):
Adjust counters.
(define gather_fragment_statistics): Enable/disable statistics.
(report_fragment_statistics): Print out statistics.
Patches:
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.8&r2=1.261.2.9
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.9&r2=1.177.2.10
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.8&r2=1.194.2.9
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.12&r2=1.438.2.13
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=compile-server-branch&r1=2.618.2.59&r2=2.618.2.60