This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: KDE hackers, please read (was [nathan@codesourcery.com: Re: GCC3.0.3: Bugs to Fix]) (fwd)


>    3) Persuade gcc folks to add compiler switch that makes gcc use string
> comparing when doing rtti, and simply compile whole KDE with this switch
> turned on.

All code in the application -- including the C++ run-time library --
needs to be compiled the same way, so you would have to rebuild
everything to do this.

In general, I will argue against any such change.

Mixing C++ and dlopen w/o RTLD_GLOBAL is fundamentally wrong.

The right model is that this is like using an uninitialized
variable.  It might work somtimes, but it is a completely horrible
thing to do, totally unportable, and will succeed or fail based on
minor changes elsewhere in the code.

It would be a disservice for us to add features that try to accomodate
this; they cannot be made to work reliably and so all they would do
is create a temptation for people to write code that will not work.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]