0002-workaround-toolchain-bugs.patch 1.5 KB

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