pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Postpone LLVM-related uses of AC_CHECK_DECLS.
Date: Mon, 19 Nov 2018 17:43:37 +0000
Message-ID: <E1gOnaD-0000qu-8J@gemulon.postgresql.org> (raw)

Postpone LLVM-related uses of AC_CHECK_DECLS.

Calling AC_CHECK_DECLS before we've finished setting up the compiler's
CFLAGS seems like a pretty risky proposition, especially now that the
first use of that macro will result in a test to see whether the compiler
gives warning or error for undeclared built-in functions.  That answer
could very easily get changed later than where PGAC_LLVM_SUPPORT is
called; furthermore, it's hardly unlikely that flags such as -D_GNU_SOURCE
could change visibility of declarations.  Hence, be a little less cavalier
about where to do LLVM-related tests.  This results in v11 and HEAD doing
the warning-or-error check at the same place in the script as older
branches are doing it, which seems like a good thing.

Per further thought about commits 0b59b0e8b and 16fbac39f.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/640a4ba052c2dd7aaf600ca13b6d3afca60adc05

Modified Files
--------------
config/llvm.m4 |  31 +++--
configure      | 406 +++++++++++++++++++++++++++++----------------------------
configure.in   |   4 +
3 files changed, 230 insertions(+), 211 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1gOnaD-0000qu-8J@gemulon.postgresql.org>
Permalink:  ../E1gOnaD-0000qu-8J@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gOnaD-0000qu-8J@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 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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Postpone LLVM-related uses of AC_CHECK_DECLS.
  In-Reply-To: <E1gOnaD-0000qu-8J@gemulon.postgresql.org>
  References: <E1gOnaD-0000qu-8J@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