pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <stark@mit.edu>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] packing/alignment annotation for ItemPointerData redux
Date: Wed, 19 Oct 2016 12:51:35 -0400
Message-ID: <14482.1476895895@sss.pgh.pa.us> (raw)
In-Reply-To: <CAM-w4HOrs7mxkyrhhAPoCBSypE=C1xi+ecf7RaHzah3N9HLfhQ@mail.gmail.com>
References: <CAM-w4HPJjEt7jjX=mCY5mC1CYEB-b7NTySfyc=51i3-Kh5F2Ew@mail.gmail.com>
	<12448.1476894054@sss.pgh.pa.us>
	<CAM-w4HO+zzBPPwjOwKODi88m+N+hQM09Zav8uHo1ews_=TPMfA@mail.gmail.com>
	<CAM-w4HN1W_C0ummS1bOZtSiqEOLeLDyEbbtj_nzbarYHiDXC=g@mail.gmail.com>
	<CAM-w4HOrs7mxkyrhhAPoCBSypE=C1xi+ecf7RaHzah3N9HLfhQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Greg Stark <stark@mit.edu> writes:
> Sorry -- with the obvious error fixed:

You didn't show -E output from this version, but the other one had

>  __attribute__((packed))
>  __attribute__((aligned(2)))

so it appears that clang 4.0 does accept these attributes but then
produces the warning anyway.  I suggest filing this as a bug in clang 4.0,
and marking it as a regression from older versions which did not produce
such a warning.

If you get pushback claiming it's intentional, I'd be inclined to hack
our macro definitions so that we don't believe clang understands
attribute(aligned), because it evidently doesn't.  But let's see
their response first.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (6+ messages)

Message-ID: <14482.1476895895@sss.pgh.pa.us>
Permalink:  ../14482.1476895895@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/14482.1476895895@sss.pgh.pa.us

 · 

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, stark@mit.edu, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] packing/alignment annotation for ItemPointerData redux
  In-Reply-To: <14482.1476895895@sss.pgh.pa.us>
  References: <CAM-w4HPJjEt7jjX=mCY5mC1CYEB-b7NTySfyc=51i3-Kh5F2Ew@mail.gmail.com> <12448.1476894054@sss.pgh.pa.us> <CAM-w4HO+zzBPPwjOwKODi88m+N+hQM09Zav8uHo1ews_=TPMfA@mail.gmail.com> <CAM-w4HN1W_C0ummS1bOZtSiqEOLeLDyEbbtj_nzbarYHiDXC=g@mail.gmail.com> <CAM-w4HOrs7mxkyrhhAPoCBSypE=C1xi+ecf7RaHzah3N9HLfhQ@mail.gmail.com> <14482.1476895895@sss.pgh.pa.us>

* 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