From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F32733857C7A; Sun, 31 Jan 2021 16:44:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F32733857C7A From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/98904] New: valgrind error in gfc_trans_assignment_1 during bootstrap Date: Sun, 31 Jan 2021 16:44:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Sun, 31 Jan 2021 16:44:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98904 Bug ID: 98904 Summary: valgrind error in gfc_trans_assignment_1 during bootstrap Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- I just tried to make a valgrind build of gcc fortran with -O3. My configure lines are ../trunk.git/configure --prefix=3D/home/dcb/gcc/$PREFIX \ --disable-bootstrap \ --disable-multilib \ --disable-werror \ --with-pkgversion=3D$HASH \ --enable-checking=3Dvalgrind \ --enable-languages=3Dfortran sed 's/-O2/-O3/' < Makefile > Makefile.tmp mv Makefile.tmp Makefile When compiling source code file omp_lib.f90 in libssp, I get =3D=3D147960=3D=3D Conditional jump or move depends on uninitialised value(= s) =3D=3D147960=3D=3D at 0x761595: gfc_trans_assignment_1(gfc_expr*, gfc_ex= pr*, bool, bool, bool, bool) (trans-expr.c:11340) =3D=3D147960=3D=3D by 0x75FE1C: gfc_trans_assignment(gfc_expr*, gfc_expr= *, bool, bool, bool, bool) (trans-expr.c:11557) =3D=3D147960=3D=3D by 0x71D39A: trans_code(gfc_code*, tree_node*) (trans= .c:1922) =3D=3D147960=3D=3D by 0x745B96: gfc_generate_function_code(gfc_namespace= *) (trans-decl.c:6880) Line 11340 is && lhs_caf_attr.codimension && rhs_caf_attr.codimension As part of else if (flag_coarray =3D=3D GFC_FCOARRAY_LIB && lhs_caf_attr.codimension && rhs_caf_attr.codimension && ((lhs_caf_attr.allocatable && lhs_refs_comp) || (rhs_caf_attr.allocatable && rhs_refs_comp))) {=