Re: Something in our JIT code is screwing up PG_PRINTF_ATTRIBUTE - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: Something in our JIT code is screwing up PG_PRINTF_ATTRIBUTE
Date
Msg-id 2910CE7A-62FE-4969-AF8F-E198EF0E1DDA@yesql.se
Whole thread Raw
In response to Re: Something in our JIT code is screwing up PG_PRINTF_ATTRIBUTE  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
> On 4 Dec 2025, at 19:01, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> On the other hand, aligning the C++ compiler with the C compiler
> is likely to avoid other problems, so maybe it's better to focus
> on making that happen.  I'm not sure how we'd do that automatically
> though.

It sounds pretty complicated to, with confidence, automatically detect this.
Maybe documenting that it's highly recommended to use matching C and C++
compilers is enough rather than spend cycles for every configure on a check
which may be susceptible to false negatives?

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Bilal Yavuz
Date:
Subject: Re: Improve error reporting in 027_stream_regress test
Next
From: Svetlana Derevyanko
Date:
Subject: Strict functions with variadic "any" argument bug