r200627 - Revert r200555, r200545.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Sun Feb 2 02:39:46 PST 2014


Author: eugenis
Date: Sun Feb  2 04:39:45 2014
New Revision: 200627

URL: http://llvm.org/viewvc/llvm-project?rev=200627&view=rev
Log:
Revert r200555, r200545.

These changes make it impossible to use ARM EHABI for stack unwinding without
enabling exceptions and break AddressSanitizer on ARM.

Removed:
    cfe/trunk/test/Driver/arm-no-exception.c
Modified:
    cfe/trunk/lib/Driver/Tools.cpp

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=200627&r1=200626&r2=200627&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Sun Feb  2 04:39:45 2014
@@ -830,15 +830,6 @@ void Clang::AddARMTargetArgs(const ArgLi
       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("-backend-option");
-        CmdArgs.push_back("-arm-disable-ehabi");
-      }
-    }
 }
 
 // Get CPU and ABI names. They are not independent

Removed: cfe/trunk/test/Driver/arm-no-exception.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/arm-no-exception.c?rev=200626&view=auto
==============================================================================
--- cfe/trunk/test/Driver/arm-no-exception.c (original)
+++ cfe/trunk/test/Driver/arm-no-exception.c (removed)
@@ -1,4 +0,0 @@
-// RUN: %clang -target arm-none-gnueeabi -fno-exceptions -### %s 2> %t
-// RUN: FileCheck --check-prefix=CHECK-NOEH < %t %s
-
-// CHECK-NOEH: "-backend-option" "-arm-disable-ehabi"





More information about the cfe-commits mailing list