<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - DebugInfo/Generic/debug-label-inline.ll FAILs"
href="https://bugs.llvm.org/show_bug.cgi?id=47129">47129</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>DebugInfo/Generic/debug-label-inline.ll FAILs
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Sun
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>DebugInfo
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ro@gcc.gnu.org
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, keith.walker@arm.com, llvm-bugs@lists.llvm.org, paul_robinson@playstation.sony.com
</td>
</tr></table>
<p>
<div>
<pre>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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.
.
.
<span class="quote">>>>>>></span >
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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>