From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 847173857C5F; Mon, 22 Feb 2021 19:11:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 847173857C5F From: "sgk at troutmask dot apl.washington.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/98301] random_init() is broken Date: Mon, 22 Feb 2021 19:11:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libfortran X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sgk at troutmask dot apl.washington.edu X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P4 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2021 19:11:46 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98301 --- Comment #7 from Steve Kargl -= -- On Mon, Feb 22, 2021 at 06:57:03PM +0000, sgk at troutmask dot apl.washington.edu wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98301 >=20 > --- Comment #6 from Steve Kargl = --- > On Mon, Feb 22, 2021 at 04:36:50AM +0000, jvdelisle at gcc dot gnu.org wr= ote: > >=20 > > --- Comment #5 from Jerry DeLisle --- > > Steve, if you think this does it. I will get it ready to commit for you= . Does > > it also need to be back ported? > >=20 >=20 > Well, I think it is correct for at least what I've been > able to test! I don't use co-arrays, so do not have > OpenCoarray or the shared-memory WIP installed. For, > -fcoarray=3Dlib or -fcoarray=3Dshared, function calls are > generated. These are currently unimplimented and need > to be implemented in such a manner as the function calls > are aware of the underlying coarray implemention. I=20 > don't remember the details, but I recall that the images=20 > need to communicate about the seeds. >=20 Oh, one last item. This patch will likely break gfortran+opencoarray because _gfortran_caf_random_init is missing, and therefore will prevent linking of the program.=