[cfe-dev] Purpose of -fno-objc-exceptions

Michael Eisel via cfe-dev cfe-dev at lists.llvm.org
Wed Sep 20 16:31:34 PDT 2017


I've found a 2% reduction in the size of my binary from using the
-fno-objc-exceptions flag (I already use -fno-objc-arc-exceptions) for most
of the files. I thought it might not be able to propagate an exception
through methods in files compiled with this flag, but in my testing I found
that that was not case. So I'm curious, what's the tradeoff? Why wouldn't
clang just only enable exceptions for files that used "@try", "@finally",
"@catch", or "@throw"?

Thanks,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170920/b3335fdb/attachment.html>


More information about the cfe-dev mailing list