]> granicus.if.org Git - clang/commit
Wire up -fpie and -fPIE to LLVM's newly added TargetOptions. No test
authorChandler Carruth <chandlerc@gmail.com>
Sun, 8 Apr 2012 21:09:51 +0000 (21:09 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 8 Apr 2012 21:09:51 +0000 (21:09 +0000)
commit5081de5ae708bf783cc05a309f85212c0f793b99
treeba353fb573cdba638a919e9e3c76c2ea70c82dce
parent5e219cf7f896873c1c1e64b9e87a7dade99debba
Wire up -fpie and -fPIE to LLVM's newly added TargetOptions. No test
case as we don't currently have any way of dumping target options or
otherwise observing this. Another small step toward fixing PR12380. With
this we generate TLS accesses using the static model instead of the
dynamic model, but we're still generating suboptimal code under the
mistaken assumption that the TLS offset might be greater than 2^32, and
therefor not viable as an immediate offset of a segment register.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154298 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BackendUtil.cpp