| From: | Peter Eisentraut <peter(at)eisentraut(dot)org> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: alignas (C11) |
| Date: | 2026-01-25 10:34:38 |
| Message-ID: | 862bad1f-b94e-403d-b730-8af435f3cf58@eisentraut.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 23.01.26 23:18, Tom Lane wrote:
> Peter Eisentraut <peter(at)eisentraut(dot)org> writes:
>> On 23.01.26 18:33, Tom Lane wrote:
>>> Not sure what to do about that, but I do read it as indicating that we
>>> cannot put any faith in the compiler to honor such large alignment
>>> demands.
>
>> I think we could work around it like this:
>
>> #if defined(__cplusplus) && defined(__GNUC__) && __GNUC__ <= 6
>> #define alignas(a) __attribute__((aligned(a)))
>> #endif
>
> Hmm, yeah, their bug #70066 shows clearly that the __attribute__
> spelling should work. But I think we'd better make the cutoff be
> version 9 not version 6, because that same bug is quite clear
> about when they fixed it. The lack of complaints from the buildfarm
> may just indicate a lack of animals running the intermediate versions.
Ok, done that way.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Filip Janus | 2026-01-25 11:57:05 | Re: Proposal: Adding compression of temporary files |
| Previous Message | Corey Huinker | 2026-01-25 10:20:13 | Re: Extended Statistics set/restore/clear functions. |