From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27624 invoked by alias); 21 Jul 2011 16:06:34 -0000 Received: (qmail 27607 invoked by uid 22791); 21 Jul 2011 16:06:32 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Jul 2011 16:06:08 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6LG66Xb010075 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 21 Jul 2011 12:06:06 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p6LG65Lf025563 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 Jul 2011 12:06:06 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (localhost.localdomain [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id p6LG64nC028456; Thu, 21 Jul 2011 18:06:05 +0200 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id p6LG635j028455; Thu, 21 Jul 2011 18:06:03 +0200 Date: Thu, 21 Jul 2011 17:44:00 -0000 From: Jakub Jelinek To: Ian Lance Taylor Cc: Basile Starynkevitch , Mike Stump , David Edelsohn , gcc-patches@gcc.gnu.org, gcc@gcc.gnu.org Subject: Re: PATCH RFA: Build stages 2 and 3 with C++ Message-ID: <20110721160603.GS2687@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek References: <4E26E775.7070802@moene.org> <20110721092510.86ade74ddfe5b88d32e68876@starynkevitch.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-07/txt/msg00408.txt.bz2 On Thu, Jul 21, 2011 at 08:51:46AM -0700, Ian Lance Taylor wrote: > Basile Starynkevitch writes: > > > I have a similar issue in the MELT branch, and I am passing to -frandom-seed the md5sum > > of relevant source files. With such a trick, the seed is reproducible from one build to > > the next one (of the exact same source tree), and does provide much more randomness than > > just using 0 all the time. > > In practice I think it is fine to just pass the source file name to > -frandom-seed. That's what the patch I sent out does. The source file > name should be unique within a given program. Isn't the filename already encoded in what get_file_function_name returns? It is __, so IMHO -frandom-seed=$@ brings almost no advantages at all over -frandom-seed=0. Except perhaps for the characters from the filename that are wiped into _ by clean_symbol_name. Jakub