re PR debug/33739 (Failure of gfortran.dg/literal_character_constant_1_*.F with ...
commit60332588d6194a8636748a484f102d8b36eef80d
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Dec 2007 19:50:56 +0000 (5 20:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Dec 2007 19:50:56 +0000 (5 20:50 +0100)
treecab5c222f0441c84dd8b90bf0301cd07c43d705d
parentbce623434fce35c3d515224b70e08d03fabce691
re PR debug/33739 (Failure of gfortran.dg/literal_character_constant_1_*.F with -m64 -g on Darwin)

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.

From-SVN: r130629
gcc/fortran/ChangeLog
gcc/fortran/error.c
gcc/fortran/gfortran.h
gcc/fortran/parse.c
gcc/fortran/scanner.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/debug_2.f [new file with mode: 0644]