[PATCH] D16559: [CUDA] Add -fcuda-allow-variadic-functions.

Justin Lebar via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 25 14:19:08 PST 2016


jlebar created this revision.
jlebar added a reviewer: tra.
jlebar added subscribers: bkramer, echristo, jhen, cfe-commits.

Turns out the variadic function checking added in r258643 was too strict
for some existing users; give them an escape valve.  When
-fcuda-allow-variadic-functions is passed, the front-end makes no
attempt to disallow C-style variadic functions.  Calls to va_arg are
still not allowed.

http://reviews.llvm.org/D16559

Files:
  include/clang/Basic/LangOptions.def
  include/clang/Driver/CC1Options.td
  lib/Frontend/CompilerInvocation.cpp
  lib/Sema/SemaDecl.cpp
  test/SemaCUDA/vararg.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16559.45915.patch
Type: text/x-patch
Size: 4762 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160125/8ed06c45/attachment.bin>


More information about the cfe-commits mailing list