From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 9F1A83858407 for ; Wed, 10 Jan 2024 20:51:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9F1A83858407 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9F1A83858407 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704919882; cv=none; b=JoM4noZgp+fr4c822xY3Pt+wqTcrTf12JaT2mfq/bBdDkgdHGchwjZGLeGI/MlcU6IOBKUfqyOmSe6JfuZqJNh5+CuP3QRS50p7Ua4wttEZ7klGyAdQkGNFjQRZaoFmegbTc2S6uAMPQGAQa0MnXcv3hLKE8nTd5SxcYB7oHVP4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704919882; c=relaxed/simple; bh=yLHtsZmMXMK3ehcDF56Quey0DcOsFJ1ZZDlM51dSJOk=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=nXt4OfXLFow7DsgXU82E7Ia/mc/gfwqd10Ci0+5cB3Hlnr3HNGbQPdCV1ES1RQXh8WMZXN+ccgWFC9tL0+uwE3YfqAFSq7nJvdrhDSmRGJQ8kP+V1WtsqNqSfAQ1Qp+56IgmbsdOlwKbT0TbhqCxMwjFmccuVoQMqTSYZ6og/ho= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704919880; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=RCT6NkYfqSmA9fQ03lgdKI0TIpVaFTSbujUzvLo3jF8=; b=Yd4ZL4wcv+0ycBNOGAlsnmv0x9+WOS4vRyr+bIZsJZXdybxTUfCCfW8mmqsXSf5sLtrn6R rxi8H0XVZT3QIKla5C/+lyXz1qgup6lpEdXzCMS07op0k8SKpptH3+yGAGy3wCmlGPkiBT 2z67X4RbLZiujYwB+wyE4XnpTsdPdO8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-448-XeLvZB20P2KbAzHhFb-ZaQ-1; Wed, 10 Jan 2024 15:51:18 -0500 X-MC-Unique: XeLvZB20P2KbAzHhFb-ZaQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1A63485A58A; Wed, 10 Jan 2024 20:51:18 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.92]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D0AD5C15E6A; Wed, 10 Jan 2024 20:51:17 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 40AKpFBN402821 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 10 Jan 2024 21:51:15 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 40AKpEU2402820; Wed, 10 Jan 2024 21:51:14 +0100 Date: Wed, 10 Jan 2024 21:51:14 +0100 From: Jakub Jelinek To: Robert Dubner Cc: "'GCC Mailing List'" Subject: Re: I am causing valgrind errors... Message-ID: Reply-To: Jakub Jelinek References: <7b2c4b10-4134-4f1b-9597-de66d6072f16@redhat.com> <00c401da4406$2e55d300$8b017900$@symas.com> MIME-Version: 1.0 In-Reply-To: <00c401da4406$2e55d300$8b017900$@symas.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Wed, Jan 10, 2024 at 02:47:08PM -0600, Robert Dubner wrote: > Here's the thing: when I run valgrind on the compilation -- not on the > executable, but on the compiler with the COBOL front end -- I am getting a > bunch of errors that look like variations of this: > > ==1232157== Command: /home/bob/repos/gcc-cobol/build/gcc/cobol1 > playpen.cbl -quiet -dumpbase > playpen.cbl -mtune=generic -march=x86-64 -ggdb -O0 -o playpen.s -cmain > ==1232157== > ==1232157== Conditional jump or move depends on uninitialised value(s) > ==1232157== at 0xABA0CB: sparseset_bit_p (sparseset.h:146) > ==1232157== by 0xABA0CB: mark_pseudo_regno_live(int) (ira-lives.cc:326) > ==1232157== by 0xABBDC0: process_bb_node_lives(ira_loop_tree_node*) That is normal and not a bug. If you want to avoid that, you need to configure the compiler with --enable-valgrind-annotations (and have valgrind development installed before you configure/build). Jakub