This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/53993] gfortran ignores file part of #line directives for debugging
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Jul 2012 09:28:51 +0000
- Subject: [Bug fortran/53993] gfortran ignores file part of #line directives for debugging
- Auto-submitted: auto-generated
- References: <bug-53993-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53993
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |NEW
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-07-18 09:28:51 UTC ---
Unfortunately, my attempts to generate a working patch failed, cf.
http://gcc.gnu.org/ml/fortran/2012-07/msg00082.html
http://gcc.gnu.org/ml/fortran/2012-07/msg00085.html
I always end up with warnings of the form "filename left but not entered".
This warning is generated in scanner.c's preprocessor_line.
I think someone needs to understand what input can be expected. In particular:
How to handle the first few lines of the CPP output, of which only the last
seems to be relevant vs. those of #line directives, all of which have no flag.
For the last failing test case, the file (gfortran -E) starts with:
# 1 "libgfortran/generated/_abs_c4.F90"
# 1 "<command-line>"
# 1 "gcc-build/x86_64-unknown-linux-gnu/libgfortran//"
# 1 "libgfortran/generated/_abs_c4.F90"
Which is one line more than before.