[PATCH] PR fortran/91414: Improved PRNG

2019-08-11 Thread Janne Blomqvist
Update the PRNG from xorshift1024* to xoshiro256** by the same author. For details see http://prng.di.unimi.it/ and the paper at https://arxiv.org/abs/1805.01407 Also the seeding is slightly improved, by reading only 8 bytes from the operating system and using the simple splitmix64 PRNG to fill

Re: [PATCH,fortran] PR 91413 Generate warning when making array static

2019-08-11 Thread Janne Blomqvist
On Sat, Aug 10, 2019 at 11:57 PM Steve Kargl wrote: > > On Sat, Aug 10, 2019 at 11:34:15PM +0300, Janne Blomqvist wrote: > > When moving a local variable from the stack to static storage, the > > procedure is no longer safe to be called recursively or concurrently > > from multiple threads. Thus

Fix Ada comparison failure on SPARC

2019-08-11 Thread Rainer Orth
Between 20190806 (r274144) and 20190807 (r274169), Solaris/SPARC bootstrap with Ada began to fail with a comparion failure: Bootstrap comparison failure! gcc/ada/bindo-graphs.o differs The differences look like this: -prev-gcc/ada/bindo-graphs.o.stripped: file format elf32-sparc-sol2 +gcc/ad

Re: Fix Ada comparison failure on SPARC

2019-08-11 Thread Jakub Jelinek
On Sun, Aug 11, 2019 at 12:17:06PM +0200, Rainer Orth wrote: > 2019-08-07 Richard Sandiford > > * data-streamer.h (streamer_write_poly_uint64): Declare. > (streamer_read_poly_uint64): Likewise. > * data-streamer-in.c (streamer_read_poly_uint64): New function. > * data-st

Re: Fix Ada comparison failure on SPARC

2019-08-11 Thread Richard Biener
On August 11, 2019 12:20:31 PM GMT+02:00, Jakub Jelinek wrote: >On Sun, Aug 11, 2019 at 12:17:06PM +0200, Rainer Orth wrote: >> 2019-08-07 Richard Sandiford >> >> * data-streamer.h (streamer_write_poly_uint64): Declare. >> (streamer_read_poly_uint64): Likewise. >> * data-stream

C++ PATCH for c++/91416 - GC during late parsing collects live data

2019-08-11 Thread Marek Polacek
This is a crash that points to a GC problem. Consider this test: __attribute__ ((unused)) struct S { S() { } } s; We're parsing a simple-declaration. While parsing the decl specs, we parse the attribute, which means creating a TREE_LIST using ggc_alloc_*. A function body is a complete-

[Patch v2] Enable math functions linking with static library for LTO

2019-08-11 Thread luoxhu
Hi Richard, Thanks for your comments, updated the v2 patch as below: 1. Define and use builtin_with_linkage_p. 2. Add comments. 3. Add a testcase. In LTO mode, if static library and dynamic library contains same function and both libraries are passed as arguments, linker will link the function in