This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r132775 - in /trunk/gcc: ChangeLog c-lex.c cp/C...
- From: tromey at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Fri, 29 Feb 2008 20:09:06 -0000
- Subject: r132775 - in /trunk/gcc: ChangeLog c-lex.c cp/C...
Author: tromey
Date: Fri Feb 29 20:09:05 2008
New Revision: 132775
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132775
Log:
gcc
* toplev.c (input_file_stack, input_file_stack_tick, fs_p,
input_file_stack_history, input_file_stack_restored): Remove.
(push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
* input.h (struct file_stack): Remove.
(push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
(input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
Likewise.
* diagnostic.h (struct diagnostic_context) <last_module>: Change
type.
(diagnostic_last_module_changed): Add 'map' argument.
(diagnostic_set_last_function): Likewise.
* diagnostic.c (undiagnostic_report_current_module): Iterate using
line map, not input_file_stack.
* c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
gcc/cp
* parser.c (struct cp_token) <input_file_stack_index>: Remove.
(cp_lexer_get_preprocessor_token): Update.
(cp_lexer_set_source_position_from_token): Don't call
restore_input_file_stack.
* lex.c (cxx_init): Don't use push_srcloc or pop_srcloc.
gcc/testsuite
* g++.dg/warn/pragma-system_header2.C: Ignore "included from"
line.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-lex.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/lex.c
trunk/gcc/cp/parser.c
trunk/gcc/diagnostic.c
trunk/gcc/diagnostic.h
trunk/gcc/input.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/warn/pragma-system_header2.C
trunk/gcc/toplev.c