From patchwork Thu Oct 2 13:29:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Enkovich X-Patchwork-Id: 395946 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C9F1814016B for ; Thu, 2 Oct 2014 23:29:34 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=jRkMyYI1x6YjIz2AMdVDrkLUlz9mZa/Zhf0ocBxRZR5Sop4mLOFRL o4jVAtJdo8IyyUUdR+qmZoD8sCs5/ZQRK8/UcTlz2uUDtHEew8bCIdk/pUjewens h5b4Pq77KPtIVNjt8dFkji6jBfzlHGcmfycHE3vzieSQ2pmeE3DBD8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=sh485H+8a5yHdKEGWGAH3FUFhhM=; b=T3vJGd2hSydRGx5M5MIi h64T5cqJCRI4Ho9b6VdrVmxGoYKQilZjsaqbeEVHwDt0uoSc1PObzbQvUvS/J0C0 5QY99NwHGkargZKrPB3dYzFuN1AMqI1zDwkCOWcOIS7RrkYGc2vmIi2Pswk0LySb pF9Q19UYFwBz6E5icmgPnR4= Received: (qmail 11526 invoked by alias); 2 Oct 2014 13:29:27 -0000 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 Received: (qmail 11510 invoked by uid 89); 2 Oct 2014 13:29:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f52.google.com Received: from mail-pa0-f52.google.com (HELO mail-pa0-f52.google.com) (209.85.220.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 02 Oct 2014 13:29:24 +0000 Received: by mail-pa0-f52.google.com with SMTP id fb1so2388261pad.25 for ; Thu, 02 Oct 2014 06:29:22 -0700 (PDT) X-Received: by 10.68.143.4 with SMTP id sa4mr86057213pbb.5.1412256561705; Thu, 02 Oct 2014 06:29:21 -0700 (PDT) Received: from msticlxl57.ims.intel.com ([192.55.54.42]) by mx.google.com with ESMTPSA id nv1sm3641149pbc.18.2014.10.02.06.29.20 for (version=TLSv1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Oct 2014 06:29:21 -0700 (PDT) Date: Thu, 2 Oct 2014 17:29:15 +0400 From: Ilya Enkovich To: gcc-patches@gcc.gnu.org Subject: [PATCH, i386, Pointer Bounds Checker 38/x] Avoid warning for missed IPA_REF_CHKP in switch Message-ID: <20141002132915.GC28697@msticlxl57.ims.intel.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Hi, Seems some new warnings appeared lately and now I see a bootstrap failure for mpx branch due to missing IPA_REF_CHKP case in switch statement in process_references function. This function handles varpool_nodes which cannot have references of this kind. This patch fixes a warning. Thanks, Ilya --- 2014-10-01 Ilya Enkovich * ipa.c (process_references): Support IPA_REF_CHKP. diff --git a/gcc/ipa.c b/gcc/ipa.c index 39ee815..78f251a 100644 --- a/gcc/ipa.c +++ b/gcc/ipa.c @@ -637,6 +637,8 @@ process_references (varpool_node *vnode, process_references (dyn_cast (ref->referring), written, address_taken, read, explicit_refs); break; + case IPA_REF_CHKP: + gcc_unreachable (); } }