From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 66D913971C02; Wed, 9 Dec 2020 16:04:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 66D913971C02 From: "dpozar at ecs dot umass.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/98201] CSQRT function gives bad resuts at runtime Date: Wed, 09 Dec 2020 16:04:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 9.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dpozar at ecs dot umass.edu X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 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: Wed, 09 Dec 2020 16:04:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98201 --- Comment #17 from dpozar at ecs dot umass.edu --- No, I don't think it is compiled with static option. I am using code blocks, which does not seem to even allow a static option. ________________________________ From: sgk at troutmask dot apl.washington.edu Sent: Wednesday, December 9, 2020 10:37 AM To: David Pozar Subject: [Bug fortran/98201] CSQRT function gives bad resuts at runtime https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98201 --- Comment #16 from Steve Kargl = --- On Wed, Dec 09, 2020 at 01:24:20PM +0000, dpozar at ecs dot umass.edu wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98201 > > --- Comment #15 from dpozar at ecs dot umass.edu --- > attached is the output file from > > c:\MinGW>objdump -t c:\mingw\programs\testcsqrt.exe >cmdout.txt > > don't see any reference to libraries, though. > Is testcsqrt.exe compiled with the -static option? cmdout.txt shows [152](sec 1)(fl 0x00)(ty 20)(scl 2) (nx 1) 0x00001210 _csqrtf AUX tagndx 0 ttlsiz 0x0 lnnos 0 next 0 On my FreeBSD system and a static binary, I see % gfcx -o z -static a.f90 % objdump -t z | grep csqrt 00000000 l df *ABS* 00000000 s_csqrtf.c 08078a90 g F .text 0000021d csqrtf On my FreeBSD system and a dynamic binary, I see % gfcx -o z a.f90 % objdump -t z | grep csqrt 00000000 F *UND* 00000000 csqrtf@@FBSD_1.1 This info is sufficient to tell me that csqrtf lives in FreeBSD's libm. objdump has several options that may help determine where csqrtf() resides. I don't know MingW (or windows 10) to be of any additional help. -- You are receiving this mail because: You reported the bug.=