Re: Build failure with GCC 15 (defaults to -std=gnu23)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Sam James <sam(at)gentoo(dot)org>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: Build failure with GCC 15 (defaults to -std=gnu23)
Date: 2024-11-17 22:50:47
Message-ID: 3175762.1731883847@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Thomas Munro <thomas(dot)munro(at)gmail(dot)com> writes:
> It sounds like we should stop using the old and broken
> AC_CHECK_HEADER_STDBOOL macro.

Yeah, that's what I was imagining: assume that <stdbool.h> exists
and works, and check only to see if sizeof(bool) is acceptable.

> ... Later autoconf versions check for
> C99 "or later", but we're stuck with the old one and I doubt we are
> going to upgrade it.

I'm not sure --- there was some discussion a week or two ago about
upgrading autoconf after all. But whether we do or not, it's hard
to see what AC_HEADER_STDBOOL is buying us.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Munro 2024-11-18 01:30:38 Re: Build failure with GCC 15 (defaults to -std=gnu23)
Previous Message Thomas Munro 2024-11-17 22:45:24 Re: Build failure with GCC 15 (defaults to -std=gnu23)