Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezG63-0003vS-Pg for pgsql-committers@arkaria.postgresql.org; Fri, 23 Mar 2018 06:22:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ezG62-000742-AI for pgsql-committers@arkaria.postgresql.org; Fri, 23 Mar 2018 06:22:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezG61-00073t-KI for pgsql-committers@lists.postgresql.org; Fri, 23 Mar 2018 06:22:38 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezG5y-0002Zx-MD for pgsql-committers@lists.postgresql.org; Fri, 23 Mar 2018 06:22:36 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id AB38921022; Fri, 23 Mar 2018 02:22:33 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 23 Mar 2018 02:22:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=yOb78zQhB2dqvNPp4XRci9fJSzDw7FG7DLcY16E3xco=; b=fdRp283T MHvNMRa0R2OV+CJPg9VSkuQkNtNrvWjarqYDHQ8vCuHAuBkhhqPsc1aRmKxp5BIj FPXgOORuW9qgwnNsPQCgQExl6w4Q1UTnE5DLxEiJbpgDuzZymkPCtBnwBsrRBTm2 Duc2tEhxtjUzwqfpKDMpX6Yur7QbZT7DoPtaipMVb91xmZxD21Z5CKHJC+4RfnqG JFN4VPqe5pyysxdR21JyGFBTZCKtyt3u1htJzXED7stWKrw59yUDoezuFJQhSIk8 obIXFDNVHVX7hktXd3TdxsPDdcYvgyLvm0QX5kactU1cGJEujNYece/v4mmB720X 4ykJn5bnLiv7QQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=yOb78zQhB2dqvNPp4XRci9fJSzDw7 FG7DLcY16E3xco=; b=mL6e1aTyKV0+jVvwoX52RnfRxGdsZWB9NNwlxoMl6IQ7U LcdHtxJhTr3UU5r23aR5glzE1kPXMZEks5cdDNBJvkbRvuAQ5jXbC890uPnX7Mhm znTcbKC+Ok0OFwGzNroDvXO5n25x7PkHEoQGNyebS93EaUvdNMQmUNlF0G0bJujT d3LismdA3r3UgoYX29lq6z5E0ZyR0ZE0VBCBPEP+bWu3N3X75eg96Sy/RYnU/2qG i88PLysqQphppxqw+lepsXKoo1BuYdP8oYnu+9a3EPSG0AlD0on67IOMBXkJbKhf SnBk/xv3MGufSpJiFHn2I8PQyMC19tQVoFCuddo1g== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 5782D7E0D6; Fri, 23 Mar 2018 02:22:33 -0400 (EDT) Date: Thu, 22 Mar 2018 23:22:32 -0700 From: Andres Freund To: Peter Eisentraut Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Use stdbool.h if suitable Message-ID: <20180323062232.hj2kokl54il72ool@alap3.anarazel.de> References: <20180323012501.aumvv3zdk4tneuo7@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180323012501.aumvv3zdk4tneuo7@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-03-22 18:25:01 -0700, Andres Freund wrote: > Hi, > > On 2018-03-23 00:42:39 +0000, Peter Eisentraut wrote: > > Use stdbool.h if suitable > > > > Using the standard bool type provided by C allows some recent compilers > > and debuggers to give better diagnostics. Also, some extension code and > > third-party headers are increasingly pulling in stdbool.h, so it's > > probably saner if everyone uses the same definition. > > Hah. I was setting up LLVM buildfarm animals that run with LLVM > assertions enabled, and was getting confused why they're failing after > I'd run a check-world locally with assertions enabled. > > Turns out this broke it. I'll fix it. Just amazed that we've gone weeks > without a change breaking my JIT work, and then within hours of it > getting it got broken. Turns out LLVM represents a stdbool.h boolean as > an i1 (int with 1 bit) rather than an i8 (int with 8 bits), which makes > sense given the desired boolean behaviour (still takes 8 bits of > storage). Pushed a fix. There's now an array of llvm with assertion using buildfarm animals. The one I was trying to setup, shows the before/after now: https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=xenodermus&br=HEAD - Andres