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: Tue, 17 Jul 2012 11:55:40 +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|UNCONFIRMED |NEW
Keywords| |wrong-debug
Last reconfirmed| |2012-07-17
CC| |burnus at gcc dot gnu.org
Ever Confirmed|0 |1
Summary|gfortran ignores file part |gfortran ignores file part
|of #line directives |of #line directives for
| |debugging
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-07-17 11:55:40 UTC ---
Confirmed.
For diagnostic output, the file name is taken into account, but not for
generating debug info.
That the diagnostic part is okay, can be seen when making the test case
invalid, but also when looking at the code generated by
-fdump-tree-original-lineno (the correct file name is passed to the I/O
library).
In principle, it is handled via gcc/fortran/scanner.c's preprocessor_line().
The question is why it only works partially.