llvm-project/clang/lib
Kristina Brooks 7f569b7c4f Add support for -mno-tls-direct-seg-refs to Clang
This patch exposes functionality added in rL344723 to the Clang driver/frontend
as a flag and adds appropriate metadata.

Driver tests pass:
```
ninja check-clang-driver
-snip-
  Expected Passes    : 472
  Expected Failures  : 3
  Unsupported Tests  : 65
```

Odd failure in CodeGen tests but unrelated to this:
```
ninja check-clang-codegen
-snip-
/SourceCache/llvm-trunk-8.0/tools/clang/test/CodeGen/builtins-wasm.c:87:10:
error: cannot compile this builtin function yet
-snip-
Failing Tests (1):
    Clang :: CodeGen/builtins-wasm.c

  Expected Passes    : 1250
  Expected Failures  : 2
  Unsupported Tests  : 120
  Unexpected Failures: 1
```

Original commit:
[X86] Support for the mno-tls-direct-seg-refs flag
Allows to disable direct TLS segment access (%fs or %gs). GCC supports a
similar flag, it can be useful in some circumstances, e.g. when a thread
context block needs to be updated directly from user space. More info and
specific use cases: https://bugs.llvm.org/show_bug.cgi?id=16145

Patch by nruslan (Ruslan Nikolaev).

Differential Revision: https://reviews.llvm.org/D53102

llvm-svn: 344739
2018-10-18 14:07:02 +00:00
..
ARCMigrate Add missing library dependency to fix build break after rC340247 2018-08-21 11:41:41 +00:00
AST [Fixed Point Arithmetic] FixedPointCast 2018-10-15 16:07:02 +00:00
ASTMatchers [ASTMatcher] Add missing imaginaryLiteral 2018-10-09 08:44:28 +00:00
Analysis Thread safety analysis: Handle conditional expression in getTrylockCallExpr 2018-10-06 01:09:28 +00:00
Basic [AArch64] Define __ELF__ for aarch64-none-elf and other similar triples. 2018-10-17 21:07:11 +00:00
CodeGen Add support for -mno-tls-direct-seg-refs to Clang 2018-10-18 14:07:02 +00:00
CrossTU [CrossTU] Fix handling of Cross Translation Unit directory path 2017-10-27 12:53:37 +00:00
Driver Add support for -mno-tls-direct-seg-refs to Clang 2018-10-18 14:07:02 +00:00
Edit [Fixed Point Arithmetic] FixedPointCast 2018-10-15 16:07:02 +00:00
Format [clang-format] Fix BraceWrapping AfterFunction for ObjC methods 2018-10-12 19:43:01 +00:00
Frontend Add support for -mno-tls-direct-seg-refs to Clang 2018-10-18 14:07:02 +00:00
FrontendTool [Driver][cc1][cc1as] Call OptTable::PrintHelp with explicit " [options] file..." 2018-10-10 00:15:33 +00:00
Headers [COFF, ARM64] Add _InterlockedAdd intrinsic 2018-10-05 21:57:41 +00:00
Index Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
Lex Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
Parse Add support for 'dynamic_allocators' clause on 'requires' directive. Differential Revision: https://reviews.llvm.org/D53079 2018-10-11 14:41:10 +00:00
Rewrite Remove trailing space 2018-07-30 19:24:48 +00:00
Sema [Fixed Point Arithmetic] FixedPointCast 2018-10-15 16:07:02 +00:00
Serialization Add support for 'dynamic_allocators' clause on 'requires' directive. Differential Revision: https://reviews.llvm.org/D53079 2018-10-11 14:41:10 +00:00
StaticAnalyzer [analyzer] Teach CallEvent about C++17 aligned operator new(). 2018-10-15 17:53:18 +00:00
Tooling [Tooling] Expose ExecutorName option. 2018-10-12 11:47:36 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00