Return to BSD News archive
Newsgroups: comp.os.386bsd.misc Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!boulder.parcplace.com!imp From: imp@boulder.parcplace.com (Warner Losh) Subject: Re: gcc 2.5.8 on FreeBSD 1.1.5.1, this is why, and a thanks. Message-ID: <Ct1Kyz.5FG@boulder.parcplace.com> Sender: news@boulder.parcplace.com Organization: ParcPlace Boulder References: <rcarterCsxwE1.56p@netcom.com> <1994Jul15.101010.17341@cm.cf.ac.uk> <rcarterCszzED.8wx@netcom.com> Date: Sat, 16 Jul 1994 16:40:11 GMT Lines: 43 In article <rcarterCszzED.8wx@netcom.com> rcarter@netcom.com (Russell Carter) writes: >Finally, I'd like to thank Julian E. for pointing me to the patches, and >several people who mentioned that gcc 2.6 will have a freebsd configuration. As someone who has been very badly burned by 2.5.8, you are talking a grave risk using it. It is very buggy and has tons of "silent killer" bugs: bugs that are in the code it generates, wrong overloaded functions called, etc. Fortunately, 2.6.0 is now available and I just did the following on my FreeBSD 1.1R box: configure --target i386--freebsd make bootstrap LANGUAGES="c c++ proto" make compare su # make install LANGUAGES="c c++ proto" and it installed itself in the standard gnu way in /usr/local. I've compiled all of OI with it, and it seems to be working OK. The one down side that I've seen: It takes about 33% longer to compile than it did before. The up side: code with -O is about 10% smaller or so (at least the sizes of the .o's are that much smaller, I haven't checked the programs yet). It also supports building shared libraries (my shared OI build isn't done, but earlier snap shots of 2.6.0 have performed quite well with OI). So far, my impressions of 2.6.0 are favorable. I've seen that some g++ programs take 10% more memory to comple, while in extreme cases I've seen them take 300% more (17M in 2.4.5 v 60M in 2.6.0). I like the smaller code size as well. I dislike the longer compile times and wish I could say -Ocompile-time and have the compiler optimize for compile time. Oh yes, you'll need a new libg++ to use streams, etc since the new compiler isn't binary compatible with the old one. I think there is one on prep, or will be soon from the sounds of things. Older versions evidentally don't work, but I'm not sure of the details. Warner -- Warner Losh imp@boulder.parcplace.COM ParcPlace Boulder "... but I can't promote you to "Prima Donna" unless you demonstrate a few more serious personality disorders"