From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124004 invoked by alias); 3 Aug 2015 17:12:31 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 123991 invoked by uid 89); 3 Aug 2015 17:12:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 03 Aug 2015 17:12:28 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id BD125C9D2D; Mon, 3 Aug 2015 17:12:27 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t73HCP8R015028; Mon, 3 Aug 2015 13:12:26 -0400 Message-ID: <55BFA0F9.5050306@redhat.com> Date: Mon, 03 Aug 2015 17:12:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: sellcey@imgtec.com, Pierre-Marie de Rodat CC: Doug Evans , GDB Patches Subject: Re: [PATCH] Replace the block_found global with explicit data-flow References: <55BC8CA9.3070505@adacore.com> <1438619922.8302.6.camel@ubuntu-sellcey> In-Reply-To: <1438619922.8302.6.camel@ubuntu-sellcey> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-08/txt/msg00037.txt.bz2 Hi Steve, On 08/03/2015 05:38 PM, Steve Ellcey wrote: > I am seeing a different build error that I think is due to this patch. > I only see it on an old CentOS 5.11 system with GCC 4.1.2, and only when > I build gdb as a 32 bit executable instead of a 64 bit executable. > > cc1: warnings being treated as errors > /scratch/sellcey/repos/gdb-build/src/binutils-gdb/gdb/cp-namespace.c: In function 'cp_lookup_symbol_via_imports': > /scratch/sellcey/repos/gdb-build/src/binutils-gdb/gdb/cp-namespace.c:482: warning: 'sym.block' may be used uninitialized in this function > > It looks like sym.symbol is always initialized, but sym.block is not > initialized at the beginning of the function. I think it is always > initialized when used but GCC (at least this version of GCC) cannot seem > to figure that out. That's been fixed meanwhile: https://sourceware.org/ml/gdb-patches/2015-08/msg00018.html Thanks, Pedro Alves