From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by sourceware.org (Postfix) with ESMTPS id 3E9AA3858004 for ; Sun, 21 Mar 2021 19:50:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3E9AA3858004 X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [79.232.152.73] ([79.232.152.73]) by web-mail.gmx.net (3c-app-gmx-bap66.server.lan [172.19.172.66]) (via HTTP); Sun, 21 Mar 2021 20:50:03 +0100 MIME-Version: 1.0 Message-ID: From: Harald Anlauf To: fortran Subject: valgrind & f951 Content-Type: text/plain; charset=UTF-8 Date: Sun, 21 Mar 2021 20:50:03 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:bx1wWQfj16MmqrFWZJbLDL4IXFW+GgTE9kN9p5SJywmW7TjowyCHM+Q0Dh3aB6h1mvhAw WdctvSmxKjiGTpAP6QUz0shwvCXDeX+Df014npzyyDWQwczhrbNsQ5Rzpt2oCLATOa62YEPIzhyS p3oSNumO5pBWoTEP7fB9iwWZnjHQuQmOrqHHvIRJjL7OuvgHnrHy5+BLxj2JKYi2HFJ97wVtH0RF ZqkfYkJjMgNbfVrU3CYsNSj31RZ9hBMrtmnIpAWYuTMtN/utpDfAeZSnVbJ1P5M6fGz4InxLc76I +g= X-UI-Out-Filterresults: notjunk:1;V03:K0:UsFDUaKEWy8=:ECNjf8+ondSiGGBL4bUwWW gqaCUDP+rFe7Y+VbwBGfIAXSRDmo5sy8FDClMJzHI7Wrv8dIBXCLO+yd8/J8g3edLUu0+/Ytv WR+29u+tcD6Pv+vOt6hMDnC/Ei4SJGBvd737dQMJkZYNlw7Hej6tP3/BSmDgyUfLcDyDrUxW3 vAqfb2CBBWOVlKZPxogE3jRrNyIS2DYqqAwjHSdJXZxyeRVMKZFXMUkqa79slqeYdiLtxU5ke NPC4mWDaRMghGgwvFt8opB8dre2Ul+TMSCxXrXVgBm4q36VJnhPToSa9s988tYSKpoRpLLOWW F15rNjNCKfv+bKL6yaLPDhVqFSASbxxK1QG3orO+64igh3hNh8UQP3/HQbBf8MxtkCGGy1tmD Lqcj5kJxpvtZXhy8dWZ2B7MbTrEncoVUayRUGsnro2ahjcCazO73AeUQqQO1CqDqHPlNMz7r7 2gNu2GF/tGyfGQ47F1PnNCSBiFTtx87bodUnyzDpr1U68k2fja4sMCzHHoA08V/Cz9V88GEnF 8zr7PtHUAm7Nac0+wr07+o9QivtuTUYq6Avz87B0egXghPeTdvYzCGPHkqj6BhCqNfy5+7A+n G2OI+8BXX13Qs= Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2021 19:50:07 -0000 Dear all, in order to be able to run f951 under valgrind on OpenSuse Leap 15.2, I've already reduced the dwarf version back to 4, diff --git a/gcc/common.opt b/gcc/common.opt index c75dd36843e..7dbfcb589ed 100644 =2D-- a/gcc/common.opt +++ b/gcc/common.opt @@ -3171,7 +3171,7 @@ Common Driver JoinedOrMissing Negative(gdwarf-) Generate debug information in default version of DWARF format. gdwarf- -Common Driver Joined UInteger Var(dwarf_version) Init(5) Negative(gstabs) +Common Driver Joined UInteger Var(dwarf_version) Init(4) Negative(gstabs) Generate debug information in DWARF v2 (or later) format. gdwarf32 However, I am still seeing issues probably in the backend even for the simplest code, such as i =3D 1 end which is annoying: =3D=3D29099=3D=3D Memcheck, a memory error detector =3D=3D29099=3D=3D Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward= et al. =3D=3D29099=3D=3D Using Valgrind-3.15.0 and LibVEX; rerun with -h for copy= right info =3D=3D29099=3D=3D Command: /opt/gcc/11/lib/gcc/x86_64-pc-linux-gnu/11.0.1/= f951 foo.f90 =3D=3D29099=3D=3D MAIN__ main Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> {heap 4096k} {heap 4096k} {heap 4096k} {heap 4096k} {heap 409= 6k} {heap 4096k} {heap 4096k}Streaming LTO {heap 4096k} {heap 4096k} {heap 4096= k} {heap 4096k} {heap 4096k} {heap = 4096k} {heap 4096k}Assembling functions: {heap 4096k} MAIN__ main=3D=3D29099=3D=3D Conditional jump or= move depends on uninitialised value(s) =3D=3D29099=3D=3D at 0xBCB62E: sparseset_bit_p (sparseset.h:146) =3D=3D29099=3D=3D by 0xBCB62E: mark_pseudo_regno_live(int) (ira-lives.c= :326) =3D=3D29099=3D=3D by 0xBCD270: process_bb_node_lives(ira_loop_tree_node= *) (ira-lives.c:1433) =3D=3D29099=3D=3D by 0xBAE40D: ira_traverse_loop_tree(bool, ira_loop_tr= ee_node*, void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*)) (i= ra-build.c:1801) =3D=3D29099=3D=3D by 0xBCDD8F: ira_create_allocno_live_ranges() (ira-li= ves.c:1733) =3D=3D29099=3D=3D by 0xBB0149: ira_build() (ira-build.c:3428) =3D=3D29099=3D=3D by 0xBA615C: ira (ira.c:5654) =3D=3D29099=3D=3D by 0xBA615C: (anonymous namespace)::pass_ira::execute= (function*) (ira.c:5977) =3D=3D29099=3D=3D by 0xCC4353: execute_one_pass(opt_pass*) (passes.c:25= 67) =3D=3D29099=3D=3D by 0xCC4C70: execute_pass_list_1(opt_pass*) (passes.c= :2656) =3D=3D29099=3D=3D by 0xCC4C82: execute_pass_list_1(opt_pass*) (passes.c= :2657) =3D=3D29099=3D=3D by 0xCC4CC4: execute_pass_list(function*, opt_pass*) = (passes.c:2667) =3D=3D29099=3D=3D by 0x8E8C95: cgraph_node::expand() (cgraphunit.c:1830= ) =3D=3D29099=3D=3D by 0x8EA3C7: output_in_order (cgraphunit.c:2141) =3D=3D29099=3D=3D by 0x8EA3C7: symbol_table::compile() [clone .part.62]= (cgraphunit.c:2359) ... =3D=3D29099=3D=3D Use of uninitialised value of size 8 =3D=3D29099=3D=3D at 0xBCB633: sparseset_bit_p (sparseset.h:146) =3D=3D29099=3D=3D by 0xBCB633: mark_pseudo_regno_live(int) (ira-lives.c= :326) =3D=3D29099=3D=3D by 0xBCD270: process_bb_node_lives(ira_loop_tree_node= *) (ira-lives.c:1433) =3D=3D29099=3D=3D by 0xBAE40D: ira_traverse_loop_tree(bool, ira_loop_tr= ee_node*, void (*)(ira_loop_tree_node*), void (*)(ira_loop_tree_node*)) (i= ra-build.c:1801) =3D=3D29099=3D=3D by 0xBCDD8F: ira_create_allocno_live_ranges() (ira-li= ves.c:1733) =3D=3D29099=3D=3D by 0xBB0149: ira_build() (ira-build.c:3428) =3D=3D29099=3D=3D by 0xBA615C: ira (ira.c:5654) =3D=3D29099=3D=3D by 0xBA615C: (anonymous namespace)::pass_ira::execute= (function*) (ira.c:5977) =3D=3D29099=3D=3D by 0xCC4353: execute_one_pass(opt_pass*) (passes.c:25= 67) =3D=3D29099=3D=3D by 0xCC4C70: execute_pass_list_1(opt_pass*) (passes.c= :2656) =3D=3D29099=3D=3D by 0xCC4C82: execute_pass_list_1(opt_pass*) (passes.c= :2657) =3D=3D29099=3D=3D by 0xCC4CC4: execute_pass_list(function*, opt_pass*) = (passes.c:2667) =3D=3D29099=3D=3D by 0x8E8C95: cgraph_node::expand() (cgraphunit.c:1830= ) =3D=3D29099=3D=3D by 0x8EA3C7: output_in_order (cgraphunit.c:2141) =3D=3D29099=3D=3D by 0x8EA3C7: symbol_table::compile() [clone .part.62]= (cgraphunit.c:2359) ... and I get tons of the above. This is not a bootstrap-build compiler; it was configured with --disable-b= ootstrap. Could this be the reason for the above? I would really prefer to no do a = full bootstrap since I am interested only in the development of the Fortran-rel= ated parts of the compiler? Any insights appreciated. Thanks, Harald