[llvm-bugs] [Bug 47129] New: DebugInfo/Generic/debug-label-inline.ll FAILs
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Aug 12 03:55:58 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47129
Bug ID: 47129
Summary: DebugInfo/Generic/debug-label-inline.ll FAILs
Product: libraries
Version: trunk
Hardware: Sun
OS: All
Status: NEW
Severity: normal
Priority: P
Component: DebugInfo
Assignee: unassignedbugs at nondot.org
Reporter: ro at gcc.gnu.org
CC: jdevlieghere at apple.com, keith.walker at arm.com,
llvm-bugs at lists.llvm.org,
paul_robinson at playstation.sony.com
The DebugInfo/Generic/debug-label-inline.ll test FAILs on Sparc. I'm seeing it
on both sparcv9-sun-solaris2.11 and sparc64-unknown-linux-gnu, so it seems to
be
rather a Sparc than a Solaris issue:
Command Output (stderr):
--
/vol/llvm/src/llvm-project/local/llvm/test/DebugInfo/Generic/debug-label-inline.ll:4:10:
error: CHECK: expected string not found in input
; CHECK: [[LABEL_ORIGIN:0x[0-9a-zA-Z]+]]:{{ *}}DW_TAG_label
^
<stdin>:32:1: note: scanning from here
0x00000000: Compile Unit: length = 0x00000047, format = DWARF32, version =
0x0004, abbr_offset = 0x0000, addr_size = 0x08 (next unit at 0x0000004b)
^
<stdin>:36:20: note: possible intended match here
DW_AT_language [DW_FORM_data2] (DW_LANG_C99)
^
Input file: <stdin>
Check file:
/vol/llvm/src/llvm-project/local/llvm/test/DebugInfo/Generic/debug-label-inline.ll
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
27: DW_AT_encoding DW_FORM_data1
28: DW_AT_byte_size DW_FORM_data1
29:
30:
31: .debug_info contents:
32: 0x00000000: Compile Unit: length = 0x00000047, format = DWARF32,
version = 0x0004, abbr_offset = 0x0000, addr_size = 0x08 (next unit at
0x0000004b)
check:4'0
X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: no match found
33:
check:4'0 ~
34: 0x0000000b: DW_TAG_compile_unit [1] *
check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35: DW_AT_producer [DW_FORM_strp] ( .debug_str[0x00000000] = "")
check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36: DW_AT_language [DW_FORM_data2] (DW_LANG_C99)
check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:4'1 ? possible intended
match
37: DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000001] =
"debug-label-inline.c")
check:4'0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38: DW_AT_stmt_list [DW_FORM_sec_offset] (0x00000000)
check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39: DW_AT_comp_dir [DW_FORM_strp] ( .debug_str[0x00000016] = "./")
check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40: DW_AT_GNU_pubnames [DW_FORM_flag_present] (true)
check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41: DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000 ".text")
check:4'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
>>>>>>
I think that f1 is inlined completely without line number info:
* On amd64-pc-solaris2.11 the .s file has
Ltmp0:
#DEBUG_LABEL: f1:top
.loc 1 9 0 # debug-label-inline.c:9:0
addl %eax, %ecx
.Ltmp1:
.loc 1 18 0 # debug-label-inline.c:18:0
movl %ecx, %eax
retq
.Ltmp2:
* On sparcv9-sun-solaris2.11 there is
.Ltmp0:
!DEBUG_LABEL: f1:top
retl
add %o1, %o0, %o0
.Ltmp1:
I don't have the slightest idea how to investigate let alone fix this.
The issue can be seen on an all-targets build with
llc -mtriple sparcv9-sun-solaris2.11 -O0 -filetype=obj -o -
llvm/test/DebugInfo/Generic/debug-label-inline.ll |llvm-dwarfdump -v - |
FileCheck llvm/test/DebugInfo/Generic/debug-label-inline.ll
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200812/31951e40/attachment.html>
More information about the llvm-bugs
mailing list