<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 --- - Bad sizeof(long double)"
href="https://llvm.org/bugs/show_bug.cgi?id=22905">22905</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Bad sizeof(long double)
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>Headers
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sfence.software@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>GCC vs clang compatibility problem because of diffrent sizeof(long double)
value.
For powerpc64 Debian linux with 3.2.0-4 kernel, clang target
powerpc-unknown-linux-gnu clang nad gcc get diffrent sizeof(long double)
Qemu emulated system.
GCC version 4.6.3-14
Macro dump from gcc: gcc -dM -E -x -c /dev/null | grep "DOUBLE"
#define __SIZEOF_LONG_DOUBLE__ 16
#define __LONGDOUBLE128 1
#define __LONG_DOUBLE_128__ 1
#define __SIZEOF_DOUBLE__ 8
Macro dump from clang: clang -dM -E -x -c /dev/null | grep "DOUBLE"
#define __LONG_DOUBLE_128__ 1
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_LONG_DOUBLE__ 8
And I see sizeof(long dobule) diffrent from debugger.</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>