Re: Support pg_attribute_aligned and noreturn in MSVC

2022-09-21 Thread James Coleman
On Tue, Sep 20, 2022 at 9:18 PM Michael Paquier wrote: > > On Tue, Sep 20, 2022 at 08:01:20AM -0400, James Coleman wrote: > > I don't have access to a Windows machine for testing, but re-reading > > the documentation it looks like the issue is that our noreturn macro > > is used after the

Re: Support pg_attribute_aligned and noreturn in MSVC

2022-09-20 Thread Michael Paquier
On Tue, Sep 20, 2022 at 08:01:20AM -0400, James Coleman wrote: > I don't have access to a Windows machine for testing, but re-reading > the documentation it looks like the issue is that our noreturn macro > is used after the definition while the MSVC equivalent is used before. A CI setup would do

Re: Support pg_attribute_aligned and noreturn in MSVC

2022-09-20 Thread James Coleman
On Mon, Sep 19, 2022 at 11:21 PM Michael Paquier wrote: > > On Mon, Sep 19, 2022 at 08:51:37PM -0400, James Coleman wrote: > > Yes, fixed. > > The CF bot is failing compilation on Windows: > http://commitfest.cputube.org/james-coleman.html >

Re: Support pg_attribute_aligned and noreturn in MSVC

2022-09-19 Thread Michael Paquier
On Mon, Sep 19, 2022 at 08:51:37PM -0400, James Coleman wrote: > Yes, fixed. The CF bot is failing compilation on Windows: http://commitfest.cputube.org/james-coleman.html https://api.cirrus-ci.com/v1/task/5376566577332224/logs/build.log There is something going on with noreturn() after applying

Re: Support pg_attribute_aligned and noreturn in MSVC

2022-09-19 Thread James Coleman
On Mon, Sep 19, 2022 at 8:21 PM Michael Paquier wrote: > > On Mon, Sep 19, 2022 at 06:21:58PM -0400, James Coleman wrote: > > It turns out that MSVC supports both noreturn [2] [3] and alignment > > [4] [5] attributes, so this patch adds support for those. MSVC also > > supports a form of packing,

Re: Support pg_attribute_aligned and noreturn in MSVC

2022-09-19 Thread Michael Paquier
On Mon, Sep 19, 2022 at 06:21:58PM -0400, James Coleman wrote: > It turns out that MSVC supports both noreturn [2] [3] and alignment > [4] [5] attributes, so this patch adds support for those. MSVC also > supports a form of packing, but the implementation as I can tell > requires wrapping the

Support pg_attribute_aligned and noreturn in MSVC

2022-09-19 Thread James Coleman
Over in the "Add last commit LSN to pg_last_committed_xact()" [1] thread this patch had been added as a precursor, but Michael Paquier suggested it be broken out separately, so I'm doing that here. It turns out that MSVC supports both noreturn [2] [3] and alignment [4] [5] attributes, so this