I am trying to compile a 64bit C library using gcc-4.9.1.
While compiling with -O2
, I am getting the following error at different places. -O0
compilation works fine.
Error:
error: extended registers have no high halves
Any idea why this error message is coming and how to fix it. The line number it points to is the end of the function.
The compiler options are :
-march=x86-64 -fno-omit-frame-pointer -m64 -Wno-pointer-sign
-Wno-error=address -ggdb -gdwarf-2 -g2 -feliminate-unused-debug-types
It seems that this error has been added in this patch:
Try to recompile without the option
-march=x86-64
.