I don't know if this is related to the ICE reported by Danny Backx
recently, but I am trying to compile a project in debug mode, and get
an internal compiler error. When I switch to release mode, it works
fine. I've narrowed down the compiler flags as much as I can, used -E
to make one nice preprocessed file, and get the following:
/local_space/jfrank8/android-ndk-r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-g++
-mthumb -fomit-frame-pointer cxutils.cpp -o cxutils.o
/home/ml/jfrank8/workspace/hsandroid-proof-of-concept/jni/cxcore/cxutils.cpp:
In function 'void icvSort16u(ushort*, size_t, int)':
/home/ml/jfrank8/workspace/hsandroid-proof-of-concept/jni/cxcore/cxutils.cpp:987:
internal compiler error: in reload, at reload1.c:1173
This is with the NDK-r4. I've attached the .cpp file (zipped) that
causes the problem. If I remove either -mthumb or
-fomit-frame-pointer, it seems to work, but having both in there
breaks it. If I add -O2, it works, but if I add -O0 it doesn't. I'll
shut-up now and leave it to the experts to take it from here.
Cheers,
Jordan