This is just for tracking upstream bug and remind that until qt-4.7 is stable or this is fixed, i'm adding this to the qt4-build.eclass: --- qt4-build.eclass 11 Jul 2010 10:32:17 -0000 1.78 +++ qt4-build.eclass 8 Aug 2010 11:32:34 -0000 @@ -196,6 +196,12 @@ replace-flags -O2 -O3 fi + if [[ ${CHOST} == arm* ]] ; then + # Fails on arm with -Os + # This can be removed once qt-4.7 is stable or the bug on gcc is fixed + replace-flags -Os -O2 + fi + # Bug 178652 if [[ $(gcc-major-version) == 3 ]] && use amd64; then ewarn "Appending -fno-gcse to CFLAGS/CXXFLAGS"
I'm afraid that just filtering out -Os when compiling Qt libraries may be not enough to solve the issue. Because any Qt/KDE application trying to return QChar from some function may be miscompiled too.
Created attachment 246793 [details, diff] 70_all_gcc44-pr45070-arm_-Os.patch
Created attachment 246794 [details, diff] 70_all_gcc45-pr45070-arm_-Os.patch
Added to 4.4.4 and 4.5.1 patchsets.
Released in 4.4.4-r2.
and 4.5.1 (p1.1).