public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/111680] New: DWARF information inconstant with the generated RISC-V Binary
@ 2023-10-03 16:11 king.chung at manchester dot ac.uk
  2023-10-03 21:45 ` [Bug target/111680] DWARF information inconsistent " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: king.chung at manchester dot ac.uk @ 2023-10-03 16:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111680
           Summary: DWARF information inconstant with the generated RISC-V
                    Binary
           Product: gcc
           Version: 12.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: king.chung at manchester dot ac.uk
  Target Milestone: ---

Created attachment 56041
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56041&action=edit
Screen capture of the Binary and DWARF data.

The DWARF information presented is not matching with the RISC-V binary. On the
attached picture, the left-hand side is the generated binary, and on the
right-hand side is the DWARF information. On the left, we can see the order of
operation is SP Change -> Value Store -> SP Change. However, on the right is SP
Change -> SP Change -> Value Store. If I did not understand the DWARF standard
wrong, the calculation is based on the most recent CFA value, which, in this
case, just by using the DWARF data, the saved value cannot be recovered.

Some discussions have been started on the RISC-V gnu toolchain Repo:
https://github.com/riscv-collab/riscv-gnu-toolchain/issues/1336

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

end of thread, other threads:[~2023-10-03 23:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-03 16:11 [Bug debug/111680] New: DWARF information inconstant with the generated RISC-V Binary king.chung at manchester dot ac.uk
2023-10-03 21:45 ` [Bug target/111680] DWARF information inconsistent " pinskia at gcc dot gnu.org
2023-10-03 21:46 ` pinskia at gcc dot gnu.org
2023-10-03 21:47 ` pinskia at gcc dot gnu.org
2023-10-03 21:59 ` pinskia at gcc dot gnu.org
2023-10-03 22:03 ` pinskia at gcc dot gnu.org
2023-10-03 22:06 ` pinskia at gcc dot gnu.org
2023-10-03 22:10 ` [Bug debug/111680] " pinskia at gcc dot gnu.org
2023-10-03 23:01 ` king.chung at manchester dot ac.uk
2023-10-03 23:11 ` 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).