This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: -fno-rtti and exception handling
- To: gcc-bugs at gcc dot gnu dot org, martin at loewis dot home dot cs dot tu-berlin dot de
- Subject: Re: -fno-rtti and exception handling
- From: Mike Stump <mrs at windriver dot com>
- Date: Thu, 16 Mar 2000 09:46:08 -0800 (PST)
> 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?