r200545 - Connect -fno-exceptions to -arm-disable-ehabi

Renato Golin renato.golin at linaro.org
Fri Jan 31 09:58:25 PST 2014

On 31 January 2014 17:53, Reid Kleckner <rnk at google.com> wrote:

> I think you want 'Args.hasFlag(options::OPT_fno_exceptions,
> options::OPT_fexceptions, false)' in order to make sure that 'clang
> -fno-exceptions -fexceptions' produces unwind tables.

Yes, I changed that already. Thanks!

I also seem to recall that there are major problems with -backend-option if
> you want to run Clang on multiple TUs in the same process.  It causes us to
> call llvm::cl::ParseCommandLineOptions twice, which isn't allowed, and bad
> things happen.  It doesn't have to be fixed now, but long term it needs to
> go away if anyone wants to, say, run a Clang tool over code that normally
> uses -fno-exceptions on ARM.

There were some discussions on multiple calls to the driver on other
threads. I have to say I also get very confused on which way Clang is using
which arguments. For this patch, I just used what was already there, so
it'd be easier to whomever refactors the driver's code to do them all at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140131/8c3b1128/attachment.html>

More information about the cfe-commits mailing list