Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 363 by
as...@vewd.com: lossless encoding fail on arm gcc 4.8
https://bugs.chromium.org/p/webp/issues/detail?id=363With libwebp v0.6.0, losseless encoding started to fail on certain images (e.g., the one on
https://qual-e.appspot.com/webp.html) when libwebp is built with the arm gcc 4.8 compiler.
Could you add the 4.8 compiler to the arm gcc 4.9 compiler workaround to prevent inline of the Sub3 function in lossless.c? This code has been confirmed as working on our device:
--- a/third_party/libwebp/src/dsp/lossless.c
+++ b/third_party/libwebp/src/dsp/lossless.c
@@ -81,7 +81,7 @@ static WEBP_INLINE uint32_t ClampedAddSubtractHalf(uint32_t c0, uint32_t c1,
}
// gcc-4.9 on ARM generates incorrect code in Select() when Sub3() is inlined.
-#if defined(__arm__) && LOCAL_GCC_VERSION == 0x409
+#if defined(__arm__) && (LOCAL_GCC_VERSION < 0x409 || LOCAL_GCC_VERSION == 0x408)
# define LOCAL_INLINE __attribute__ ((noinline))
#else
# define LOCAL_INLINE WEBP_INLINE
--
You received this message because:
1. The project was configured to send all issue notifications to this address
You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings