This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Reg GCC macros for exception handling.
- From: Ian Lance Taylor <iant at google dot com>
- To: "venkat" <venkat at acmet dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Wed, 08 Apr 2009 06:56:29 -0700
- Subject: Re: Reg GCC macros for exception handling.
- References: <4E28C5F2D4BC4DF0A4414014438A1BEA@KVENKAT>
"venkat" <venkat@acmet.com> writes:
> I wanted to avoid building exception handling routines, so I used
> --enable-sjlj-exceptions=no. I am not sure if this is correct.
This tells gcc to use DWARF based exception handling rather than
setjmp/longjmp exception handling.
There is no way to tell gcc to not support exception handling at all.
If you don't want to implement it, put something like this in your
OVERRIDE_OPTIONS function
if (flag_exceptions)
{
sorry ("exceptions are not supported");
flag_exceptions = false;
}
Ian