From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108397 invoked by alias); 15 Jul 2016 04:47:18 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 108335 invoked by uid 89); 15 Jul 2016 04:47:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:798 X-HELO: mail-lf0-f53.google.com Received: from mail-lf0-f53.google.com (HELO mail-lf0-f53.google.com) (209.85.215.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 15 Jul 2016 04:47:07 +0000 Received: by mail-lf0-f53.google.com with SMTP id q132so78631395lfe.3 for ; Thu, 14 Jul 2016 21:47:07 -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; bh=UG/PmJhilu/vyEGdxhTvPRgfI0VyePppCsLG8DYcm5c=; b=DXFmfYewgP0uJ5L0/OrQgJDPdlbX1hg2oiFKRqMYF4F018SHKuW1Q7jfrJuq26BBVq PykaOq7M1t+N/4wmemf1UWw98tF0SbMrRhuoFu/tpJmU/Ss0mUD83e3OGwcTvpoLheEk BQ+ntM5Ayu5Q3DKl1AEr9/3XoQ8bAKKUOOu38BfwoDzXkISi4nfBv8OHpmOVKLLwgImS BSzQ4uURQ0zVfqP087fc+yXEMCviiHNcUU1M6joXG9t/VL+yQXtEvTgBfvCjwU8/Ivvv EwzDzGIjoNO5dEKM9niFcT/QwblkJJo8zU7hr9XFWTVAM7aGmgTH7Ocuokyby9MUsv9k 1L/g== X-Gm-Message-State: ALyK8tL3QasMvarqLZpTuOgrtKM23wMRs40DmxPerTPZbpTtYnPSE5Ez51sVOnzeCQ2g4CAZrEQ6YJm+1waP7A== X-Received: by 10.25.207.10 with SMTP id f10mr3226241lfg.108.1468558024265; Thu, 14 Jul 2016 21:47:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.42.4 with HTTP; Thu, 14 Jul 2016 21:47:03 -0700 (PDT) In-Reply-To: <578869F9.5040606@linaro.org> References: <57886949.8010300@linaro.org> <578869F9.5040606@linaro.org> From: Andrew Pinski Date: Fri, 15 Jul 2016 04:47:00 -0000 Message-ID: Subject: Re: [RFC][IPA-VRP] Check for POINTER_TYPE_P before accessing SSA_NAME_PTR_INFO in tree-inline To: kugan Cc: "gcc-patches@gcc.gnu.org" , Richard Biener , Jan Hubicka , Martin Jambor Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00894.txt.bz2 On Thu, Jul 14, 2016 at 9:43 PM, kugan wrote: > > Hi, > > > > This patch adds check for POINTER_TYPE_P before accessing SSA_NAME_PTR_INFO > in remap_ssa_name in gcc/tree-inline.c. This is not related to IPA_VRP but > was exposed by that. SSA_NAME_PTR_INFO should be NULL for non POINTER_TYPE ssa names? Why is it not null in your case? In both cases there is a check for SSA_NAME_PTR_INFO being NULL before using it. Thanks, Andrew > > > > Thanks, > > Kugan > > > > > > gcc/ChangeLog: > > > > 2016-07-14 Kugan Vivekanandarajah > > > > * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before > > accessing SSA_NAME_PTR_INFO. > > > > >