1*4882a593SmuzhiyunWorkaround toolchain bugs 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunMany of ARM Sourcery CodeBench toolchain have a bug when compiling 4*4882a593Smuzhiyunicu's translit.cpp source file. The bug is trigerred when there is a 5*4882a593Smuzhiyuncombination of "-W -Wall" and "-Os", and causes an internal compiler 6*4882a593Smuzhiyunerror. The bug has been reported to Mentor Graphics. 7*4882a593Smuzhiyun 8*4882a593SmuzhiyunEven though it is clearly a toolchain bug, having a workaround for it 9*4882a593Smuzhiyunis trivial in this case. So it will avoid our users falling into this 10*4882a593Smuzhiyuninternal compiler error, and allow our autobuilders to test more 11*4882a593Smuzhiyunpackages using this Sourcery CodeBench toolchain.qq 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun[Gustavo: update for ICU4C 54.1] 14*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 15*4882a593SmuzhiyunSigned-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> 16*4882a593Smuzhiyun 17*4882a593Smuzhiyundiff -Nura icu.orig/source/configure icu/source/configure 18*4882a593Smuzhiyun--- icu.orig/source/configure 2014-12-18 15:49:43.038628644 -0300 19*4882a593Smuzhiyun+++ icu/source/configure 2014-12-18 15:51:23.183083232 -0300 20*4882a593Smuzhiyun@@ -4323,7 +4323,7 @@ 21*4882a593Smuzhiyun ;; 22*4882a593Smuzhiyun esac 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun- CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" 25*4882a593Smuzhiyun+ CFLAGS="$CFLAGS -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" 26*4882a593Smuzhiyun else 27*4882a593Smuzhiyun case "${host}" in 28*4882a593Smuzhiyun *-*-cygwin) 29*4882a593Smuzhiyun@@ -4337,7 +4337,7 @@ 30*4882a593Smuzhiyun fi 31*4882a593Smuzhiyun if test "$GXX" = yes 32*4882a593Smuzhiyun then 33*4882a593Smuzhiyun- CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" 34*4882a593Smuzhiyun+ CXXFLAGS="$CXXFLAGS -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" 35*4882a593Smuzhiyun else 36*4882a593Smuzhiyun case "${host}" in 37*4882a593Smuzhiyun *-*-cygwin) 38