pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: If a C23 compiler is detected, try asking for C17.
Date: Wed, 27 Nov 2024 03:38:24 +0000
Message-ID: <E1tG8si-003hWb-Vl@gemulon.postgresql.org> (raw)

If a C23 compiler is detected, try asking for C17.

Branches before 16 can't be compiled with a C23 compiler (see
deprecation warnings silenced by commit f9a56e72, and non-back-patchable
changes made in 16 by commit 1c27d16e).  Test __STDC_VERSION__, and if
it's above C17 then try appending -std=gnu17.  The test is done with the
user's CFLAGS, so an acceptable language version can also be configured
manually that way.

This is done in branches 15 and older, back to 9.2, per policy of
keeping them buildable with modern tools.

Discussion: https://postgr.es/m/87o72eo9iu.fsf%40gentoo.org

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/170e416034ec0231d9e9238f2577eeb76ca8d181

Modified Files
--------------
configure    | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
configure.in | 20 ++++++++++++++++
2 files changed, 97 insertions(+)



view thread (12+ messages)  latest in thread

Message-ID: <E1tG8si-003hWb-Vl@gemulon.postgresql.org>
Permalink:  ../E1tG8si-003hWb-Vl@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tG8si-003hWb-Vl@gemulon.postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: If a C23 compiler is detected, try asking for C17.
  In-Reply-To: <E1tG8si-003hWb-Vl@gemulon.postgresql.org>

* 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