Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwu73-0001XK-9b for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Oct 2016 16:53:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwu72-0004Wb-Ar for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Oct 2016 16:53:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bwu5e-0002yH-4B for pgsql-hackers@postgresql.org; Wed, 19 Oct 2016 16:51:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bwu5b-00078l-Gf for pgsql-hackers@postgresql.org; Wed, 19 Oct 2016 16:51:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u9JGpZNi014483; Wed, 19 Oct 2016 12:51:35 -0400 From: Tom Lane To: Greg Stark cc: PostgreSQL-development Subject: Re: [COMMITTERS] packing/alignment annotation for ItemPointerData redux In-reply-to: References: <12448.1476894054@sss.pgh.pa.us> Comments: In-reply-to Greg Stark message dated "Wed, 19 Oct 2016 17:36:07 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14481.1476895895.1@sss.pgh.pa.us> Date: Wed, 19 Oct 2016 12:51:35 -0400 Message-ID: <14482.1476895895@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Greg Stark 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