pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Use stdbool.h if suitable
Date: Thu, 22 Mar 2018 23:22:32 -0700
Message-ID: <20180323062232.hj2kokl54il72ool@alap3.anarazel.de> (raw)
In-Reply-To: <20180323012501.aumvv3zdk4tneuo7@alap3.anarazel.de>
References: <E1ezAn1-0006T7-HC@gemulon.postgresql.org>
	<20180323012501.aumvv3zdk4tneuo7@alap3.anarazel.de>

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




view thread (4+ messages)

Message-ID: <20180323062232.hj2kokl54il72ool@alap3.anarazel.de>
Permalink:  ../20180323062232.hj2kokl54il72ool@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20180323062232.hj2kokl54il72ool@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, peter_e@gmx.net
  Subject: Re: pgsql: Use stdbool.h if suitable
  In-Reply-To: <20180323062232.hj2kokl54il72ool@alap3.anarazel.de>
  References: <E1ezAn1-0006T7-HC@gemulon.postgresql.org> <20180323012501.aumvv3zdk4tneuo7@alap3.anarazel.de> <20180323062232.hj2kokl54il72ool@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox