<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:szabolcs.nagy@arm.com" title="Szabolcs Nagy <szabolcs.nagy@arm.com>"> <span class="fn">Szabolcs Nagy</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Linux kernel build: Regression due memcmp to bcmp optimization"
href="https://bugs.llvm.org/show_bug.cgi?id=41035">bug 41035</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>WONTFIX
</td>
<td>---
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>szabolcs.nagy@arm.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Linux kernel build: Regression due memcmp to bcmp optimization"
href="https://bugs.llvm.org/show_bug.cgi?id=41035#c14">Comment # 14</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Linux kernel build: Regression due memcmp to bcmp optimization"
href="https://bugs.llvm.org/show_bug.cgi?id=41035">bug 41035</a>
from <span class="vcard"><a class="email" href="mailto:szabolcs.nagy@arm.com" title="Szabolcs Nagy <szabolcs.nagy@arm.com>"> <span class="fn">Szabolcs Nagy</span></a>
</span></b>
<pre>(In reply to James Y Knight from <a href="show_bug.cgi?id=41035#c13">comment #13</a>)
<span class="quote">> When a compile doesn't specify -ffreestanding, the compiler assumes that the
> functions provided by the environment's normal libc will be available to the
> link. (And in this case, glibc provides bcmp, so the compiler may assume
> bcmp's availability.)</span >
bcmp is not specified by any standard and violates
the c and posix extern linkage namespace rules so
the compiler should not generate it, in particular
with static linking it may break applications that
use this symbol for something else (which is valid
use and works with glibc currently).
this is a bug that should be fixed.</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>