From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67748 invoked by alias); 28 Jun 2016 21:40:39 -0000 Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: fortran-owner@gcc.gnu.org Received: (qmail 67719 invoked by uid 89); 28 Jun 2016 21:40:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=organization, phone X-HELO: moene.org Received: from moene.org (HELO moene.org) (80.101.130.238) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 28 Jun 2016 21:40:24 +0000 Received: from [::1] (helo=moene.org) by moene.org with esmtp (Exim 4.87) (envelope-from ) id 1bI0jx-00047m-0R for fortran@gcc.gnu.org; Tue, 28 Jun 2016 23:40:17 +0200 Subject: Re: This OpenMP code doesn't seem to compile correctly (5.4, 6.1). To: fortran@gcc.gnu.org References: From: Toon Moene Message-ID: <8977cb8a-f321-8dc0-91ea-5785c238092c@moene.org> Date: Tue, 28 Jun 2016 21:40:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00113.txt.bz2 On 06/28/2016 09:59 PM, Anton Shterenlikht wrote: > mech-as222> uname -a > FreeBSD mech-as222.men.bris.ac.uk 10.3-RELEASE-p4 FreeBSD > 10.3-RELEASE-p4 #0: Sat May 28 12:23:44 UTC 2016 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 Fascinating - a colleague of mine thought it might be related to a kernel problem. I am using: toon@moene:~/src$ uname -a Linux moene.org 4.6.0-1-amd64 #1 SMP Debian 4.6.1-1 (2016-06-06) x86_64 GNU/Linux > mech-as222> gfortran6 -Wl,-rpath="/usr/local/lib/gcc6" z.f90 > mech-as222> ./a.out > 0.00000000 0.00000000 0.00000000 0.00000000 > mech-as222> gfortran6 --version > GNU Fortran (FreeBSD Ports Collection) 6.0.0 20150927 (experimental) > > mech-as222> gfortran5 -Wl,-rpath="/usr/local/lib/gcc5" z.f90 > mech-as222> ./a.out > 0.00000000 0.00000000 0.00000000 0.00000000 > mech-as222> gfortran5 --version > GNU Fortran (FreeBSD Ports Collection) 5.3.0 > > Anton > > On 28/06/2016, Toon Moene wrote: >> >> >> >> -------- Forwarded Message -------- >> Subject: This OpenMP code doesn't seem to compile correctly (5.4, 6.1). >> Date: Tue, 28 Jun 2016 21:13:43 +0200 >> From: Toon Moene >> Organization: Moene Computational Physics, Maartensdijk, The Netherlands >> To: fortran@gcc.gn.org >> >> See the attached. >> >> I can't find fault with the code, yet it produces: >> >> 99999.0000 99999.0000 99999.0000 99999.0000 >> >> instead of zeros. >> >> Is this indeed an error (in that case I will open a BugZilla report). >> >> Kind regards, >> >> -- >> Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290 >> Saturnushof 14, 3738 XG Maartensdijk, The Netherlands >> At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/ >> Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news >> >> > -- Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands At home: http://moene.org/~toon/; weather: http://moene.org/~hirlam/ Progress of GNU Fortran: http://gcc.gnu.org/wiki/GFortran#news