From patchwork Wed Sep 27 08:00:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 9973347 Return-Path: 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 A2C5A6037F for ; Wed, 27 Sep 2017 08:00:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 955C12911C for ; Wed, 27 Sep 2017 08:00:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88A2A29108; Wed, 27 Sep 2017 08:00:12 +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.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_TVD_MIME_EPI 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 B41FB2911F for ; Wed, 27 Sep 2017 08:00:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751797AbdI0IAL (ORCPT ); Wed, 27 Sep 2017 04:00:11 -0400 Received: from arcturus.kleine-koenig.org ([78.47.169.190]:48361 "EHLO arcturus.kleine-koenig.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751787AbdI0IAK (ORCPT ); Wed, 27 Sep 2017 04:00:10 -0400 Received: by arcturus.kleine-koenig.org (Postfix, from userid 1000) id 077281BBB05; Wed, 27 Sep 2017 10:00:09 +0200 (CEST) Date: Wed, 27 Sep 2017 10:00:07 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Luc Van Oostenryck Cc: Christopher Li , Ramsay Jones , Linux-Sparse , 873508@bugs.debian.org, Antoine Beaupre Subject: Re: Bug#873508: sparse test failures on ppc32le (and other not so common archs) Message-ID: <20170927080007.jz2vfe4ekjjowkbe@taurus.defre.kleine-koenig.org> References: <20170830173652.2s26nti2s2mgupnd@taurus.defre.kleine-koenig.org> <20170831205514.vxmirle2yoc3rm44@taurus.defre.kleine-koenig.org> <150392922734.24087.13050909898214597041.reportbug@curie.anarc.at> <20170901074643.rivm2rit53mavkjr@taurus.defre.kleine-koenig.org> <150392922734.24087.13050909898214597041.reportbug@curie.anarc.at> <20170921185823.5fnxchdowq5krxy3@taurus.defre.kleine-koenig.org> <20170926181101.jas3ytdiro7o7mj7@taurus.defre.kleine-koenig.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170926181101.jas3ytdiro7o7mj7@taurus.defre.kleine-koenig.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-sparse-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sparse@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, On Tue, Sep 26, 2017 at 08:11:01PM +0200, Uwe Kleine-König wrote: > And ppc64 and x32 need the respective cpp defines added I think. If > noone beats me to it, I will look into the latter at least during the > next few days. Looking at ppc64, the following fixes the build: I wonder if that could be right. Luc, you added =2 in e0306fe0b725af6e2e7ff59d7f0d99c96315791a, maybe you can comment? Best regards Uwe diff --git a/cgcc b/cgcc index a8d7b4f217fe..a1c02899c623 100755 --- a/cgcc +++ b/cgcc @@ -286,7 +286,7 @@ sub add_specs { } elsif ($spec eq 'ppc64') { return (' -D__powerpc__=1 -D__PPC__=1 -D_STRING_ARCH_unaligned=1' . ' -D__powerpc64__=1 -D__PPC64__=1' . - ' -D_CALL_ELF=2' . + ' -D_CALL_ELF=1' . ' -m64' . &float_types (1, 1, 21, [24,8], [53,11], [113,15])); } elsif ($spec eq 's390x') {