<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 --- - llvm-dwarfdump doesn't match OS X dwarfdump for DW_AT_location"
href="https://llvm.org/bugs/show_bug.cgi?id=23454">23454</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llvm-dwarfdump doesn't match OS X dwarfdump for DW_AT_location
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>bruce.mitchener@gmail.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=14300" name="attach_14300" title="LLVM IR file">attachment 14300</a> <a href="attachment.cgi?id=14300&action=edit" title="LLVM IR file">[details]</a></span>
LLVM IR file
Our compiler back-end emits LLVM bitcode directly.
We have a situation where we see a significant difference between the
llvm-dwarfdump and OS X dwarfdump output for a DW_AT_location on a
DW_TAG_formal_parameter:
DW_AT_location [DW_FORM_data4] (0x00000000)
vs
AT_location( 0x00000000
0x0000000000000e40 - 0x0000000000000e4a: rdi
0x0000000000000e4a - 0x0000000000000e65: rbx )
More of the output from llvm-dwarfdump for context:
0x0000002a: DW_TAG_subprogram [2] *
DW_AT_low_pc [DW_FORM_addr] (0x0000000000000e40)
DW_AT_high_pc [DW_FORM_addr] (0x0000000000000e8a)
DW_AT_frame_base [DW_FORM_block1] (<0x01> 56 )
DW_AT_MIPS_linkage_name [DW_FORM_strp] (
.debug_str[0x0000003e] = "KfibVfibI")
DW_AT_name [DW_FORM_strp] ( .debug_str[0x00000048] = "fib")
DW_AT_decl_file [DW_FORM_data1]
("/Users/bruce/Development/dylan/fib/fib.dylan")
DW_AT_decl_line [DW_FORM_data1] (6)
DW_AT_type [DW_FORM_ref4] (cu + 0x005d => {0x0000005d})
DW_AT_external [DW_FORM_flag] (0x01)
DW_AT_accessibility [DW_FORM_data1] (DW_ACCESS_public)
0x0000004d: DW_TAG_formal_parameter [3]
DW_AT_location [DW_FORM_data4] (0x00000000)
DW_AT_name [DW_FORM_strp] ( .debug_str[0x0000004c] = "n")
DW_AT_decl_file [DW_FORM_data1]
("/Users/bruce/Development/dylan/fib/fib.dylan")
DW_AT_decl_line [DW_FORM_data1] (6)
DW_AT_type [DW_FORM_ref4] (cu + 0x008a => {0x0000008a})
0x0000005c: NULL
However, the OS X dwarfdump shows:
0x0000002a: TAG_subprogram [2] *
AT_low_pc( 0x0000000000000e40 )
AT_high_pc( 0x0000000000000e8a )
AT_frame_base( rbp )
AT_MIPS_linkage_name( "KfibVfibI" )
AT_name( "fib" )
AT_decl_file( "/Users/bruce/Development/dylan/fib/fib.dylan" )
AT_decl_line( 6 )
AT_type( {0x0000005d} ( MV ) )
AT_external( 0x01 )
AT_accessibility( DW_ACCESS_public )
0x0000004d: TAG_formal_parameter [3]
AT_location( 0x00000000
0x0000000000000e40 - 0x0000000000000e4a: rdi
0x0000000000000e4a - 0x0000000000000e65: rbx )
AT_name( "n" )
AT_decl_file(
"/Users/bruce/Development/dylan/fib/fib.dylan" )
AT_decl_line( 6 )
AT_type( {0x0000008a} ( dylan_value ) )
0x0000005c: NULL</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>