From patchwork Sat Apr 8 21:19:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luc Van Oostenryck X-Patchwork-Id: 9671327 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F279A60365 for ; Sat, 8 Apr 2017 21:19:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E579228387 for ; Sat, 8 Apr 2017 21:19:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA5EC28422; Sat, 8 Apr 2017 21:19:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BA0A28387 for ; Sat, 8 Apr 2017 21:19:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752187AbdDHVTU (ORCPT ); Sat, 8 Apr 2017 17:19:20 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36703 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752434AbdDHVTT (ORCPT ); Sat, 8 Apr 2017 17:19:19 -0400 Received: by mail-wm0-f65.google.com with SMTP id q125so3594358wmd.3 for ; Sat, 08 Apr 2017 14:19:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XrstbErxrZGJ4pIldQzguC7e7o9XEls2Y8ys83V5OQs=; b=pb1OSym6Awef7Lc25jQ2ESQ219Z3+s3f+iR/sVhz8mG5PatgveduYcm14iflumphVh P5SvjvUAxrRJtlsfVJqpJBTFbODhYSkxIxrtRyxwj52HaiXYmRQUpexj/CN6EHF06tEW AO2KSQypdcoGajZ6VyTiddX2GYSBGydykXXeEA2XgdgvgjS2u5SbBzx9MwmoMmgJcGKo y/Ij9PqyBtz8aNKlqJNgTHH88yqAVb4MPScNogY51NRWD7LvEUIuUio26330HJzIuCkO 4cbuUJgBoAjsi+bHU44OuKTdoFNNPL4T0vDBRf2Bs9HSRLivEku1K/uaWUpc9WPXGCLe JOUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XrstbErxrZGJ4pIldQzguC7e7o9XEls2Y8ys83V5OQs=; b=s/MCR9C52pDDsjYLv5Pwo3pi7ZsNJC/eXG6DfeKgOAK0XrpGyD3veaRMfOQGtlUBBk pqbXGIR0bhiDZukBCyX2fAKwsmU1K2KuvpOyDRKSe/Pg1xNjHZo5RjeLDUy/jnLcEqaH UUcahewucD37sQjiZC530o8LyZ23wlBsPZYff2xoEaj3uTeY0FsRdq+wXN9UkKGF1B74 0hpxn60nRXSjuqWJ4c6Xe9O3YQCmRGi01yXkm5aRUvnDPSmJszEcOPEwgjjilpOwlASF C6qeeNzU+uNu9DKc32OuzEXa5Fo4E97VsTWKgw9Jed4y956wvyPD0Euuytxb6i0+nCAk UKkA== X-Gm-Message-State: AN3rC/7TIykhnx+CsuHxXpB+hDLVBeZns+DqQlIi//Ocs4InoY2mvuO/ /sOp+w7/wiM6goKa350= X-Received: by 10.28.105.8 with SMTP id e8mr4396097wmc.122.1491686356861; Sat, 08 Apr 2017 14:19:16 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:88d:1900:3d63:d6f1:4c06:8f0f]) by smtp.gmail.com with ESMTPSA id n5sm4032362wmf.14.2017.04.08.14.19.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Apr 2017 14:19:16 -0700 (PDT) From: Luc Van Oostenryck To: linux-sparse@vger.kernel.org Cc: Luc Van Oostenryck Subject: [PATCH v2 6/6] remove origval from struct access_data Date: Sat, 8 Apr 2017 23:19:01 +0200 Message-Id: <20170408211901.40507-7-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170408211901.40507-1-luc.vanoostenryck@gmail.com> References: <20170408211901.40507-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In struct access_data, the field 'origval' seems to be a leftower of some previous version and is set but never really used. Change this by removing this field. --- linearize.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/linearize.c b/linearize.c index 1f93da9ae..af4c40650 100644 --- a/linearize.c +++ b/linearize.c @@ -843,7 +843,6 @@ struct access_data { struct symbol *result_type; // result ctype struct symbol *source_type; // source ctype pseudo_t address; // pseudo containing address .. - pseudo_t origval; // pseudo for original value .. unsigned int offset; // byte offset struct position pos; }; @@ -909,13 +908,8 @@ static pseudo_t add_load(struct entrypoint *ep, struct access_data *ad) struct instruction *insn; pseudo_t new; - new = ad->origval; - if (0 && new) - return new; - insn = alloc_typed_instruction(OP_LOAD, ad->source_type); new = alloc_pseudo(insn); - ad->origval = new; insn->target = new; insn->offset = ad->offset;