:

GCC 4.7.2 inconsistent operand constraints in an âasmâ

Added by: ~marcini, 2014 IV 10

Added by: ~marcini, 2014 IV 10

Hi,i try to compile project with ttmath with assambler for Linux with GCC 4.7.2 and i take errors like this:

/ttmath/ttmathuint_x86.h:417:23: error: inconsistent operand constraints in an âasmâ
In file included from /ttmath/ttmathuint.h:4161:0,
from /ttmath/ttmathint.h:48,
from /ttmath/ttmathbig.h:46,
from /ttmath/ttmath.h:58,
This is the part of code with problem pointed by GCC:

: "=a" (c), "=c" (dummy), "=d" (dummy2)
: "0" (x2), "1" (b), "2" (index), "b" (p1), "S" (x1)
: "cc", "memory" );

How to fix this ?

Added by: tomek, 2014 IV 10

May you have used -fPIC option?