pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Naylor <john.naylor@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Workaround code generation bug in clang
Date: Mon, 16 Jun 2025 02:29:45 +0000
Message-ID: <E1uQzbV-001rDj-1O@gemulon.postgresql.org> (raw)

Workaround code generation bug in clang

At optimization level -O0, builds on recent clang fail to produce the
correct CRC32C with our AVX-512 implementation. For now, just disable
the runtime check for clang at -O0. When this is fixed upstream and we
know the extent of the breakage, we can adjust to be version-specific.

Reported-by: Soumyadeep Chakraborty <soumyadeep2007@gmail.com>
Reported-by: Andy Fan <zhihuifan1213@163.com>
Tested-by: Andy Fan <zhihuifan1213@163.com>
Discussion: https://postgr.es/m/CAE-ML%2B-OV6p9uvCFBcSQjZUEh__y0h-KjN%2BBseyGJHt7u8EP%2Bw%40mail.gmail.com
Discussion: https://postgr.es/m/87o6uqd3iv.fsf%40163.com

Branch
------
master

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

Modified Files
--------------
src/port/pg_crc32c_sse42_choose.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)



Message-ID: <E1uQzbV-001rDj-1O@gemulon.postgresql.org>
Permalink:  ../E1uQzbV-001rDj-1O@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uQzbV-001rDj-1O@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: john.naylor@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Workaround code generation bug in clang
  In-Reply-To: <E1uQzbV-001rDj-1O@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