Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 525709 - 4.4.1-16 breaks gfortran debuginfo
Summary: 4.4.1-16 breaks gfortran debuginfo
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-09-25 10:45 UTC by Jan Kratochvil
Modified: 2009-09-29 08:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-09-29 08:37:59 UTC
Type: ---

Attachments (Terms of Use)

Description Jan Kratochvil 2009-09-25 10:45:04 UTC
Description of problem:
GDB testsuite broke on the last update.

Version-Release number of selected component (if applicable):
gcc-gfortran-4.4.1-16.x86_64 FAILs
gcc-gfortran-4.4.1-15.x86_64 PASSes

How reproducible:

Steps to Reproduce:
gfortran -o 1 gdb.fortran/array-element.f -Wall -g; gdb -nx -q ./1
Reading symbols from /home/jkratoch/redhat/fedora/gdb/devel/gdb-
(gdb) b 30
Breakpoint 1 at 0x400968: file gdb.fortran/array-element.f, line 30.
(gdb) r
Starting program: /home/jkratoch/redhat/fedora/gdb/devel/gdb- 
 This is a test.

Breakpoint 1, sub (a=..., n=4197100) at gdb.fortran/array-element.f:32
32	        end
(gdb) p a(1)

Actual results:
$1 = -nan(0x7fdbc0)

Expected results:
$1 = 1

Additional info:
There are missing trailing DW_OP_deref's:
-       .long   .LASF3  # DW_AT_producer: "GNU Fortran 4.4.1 20090918 (Red Hat 4.4.1-15)"
+       .long   .LASF3  # DW_AT_producer: "GNU Fortran 4.4.1 20090923 (Red Hat 4.4.1-16)"
        .uleb128 0xd    # (DIE (0xf1) DW_TAG_formal_parameter)
        .ascii "a\0"    # DW_AT_name
        .byte   0x1     # DW_AT_decl_file (gdb.fortran/array-element.f)
        .byte   0x1a    # DW_AT_decl_line
        .long   0x148   # DW_AT_type
-       .byte   0x3     # DW_AT_location
+       .byte   0x2     # DW_AT_location
        .byte   0x91    # DW_OP_fbreg
        .sleb128 -40
-       .byte   0x6     # DW_OP_deref

Comment 1 Jakub Jelinek 2009-09-29 08:37:59 UTC
Should be fixed in gcc-4.4.1-17.

Note You need to log in before you can comment on or make changes to this bug.