On Tuesday, 23. August 2005 14:44, Lauri Watts wrote:
> On Tuesday 23 August 2005 13:12, Anthony Ginepro wrote:
> > Having recently switched to KDE 3.4.2, I'm really pleased about its
> > functionnality and speed. I therefore intend to spend some time
> > optimizing it as I've seen that FreeBSD doesn't support yet the
> > visibility feature from gcc4.
> >
> > I already made qt3 work with vibility and would like to deal with
> > kdelibs3 now, however I would like to know if someone is working already
> > on the issue.
>
> Got it to build, or got it to run?
>
> It's quite possible to build most of KDE with this turned on.  Many
> applications are, last I tried it, horribly broken though.

I can't confirm this. I've compiled all of KDE 3.4.1 with gcc-4.0.1 and 
visibility (auto-)enabled and everything worked just fine - after I fixed a 
rather huge bug that prevented kdeinit from working and got a lot of upstream 
visibility fixes from SVN. KDE 3.4.2 should already contain all of these and 
the fix for kdeinit.

> > Let me know if it's a feature that could be supported in -ports or not.

It already is - if you applied the patch for Qt3 visibility patch from KDE 
(it's available via bugs.kde.org, I currently cannot remember the bugnumber 
however) and you set your CC/CXX environment variables to gcc40 or gcc41 from 
ports, the KDE configure scripts will enable the visibility switches 
automatically. 

> (Just don't get your hopes up too much, while there are speed increases to
> be had, they are not *that* big, and mostly involve application startup
> times, so don't expect your computer to feel like it got a major CPU
> injection over this!)

And this is the most important issue: The speed increases are in fact *so 
small*, they are hardly measurable and most definitely not noticable. The 
only speed-increase that you will gain is actual compiling speed, because 
gcc-4.x is a good deal faster than gcc 3.4 at compile time (and you could 
spend the time savings there on using a higher optimization level, i.e. -O2).

This last point is also the reason why we will not be applying the KDE 
visibility patch to the Qt3 port and will not provide any sort of 
port-shimmies for depending on gcc 4.x for building KDE. All it would do is 
introduce a possible new vector for runtime bugs without any benefit in 
return.

-- 
   ,_,   | Michael Nottebrock               | [EMAIL PROTECTED]
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org

Attachment: pgp8nNybtiBwm.pgp
Description: PGP signature

_______________________________________________
kde-freebsd mailing list
[email protected]
http://freebsd.kde.org/mailman/listinfo/kde-freebsd

Reply via email to