<html>
<head>
<base href="http://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 --- - clang does not emit .debug_aranges (gcc does)"
href="http://llvm.org/bugs/show_bug.cgi?id=19006">19006</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang does not emit .debug_aranges (gcc does)
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>yaron.keren@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>The program
int main() { return 0; }
compiled with
clang -S s.c -o s_clang.s -g -target i686-pc-mingw32
produces empty .debug_aranges:
Lsection_abbrev:
.section .debug_aranges,"rn"
.section .debug_macinfo,"rn"
compiled with
gcc -S s.c -g -o s_gcc.s
produces correct .debug_aranges:
.section .debug_aranges,"dr"
.long 0x1c
.word 0x2
.secrel32 Ldebug_info0
.byte 0x4
.byte 0
.word 0
.word 0
.long Ltext0
.long Letext0-Ltext0
.long 0
.long 0
.section .debug_line,"dr"
clang r201846
gcc version 4.8.2 (i686-win32-dwarf, Built by MinGW-W64 project)</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>