]> granicus.if.org Git - clang/commitdiff
[ARM] Add missing -backend-option for -arm-execute-only
authorPrakhar Bahuguna <prakhar.bahuguna@arm.com>
Mon, 19 Dec 2016 15:43:33 +0000 (15:43 +0000)
committerPrakhar Bahuguna <prakhar.bahuguna@arm.com>
Mon, 19 Dec 2016 15:43:33 +0000 (15:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@290110 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Tools.cpp
test/Driver/arm-execute-only.c

index 253a25695feba18d24a102906c012367f933af39..251187a25c1a38d2f274922e621e3e73a1534981 100644 (file)
@@ -1158,6 +1158,7 @@ static void getARMTargetFeatures(const ToolChain &TC,
           D.Diag(diag::err_opt_not_valid_with_opt) << A->getAsString(Args) << B->getAsString(Args);
       }
 
+      CmdArgs.push_back("-backend-option");
       CmdArgs.push_back("-arm-execute-only");
     }
   }
index f564594b834be17c64a6a03d44abc46cfcdc2904..7010bbc837a09aa505a41a185936a78afc9d96b4 100644 (file)
@@ -91,8 +91,8 @@
 // RUN:    | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY-LONG-CALLS
 
 //
-// CHECK-NO-EXECUTE-ONLY-NOT: "-arm-execute-only"
-// CHECK-EXECUTE-ONLY: "-arm-execute-only"
+// CHECK-NO-EXECUTE-ONLY-NOT: "-backend-option" "-arm-execute-only"
+// CHECK-EXECUTE-ONLY: "-backend-option" "-arm-execute-only"
 
 // CHECK-EXECUTE-ONLY-NOT-SUPPORTED: error: execute only is not supported for the thumbv6m sub-architecture
 // CHECK-EXECUTE-ONLY-NO-MOVT: error: option '-mexecute-only' cannot be specified with '-mno-movt'