[PATCH] D81543: [CodeGen][TLS] Set TLS Model for __tls_guard as well.

JunMa via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 10 02:08:59 PDT 2020


junparser created this revision.
junparser added reviewers: chh, rnk, aaron.ballman, rjmccall.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
junparser edited the summary of this revision.

For now we do not set tls model for tls_guard with/without option -ftls-model which is suboptimal.  
This patch set model from command line for tls_guard as well. This keeps same behavior with gcc.

TestPlan: check-clang


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81543

Files:
  clang/lib/CodeGen/CodeGenModule.cpp
  clang/lib/CodeGen/CodeGenModule.h
  clang/lib/CodeGen/ItaniumCXXABI.cpp
  clang/test/CodeGen/tls-model.c
  clang/test/CodeGen/tls-model.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81543.269761.patch
Type: text/x-patch
Size: 4824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200610/3f626e32/attachment.bin>


More information about the cfe-commits mailing list