public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/25324] New: Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
@ 2005-12-09 7:22 taschna at uni-muenster dot de
2005-12-09 14:17 ` [Bug fortran/25324] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: taschna at uni-muenster dot de @ 2005-12-09 7:22 UTC (permalink / raw)
To: gcc-bugs
When compiling the following code with gfortran
(gcc version 4.0.2 20051125 (Red Hat 4.0.2-8)) it is afterwards not possible
to set a breakpoint on specific lines in the code:
$ cat main.F
PROGRAM Test
IMPLICIT NONE
WRITE(*,*) 'Hello World'
END
$ gfortran -g -save-temps main.F -o main
$ gdb main
GNU gdb Red Hat Linux (6.3.0.0-1.84rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db
library "/lib/libthread_db.so.1".
(gdb) l
1 # 1 "main.F"
2 # 1 "/home/taschna/gdbtest//"
3 # 1 "<built-in>"
4 # 1 "<command line>"
5 # 1 "main.F"
6 PROGRAM Test
7 IMPLICIT NONE
8
9 WRITE(*,*) 'Hello World'
10
(gdb) b 9
No line 9 in file "main.f".
According to the comments in the gdb bug database to bug fortran/2048
<http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=2048>
this is a bug in gfortran, because
the DW_TAG_compile_unit is set to 'main.f' which is a temporary file
created by the compiler and therefore "should not be mentioned in
debugging information".
--
Summary: Wrong DW_TAG_compile_unit generated when compiling
preprocessed fortran code
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: taschna at uni-muenster dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/25324] Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
2005-12-09 7:22 [Bug debug/25324] New: Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code taschna at uni-muenster dot de
@ 2005-12-09 14:17 ` pinskia at gcc dot gnu dot org
2005-12-31 19:34 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-09 14:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-12-09 14:17 -------
.ascii "/tmp/ccN3iGJ2.f\0" # DW_AT_name
.ascii "/tmp/ccyIGO76.f\0" # DW_AT_name
Confirmed. This is a front-end issue. I thought I had saw a dup of this bug
but I cannot find it.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|debug |fortran
Ever Confirmed|0 |1
Keywords| |wrong-debug
Last reconfirmed|0000-00-00 00:00:00 |2005-12-09 14:17:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/25324] Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
2005-12-09 7:22 [Bug debug/25324] New: Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code taschna at uni-muenster dot de
2005-12-09 14:17 ` [Bug fortran/25324] " pinskia at gcc dot gnu dot org
@ 2005-12-31 19:34 ` jakub at gcc dot gnu dot org
2006-01-27 20:02 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-12-31 19:34 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |12/msg01957.html
Status|NEW |ASSIGNED
Last reconfirmed|2005-12-09 14:17:28 |2005-12-31 19:34:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/25324] Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
2005-12-09 7:22 [Bug debug/25324] New: Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code taschna at uni-muenster dot de
2005-12-09 14:17 ` [Bug fortran/25324] " pinskia at gcc dot gnu dot org
2005-12-31 19:34 ` jakub at gcc dot gnu dot org
@ 2006-01-27 20:02 ` jakub at gcc dot gnu dot org
2006-01-27 20:04 ` jakub at gcc dot gnu dot org
2006-01-27 23:10 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-01-27 20:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2006-01-27 20:02 -------
Subject: Bug 25324
Author: jakub
Date: Fri Jan 27 20:01:55 2006
New Revision: 110304
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110304
Log:
PR fortran/25324
* Make-lang.in (fortran/scanner.o): Depend on toplev.h.
* lang.opt (fpreprocessed): New option.
* scanner.c: Include toplev.h.
(gfc_src_file, gfc_src_preprocessor_lines): New variables.
(preprocessor_line): Unescape filename if there were any
backslashes.
(load_file): If initial and gfc_src_file is not NULL,
use it rather than opening the file. If gfc_src_preprocessor_lines
has non-NULL elements, pass it to preprocessor_line.
(unescape_filename, gfc_read_orig_filename): New functions.
* gfortran.h (gfc_option_t): Add flag_preprocessed.
(gfc_read_orig_filename): New prototype.
* options.c (gfc_init_options): Clear flag_preprocessed.
(gfc_post_options): If flag_preprocessed, call
gfc_read_orig_filename.
(gfc_handle_option): Handle OPT_fpreprocessed.
* lang-specs.h: Pass -fpreprocessed to f951 if preprocessing
sources.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/Make-lang.in
trunk/gcc/fortran/gfortran.h
trunk/gcc/fortran/lang-specs.h
trunk/gcc/fortran/lang.opt
trunk/gcc/fortran/options.c
trunk/gcc/fortran/scanner.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/25324] Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
2005-12-09 7:22 [Bug debug/25324] New: Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code taschna at uni-muenster dot de
` (2 preceding siblings ...)
2006-01-27 20:02 ` jakub at gcc dot gnu dot org
@ 2006-01-27 20:04 ` jakub at gcc dot gnu dot org
2006-01-27 23:10 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-01-27 20:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2006-01-27 20:04 -------
Subject: Bug 25324
Author: jakub
Date: Fri Jan 27 20:03:59 2006
New Revision: 110305
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110305
Log:
PR fortran/25324
* Make-lang.in (fortran/scanner.o): Depend on toplev.h.
* lang.opt (fpreprocessed): New option.
* scanner.c: Include toplev.h.
(gfc_src_file, gfc_src_preprocessor_lines): New variables.
(preprocessor_line): Unescape filename if there were any
backslashes.
(load_file): If initial and gfc_src_file is not NULL,
use it rather than opening the file. If gfc_src_preprocessor_lines
has non-NULL elements, pass it to preprocessor_line.
(unescape_filename, gfc_read_orig_filename): New functions.
* gfortran.h (gfc_option_t): Add flag_preprocessed.
(gfc_read_orig_filename): New prototype.
* options.c (gfc_init_options): Clear flag_preprocessed.
(gfc_post_options): If flag_preprocessed, call
gfc_read_orig_filename.
(gfc_handle_option): Handle OPT_fpreprocessed.
* lang-specs.h: Pass -fpreprocessed to f951 if preprocessing
sources.
Modified:
branches/gcc-4_1-branch/gcc/fortran/ChangeLog
branches/gcc-4_1-branch/gcc/fortran/Make-lang.in
branches/gcc-4_1-branch/gcc/fortran/gfortran.h
branches/gcc-4_1-branch/gcc/fortran/lang-specs.h
branches/gcc-4_1-branch/gcc/fortran/lang.opt
branches/gcc-4_1-branch/gcc/fortran/options.c
branches/gcc-4_1-branch/gcc/fortran/scanner.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/25324] Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code
2005-12-09 7:22 [Bug debug/25324] New: Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code taschna at uni-muenster dot de
` (3 preceding siblings ...)
2006-01-27 20:04 ` jakub at gcc dot gnu dot org
@ 2006-01-27 23:10 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-27 23:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-01-27 23:10 -------
Fixed in 4.1.0.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25324
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-01-27 23:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-09 7:22 [Bug debug/25324] New: Wrong DW_TAG_compile_unit generated when compiling preprocessed fortran code taschna at uni-muenster dot de
2005-12-09 14:17 ` [Bug fortran/25324] " pinskia at gcc dot gnu dot org
2005-12-31 19:34 ` jakub at gcc dot gnu dot org
2006-01-27 20:02 ` jakub at gcc dot gnu dot org
2006-01-27 20:04 ` jakub at gcc dot gnu dot org
2006-01-27 23:10 ` pinskia 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).