On Thu, 21 Sep 2017, Jakub Jelinek wrote:
> Why isn't init_local_tick done at the get_random_seed time too?
> I.e. inlined into get_random_seed by hand like you've done for
> init_random_seed?
init_local_tick initializes the 'local_tick' global variable that
is directly accessed from coverage.c.
On Wed, Sep 20, 2017 at 11:39:26PM +0300, Alexander Monakov wrote:
> --- a/gcc/toplev.c
> +++ b/gcc/toplev.c
> @@ -239,7 +239,7 @@ announce_function (tree decl)
> }
> }
>
> -/* Initialize local_tick with a random number or -1 if
> +/* Initialize local_tick with the time of day, or -1 if
>
On Wed, Sep 20, 2017 at 10:39 PM, Alexander Monakov wrote:
> Hi,
>
> Most compiler invocations don't actually need an entropy source, so
> open-read-close syscall sequence on /dev/urandom that GCC performs on
> each startup is useless (and can easily be avoided).
>
> This patch makes GCC read entr
Hi,
Most compiler invocations don't actually need an entropy source, so
open-read-close syscall sequence on /dev/urandom that GCC performs on
each startup is useless (and can easily be avoided).
This patch makes GCC read entropy from /dev/urandom lazily on first
call to get_random_seed, and en pa