[cfe-dev] Question on exception handling

Reid Kleckner rnk at google.com
Mon Oct 7 10:42:19 PDT 2013


No.  libc++ and the Visual C++ STL use macros to compile exception
constructs out when exceptions are disabled.  So far as I know that's the
only way to do it.


On Wed, Oct 2, 2013 at 6:25 PM, Gao, Yunzhong <
yunzhong_gao at playstation.sony.com> wrote:

> Hi fellow clangers,
> Is there a way to make clang recognize exception-related syntax (try,
> throw, catch, etc.), but not generate any codes for that (hence, no landing
> pad, no FDE or LSDA)?
> I tried with -fno-exceptions, but got an error saying,
> error: cannot use 'try' with exceptions disabled.
> Many thanks,
> - Gao.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131007/cb0bb046/attachment.html>


More information about the cfe-dev mailing list