On Wed, Jul 30, 2014 at 09:46:48AM +0200, Richard Biener wrote: > On Tue, Jul 29, 2014 at 3:01 PM, Bingfeng Mei <b...@broadcom.com> wrote: > > Hi, > > Please find the patches for pr61868. The problem is that even with > > -frandom-seed gcc always uses 0 instead of specified number/string for > > places such as lto section names. init_random_seed is never called with > > -frandom-seed. Bootstrapped and tested on x86-64. OK for trunk? > > Hmm, but -frandom-seed= is honored by opts.c calling set_random_seed? > > Andi, wasn't this used to support partial linking of LTO objects? Thus, > this shortcut was on purpose? Otherwise passing -frandom-seed to > LTO would break that?
I don't think it was on purpose. Partial linking doesn't need the seeds. The seeding was only to avoid compare failures in the gcc build. -Andi