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: Bug in egcs 1.1 -fno-rtti + exception = segfault


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?

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:oliva@gnu.org mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



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