]> granicus.if.org Git - clang/commit
[CUDA] Don't pass -stack-protector to NVPTX compilations.
authorJustin Lebar <jlebar@google.com>
Sun, 19 Feb 2017 19:05:32 +0000 (19:05 +0000)
committerJustin Lebar <jlebar@google.com>
Sun, 19 Feb 2017 19:05:32 +0000 (19:05 +0000)
commit30d9fb2373d1c065937a5969a44b461ed9a8a20c
treeb32cec9ceb40143bf932d9f2af1feab042446fd8
parentd02501082b425d9134caa569ac12c7430b8254fe
[CUDA] Don't pass -stack-protector to NVPTX compilations.

We can't support stack-protector on NVPTX because NVPTX doesn't expose a
stack to the compiler!

Fixes PR32009.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295609 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/cuda-no-stack-protector.cu [new file with mode: 0644]