From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7A47C3857739; Mon, 15 May 2023 22:01:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A47C3857739 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684188066; bh=CtGZSh8Mh1jSrivyNdHxV77nYmRH2ORNEXSwd6vIhAY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ogJUL53uKreCSp0PNHIXDNHmdtb7N+9lGiwinlakKrznAJyCRr+XZkOzv57AkLjyo JaMdzBtmq+I4MsIw2QhLo/fVwVtGepK+/u/0vL3XApyMbLlIBHHjv6Z2dq6+sxdsiP RFOuTKwgjwVWIuGeAH1gNx2CVMScbSkCv0dfy4sE= From: "Gary.White at ColoState dot edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/109865] different results when routine moved inside the contains statement Date: Mon, 15 May 2023 22:01:06 +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: og12 (devel/omp/gcc-12) X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Gary.White at ColoState dot 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109865 --- Comment #8 from GARY.WHITE at ColoState dot edu --- I just tried to send you a zip file with all the code and instructions (see below), but it is over 6Mb in size, and was rejected. Where can I put it t= hat you can access it? I have put the file test_case.zip on my Onedrive account at https://1drv.ms/u/s!Ak8uiHyJ2kc2iqIPdvZKUGDak3CZ9A?e=3DyFcRJZ Gary Gary C. White, CWB(r) Professor Emeritus Department of Fish, Wildlife, and Conservation Biology 10 Wagar Colorado State University Fort Collins, CO 80523 (515)450-2768 Mobile Gary.White@ColoState.edu https://sites.warnercnr.colostate.edu/gwhite/ he/him/his See where we are! "Leadership is a privilege to better the lives of others. It is not an opportunity to satisfy personal greed." Mwai Kibaki -----Original Message----- From: White,Gary Sent: Monday, May 15, 2023 3:53 PM To: kargl at gcc dot gnu.org Subject: RE: [Bug fortran/109865] different results when routine moved insi= de the contains statement Sorry I can't simplify this down to a nice compact piece of code, but ... In the attached test_case.zip file are all the *.f90 files, makefile, and s= ome library files that work on ubuntu with gfortran-12. I can provide Windows libraries if that is easier. Create the executable file, mark64, by a simple make or make type=3Dm= ark64 Right now, the makefile does not have an -O0 on the va09ad.f90 compile line= .=20 As we found out, over-riding -O3 on va09ad.f90 compilation produces correct code. Execute the test case with ./mark64 i=3Ddipper.inp o=3Ddipper.out I've included 2 output files, dipper_correct.out and dipper_incorrect.out so you can see what correct and incorrect outputs look like. Hopefully this all works out. Thanks. Gary Gary C. White, CWB(r) Professor Emeritus Department of Fish, Wildlife, and Conservation Biology 10 Wagar Colorado State University Fort Collins, CO 80523 (515)450-2768 Mobile Gary.White@ColoState.edu https://sites.warnercnr.colostate.edu/gwhite/ he/him/his See where we are! "Leadership is a privilege to better the lives of others. It is not an opportunity to satisfy personal greed." Mwai Kibaki -----Original Message----- From: kargl at gcc dot gnu.org Sent: Monday, May 15, 2023 2:42 PM To: White,Gary Subject: [Bug fortran/109865] different results when routine moved inside t= he contains statement ** Caution: EXTERNAL Sender ** https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109865 --- Comment #6 from kargl at gcc dot gnu.org --- (In reply to GARY.WHITE@ColoState.edu from comment #5) > (In reply to Steve Kargl from comment #4) > > I assume you've also tried with -fcheck=3Dall. > > Your report states you're using og12. If it supports the sanitizer, > > can you add -fsanitize=3Dundefined to the options? > > -fcheck=3Dall does not generate any warnings. > -fsanitize=3Dundefined returns pages when loading of: > > undefined reference to `__ubsan_handle_pointer_overflow' > > which makes no sense to me???? Hmmm. Thanks for checking. Either your version of gcc is not built with --enable-libsanitizer or gfortran cannot find the library. At this point, = it seems we're going to need a complete testcase. -- You are receiving this mail because: You reported the bug.=