From 13db3557aa1b5809f50cb214e848866f3e80db6c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jarkko=20P=C3=B6yry?= Date: Fri, 5 Dec 2014 12:41:28 -0800 Subject: [PATCH] Remove dEQP workaround for GCC prescott internal compiler error. Bug: 18178209 Bug: 18171557 Bug: 18174291 Change-Id: I9bfab4be7ad8336fe1d74fbaa633663e6b3f0c4f --- modules/glshared/glsVertexArrayTests.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/modules/glshared/glsVertexArrayTests.cpp b/modules/glshared/glsVertexArrayTests.cpp index 43aeb83..919e702 100644 --- a/modules/glshared/glsVertexArrayTests.cpp +++ b/modules/glshared/glsVertexArrayTests.cpp @@ -460,19 +460,7 @@ inline GLValue::Double abs (GLValue::Double val) } template -static -#if (DE_COMPILER == DE_COMPILER_GCC) && (DE_CPU == DE_CPU_X86) && \ - (__GNUC__ == 4) && (__GNUC_MINOR__ == 8) && (__GNUC_PATCHLEVEL__ == 0) - // GCC 4.8.0 generates internal compiler error (assign_by_spills) in - // RandomArrayGenerator::createQuads() when compiled with -march=prescott. - // As a workaround for the error, disable inlining of - // alignmentSafeAssignment() when compiling for x86 using the affected GCC - // version. - __attribute__ ((noinline)) -#else - inline -#endif -void alignmentSafeAssignment (char* dst, T val) +static inline void alignmentSafeAssignment (char* dst, T val) { std::memcpy(dst, &val, sizeof(T)); } -- 2.7.4