Bug 22426 – DWARF DW_AT_noreturn should be present when function is noreturn

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2021-10-19T00:42:51Z
Last change time
2021-10-24T07:47:36Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira

Comments

Comment #0 by contact — 2021-10-19T00:42:51Z
For functions marked as noreturn, DW_AT_noreturn attribute flag should be present on DW_TAG_subprogram tags.
Comment #1 by dlang-bot — 2021-10-19T03:54:48Z
@ljmf00 created dlang/dmd pull request #13202 "backend: dwarfdbginf: Add DWARF DW_AT_noreturn attribute" fixing this issue: - backend: dwarfdbginf: Add DWARF DW_AT_noreturn attribute Fix issue #22426 . Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13202
Comment #2 by dlang-bot — 2021-10-24T07:47:36Z
dlang/dmd pull request #13202 "backend: dwarfdbginf: Add DWARF DW_AT_noreturn attribute" was merged into master: - e6efb896b4dbf017eb056c83c18bd97d4c4322fe by Luís Ferreira: backend: dwarfdbginf: Add DWARF DW_AT_noreturn attribute Fix issue #22426 . Signed-off-by: Luís Ferreira <[email protected]> https://github.com/dlang/dmd/pull/13202