re PR fortran/33502 (gfortran with .F suffix and -g3 option chokes on preprocessor...
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 22 Sep 2007 15:03:24 +0000 (15:03 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Sat, 22 Sep 2007 15:03:24 +0000 (15:03 +0000)
commita3b2d4e56c6086a6af1aae2ef3a540171609e153
tree2389a4ad99837b8fe86ec6a45f7d52d1eb8796e8
parent9fa6cfec03275391d93cf67e1691f11c053f1220
re PR fortran/33502 (gfortran with .F suffix and -g3 option chokes on preprocessor syntax)

PR fortran/33502
* scanner.c (gfc_advance_line): Call debug_hooks->start_source_file
and debug_hooks->end_source_file when entering and exiting
included files.
(gfc_define_undef_line): New function.
(load_file): Ignore #define and #undef preprocessor lines
while reading source files.
* parse.c (next_statement): Handle #define and #undef
preprocessor lines.
(gfc_parse_file): Call debug_hooks->start_source_file and
debug_hooks->end_source_file for the main source file if
requested by the debug format.
* gfortran.h (gfc_define_undef_line): Add prototype.

From-SVN: r128671
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/parse.c
gcc/fortran/scanner.c