[PATCH] CFE Knob for: Add a thread-model knob for lowering atomics on baremetal & single threaded systems

Jonathan Roelofs jonathan at codesourcery.com
Thu Oct 2 11:47:41 PDT 2014


@TNorthover, no worries. It's better to get the patch right the first time.

Add an error for when the toolchain doesn't support a thread model. This should make the `clang -v -mthread-model silly` case a bit nicer:

$ ./clang -v -mthread-model silly
clang: error: invalid thread model 'silly' in '-mthread-model silly' for this target
clang version 3.6.0 (trunk 218876)
Target: x86_64-apple-darwin13.4.0

http://reviews.llvm.org/D4985

Files:
  include/clang/Basic/DiagnosticDriverKinds.td
  include/clang/Driver/Options.td
  include/clang/Driver/ToolChain.h
  include/clang/Frontend/CodeGenOptions.h
  lib/CodeGen/BackendUtil.cpp
  lib/Driver/Driver.cpp
  lib/Driver/ToolChain.cpp
  lib/Driver/Tools.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/Driver/thread-model.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4985.14340.patch
Type: text/x-patch
Size: 7990 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141002/bf7061eb/attachment.bin>


More information about the cfe-commits mailing list