]> granicus.if.org Git - clang/commit
[CUDA] Remove three obsolete CUDA cc1 flags.
authorJustin Lebar <jlebar@google.com>
Tue, 29 Mar 2016 16:24:16 +0000 (16:24 +0000)
committerJustin Lebar <jlebar@google.com>
Tue, 29 Mar 2016 16:24:16 +0000 (16:24 +0000)
commitb713fab2f5edb1492e056eeea54934477e4158a2
treef5623314734905a77cab40a7b23bd2e4efe209ed
parent45fd5f5f4555b866be3d2489478c6235515b8973
[CUDA] Remove three obsolete CUDA cc1 flags.

Summary:
* -fcuda-target-overloads

  Previously unconditionally set to true by the driver.  Necessary for
  correct functioning of the compiler -- our CUDA headers wrapper won't
  compile without this.

* -fcuda-disable-target-call-checks

  Previously unconditionally set to true by the driver.  Necessary to
  compile almost any external CUDA code -- almost all libraries assume
  that host+device code can call host or device functions.

* -fcuda-allow-host-calls-from-host-device

  No effect when target overloading is enabled.

Reviewers: tra

Subscribers: rsmith, cfe-commits

Differential Revision: http://reviews.llvm.org/D18416

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264739 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/clang/Basic/LangOptions.def
include/clang/Driver/CC1Options.td
include/clang/Sema/Sema.h
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Sema/SemaCUDA.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaOverload.cpp
test/CodeGenCUDA/function-overload.cu
test/CodeGenCUDA/host-device-calls-host.cu
test/SemaCUDA/builtins.cu
test/SemaCUDA/function-overload.cu
test/SemaCUDA/function-target-disabled-check.cu [deleted file]
test/SemaCUDA/function-target-hd.cu [deleted file]
test/SemaCUDA/implicit-intrinsic.cu
test/SemaCUDA/implicit-member-target-collision-cxx11.cu
test/SemaCUDA/method-target.cu