[PATCH] Configure: Prefer gcc __atomic builtins instead of older __sync builtins
Maxim Dounin
mdounin at mdounin.ru
Mon Dec 4 15:05:12 UTC 2017
Hello!
On Sun, Dec 03, 2017 at 09:11:52PM +0530, Debayan Ghosh wrote:
> # HG changeset patch
> # User Debayan Ghosh <debayang.qdt at qualcommdatacenter.com>
> # Date 1511884462 -19800
> # Tue Nov 28 21:24:22 2017 +0530
> # Node ID 4576e7c90ed42da3af67d90f624b34dd9285a658
> # Parent fc0d06224edac2c7cfbfd9a4def478f285d9957b
> Configure: Prefer gcc __atomic builtins instead of older __sync builtins
>
> It is desirable to use the newer GCC __atomic builtins when using later
> versions of GCC , compared to the legacy __sync atomic builtins.
> Ref: https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html
Any practical reasons for the change?
Either way, I would rather suggest looking at C11 atomic ops
instead, see here:
http://mailman.nginx.org/pipermail/nginx-devel/2016-September/008805.html
Though I don't think it's practical either.
[...]
--
Maxim Dounin
http://mdounin.ru/
More information about the nginx-devel
mailing list