public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4
@ 2009-07-06 16:10 burnus at gcc dot gnu dot org
2009-07-15 7:28 ` [Bug debug/40660] " steven at gcc dot gnu dot org
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-07-06 16:10 UTC (permalink / raw)
To: gcc-bugs
Maybe this is a side effect of fixing a DWARF bug, but using GCC 4.5 with
gdb (GDB) SUSE (6.8.50.20090302-41.3) [contains "Merge FC11 update 23"] does
not work while with GCC 4.4 it does.
Example (compile with gfortran -g):
PROGRAM test
INTEGER, DIMENSION(3) :: a1,a2
a1 = 1
PRINT*, a1
a2 = 2
end program test
GCC 4.4 with gdb:
(gdb) b 3
Breakpoint 1 at 0x4007a7: file test.f90, line 3.
(gdb) run
Starting program: /dev/shm/a.out
Breakpoint 1, test () at test.f90:3
3 a1 = 1
Current language: auto; currently fortran
(gdb) n
4 PRINT*, a1
(gdb) pt a1
type = integer(kind=4) (3)
(gdb) p a1
$1 = (1, 1, 1)
(gdb) n
1 1 1
5 a2 = 2
GCC 4.5 with gdb:
(gdb) b 3
Breakpoint 1 at 0x400738: file test.f90, line 3.
(gdb) run
Starting program: /dev/shm/a.out
Breakpoint 1, test () at test.f90:3
3 a1 = 1
Current language: auto; currently fortran
(gdb) p a1
$1 = (8, 0, -1417923840)
(gdb) n
1 1 1
0x00002aaaab48ca4d in __libc_start_main () from /lib64/libc.so.6
--
Summary: [4.5 Regression] Wierd break points with 4.5, works with
4.4
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: wrong-debug
Severity: normal
Priority: P3
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Wierd break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
@ 2009-07-15 7:28 ` steven at gcc dot gnu dot org
2009-07-15 7:28 ` steven at gcc dot gnu dot org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-07-15 7:28 UTC (permalink / raw)
To: gcc-bugs
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-07-15 07:28:00
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Wierd break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
2009-07-15 7:28 ` [Bug debug/40660] " steven at gcc dot gnu dot org
@ 2009-07-15 7:28 ` steven at gcc dot gnu dot org
2009-07-29 22:52 ` jsm28 at gcc dot gnu dot org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: steven at gcc dot gnu dot org @ 2009-07-15 7:28 UTC (permalink / raw)
To: gcc-bugs
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Wierd break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
2009-07-15 7:28 ` [Bug debug/40660] " steven at gcc dot gnu dot org
2009-07-15 7:28 ` steven at gcc dot gnu dot org
@ 2009-07-29 22:52 ` jsm28 at gcc dot gnu dot org
2009-08-07 14:41 ` burnus at gcc dot gnu dot org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-07-29 22:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jsm28 at gcc dot gnu dot org 2009-07-29 22:52 -------
Setting to P4, but restore to P3 if a C or C++ test for this bug is found.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Wierd break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-07-29 22:52 ` jsm28 at gcc dot gnu dot org
@ 2009-08-07 14:41 ` burnus at gcc dot gnu dot org
2009-08-07 17:28 ` jv244 at cam dot ac dot uk
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-08-07 14:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from burnus at gcc dot gnu dot org 2009-08-07 14:41 -------
Using 4.5.0 20090805 with GDB 6.8.50.20090803-10.1 (includes patches of
Fedora/Jan Kratochvil which support F90 arrays/C99 VLA and module variables),
the result is now:
Breakpoint 1, test () at fhjf.f90:3
3 a1 = 1
(gdb) n
4 PRINT*, a1(1)
(gdb)
3 a1 = 1
(gdb)
4 PRINT*, a1(1)
(gdb)
1
That is: Every line is poperly hit, but one has to cycle through "a1 =1;
print*,a1" twice before the PRINT is actually executed.
(Using GCC/gfortran 4.4 with the same gdb the result is as expected: One walk
through the program, line by line.)
(I heard that there were some similar weird things happening under C but I have
not managed to create a test case.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Wierd break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-08-07 14:41 ` burnus at gcc dot gnu dot org
@ 2009-08-07 17:28 ` jv244 at cam dot ac dot uk
2009-08-14 13:36 ` burnus at gcc dot gnu dot org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-08-07 17:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jv244 at cam dot ac dot uk 2009-08-07 17:28 -------
Is there some meta-bug about Fortran-related debug issues? I've added PR 40823
about another debug issue. It likely requires a FE fix, so the component
'debug' is somewhat too vague.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Wierd break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-08-07 17:28 ` jv244 at cam dot ac dot uk
@ 2009-08-14 13:36 ` burnus at gcc dot gnu dot org
2009-08-21 18:04 ` burnus at gcc dot gnu dot org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-08-14 13:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from burnus at gcc dot gnu dot org 2009-08-14 13:36 -------
Checking with eu-readelf -w info shows that -- according to "Line number
statements" -- the line jumping is really a GCC problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Wierd break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-08-14 13:36 ` burnus at gcc dot gnu dot org
@ 2009-08-21 18:04 ` burnus at gcc dot gnu dot org
2009-08-21 18:34 ` burnus at gcc dot gnu dot org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-08-21 18:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from burnus at gcc dot gnu dot org 2009-08-21 18:04 -------
Working: 2009-07-10, r149458
Failing: 2009-07-17, r149734
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Wierd break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-08-21 18:04 ` burnus at gcc dot gnu dot org
@ 2009-08-21 18:34 ` burnus at gcc dot gnu dot org
2009-08-21 21:11 ` aldyh at gcc dot gnu dot org
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-08-21 18:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from burnus at gcc dot gnu dot org 2009-08-21 18:34 -------
Aldy, I think your patch (r149722, PR 40435) might have caused this. Could you
have a look?
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldyh at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Wierd break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-08-21 18:34 ` burnus at gcc dot gnu dot org
@ 2009-08-21 21:11 ` aldyh at gcc dot gnu dot org
2009-08-22 9:38 ` burnus at gcc dot gnu dot org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2009-08-21 21:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from aldyh at gcc dot gnu dot org 2009-08-21 21:11 -------
Sorry I was out on vacation. I will take a look.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Wierd break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (8 preceding siblings ...)
2009-08-21 21:11 ` aldyh at gcc dot gnu dot org
@ 2009-08-22 9:38 ` burnus at gcc dot gnu dot org
2009-08-24 18:34 ` [Bug debug/40660] [4.5 Regression] Weird " aldyh at gcc dot gnu dot org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-08-22 9:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from burnus at gcc dot gnu dot org 2009-08-22 09:38 -------
> Sorry I was out on vacation. I will take a look.
Well, I only CCed you yesterday :-) Thanks for taking a look!
I rechecked: It is indeed Rev. 149722 which caused the problem of this PR (as
described in comment 2).
(Part of PR 40823 is probably a duplicate of this issue; there is another issue
stated in that PR, which is not a regression (i.e. never worked correctly), but
has probably a similar cause.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Weird break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (9 preceding siblings ...)
2009-08-22 9:38 ` burnus at gcc dot gnu dot org
@ 2009-08-24 18:34 ` aldyh at gcc dot gnu dot org
2009-08-24 19:05 ` jv244 at cam dot ac dot uk
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2009-08-24 18:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from aldyh at gcc dot gnu dot org 2009-08-24 18:34 -------
Fixed thusly
http://gcc.gnu.org/ml/gcc-patches/2009-08/msg01306.html
--
aldyh at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aldyh at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Weird break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (10 preceding siblings ...)
2009-08-24 18:34 ` [Bug debug/40660] [4.5 Regression] Weird " aldyh at gcc dot gnu dot org
@ 2009-08-24 19:05 ` jv244 at cam dot ac dot uk
2009-08-25 0:28 ` aldyh at gcc dot gnu dot org
2009-09-03 6:50 ` jv244 at cam dot ac dot uk
13 siblings, 0 replies; 15+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-08-24 19:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jv244 at cam dot ac dot uk 2009-08-24 19:05 -------
(In reply to comment #8)
>
> (Part of PR 40823 is probably a duplicate of this issue; there is another issue
> stated in that PR, which is not a regression (i.e. never worked correctly), but
> has probably a similar cause.)
>
I tried the switch (-fdump-tree-original-lineno, noticed in Aldy's patch) on
the PR40823 testcase, but there is no reference to line 2 in the output of
'-fdump-tree-original-lineno', just proper reference to lines 4 and 7, so I
guess the issue is elsewhere ?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Weird break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (11 preceding siblings ...)
2009-08-24 19:05 ` jv244 at cam dot ac dot uk
@ 2009-08-25 0:28 ` aldyh at gcc dot gnu dot org
2009-09-03 6:50 ` jv244 at cam dot ac dot uk
13 siblings, 0 replies; 15+ messages in thread
From: aldyh at gcc dot gnu dot org @ 2009-08-25 0:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from aldyh at gcc dot gnu dot org 2009-08-25 00:28 -------
Subject: Bug 40660
Author: aldyh
Date: Tue Aug 25 00:27:52 2009
New Revision: 151069
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151069
Log:
fortran/
PR fortran/40660
* trans-io.c (build_dt): Pass UNKNOWN_LOCATION to build_call_expr_loc.
(transfer_array_desc): Same.
Added:
trunk/gcc/testsuite/gfortran.dg/PR40660.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-io.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug debug/40660] [4.5 Regression] Weird break points with 4.5, works with 4.4
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
` (12 preceding siblings ...)
2009-08-25 0:28 ` aldyh at gcc dot gnu dot org
@ 2009-09-03 6:50 ` jv244 at cam dot ac dot uk
13 siblings, 0 replies; 15+ messages in thread
From: jv244 at cam dot ac dot uk @ 2009-09-03 6:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from jv244 at cam dot ac dot uk 2009-09-03 06:50 -------
looks like this is fixed on trunk.
--
jv244 at cam dot ac dot uk changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40660
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2009-09-03 6:50 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
2009-07-15 7:28 ` [Bug debug/40660] " steven at gcc dot gnu dot org
2009-07-15 7:28 ` steven at gcc dot gnu dot org
2009-07-29 22:52 ` jsm28 at gcc dot gnu dot org
2009-08-07 14:41 ` burnus at gcc dot gnu dot org
2009-08-07 17:28 ` jv244 at cam dot ac dot uk
2009-08-14 13:36 ` burnus at gcc dot gnu dot org
2009-08-21 18:04 ` burnus at gcc dot gnu dot org
2009-08-21 18:34 ` burnus at gcc dot gnu dot org
2009-08-21 21:11 ` aldyh at gcc dot gnu dot org
2009-08-22 9:38 ` burnus at gcc dot gnu dot org
2009-08-24 18:34 ` [Bug debug/40660] [4.5 Regression] Weird " aldyh at gcc dot gnu dot org
2009-08-24 19:05 ` jv244 at cam dot ac dot uk
2009-08-25 0:28 ` aldyh at gcc dot gnu dot org
2009-09-03 6:50 ` jv244 at cam dot ac dot uk
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).