GCC up to and including 4.3.3 isn't very smart wrt. code generation for accesses to constant addresses within a certain range. See http://gcc.gnu.org/ml/gcc/2008-11/msg00231.html for more information. Richard Sandiford provided a patch against gcc-svn which I ported to 4.3.2. Built KDE-3.5.10 and linux kernels with a patched compiler; I see no obvious malfunctions with either. Please consider for inclusion into the gcc patch series. Reproducible: Always
Created attachment 180385 [details, diff] patch #1 The patch in question. Applies cleanly to 4.3.2 and 4.3.3
guessing the mips guys are ok with this, so queued in the 4.3.3 patchset http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.3.3/gentoo/78_all_mips-constant-addr.patch?rev=1.1
Yeah, looks good to me. More optimization is better for us all!
Created attachment 201402 [details, diff] Patch for gcc-4.4 I've uploaded a new tested patch for gcc-4.4[.1]
(In reply to Manuel Lauss from comment #4) if you have newer patches for newer versions of gcc, please file new bugs
Please close this bug, I'm using 4.8-branch now. Thanks