[ovs-git] [openvswitch/ovs] 07ece3: ovs-atomic: Prefer Clang intrinsics over <stdatomi...
GitHub
noreply at github.com
Tue Nov 11 21:58:26 UTC 2014
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 07ece367fb5fe071fa75a426a3ce28e3b4ce04ba
https://github.com/openvswitch/ovs/commit/07ece367fb5fe071fa75a426a3ce28e3b4ce04ba
Author: Ben Pfaff <blp at nicira.com>
Date: 2014-11-11 (Tue, 11 Nov 2014)
Changed paths:
M lib/ovs-atomic.h
Log Message:
-----------
ovs-atomic: Prefer Clang intrinsics over <stdatomic.h>.
On my Debian "jessie" system, <stdatomic.h> provided by GCC 4.9 is busted
when Clang 3.5 tries to use it. Even a trivial program like this:
#include <stdatomic.h>
void
foo(void)
{
_Atomic(int) x;
atomic_fetch_add(&x, 1);
}
yields:
atomic.c:7:5: error: address argument to atomic operation must be a
pointer to integer or pointer ('_Atomic(int) *' invalid)
The Clang-specific version of ovs-atomic.h stills works, though, so this
commit works around the problem.
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme at nicira.com>
More information about the git
mailing list