pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add definition pg_attribute_aligned() for MSVC
Date: Wed, 21 Sep 2022 01:11:30 +0000
Message-ID: <E1oaoGv-001H1u-Pi@gemulon.postgresql.org> (raw)

Add definition pg_attribute_aligned() for MSVC

Visual Studio 2015+ has support for a macro to control the alignement of
structures as of __declspec(align(#)), and this commit adds a definition
of pg_attribute_aligned() based on that.  It happens that this was
already used in the implementation of atomics for MSVC.  Note that there
is still no definition fo pg_attribute_packed(), so this does not impact
itemptr.h.

Author: James Coleman
Discussion: https://postgr.es/m/CAAaqYe-HbtZvR3msoMtk+hYW2S0e0OapzMW8icSMYTMA+mN8Aw@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ec3c9cc202fb2749fce82483e6dc247cfe286cab

Modified Files
--------------
config/c-compiler.m4                    |  2 ++
configure                               |  2 ++
src/include/c.h                         | 11 +++++++++++
src/include/port/atomics/generic-msvc.h |  2 +-
4 files changed, 16 insertions(+), 1 deletion(-)



Message-ID: <E1oaoGv-001H1u-Pi@gemulon.postgresql.org>
Permalink:  ../E1oaoGv-001H1u-Pi@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oaoGv-001H1u-Pi@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: michael@paquier.xyz
  Subject: Re: pgsql: Add definition pg_attribute_aligned() for MSVC
  In-Reply-To: <E1oaoGv-001H1u-Pi@gemulon.postgresql.org>
  References: <E1oaoGv-001H1u-Pi@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