From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86559 invoked by alias); 13 Jun 2016 11:04:37 -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 86512 invoked by uid 89); 13 Jun 2016 11:04:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=rs6000tdepc, UD:rs6000-tdep.c, rs6000-tdep.c, sk:ppc_pro X-Spam-User: qpsmtpd, 2 recipients X-HELO: mail-oi0-f68.google.com Received: from mail-oi0-f68.google.com (HELO mail-oi0-f68.google.com) (209.85.218.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 13 Jun 2016 11:04:35 +0000 Received: by mail-oi0-f68.google.com with SMTP id u201so9306539oie.2; Mon, 13 Jun 2016 04:04:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=OKSRmC4xlqxi9NKVL2eLUt+HLE9S/5Y2OkkIJadz8VY=; b=I2pqPpWaff7TgQb+SDzD3J9AXLeaoc9kIgoRSrd4wIuBFKHjQiaxIJLWkvjKdi0OwB 7yFO6xK1E0a+3sTOzbG0WOzmgHWsM+pZFVIBURrnL0NyOAEfs629K1CZF+n9prt1wnEF LIs00EgkuGP/brhLHCINF8izlqGxfocZ0OlZOqz0LJnK42n+RKwGK8ym9LFx6Zkv+Yej nOkFYzRpSIuYcb5J6Jki0WYK1BSWImSYO7WOr5xVK68P5IHIBgDrWNPssyeD4IrKeLFc WMwPWLUxyq68ULZu7ElmhLJvGOihZ/u3weKUdBtDaWLmqP8qrHai8CXJc4vB3KWfDDJc hU4Q== X-Gm-Message-State: ALyK8tLIXOGLTgz7cJbzJbFfq9f1c//HpoTAYDFKENo+jDUaLULdDTGujXHmNMwhPZm+L/d634i7ee9e8u1TXg== X-Received: by 10.202.181.131 with SMTP id e125mr5775367oif.12.1465815873174; Mon, 13 Jun 2016 04:04:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.68.4 with HTTP; Mon, 13 Jun 2016 04:04:32 -0700 (PDT) In-Reply-To: <1465678115-58170-4-git-send-email-jhb@FreeBSD.org> References: <1465678115-58170-1-git-send-email-jhb@FreeBSD.org> <1465678115-58170-4-git-send-email-jhb@FreeBSD.org> From: Yao Qi Date: Mon, 13 Jun 2016 11:04:00 -0000 Message-ID: Subject: Re: [PATCH 3/8] Initialize 'ra' to zero to avoid uninitialized use. To: John Baldwin Cc: "gdb-patches@sourceware.org" , binutils@sourceware.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00221.txt.bz2 On Sat, Jun 11, 2016 at 9:48 PM, John Baldwin wrote: > If the instruction in this case does not include an RA field, then 'ra' > is used uninitialized. Use the same idiom used elsewhere in this file of > initializing ra to zero before check for an RA field. > > gdb/ChangeLog: > > * rs6000-tdep.c (ppc_process_record_op31): Initialize ra. Patch is good to me. --=20 Yao (=E9=BD=90=E5=B0=A7)