Bug 525709 - 4.4.1-16 breaks gfortran debuginfo
Summary: 4.4.1-16 breaks gfortran debuginfo
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
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:
Environment:
Last Closed: 2009-09-29 08:37:59 UTC


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:
Always.

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-6.8.91.20090925/gdb/testsuite/1...done.
(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-6.8.91.20090925/gdb/testsuite/1 
 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.