<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Debug info with wrong source line info is written into ELF by llc with options -code-model=large -disable-fp-elim" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23641&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=0H-3hTwio-oOFg1L_6MDXo3tVSwfkbr-BkHKM79SCbg&s=lxu8rpsfZJCzbWfCEIIR0XQJAaxxeNpHnvoqvBQsAPU&e=">23641</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Debug info with wrong source line info is written into ELF by llc with options -code-model=large -disable-fp-elim
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>Backend: X86
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>yuri@tsoft.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=14376" name="attach_14376" title="all.ll file">attachment 14376</a> <a href="attachment.cgi?id=14376&action=edit" title="all.ll file">[details]</a></span>
all.ll file
Please run the script 'run' on the attached 'all.ll', and observe in all.asm
how the function _ZN3com4xxxx10HelloWorld4mainEP13Xxxxxxxxxxxxx has a span of
0x0030-0x0044.
Now observe how the same function is define in line number info in all.dwarf:
<span class="quote">> <pc> [row,col] NS BB ET PE EB IS= DI= uri: "filepath"
> 0x00000010 [ 18, 0] NS uri: "/usr/home/xxxx/a/b/a.rr"
> 0x00000014 [ 20,20] NS PE
> 0x00000020 [ 21, 0] NS
> 0x00000024 [ 23,20] NS PE
> 0x00000030 [ 8, 0] NS
> 0x00000034 [ 0, 5] NS PE
> 0x00000040 [ 17,43] NS
> 0x00000044 [ 17,43] NS ET</span >
It shows that the same function span is only 0x0030-0x0034, and something else
begins at 0x0040, when 0x0040 is in reality inside of that same function.</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>