From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.2 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A96F6CA9EC0 for ; Mon, 28 Oct 2019 22:12:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6E6D720830 for ; Mon, 28 Oct 2019 22:12:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="f61U7kWh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="a6WH1c4A" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6E6D720830 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iXKxaqB+0dbfbWcyt4wHyR4US3+enwWUuANcBZC6iNo=; b=f61U7kWhPCWUuQ 4fRVkg/5rLa8jB7k3HZvMQGZ9KpDgRiCXcpxZluKPdiz6W4vg1qBeqLwIjOGRpr9ISrRraNTNdLZR eVPCu1jv+LVknQ8jmnGRaHJHoI8OwN2sAZ6aT5fefWxH3G7xxfc+FjldYrfQlFj//GcxF/n2xgC0I /O3LqU7u59/hVDIFSJz9FZS1D1Qx8IHKgzm8KWKV6pCMIFLQQO25Y9HSWrqeZhwt0iHpfVDOeYUp0 Y9iwZHW/8ERXpTbNcOUJvIn62N0ZiGONwCDQaqxjNUhVHhI/Ypdil8iRoFijEg65XVKLa2A/Np4H0 m2aUiIc9JuZwX9K9kC8g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iPDF0-0001LR-NM; Mon, 28 Oct 2019 22:11:58 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iPDEx-0001L4-Qs for linux-riscv@lists.infradead.org; Mon, 28 Oct 2019 22:11:57 +0000 Received: by mail-wm1-x342.google.com with SMTP id v3so642989wmh.1 for ; Mon, 28 Oct 2019 15:11:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=YjMWv87Txz8ruISksDEwTY/yiCDggkCZffCKhGJVPqo=; b=a6WH1c4A3Zp2KbScjqDYgpeYNoumQEFfWVGo6UgRuVMOiL5sHK7jRmR5ZDlTNjSmre t1+uA2Lv1NWloGTHH5bAooKYLv85rP6Gj+xTMT45L9dh1NeWI+ZJcGTfnIxtFvWFtsaI QnZUQ3HI1FUHsnAtB5zaLSINszDZgYfP+TR8dRx1LpN3DGxMoIVLVZBMzb+vk6/A1rb8 nBr9Hn6+6Fj/D8baXWVHftCCzOX7+lZCHwhnNGbLK7ActolTE8p4ZEVjRkdMO6+DjhBK WTiijBceKnhXmwUlyLQ3zYxsW1GB3Thr6s5EoPDAXEMIqDZ0tEDYtz/lcVIUrnkltqnX Cw8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YjMWv87Txz8ruISksDEwTY/yiCDggkCZffCKhGJVPqo=; b=dK4j48I3x6A6jO2HrJzVUkg4pG9IoULR6myJTtCSH+WMA4nSW3NyNIuvqLx/xJo6r0 HyF6LAG6NYDFIYZvX7zQfYJxbQe7LALFGGLCtXC49eDH8d0LuYzM9tekELIZbC4m4Gj0 kuecl3QGMxsd+QwKjLk8CvPXkgYq2AOfGVTj0Lj21PxQJ8jOds97uMDKyI3pRms2qTyw 3Kkmrvmj2Y7ub2cKglkpHhwF1R/cI3IH5q85RXy9otRj7rxYuES8C1r/gsKNNuhjCXbY EhGtr8iKHBLePwzaNKF/6yYwznIpoVDLGJsDTeRFGMpNjnUlNXeDxUJVxHqLC/X24AU6 cOGw== X-Gm-Message-State: APjAAAWcdIYPS+Xb2WslRft3fXTiiHwa8+NOIBx79u0LMW/PGnEvz2oG knp/BuAaWdaMskgnZA7uNSg= X-Google-Smtp-Source: APXvYqxVhyqboSyYmsgvo32+aV4wHUK0cx8Hd7TlVaxn75jcJJUtRP9dEehXjF3+7RcW6VFNqRPZIQ== X-Received: by 2002:a1c:7311:: with SMTP id d17mr1159537wmb.49.1572300714030; Mon, 28 Oct 2019 15:11:54 -0700 (PDT) Received: from desk.local ([2a02:a03f:40ac:ce00:6dcd:e18f:2cd1:7611]) by smtp.gmail.com with ESMTPSA id r1sm12939065wrw.60.2019.10.28.15.11.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 15:11:53 -0700 (PDT) Date: Mon, 28 Oct 2019 23:11:52 +0100 From: Luc Van Oostenryck To: Palmer Dabbelt Subject: Re: [PATCH 4/8] riscv: ensure RISC-V C model definitions are passed to static analyzers Message-ID: <20191028221151.bpbp27x6xeotbvm5@desk.local> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191028_151155_896044_F8E80412 X-CRM114-Status: UNSURE ( 7.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-riscv@lists.infradead.org, linux-sparse@vger.kernel.org, linux-kernel@vger.kernel.org, Paul Walmsley Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+infradead-linux-riscv=archiver.kernel.org@lists.infradead.org On Tue, Oct 22, 2019 at 08:09:59AM -0700, Palmer Dabbelt wrote: > > It's probably worth going through all our argument-dependent builtin > definitions at the same time. They're generated by > riscv_cpu_cpp_builtins(): > https://github.com/gcc-mirror/gcc/blob/master/gcc/config/riscv/riscv-c.c#L35 Yes, I agree. However, these are higly dependent on parsing -march and this is quite arch-specific which sparse is not really needed for. I'll add some infrastructure for this in the followings weeks. -- Luc _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv