From patchwork Tue Sep 21 13:15:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: : Fix uninitialized field in alpha.c Date: Tue, 21 Sep 2010 03:15:56 -0000 From: Tristan Gingold X-Patchwork-Id: 65307 Message-Id: <45639F5B-E347-43EA-97C7-B4687819D812@adacore.com> To: GCC Patches 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)