This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Reg GCC macros for exception handling.


"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


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