2013-03-09 05:02:58 +01:00
|
|
|
Workaround toolchain bugs
|
|
|
|
|
|
|
|
Many of ARM Sourcery CodeBench toolchain have a bug when compiling
|
|
|
|
icu's translit.cpp source file. The bug is trigerred when there is a
|
|
|
|
combination of "-W -Wall" and "-Os", and causes an internal compiler
|
|
|
|
error. The bug has been reported to Mentor Graphics.
|
|
|
|
|
|
|
|
Even though it is clearly a toolchain bug, having a workaround for it
|
|
|
|
is trivial in this case. So it will avoid our users falling into this
|
|
|
|
internal compiler error, and allow our autobuilders to test more
|
|
|
|
packages using this Sourcery CodeBench toolchain.qq
|
|
|
|
|
2014-12-18 22:36:06 +01:00
|
|
|
[Gustavo: update for ICU4C 54.1]
|
2013-03-09 05:02:58 +01:00
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2014-12-18 22:36:06 +01:00
|
|
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
2013-03-09 05:02:58 +01:00
|
|
|
|
2013-06-30 05:23:26 +02:00
|
|
|
diff -Nura icu.orig/source/configure icu/source/configure
|
2014-12-18 22:36:06 +01:00
|
|
|
--- icu.orig/source/configure 2014-12-18 15:49:43.038628644 -0300
|
|
|
|
+++ icu/source/configure 2014-12-18 15:51:23.183083232 -0300
|
|
|
|
@@ -4323,7 +4323,7 @@
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
- CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
|
|
|
+ CFLAGS="$CFLAGS -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
|
2013-03-09 05:02:58 +01:00
|
|
|
else
|
|
|
|
case "${host}" in
|
2013-06-30 05:23:26 +02:00
|
|
|
*-*-cygwin)
|
2014-12-18 22:36:06 +01:00
|
|
|
@@ -4337,7 +4337,7 @@
|
2013-03-09 05:02:58 +01:00
|
|
|
fi
|
|
|
|
if test "$GXX" = yes
|
|
|
|
then
|
2013-06-30 05:23:26 +02:00
|
|
|
- CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
|
|
|
|
+ CXXFLAGS="$CXXFLAGS -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
|
|
|
|
else
|
2013-03-09 05:02:58 +01:00
|
|
|
case "${host}" in
|
2013-06-30 05:23:26 +02:00
|
|
|
*-*-cygwin)
|