<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED INVALID - -03 Optimization causes function to execute twice" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24158&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=PyAJyCS-beH0xV-l_Ay_WCHeX_GTi05uFGH0PPJ-_yo&s=xBoUt_ENVk-ka_Rfx2nBaNoChXqiqlO14AOx01NgLSs&e=">bug 24158</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>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED INVALID - -03 Optimization causes function to execute twice" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24158-23c5&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=PyAJyCS-beH0xV-l_Ay_WCHeX_GTi05uFGH0PPJ-_yo&s=bMK1cv3XFraKQ6yRyJUn7gvOk47NJ2pFCBSaMSaYqJg&e=">Comment # 5</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed" title="RESOLVED INVALID - -03 Optimization causes function to execute twice" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D24158&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=PyAJyCS-beH0xV-l_Ay_WCHeX_GTi05uFGH0PPJ-_yo&s=xBoUt_ENVk-ka_Rfx2nBaNoChXqiqlO14AOx01NgLSs&e=">bug 24158</a>
from <span class="vcard"><a class="email" href="mailto:richard-llvm@metafoo.co.uk" title="Richard Smith <richard-llvm@metafoo.co.uk>"> <span class="fn">Richard Smith</span></a>
</span></b>
<pre>Ah, that's the problem.
The call to reaper() will be deleted because it has no side-effects (even
though it might not actually ever terminate, this doesn't matter, because the
language rules permit us to delete infinite loops that don't "make progress"
through a side-effect / atomic access).
Thus setup_and_run_reaper returns twice when built with optimizations enabled
(or if map->stop becomes true).</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>