Date: Sun, 14 Nov 2010 23:29:45 +0100 From: Erik Cederstrand <erik@cederstrand.dk> To: freebsd-toolchain@freebsd.org Subject: Clang and -frandom-seed Message-ID: <E135940E-F79C-4DFA-811D-18CCBF3C609E@cederstrand.dk>
next in thread | raw e-mail | index | archive | help
--Apple-Mail-2097-81456243 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello toolchainers, I noticed that two consecutive builds of (GCC-built) Clang don't produce = identical binaries. This is true for clang, clang++ and tblgen. I asked = on the llvm-dev list yesterday, and it turns out it's because GCC uses a = random seed on some symbols. Apparently, this can be controlled with the = -frandom-seed flag. I haven't tested if this is also the case for = Clang-built Clang. I'm not sure I understand the exact implications, but I'm wondering if = we could add the flag to the build scripts in FreeBSD in a way that both = satisfies the randomness criteria and makes builds deterministic? Thanks, Erik= --Apple-Mail-2097-81456243--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E135940E-F79C-4DFA-811D-18CCBF3C609E>