From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118576 invoked by alias); 27 Mar 2015 16:58:51 -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 118558 invoked by uid 89); 27 Mar 2015 16:58:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,LIKELY_SPAM_BODY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-ob0-f172.google.com Received: from mail-ob0-f172.google.com (HELO mail-ob0-f172.google.com) (209.85.214.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 27 Mar 2015 16:58:49 +0000 Received: by obbld8 with SMTP id ld8so23872989obb.3; Fri, 27 Mar 2015 09:58:47 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.202.44.85 with SMTP id s82mr6356419ois.78.1427475527879; Fri, 27 Mar 2015 09:58:47 -0700 (PDT) Received: by 10.76.134.102 with HTTP; Fri, 27 Mar 2015 09:58:47 -0700 (PDT) In-Reply-To: <20150327152704.GE13867@adacore.com> References: <20150326210014.GC13867@adacore.com> <20150327094653.GA29713@physik.fu-berlin.de> <20150327134252.GD13867@adacore.com> <20150327151754.GA21801@physik.fu-berlin.de> <20150327152704.GE13867@adacore.com> Date: Fri, 27 Mar 2015 16:58:00 -0000 Message-ID: Subject: Re: [pushed] Re: gdb fails to compile with GCC 4.4.7 (was: [PATCH V4 5/9] New probe type: DTrace USDT probes.) From: "H.J. Lu" To: Joel Brobecker , Binutils Cc: Tobias Burnus , GDB Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00914.txt.bz2 On Fri, Mar 27, 2015 at 8:27 AM, Joel Brobecker wrote: >> > Would you mind checking that the attached patch fixes the problem? >> >> Yes, it now also compiles with GCC 4.4. Thanks for the fix! >> >> Tobias >> >> > * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL. > > Excellent, thanks for reporting the problem and checking the fix > for me. Patch is now in. FWIW, there are other similar places in binutils-gdb tree: https://sourceware.org/ml/binutils/2015-03/msg00368.html I suggested a macro, like #define SILENCE_UNIITITALIZED_WARNING(var) .... and do struct bfd_link_hash_entry SILENCE_UNIITITALIZED_WARNING (ehdr_start_save); -- H.J.