As said in this thread: http://forums.gentoo.org/viewtopic.php?p=1461049 (in spanish) This person had this problem and I can confirm it, building qt-3.3.3 with O3 CFLAGS breaks us_intl keyboard layout, you wont be able to write accents,
As said in this thread: http://forums.gentoo.org/viewtopic.php?p=1461049 (in spanish) This person had this problem and I can confirm it, building qt-3.3.3 with O3 CFLAGS breaks us_intl keyboard layout, you wont be able to write accents, ñ and other "international" characters and some characters will be missing and replaced by other ones, like the " character, replaced by the two points in the ü character. The person of the mentioned thread solved the problem by recompiling with O2 CFLAG and I did the same by recompiling with Os CFLAG. I'm not sure if this is a QT or GCC bug but as a workaround the ebuild should replace O3 CFLAG for O2.
qt doesn't even use your cflags, so unless you're manually overriding them this isn't the issue.