Re: C11 / VS 2019
От | Peter Eisentraut |
---|---|
Тема | Re: C11 / VS 2019 |
Дата | |
Msg-id | 52205e39-05d7-4478-9d0a-ea5122e34a3b@eisentraut.org обсуждение исходный текст |
Ответ на | Re: C11 / VS 2019 (David Rowley <dgrowleyml@gmail.com>) |
Ответы |
Re: C11 / VS 2019
|
Список | pgsql-hackers |
On 30.07.25 00:11, David Rowley wrote: > On Wed, 30 Jul 2025 at 00:57, Tom Lane <tgl@sss.pgh.pa.us> wrote: >> >> David Rowley <dgrowleyml@gmail.com> writes: >>> On Fri, 18 Jul 2025 at 23:12, Peter Eisentraut <peter@eisentraut.org> wrote: >>>> Note that gcc and clang switched to C11 by default a long time ago >>>> (gcc-5 and clang-3.6), so for most users all these tests won't need to >>>> do anything. If you want to test it, you could simulate an older >>>> default like >>>> ./configure CC='gcc -std=c99' >> >>> On Linux, doing a bit more testing using meson and clang, I tried with >>> CC=clang CFLAGS=-std=c99 . I get: >> >> Note that that's not what Peter suggested. That leads to > > OK, thanks. There are no issues when I use CC="clang -std=c99" meson setup ... This has been committed. C11 is the default mode now. David: You could rebase your other patch (about emulating __builtin_constant_p) now. Tom: You ought to update the configuration on the buildfarm members longfin and sifaka from 'CC' => 'ccache clang -std=gnu99', to 'CC' => 'ccache clang -std=gnu11', for the master branch.
В списке pgsql-hackers по дате отправления: