I've accumulated the various "unlocked" stdio patches from mainline
and backported them to the 4.0 branch.
We're still accepting safe compile-time speedup patches, since
compile-time falls under regressions, right?
Anyway this patch accumulates the following:
1. http://gcc.gnu.org/ml/gcc-patches/2005-04/msg00453.html
2. http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01128.html
3. http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01133.html
4. http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01527.html
5. http://gcc.gnu.org/ml/gcc-patches/2005-04/msg01795.html
6. http://gcc.gnu.org/ml/gcc-patches/2005-04/msg02265.html
All but number 6 are already on mainline showing no problems, the last
patch awaits mainline approval however.
When I install the patch below on the 4.0 branch, I see various
speedups on i686-unknown-linux-gnu. E.g. running genrecog, which does
a lot of i/o relative to anything else, is about 14% faster.
Compiling insn-recog.c at -g -O0 -S is about 2.7% faster, and
c-common.c is 2.3% faster. Speedups compiling other .c files at -g
-O0 -S vary but all show improvements in the low single digits,
usually 1% to 2%.
Bootstrapped against 4.0 on x86_64-unknown-linux-gnu, no regressions
Okay to install in 4.0?