criu/include/common
Kir Kolyshkin 19f7f130ae ppc asm/bitops.h: fix for clang
clang-3.8 fails to compile inline asm having ldarx with 4 args.

Quoting [1]:
'''
Recent versions of the PowerPC architecture added a hint bit to the larx
instructions to differentiate between an atomic operation and a lock
operation:

> 0 Other programs might attempt to modify the word in storage addressed by EA
> even if the subsequent Store Conditional succeeds.
>
> 1 Other programs will not attempt to modify the word in storage addressed by
> EA until the program that has acquired the lock performs a subsequent
> store releasing the lock.
'''

I also found some more info about this in [2].

Anyway, we could either construct some preprocessor logic to omit this
argument for clang, or just drop it. This patch does the latter.

[1] https://patchwork.ozlabs.org/patch/45008/
[2] https://sourceware.org/ml/libc-alpha/2015-03/msg00085.html

travis-ci: success for PPC+clang compile fixes
Cc: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
Acked-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
2016-11-03 01:32:55 +03:00
..
arch ppc asm/bitops.h: fix for clang 2016-11-03 01:32:55 +03:00
asm-generic headers: Fix iquote for include/common 2016-11-03 00:13:04 +03:00
bitops.h common: Use complete path in inclusion 2016-11-03 00:13:04 +03:00
bitsperlong.h common: bitsperlong -- Specify complete path 2016-11-03 00:13:04 +03:00
bug.h include/common: Move bug.h in 2016-11-03 00:13:03 +03:00
compiler.h common: Move compiler.h into 2016-11-03 00:13:03 +03:00
err.h headers: Move err.h to common 2016-11-03 00:13:04 +03:00
list.h common: Move compiler.h into 2016-11-03 00:13:03 +03:00
page.h common: Use complete path in inclusion 2016-11-03 00:13:04 +03:00
xmalloc.h headers: Move xmalloc to common 2016-11-03 00:13:04 +03:00