This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3.3.1 - random bytes in object files


Greg Schafer <gschafer@zip.com.au> writes:

> On Fri, Aug 08, 2003 at 10:11:13AM +0200, Volker Reichelt wrote:
> > GCC produces different results on purpose. This has to do with anonymous
> > namespaces (see PR 9393). You can use "-frandom-seed=0" to get the same
> > results with every compilation.
> 
> Ok, I see.. Thanks for the explanation.
> 
> But I still find it rather bewildering that now, a default install of gcc
> (specifically libstdc++) is not reproducible (unless I go and hack in
> "-frandom-seed=0" into the build).
> 
> Oh well, maybe I AM nuts :-)

You might want to submit a patch.  I would certainly prefer that GCC
builds to be the same thing every time.

You don't want to use '0', though; you want to use something that's
likely to be reasonably different for every use of the flag, like
"-frandom-seed=libstdc++-v3-foo.cc" .

-- 
- Geoffrey Keating <geoffk@geoffk.org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]