(-Os broke my kde, and mozilla-firefox does'nt work when compiled with -Os and gcc 4.1.0 ...)
Where and How? Firefox Compile Optimization.
I've compiled my whole system with -Os using gcc-4.1 and glibc-2.4 and everything works as expected. The kde stuff I've installed (kdelibs, k3b, kile) compiled just fine, so I guess it's not completely broken?n0rbi666 wrote:cynric - don't try -Os with gcc-4.1.0 or any gcc 4It's broken - see this http://forums.gentoo.org/viewtopic-t-43 ... t-250.html thread
(-Os broke my kde, and mozilla-firefox does'nt work when compiled with -Os and gcc 4.1.0 ...)
Hrm. Thanks for the heads up n0rbi666. I think you must have had some other problem at fault though (haven't read the link yet). I have compiled some things as -Os with gcc-4.0 without problems; haven't tried 4.1 yet. I've also heard of many others doing this successfully with KDE. I myself don't run run KDE so that portion isn't a problem.
"This Snow Crash thing -- is it a virus, a drug, or a religion?" "What's the difference?"
-- Neal Stephenson - Snow Crash
-- Neal Stephenson - Snow Crash
Yes, I compiled my system with -Os and gcc 4.1.0.
KDE, better kdesktop crashed with "-Os -march=athlon-xp -fomit-frame-pointer -ftree-vectorize".
Konqueror and even firefox crashed irregulary. Firefox made me think it could be another probem with a package both depend on.
So i recompiled kdesktop and kdelibs with debugging symbols and using gdb I found out, that jpeg was the problem.
I recompiled it with "-march=athlon-xp -pipe" and all erros are gone. I don't know, if it's -ftree-vectorize oder -Os but I guess it's been -Os.
Hope I could help with this information.
KDE, better kdesktop crashed with "-Os -march=athlon-xp -fomit-frame-pointer -ftree-vectorize".
Konqueror and even firefox crashed irregulary. Firefox made me think it could be another probem with a package both depend on.
So i recompiled kdesktop and kdelibs with debugging symbols and using gdb I found out, that jpeg was the problem.
I recompiled it with "-march=athlon-xp -pipe" and all erros are gone. I don't know, if it's -ftree-vectorize oder -Os but I guess it's been -Os.
Hope I could help with this information.
- predatorfreak
- l33t

- Posts: 708
- Joined: Thu Jan 13, 2005 2:15 am
- Location: USA, Michigan.
- Contact:
I bet 20 bucks it was -ftree-vectorize.Vla wrote:Yes, I compiled my system with -Os and gcc 4.1.0.
KDE, better kdesktop crashed with "-Os -march=athlon-xp -fomit-frame-pointer -ftree-vectorize".
Konqueror and even firefox crashed irregulary. Firefox made me think it could be another probem with a package both depend on.
So i recompiled kdesktop and kdelibs with debugging symbols and using gdb I found out, that jpeg was the problem.
I recompiled it with "-march=athlon-xp -pipe" and all erros are gone. I don't know, if it's -ftree-vectorize oder -Os but I guess it's been -Os.
Hope I could help with this information.
System: predatorbox
Distro: Arch Linux x86_64
Current projects: blackhole, convmedia and anything else I cook up.
Distro: Arch Linux x86_64
Current projects: blackhole, convmedia and anything else I cook up.
Yeah, it most likely was -ftree-vectorize. I used it for a while, but when recompiling my entire system using gcc-4.1, it said not to use as it causes breakage. Audacious and libVxf86dga both failed to compile with it.
"This Snow Crash thing -- is it a virus, a drug, or a religion?" "What's the difference?"
-- Neal Stephenson - Snow Crash
-- Neal Stephenson - Snow Crash
Hey, I will give it a shot and let you know! 
btw, I don't expect magic from this flag, but I also can't find any kind of benchmark regarding this. I just read on the gcc wiki that this will be improved in next releases... Anyone?
Edit: Damn, you're right. Thought I could have found something on my own
But I'll get my chance 
btw, I don't expect magic from this flag, but I also can't find any kind of benchmark regarding this. I just read on the gcc wiki that this will be improved in next releases... Anyone?
Edit: Damn, you're right. Thought I could have found something on my own
Finding benchmarks on any CFLAG configuration is difficult. Even more so to find one not biased; if there is such a thing. -ftree-vectorize is being included in the 4.2 branch so it is no doubt being cleaned up. Glad to see you (Vla) fixed your problem.
"This Snow Crash thing -- is it a virus, a drug, or a religion?" "What's the difference?"
-- Neal Stephenson - Snow Crash
-- Neal Stephenson - Snow Crash
I played a bit around with -Os the last days. Now my kde is compiled with -Os. I did some benchmarks on kde startup with a stopwatch.
It gave an avarage 3% performance (startup time) win. Not really much, but memory usage went down aswell so I'l keep it.
As the next step I'd like to emerge -eat system, with -Os. I think it would make sense for cpu intense apps to be -03 compiled, as they willl run faster, like gzip or lame. I am unsure with some apps, though.
How about compiling gcc-3.4.x with -O3? Is that a good idea? And how about glibc, or libs in general. What will they benefit most from?
It gave an avarage 3% performance (startup time) win. Not really much, but memory usage went down aswell so I'l keep it.
As the next step I'd like to emerge -eat system, with -Os. I think it would make sense for cpu intense apps to be -03 compiled, as they willl run faster, like gzip or lame. I am unsure with some apps, though.
How about compiling gcc-3.4.x with -O3? Is that a good idea? And how about glibc, or libs in general. What will they benefit most from?
This a little OT, because it has nothing to to with FF anymore, so it will be my last post. (I also switched to konqi now. I miss some extensions, but I will keep it because overall performance is much better).
I am compiling world with -Os right now, but have an extra packages.cflags file for those more cpu intense apps.
I found, that glibc and gcc strip -O3
More about cflags: Cflags Central
I am compiling world with -Os right now, but have an extra packages.cflags file for those more cpu intense apps.
I found, that glibc and gcc strip -O3
More about cflags: Cflags Central

