<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: arm64 progologue line number incorrecly set to "0""
href="https://bugs.llvm.org/show_bug.cgi?id=46653">46653</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>DebugInfo: arm64 progologue line number incorrecly set to "0"
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: AArch64
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jaydeepchauhan1494@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>arnaud.degrandmaison@arm.com, llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com
</td>
</tr></table>
<p>
<div>
<pre>Consider below testcase for further discussion
$ cat check.c
#include<stdio.h>
int main()
{
printf("Hello\n");
return 0;
}
$clang -target arm64 -g -c check.c
$./llvm-dwarfdump --debug-line check.o
...
...
Address Line Column File ISA Discriminator Flags
------------------ ------ ------ ------ --- ------------- -------------
0x0000000000000000 4 0 1 0 0 is_stmt
0x0000000000000014 0 0 1 0 0 is_stmt prologue_end
0x0000000000000020 5 4 1 0 0 is_stmt
0x0000000000000028 6 4 1 0 0 is_stmt
0x0000000000000038 6 4 1 0 0 is_stmt end_sequence
In LLVM geneated executables prologue_end in line table is set to zero ,because
of that
when we put break point on main it will show line number of main function
location at line zero incorrectly.
And in gcc it is working fine.
$aarch64-linux-gnu-gcc-8.3.0 -g -c check.c -o check_gcc.o
$./llvm-dwarfdump --debug-line check_gcc.o
Address Line Column File ISA Discriminator Flags
------------------ ------ ------ ------ --- ------------- -------------
0x0000000000000000 4 1 1 0 0 is_stmt
0x0000000000000008 5 4 1 0 0 is_stmt
0x0000000000000014 6 11 1 0 0 is_stmt
0x0000000000000018 7 1 1 0 0 is_stmt
0x0000000000000020 7 1 1 0 0 is_stmt end_sequence</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>