This is the mail archive of the gcc-bugs@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]

Re: libstdc++/4292: dynamic_cast incorrectly returns 0


aoliva@gcc.gnu.org wrote:

>     RTLD_GLOBAL should fix the problem.  I'm not sure we really want to make type comparison less efficient to allow for non-GLOBAL dlopening.

Thank you for looking into this.

RTLD_GLOBAL does not fix the incorrect dynamic_cast.

Also, there are situations where dlopen is used without
RTLD_GLOBAL for a good reason, and adding the RTLD_GLOBAL
flag sometimes just isn't possible.

I definitely prefer "correct" over "fast", especially
when the difference in performance is rather small, as
in this case.

Florian Kainz
Industrial Light + Magic



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