From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dibyendu Majumdar Subject: Re: Sparse-LLVM issue compiling NULL pointers Date: Fri, 3 Mar 2017 12:39:24 +0000 Message-ID: References: <20170302052124.fsqogvysufayy4to@macbook.local> <20170302135655.s742zcslis5r56if@macpro.local> <20170302160403.zz5efgh34jvjh5q5@macpro.local> <20170302171842.xuk535w6wrfxke3b@macpro.local> <20170302200916.4agmd5jihtkzyvp5@macpro.local> <20170303042753.vn4kc474erpnysdm@macpro.local> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from mail-it0-f50.google.com ([209.85.214.50]:37503 "EHLO mail-it0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751050AbdCCNos (ORCPT ); Fri, 3 Mar 2017 08:44:48 -0500 Received: by mail-it0-f50.google.com with SMTP id 203so12958168ith.0 for ; Fri, 03 Mar 2017 05:43:50 -0800 (PST) In-Reply-To: Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Luc Van Oostenryck Cc: Linux-Sparse On 3 March 2017 at 07:50, Luc Van Oostenryck wrote: > On Fri, Mar 3, 2017 at 5:38 AM, Dibyendu Majumdar > wrote: >> Also by casting to an integer subsequent operations fail. Any idea why >> cast is being output rather than ptrcast? > > Yes, it's because casts to void* is not considered as a pointer cast, > the rationale > being that a void* will need to be casted toa real pointer before being used. > > Have you still problem after the patch I sent earlier (cfr: > https://patchwork.kernel.org/patch/9602045/ )? > I applied the patch but there is still the same problem as the op_cast is converting a pointer to int, but then the following operation expects a pointer. Regards