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

Patch for throw/catch problems


Concerning GCC 3.0:

I had the problem of a throw from one shared library not being caught in
code within another shared library.  I tracked down the problem and have
made a fix.  Attached are the 3 files.  This problem has been reported by
other and PRs exist in gnats about it.

I have marked the modified code with the #define SM_GCC_FIX073101_

Modules are libsupc++/typeinfo
                      tinfo.cc
                      tinfo2.cc

Specifically, the assumption that testing the address of a class name is
sufficient for equality is not true in the case of multiple shared libraries
and the older, if the strings compare the same needs to be
used.

Please modify my #define as I used it only to make the patch more visible.

David
lampeld@smarts.com

tinfo.cc

tinfo2.cc

typeinfo


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