<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 22, 2015 at 9:35 AM, Joerg Sonnenberger <span dir="ltr"><<a href="mailto:joerg@britannica.bec.de" target="_blank">joerg@britannica.bec.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, Mar 22, 2015 at 08:08:53AM -0700, David Blaikie wrote:<br>
> if by 'binary reproducibility' you mean two matching invocations of the<br>
> compiler (same arguments, same input, same headers, etc) should produce<br>
> exactly the same bytes in the binary - yes, Clang supports this.<br>
<br>
</span>You might need to pass -frandom-seed for this purpose, e.g. a hash of<br>
the name of the input files + some project cookie.<br></blockquote><div><br>Good to keep in mind, in general.<br><br>I /believe/ only specific opt-in features use randomness deliberately (as a security threat mitigation, is one instance that comes to mind). If anything that doesn't look like an explicit "Randomize my stuff" flag causes non-reproducible output, that's probably a bug.<br><br>- David<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
Joerg<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div></div>