From patchwork Tue Sep 21 13:15:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tristan Gingold X-Patchwork-Id: 65307 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 02C5EB70A6 for ; Tue, 21 Sep 2010 23:16:08 +1000 (EST) Received: (qmail 18900 invoked by alias); 21 Sep 2010 13:16:06 -0000 Received: (qmail 18780 invoked by uid 22791); 21 Sep 2010 13:16:05 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Sep 2010 13:15:58 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id AD63ECB021E for ; Tue, 21 Sep 2010 15:15:56 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AkyjzNAyEIkn for ; Tue, 21 Sep 2010 15:15:56 +0200 (CEST) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 9BF78CB01D6 for ; Tue, 21 Sep 2010 15:15:56 +0200 (CEST) From: Tristan Gingold Subject: [Patch]: Fix uninitialized field in alpha.c Date: Tue, 21 Sep 2010 15:15:56 +0200 Message-Id: <45639F5B-E347-43EA-97C7-B4687819D812@adacore.com> To: GCC Patches Mime-Version: 1.0 (Apple Message framework v1081) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hi, we have used this patch for a long time to avoid an uninitialized variable. I have just checked it still applies on head. Ok for mainline (or obvious) ? Tristan. 2010-09-21 Tristan Gingold * config/alpha/alpha.c (alpha_use_linkage): Initialize target field. diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 4db554c..49c86fd 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -10029,6 +10029,7 @@ alpha_use_linkage (rtx func, tree cfundecl, int lflag, i al = ggc_alloc_alpha_links (); al->num = cfaf->num; + al->target = NULL; node = splay_tree_lookup (alpha_links_tree, (splay_tree_key) name); if (node)