re PR fortran/33502 (gfortran with .F suffix and -g3 option chokes on preprocessor...
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 4 Oct 2007 15:04:09 +0000 (15:04 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 4 Oct 2007 15:04:09 +0000 (15:04 +0000)
commit9e8a67206955a2aa97f77991358c009992b30a95
tree84713ee9ee2363bfb664ffc3692e457e1493f1ed
parent7dc83ebc4a15beeba41e01a0e1a9d3981bc6182c
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->end_source_file
and debug_hooks->start_source_file when appropriate, and set
dbg_emitted.
(gfc_define_undef_line): New function.
(load_file): Don't error out on #define and #undef lines.
* parse.c (next_statement): Call gfc_define_undef_line.
(gfc_parse_file): Call debug_hooks->start_source_file and
debug_hooks->end_source_file for the main source file if
required.
* gfortran.h (gfc_linebuf): Add dbg_emitted field.
(gfc_define_undef_line): New prototype.

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