Fix: compile fails for x32 arch
authorKai Kang <kai.kang@windriver.com>
Thu, 13 Dec 2018 02:55:36 +0000 (10:55 +0800)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 22 Oct 2019 19:01:29 +0000 (15:01 -0400)
commita1e4ab8b82429320c5f962038c0f28b874f8ea6f
treea321508659554bcf12777288e6faac1560e32b7d
parent83ed9e903336bd1d098d93b62cd6e444f2a8d6f1
Fix: compile fails for x32 arch

LTTng-Tools fails to compile for the x32 ABI:

| .../src/common/utils.c: Assembler messages:
| .../src/common/utils.c:1026: Error: register type mismatch for `bsr'
| .../src/common/utils.c:1028: Error: operand type mismatch for `movq'

Add a macro to only use the x86_64 inline assembly version of fls_u64()
when the LP64 ABI is used.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/utils.c
src/common/utils.c
This page took 0.025345 seconds and 4 git commands to generate.