This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r130629 - in /trunk/gcc: fortran/ChangeLog fort...
- From: jakub at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 05 Dec 2007 19:50:56 -0000
- Subject: r130629 - in /trunk/gcc: fortran/ChangeLog fort...
Author: jakub
Date: Wed Dec 5 19:50:56 2007
New Revision: 130629
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130629
Log:
PR debug/33739
* gfortran.h (gfc_file): Remove included_by field, add sibling and
down.
(gfc_start_source_files, gfc_end_source_files): New prototypes.
* parse.c (gfc_parse_file): Call gfc_start_source_files and
gfc_end_source_files instead of calling the debugging hooks directly.
* error.c (show_locus): Use up field instead of included_by.
* scanner.c (change_file, gfc_start_source_files,
gfc_end_source_files): New functions.
(gfc_advance_line): Call change_file instead of calling debug hooks
directly.
(get_file): Set up rather than included_by. Initialize down and
sibling.
(preprocessor_line, load_file): Don't set up field here.
* gfortran.dg/debug_2.f: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/debug_2.f
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/error.c
trunk/gcc/fortran/gfortran.h
trunk/gcc/fortran/parse.c
trunk/gcc/fortran/scanner.c
trunk/gcc/testsuite/ChangeLog