| From: | David Geier <geidav(dot)pg(at)gmail(dot)com> |
|---|---|
| To: | Peter Eisentraut <peter(at)eisentraut(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Cc: | Tristan Partin <tristan(at)partin(dot)io>, Greg Burd <greg(at)burd(dot)me> |
| Subject: | Re: Add compiler option -fstrict-flex-arrays=1 |
| Date: | 2026-10-26 07:21:22 |
| Message-ID: | 33d47fa3-de90-4cc7-810a-140ed91be788@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
>>> This only works with gcc, not clang, so it's not a viable solution.
>>
>> clang has support for it starting with version 16.0, see [1]. Is that
>> clang version too recent to require it?
>>
> I don't see the attribute mentioned in the release notes. The only
> thing related that I see in there is that that release now supports the
> level 3 of -fstrict-flex-arrays where the previous versions only
> supported up to 2. My testing confirms that no version of clang
> supports the attribute.
You're right, Peter. I incorrectly inferred that support for the command
line argument would also mean support for the attribute. This is not the
case for Clang. What a pity.
--
David Geier
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Chao Li | 2026-10-26 07:22:20 | Re: tablecmds: Deadlock caused by Attach Partition |
| Previous Message | Roman Khapov | 2026-10-26 06:41:34 | Print pgbench results on SIGINT |