Message ID | 20170216045708.50661-8-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show
Return-Path: <linux-sparse-owner@kernel.org> 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 5D7226049F for <patchwork-linux-sparse@patchwork.kernel.org>; Thu, 16 Feb 2017 04:57:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55E4928536 for <patchwork-linux-sparse@patchwork.kernel.org>; Thu, 16 Feb 2017 04:57:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AE63285A9; Thu, 16 Feb 2017 04:57:24 +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 0610728536 for <patchwork-linux-sparse@patchwork.kernel.org>; Thu, 16 Feb 2017 04:57:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753280AbdBPE5X (ORCPT <rfc822;patchwork-linux-sparse@patchwork.kernel.org>); Wed, 15 Feb 2017 23:57:23 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:33120 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753237AbdBPE5W (ORCPT <rfc822;linux-sparse@vger.kernel.org>); Wed, 15 Feb 2017 23:57:22 -0500 Received: by mail-wr0-f194.google.com with SMTP id i10so641717wrb.0 for <linux-sparse@vger.kernel.org>; Wed, 15 Feb 2017 20:57:22 -0800 (PST) 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=czpLZmpH1Q/hhweoUaqh228YHL3+QeX9EZcTfHiq/uo=; b=AycECz1fVUFEnr/P0w/b389P+4ghBgppkBy+SiWh13hwge8yABy+v5pU0QLL8lCUBj nXQI8tFeopCs4YzDmyOA1y5sjLBJfagE+IPrSaaCIMmYPt0GAXpJbn8CH/PP2nC5A4Vr v5RGXkRNQOhhh1SXpcxLiC0PwogAy+Xidnp5yBiGSg/C4LdG9K8jK8NrduvwqGNoGMRe FVf7DdrK/QsfIAhew7bSqh0AYNIB+PGWFBK6fSkBol0fCr3SvaJsr/sy49cUolN45EBb FP5OlYbW42fNGZewQz8MGWKWuZGWSPGinJr0Ft6DuUmBAFplH+Obc31QSfpqoabXFgWO WQBw== 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=czpLZmpH1Q/hhweoUaqh228YHL3+QeX9EZcTfHiq/uo=; b=CdohyH8uBylFbPF+coJJVPQHMq1apV0Vd4jAhbIvkQUc/npTUXOZF80+Tl5jsCnx/h HiOxhtFseNlG/wp+c2wA+pfElh6J1hvlTZHRq8Qsx/h/MhwUMbIM4Z3mL2O38gtMkgSM mftbBowi82C+5I3wuYNn+Hk1PIp54Y0ZD1jMQ30HShjX0tnl/SXQD7Lqs4ugmAZnVUa4 zPdtOJ98jfDLD9EKJ17sC35ciZjAau82DjejMkKyKNu9wCOymHFb78rWlaaX5m2MQinL EwnPWXpO1ffVWQxJk0emHEFxyBC/nwDWuYezrwed2dgC8D6E6OZ0phZQQsr7fMpHb05X HnWQ== X-Gm-Message-State: AMke39nNuu6pA7G6le09zRxdDkyX5oIDUBxgwuJ5PLjs956+tee+pg5cw3k1UOs28oSzfA== X-Received: by 10.223.146.39 with SMTP id 36mr263935wrj.85.1487221041085; Wed, 15 Feb 2017 20:57:21 -0800 (PST) Received: from localhost.localdomain ([2a02:a03f:833:b500:30e2:fda3:9c55:1fd0]) by smtp.gmail.com with ESMTPSA id g11sm7313928wrb.63.2017.02.15.20.57.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 20:57:20 -0800 (PST) From: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> To: linux-sparse@vger.kernel.org Cc: Christopher Li <sparse@chrisli.org>, Luc Van Oostenryck <luc.vanoostenryck@gmail.com> Subject: [PATCH 07/16] fix killing of otherwise not-handled instructions Date: Thu, 16 Feb 2017 05:56:59 +0100 Message-Id: <20170216045708.50661-8-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170216045708.50661-1-luc.vanoostenryck@gmail.com> References: <20170216045708.50661-1-luc.vanoostenryck@gmail.com> Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: <linux-sparse.vger.kernel.org> X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/simplify.c b/simplify.c index 82ae97ae9..1fbad1060 100644 --- a/simplify.c +++ b/simplify.c @@ -228,9 +228,11 @@ void kill_instruction(struct instruction *insn) break; case OP_ENTRY: - default: /* ignore */ return; + + default: + break; } insn->bb = NULL;
The instructions which are otherwise not handled in kill_instruction() were simply ignored but they must still have their ->bb set to NULL. Fix this by separating the default case from OP_ENTRY, the only kind that must be ignored in all circonstances. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- simplify.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)