[PATCH] Disable EHABI when -fno-exceptions option is chosen.

Renato Golin renato.golin at linaro.org
Fri Jan 31 04:13:21 PST 2014


Hi samsonov, rnk, keith.walker.arm,

http://llvm-reviews.chandlerc.com/D2666

Files:
  lib/Driver/Tools.cpp

Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp
+++ lib/Driver/Tools.cpp
@@ -830,6 +830,13 @@
       CmdArgs.push_back("-backend-option");
       CmdArgs.push_back("-arm-reserve-r9");
     }
+
+    // Exception handling
+    if (Arg *A = Args.getLastArg(options::OPT_fexceptions,
+                                 options::OPT_fno_exceptions)) {
+      if (A->getOption().matches(options::OPT_fno_exceptions))
+        CmdArgs.push_back("-arm-disable-ehabi");
+    }
 }
 
 // Get CPU and ABI names. They are not independent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2666.1.patch
Type: text/x-patch
Size: 597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140131/8abca7e7/attachment.bin>


More information about the cfe-commits mailing list