Bug in egcs 1.1 -fno-rtti + exception = segfault

Thomas Kunert kunert@physik.tu-dresden.de
Tue Oct 27 04:02:00 GMT 1998


Alexandre Oliva wrote:
> 
> Marco Manfai Yu <yumf@ultimatech.com> writes:
> 
> > Basically the code throws one of the standard exceptions. When
> > compiled with -fno-rtti the code segfaults in __is_pointer().
> 
> The runtime needs RTTI in order to check exception types.  IMO, you
> shouldn't be able to disable rtti without disabling exceptions too.
> We should certainly emit a warning in this case, but I'm unsure
> whether we should re-enable rtti if exceptions are enabled, or
> implicitly disable exception handling too, so that any
> exception-handling construct would be flagged as an error.  What do
> others think?

If RTTI and exceptions need each other there should be only one flag for
both. Nobody needs to deal with incompatible flags anymore.

Thomas Kunert



More information about the Gcc-bugs mailing list