I'm posting this here as a RFC. I looked through the build configuration I believe is used to build the official packages:
https://projects.archlinux.org/devtools … -i686.conf
And although the optimization stuff is OK, there's some room for general improvement. How about enabling link-time optimizations through the -flto C[XX]FLAGS and LDFLAGS? Various benchmarks show around 10% increase in final execution speed, and if not that, a definite size decrease in general. It's been in GCC since 4.5, so stability shouldn't be an issue, although I'm not 100% sure.
This is a feature request, so post it in the bugtracker to get an official response.
It's been in GCC since 4.5, so stability shouldn't be an issue, although I'm not 100% sure.
I have not been convinced by its stability yet.
Just out of curiosity: what would it take for you to be convinced?
Compiling a bunch of packages and having it actually work...
Also, this was the final straw in rejecting this request: http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
"Link-time optimization does not work well with generation of debugging information. Combining -flto with -g is currently experimental and expected to produce wrong results. "