summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-01-08 23:30:38 +0059
committerBernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>2012-03-29 09:41:14 +0200
commit57f0b9067ab04530b3d72edae505650edd335cb5 (patch)
treebef5d113aaec4091c3579b77ee7290e8c141e461
parent9bbef02474068e8eeee38cd56c9f0784dcfaf7ec (diff)
downloadbase-57f0b9067ab04530b3d72edae505650edd335cb5.tar.gz
opengl: Work around linaro-gcc bug 879725
linaro-gcc 4.6-2011.10 ICEs when building matrix.cpp with -fmodulo-sched when tuning for cortex-a8 (cortex-a9 is ok). Until the compiler is fixed, disable -fmodulo-sched if we're targeting cortex-a8 based devices, such as iMX53. Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> Change-Id: I2cd8eee31b6fda507188ca709b3d4c00c6d01404
-rw-r--r--opengl/libagl/Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/opengl/libagl/Android.mk b/opengl/libagl/Android.mk
index 9fd211f2ff52..c51b1bd7293c 100644
--- a/opengl/libagl/Android.mk
+++ b/opengl/libagl/Android.mk
@@ -26,6 +26,11 @@ LOCAL_CFLAGS += -DLOG_TAG=\"libagl\"
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
LOCAL_CFLAGS += -fvisibility=hidden
LOCAL_CFLAGS += -ffast-math -flto
+ifneq ($(findstring tune=cortex-a8,$(TARGET_GLOBAL_CFLAGS)),)
+ # Workaround for cortex-a8 specific linaro-gcc bug 879725
+ # FIXME remove once the bug is fixed
+ LOCAL_CFLAGS += -fno-modulo-sched
+endif
LOCAL_SHARED_LIBRARIES := libcutils libhardware libutils libpixelflinger libETC1
LOCAL_LDLIBS := -flto -lpthread -ldl