This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/35615] New: Debug information for .debug_loc section incorrect


I compiled a test program with gcc 4.3

    DW_AT_producer    : (indirect string, offset: 0x41): GNU F95 4.3.0

I think this is a bug in gfortran's DWARF code.

[deuling@bbkeks fortran]$ readelf --debug-dump=loc ./neg_array
readelf: Error: Location lists in .debug_info section aren't in ascending
order!
Contents of the .debug_loc section:

   Offset   Begin    End      Expression
   00000000 080485b4 080485b5 (DW_OP_breg4: 4)
   00000000 080485b5 080485b7 (DW_OP_breg4: 8)
   00000000 080485b7 0804868b (DW_OP_breg5: 8)
   00000000 <End of list>
readelf: Warning: There is an overlap [0x2c - 0xfffffffe] in .debug_loc
section.
readelf: Warning: Offset 0xfffffffe is bigger than .debug_loc section size.
readelf: Warning: There is a hole [0xfffffffe - 0x2c] in .debug_loc section.
   0000002c 08048690 08048694 (DW_OP_breg4: 4)
   0000002c 08048694 0804869a (DW_OP_reg1)
   0000002c 0804869a 0804869b (DW_OP_breg4: 4)
   0000002c 0804869b 0804869d (DW_OP_breg4: 8)
   0000002c 0804869d 080486db (DW_OP_breg5: 8)

In GDB this leads to errors in handling the source files correct:

Stack level 0, frame at 0xbf82e720:
eip = 0x80485bd in MAIN__ (:1); saved eip 0x80486c9
source language fortran.


-- 
           Summary: Debug information for .debug_loc section incorrect
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: deuling at de dot ibm dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35615


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]