public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/13702] New: [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers.
@ 2004-01-15 19:09 toon at moene dot indiv dot nluug dot nl
2004-01-15 19:11 ` [Bug fortran/13702] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: toon at moene dot indiv dot nluug dot nl @ 2004-01-15 19:09 UTC (permalink / raw)
To: gcc-bugs
Currently, when preprocessing Fortran files, gfortran calls cpp with the -P
option, which prevents it to emit line number information.
The reason for this is that, at the moment, the Fortran front end cannot process
these directives.
However, for debugging purposes it's paramount that this infomation is emitted
by cpp and interpreted by the Fortran front end; without it, line numbers in
debugging records will refer to the lines in the preprocessed source, not the
original.
--
Summary: [gfortran] When preprocessing Fortran files (.F, .F90
and .F95) cpp should emit line numbers.
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: toon at moene dot indiv dot nluug dot nl
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13702
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/13702] [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers.
2004-01-15 19:09 [Bug fortran/13702] New: [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers toon at moene dot indiv dot nluug dot nl
@ 2004-01-15 19:11 ` pinskia at gcc dot gnu dot org
2004-04-30 13:23 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-15 19:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-15 19:11 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-01-15 19:11:08
date| |
Target Milestone|--- |tree-ssa
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13702
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/13702] [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers.
2004-01-15 19:09 [Bug fortran/13702] New: [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers toon at moene dot indiv dot nluug dot nl
2004-01-15 19:11 ` [Bug fortran/13702] " pinskia at gcc dot gnu dot org
@ 2004-04-30 13:23 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-12 14:21 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-04-30 13:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de 2004-04-30 12:38 -------
I have a patch for this, ported from Andy's tree. Waiting for my copyright
assignment.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |Tobias dot Schlueter at
| |physik dot uni-muenchen dot
| |de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13702
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/13702] [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers.
2004-01-15 19:09 [Bug fortran/13702] New: [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers toon at moene dot indiv dot nluug dot nl
2004-01-15 19:11 ` [Bug fortran/13702] " pinskia at gcc dot gnu dot org
2004-04-30 13:23 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-05-12 14:21 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-16 20:27 ` cvs-commit at gcc dot gnu dot org
2004-05-17 3:48 ` tobi at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2004-05-12 14:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de 2004-05-11 17:37 -------
Patch here: http://gcc.gnu.org/ml/fortran/2004-05/msg00106.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13702
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/13702] [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers.
2004-01-15 19:09 [Bug fortran/13702] New: [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers toon at moene dot indiv dot nluug dot nl
` (2 preceding siblings ...)
2004-05-12 14:21 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2004-05-16 20:27 ` cvs-commit at gcc dot gnu dot org
2004-05-17 3:48 ` tobi at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-05-16 20:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-05-15 17:31 -------
Subject: Bug 13702
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: tobi@gcc.gnu.org 2004-05-15 17:31:32
Modified files:
gcc/fortran : ChangeLog error.c gfortran.h lang-specs.h
match.c module.c parse.c scanner.c trans-decl.c
trans-io.c trans.c
Log message:
PR fortran/13702
(Port from g95)
* gfortran.h (gfc_linebuf): New typedef.
(linebuf): Remove.
(gfc_file): Revamped, use new gfc_linebuf.
(locus): Revamped, use new types.
(gfc_current_file): Remove.
(gfc_current_form, gfc_source_file): New global variables.
* match.c (gfc_match_space, gfc_match_strings): Use
gfc_current_form to find source form.
* module.c (gfc_dump_module): Use gfc_source_file when printing
module header.
* error.c (show_locus, show_loci) Use new data structures to print
locus.
* scanner.c (first_file, first_duplicated_file, gfc_current_file):
Remove.
(file_head, current_file, gfc_current_form, line_head, line_tail,
gfc_current_locus1, gfc_source_file): New global variables.
(gfc_scanner_init1): Set new global variables.
(gfc_scanner_done1): Free new data structures.
(gfc_current_locus): Return pointer to gfc_current_locus1.
(gfc_set_locus): Set gfc_current_locus1.
(gfc_at_eof): Set new variables.
(gfc_at_bol, gfc_at_eol, gfc_advance_line, gfc_next_char): Adapt
to new locus structure.
(gfc_check_include): Remove.
(skip_free_comments, skip_fixed_comments): Use gfc_current_locus1.
(gfc_skip_comments): Use gfc_current_form, find locus with
gfc_current_locus1.
(gfc_next_char): Use gfc_current_form.
(gfc_peek_char, gfc_gobble_whitespace): Use gfc_current_locus1.
(load_line): Use gfc_current_form. Recognize ^Z as EOF. Fix
comment formatting.
(get_file): New function.
(preprocessor_line, include_line): New functions.
(load_file): Move down, rewrite to match new data structures.
(gfc_new_file): Rewrite to match new data structures.
* parse.c (next_statement): Remove code which is now useless. Use
gfc_source_form and gfc_source_file where appropriate.
* trans-decl.c (gfc_get_label_decl): adapt to new data structures
when determining locus of frontend code.
* trans-io.c (set_error_locus): Same.
* trans.c (gfc_get_backend_locus, gfc_set_backend_locus): Likewise.
* lang-specs.h (@f77-cpp-input, @f95-cpp-input): Remove '-P' from
preprocessor flags.
(all): Add missing initializers.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&r1=1.16&r2=1.17
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/error.c.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/gfortran.h.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/lang-specs.h.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/match.c.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/module.c.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/parse.c.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/scanner.c.diff?cvsroot=gcc&r1=1.3&r2=1.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-decl.c.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-io.c.diff?cvsroot=gcc&r1=1.4&r2=1.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans.c.diff?cvsroot=gcc&r1=1.4&r2=1.5
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13702
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/13702] [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers.
2004-01-15 19:09 [Bug fortran/13702] New: [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers toon at moene dot indiv dot nluug dot nl
` (3 preceding siblings ...)
2004-05-16 20:27 ` cvs-commit at gcc dot gnu dot org
@ 2004-05-17 3:48 ` tobi at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: tobi at gcc dot gnu dot org @ 2004-05-17 3:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tobi at gcc dot gnu dot org 2004-05-16 19:04 -------
Fixed by the above commit.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13702
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-05-16 19:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-15 19:09 [Bug fortran/13702] New: [gfortran] When preprocessing Fortran files (.F, .F90 and .F95) cpp should emit line numbers toon at moene dot indiv dot nluug dot nl
2004-01-15 19:11 ` [Bug fortran/13702] " pinskia at gcc dot gnu dot org
2004-04-30 13:23 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-12 14:21 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-05-16 20:27 ` cvs-commit at gcc dot gnu dot org
2004-05-17 3:48 ` tobi at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).