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: -fno-rtti and exception handling


> Date: Thu, 16 Mar 2000 10:15:36 +0100
> From: "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>

> The documentation of -fno-rtti claims that exception handling will
> generate appropriate data structures even if -fno-rtti is specified.

That is (was) correct, I wrote it.

> That claim is incorrect

Correction, that claim was correct.

> What should be the correct behaviour?

We can go either way.  Obviously, my preference was to support this,
and I did.  I suspect the person that broke this, did it on accident,
as otherwise they would have updated the documentation and removed all
the other bits to support this (libgcc2.c):

void *
__throw_type_match (void *catch_type, void *throw_type, void *obj)
{
#if 0
 printf ("__throw_type_match (): catch_type = %s, throw_type = %s\n",
  catch_type, throw_type);
#endif
 if (strcmp ((const char *)catch_type, (const char *)throw_type) == 0)
   return obj;
 return 0;
}


Jason, what direction did you want to take this?

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