<div dir="ltr">Sorry, didn't read closely enough. Looks like it's currently ignored:<div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">$ grep -n frandom_seed include/clang/Driver/Options.td</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">949:def frandom_seed_EQ : Joined<["-"], "frandom-seed=">, Group<clang_ignored_f_Group>;</span><br></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><a href="http://reviews.llvm.org/D3391">http://reviews.llvm.org/D3391</a><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 24, 2015 at 12:41 PM, Stephan Gatzka <span dir="ltr"><<a href="mailto:stephan.gatzka@gmail.com" target="_blank">stephan.gatzka@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well,<br>
<br>
that's not exactly what I meant. In gcc, if you use -flto a c file compiled twice leads to different binaries, if you don't add -frandom-seed=<something>.<br>
<br>
clang also supports the switch -frandom-seed=<something>, but the object files produced by clang are always binary equal.<br>
<br>
Meanwhile I think clang intorduced -frandom-seed only for gcc compatibility:<br>
<a href="https://github.com/llvm-mirror/clang/blob/master/include/clang/Driver/Options.td#L949" rel="noreferrer" target="_blank">https://github.com/llvm-mirror/clang/blob/master/include/clang/Driver/Options.td#L949</a><br>
<br>
<br>
But thanks for the hint. :)<br>
<br>
Regards,<br>
<br>
Stephan<br>
</blockquote></div><br></div>