public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/20774] New: Debug information in .o (from FORTRAN) points to temporary file under certain circumstances @ 2005-04-05 20:09 chissg at comcast dot net 2005-04-05 22:15 ` [Bug fortran/20774] [3.4 Regression] [g77 only] " pinskia at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 7+ messages in thread From: chissg at comcast dot net @ 2005-04-05 20:09 UTC (permalink / raw) To: gcc-bugs Compiling short subroutine below (with included .inc file) produces defective debug information referring to temporary file. Pre-processed file not included because -save-temps option (slightly) changes the nature of the problem, and compiling the preprocessed .f file will not exhibit the problem. ### begin cblock.inc ### REAL X,Y,Z COMMON /CBLOCK/ X,Y,Z ### end cblock.inc ### ### begin tsub.F ### subroutine tsub implicit none include 'cblock.inc' INTEGER I2 REAL F1 I2 = 3 F1 = 1.0 return end ### end tsub.F ### ### begin compile command ### g77 -fno-automatic -v -g -I. -c tsub.F ### end compile command ### ### begin compiler output ### g77 -fno-automatic -v -g -I. -c tsub.F Reading specs from /afs/fnal.gov/ups/gcc/v3_4_3/Linux+2.4-2.3.2/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/specs Configured with: ../../gcc-3.4.3/configure --prefix=/tmp/build-gcc-v3_4_3 --disable-shared --with-gnu-ld --with-ld=/tmp/build-gcc-v3_4_3/bin/ld --with-gnu-as --disable-libgcj --with-as=/tmp/build-gcc-v3_4_3/bin/as --enable-threads=posix --enable-languages=c,c++,f77,objc Thread model: posix gcc version 3.4.3 /afs/fnal.gov/ups/gcc/v3_4_3/Linux+2.4-2.3.2/bin/../libexec/gcc/i686-pc-linux-gnu/3.4.3/cc1 -E -traditional-cpp -D_LANGUAGE_FORTRAN -quiet -v -I. -iprefix /afs/fnal.gov/ups/gcc/v3_4_3/Linux+2.4-2.3.2/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/ -isystem /afs/fnal.gov/ups/gcc/v3_4_3/Linux+2.4-2.3.2/bin/include tsub.F -mtune=pentiumpro -fno-automatic -fworking-directory -o /tmp/cc0zObeX.f ignoring nonexistent directory "/afs/fnal.gov/ups/gcc/v3_4_3/Linux+2.4-2.3.2/bin/include" ignoring nonexistent directory "/afs/fnal.gov/ups/gcc/v3_4_3/Linux+2.4-2.3.2/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/../../../../i686-pc-linux-gnu/include" ignoring nonexistent directory "/tmp/build-gcc-v3_4_3/include" ignoring nonexistent directory "/tmp/build-gcc-v3_4_3/lib/gcc/i686-pc-linux-gnu/3.4.3/include" ignoring nonexistent directory "/tmp/build-gcc-v3_4_3/i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: . /afs/fnal.gov/ups/gcc/v3_4_3/Linux+2.4-2.3.2/bin/../lib/gcc/i686-pc-linux-gnu/3.4.3/include /usr/local/include /usr/include End of search list. /afs/fnal.gov/ups/gcc/v3_4_3/Linux+2.4-2.3.2/bin/../libexec/gcc/i686-pc-linux-gnu/3.4.3/f771 /tmp/cc0zObeX.f -quiet -dumpbase tsub.F -mtune=pentiumpro -auxbase tsub -g -version -fno-automatic -I. -o /tmp/ccmwNjKI.s GNU F77 version 3.4.3 (i686-pc-linux-gnu) compiled by GNU C version 3.4.3. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 /afs/fnal.gov/ups/gcc/v3_4_3/Linux+2.4-2.3.2/bin/as -V -Qy -o tsub.o /tmp/ccmwNjKI.s GNU assembler version 2.14 (i686-pc-linux-gnu) using BFD version 2.14 20030612 ### end compiler output ### ### begin illustration of bug ### nm -Aal tsub.o | grep tmp tsub.o:00000004 b f1.1 /tmp/cc0zObeX.f:9 ### end illustration of bug ### ### begin explanation ### Any symbol which gets debug information referring to a temporary file will probably be inaccessible in the debugger. Do *any* of the following things, and the problem goes away: 1) Remove the -fno-automatic switch 2) Include contents of cblock.inc in tsub.F 3) Remove the second of the two declarations in tsub.F (F1) 4) Replace the intrinsic include directive with #include Replacing: INTEGER I2 REAL F1 with INTEGER I1, I2 or INTEGER I1 INTEGER I2 preserves the problem (the missing symbol is I2, here). The non-optimal debugger behavior caused by this problem is the same with ddd/gdb and with totalview. This bug is present in gcc v3.4.1 and v3.4.3, but not in v3.3.1. ### end explanation ### -- Summary: Debug information in .o (from FORTRAN) points to temporary file under certain circumstances Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: chissg at comcast dot net CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20774 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20774] [3.4 Regression] [g77 only] Debug information in .o (from FORTRAN) points to temporary file under certain circumstances 2005-04-05 20:09 [Bug fortran/20774] New: Debug information in .o (from FORTRAN) points to temporary file under certain circumstances chissg at comcast dot net @ 2005-04-05 22:15 ` pinskia at gcc dot gnu dot org 2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-04-05 22:15 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-05 22:15 ------- Confirmed, only a 3.4 regression as 4.0.0's fortran compiler, gfortran, does not currently support -fno- automaticly (see PR 20592). -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |wrong-debug Last reconfirmed|0000-00-00 00:00:00 |2005-04-05 22:15:26 date| | Summary|Debug information in .o |[3.4 Regression] [g77 only] |(from FORTRAN) points to |Debug information in .o |temporary file under certain|(from FORTRAN) points to |circumstances |temporary file under certain | |circumstances Target Milestone|--- |3.4.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20774 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20774] [3.4 Regression] [g77 only] Debug information in .o (from FORTRAN) points to temporary file under certain circumstances 2005-04-05 20:09 [Bug fortran/20774] New: Debug information in .o (from FORTRAN) points to temporary file under certain circumstances chissg at comcast dot net 2005-04-05 22:15 ` [Bug fortran/20774] [3.4 Regression] [g77 only] " pinskia at gcc dot gnu dot org @ 2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org 2005-08-31 21:01 ` tobi at gcc dot gnu dot org 2005-08-31 21:01 ` tobi at gcc dot gnu dot org 3 siblings, 0 replies; 7+ messages in thread From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:44 UTC (permalink / raw) To: gcc-bugs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.4.4 |3.4.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20774 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20774] [3.4 Regression] [g77 only] Debug information in .o (from FORTRAN) points to temporary file under certain circumstances 2005-04-05 20:09 [Bug fortran/20774] New: Debug information in .o (from FORTRAN) points to temporary file under certain circumstances chissg at comcast dot net 2005-04-05 22:15 ` [Bug fortran/20774] [3.4 Regression] [g77 only] " pinskia at gcc dot gnu dot org 2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org @ 2005-08-31 21:01 ` tobi at gcc dot gnu dot org 2005-08-31 21:01 ` tobi at gcc dot gnu dot org 3 siblings, 0 replies; 7+ messages in thread From: tobi at gcc dot gnu dot org @ 2005-08-31 21:01 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From tobi at gcc dot gnu dot org 2005-08-31 20:59 ------- This is the same bug as PR23460 -- What |Removed |Added ---------------------------------------------------------------------------- BugsThisDependsOn| |23460 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20774 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20774] [3.4 Regression] [g77 only] Debug information in .o (from FORTRAN) points to temporary file under certain circumstances 2005-04-05 20:09 [Bug fortran/20774] New: Debug information in .o (from FORTRAN) points to temporary file under certain circumstances chissg at comcast dot net ` (2 preceding siblings ...) 2005-08-31 21:01 ` tobi at gcc dot gnu dot org @ 2005-08-31 21:01 ` tobi at gcc dot gnu dot org 3 siblings, 0 replies; 7+ messages in thread From: tobi at gcc dot gnu dot org @ 2005-08-31 21:01 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From tobi at gcc dot gnu dot org 2005-08-31 21:00 ------- well, essentially the same: the compiler doesn't deal the temporary file correctly. Probable workaround: use the -pipe commandline option. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |tobi at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20774 ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <bug-20774-10382@http.gcc.gnu.org/bugzilla/>]
* [Bug fortran/20774] [3.4 Regression] [g77 only] Debug information in .o (from FORTRAN) points to temporary file under certain circumstances [not found] <bug-20774-10382@http.gcc.gnu.org/bugzilla/> @ 2005-10-07 4:00 ` gdr at gcc dot gnu dot org 2006-02-28 10:11 ` gdr at gcc dot gnu dot org 1 sibling, 0 replies; 7+ messages in thread From: gdr at gcc dot gnu dot org @ 2005-10-07 4:00 UTC (permalink / raw) To: gcc-bugs -- gdr at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.4.5 |3.4.6 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20774 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug fortran/20774] [3.4 Regression] [g77 only] Debug information in .o (from FORTRAN) points to temporary file under certain circumstances [not found] <bug-20774-10382@http.gcc.gnu.org/bugzilla/> 2005-10-07 4:00 ` gdr at gcc dot gnu dot org @ 2006-02-28 10:11 ` gdr at gcc dot gnu dot org 1 sibling, 0 replies; 7+ messages in thread From: gdr at gcc dot gnu dot org @ 2006-02-28 10:11 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from gdr at gcc dot gnu dot org 2006-02-28 10:10 ------- won't fix for 3.4.6 -- gdr at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20774 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-02-28 10:10 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-04-05 20:09 [Bug fortran/20774] New: Debug information in .o (from FORTRAN) points to temporary file under certain circumstances chissg at comcast dot net 2005-04-05 22:15 ` [Bug fortran/20774] [3.4 Regression] [g77 only] " pinskia at gcc dot gnu dot org 2005-05-19 17:44 ` mmitchel at gcc dot gnu dot org 2005-08-31 21:01 ` tobi at gcc dot gnu dot org 2005-08-31 21:01 ` tobi at gcc dot gnu dot org [not found] <bug-20774-10382@http.gcc.gnu.org/bugzilla/> 2005-10-07 4:00 ` gdr at gcc dot gnu dot org 2006-02-28 10:11 ` gdr 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).