Re: Sun Tech Days and OpenSolaris

Dear Peter,

g++ supports these amazingly powerful warnings. Using -WOverloaded-virtual caught some ugly bug for me. ( Java guys included @Override annotation which works in a similar way ).

I read somewhere that a lot of people use g++ and these warnings as some kind of poor man’s lint. I think we should also put these in our makefile too ;-)

-Wnon-virtual-dtor

-Wreorder

-Weffc++

-Wold-style-cast ( incredibly useful for old/legacy code ;-)

-Woverloaded-virtual

-Wsign-promo

The last I looked, sun CC did not have these…. They said they will  try and put these things in.

Sun CC is a very good compiler - and as the gurus prescribe, we should make our sources go thru as many compilers as possible ;-)

As we already build with g++/VC 8, I will try to add Sun CC ( I am waiting for the machine so all the setup can be done for once ;-).

And then DRDT… They claimed they have it working on Solaris 86 so that could be the only reason to keep compiling under CC ;-) It is a great tool ( actually a suite of tools - like lock_lint etc. )

And lastly Opensolaris has full support for DTrace ;-)
– cheerio atul

Would you like to post a relpy?


This post is a reply to:
Re: Sun Tech Days and OpenSolaris
Hey Atul! That all sounds pretty cool! I'm sure you had a great time at the conference. I'd also be interested to hear your feedback about these gcc options... Is (more...)

No follow-ups yet.