public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/99388] New: Invalid debug info for __fp16
@ 2021-03-04 14:49 jakub at gcc dot gnu.org
  2021-03-04 14:56 ` [Bug debug/99388] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-03-04 14:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99388

            Bug ID: 99388
           Summary: Invalid debug info for __fp16
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

On:
void
foo (void)
{
  __fp16 a = 1.0;
  float b = 1.0;
  asm ("nop");
  a = 2.0;
  b = 2.0;
  asm ("nop");
  a = 3.0;
  b = 3.0;
  asm ("nop");
}
with -g -O2 -dA on aarch64-linux we emit:
.LLST0:
        .byte   0x7     // DW_LLE_start_end (*.LLST0)
        .8byte  .LVL0   // Location list begin address (*.LLST0)
        .8byte  .LVL1   // Location list end address (*.LLST0)
        .byte   0x4     // uleb128 0x4; Location expression size
        .byte   0x9e    // DW_OP_implicit_value
        .byte   0x2     // uleb128 0x2
        .byte   0x7     // DW_LLE_start_end (*.LLST0)
        .8byte  .LVL1   // Location list begin address (*.LLST0)
        .8byte  .LVL2   // Location list end address (*.LLST0)
        .byte   0x4     // uleb128 0x4; Location expression size
        .byte   0x9e    // DW_OP_implicit_value
        .byte   0x2     // uleb128 0x2
        .byte   0x7     // DW_LLE_start_end (*.LLST0)
        .8byte  .LVL2   // Location list begin address (*.LLST0)
        .8byte  .LFE0   // Location list end address (*.LLST0)
        .byte   0x4     // uleb128 0x4; Location expression size
        .byte   0x9e    // DW_OP_implicit_value
        .byte   0x2     // uleb128 0x2
        .byte   0       // DW_LLE_end_of_list (*.LLST0)
This is invalid, the uleb128 0x2 should be always followed by the 2 byte value,
but there is nothing, so we interpret the DW_LLE_start_end or whatever as parts
of the values.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-09-11 14:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 14:49 [Bug debug/99388] New: Invalid debug info for __fp16 jakub at gcc dot gnu.org
2021-03-04 14:56 ` [Bug debug/99388] " jakub at gcc dot gnu.org
2021-03-04 14:59 ` jakub at gcc dot gnu.org
2021-03-21 16:29 ` cvs-commit at gcc dot gnu.org
2021-03-30 22:41 ` cvs-commit at gcc dot gnu.org
2021-04-20 23:33 ` cvs-commit at gcc dot gnu.org
2021-04-22 16:52 ` cvs-commit at gcc dot gnu.org
2021-04-22 17:11 ` jakub at gcc dot gnu.org
2021-09-11 14:24 ` pinskia at gcc dot gnu.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).