summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/split-stacks.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [patch][pr19848] Produce explicit comdats in clang.Rafael Espindola2015-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The llvm IR until recently had no support for comdats. This was a problem when targeting C++ on ELF/COFF as just using weak linkage would cause quite a bit of dead bits to remain on the executable (unless -ffunction-sections, -fdata-sections and --gc-sections were used). To fix the problem, llvm's codegen will just assume that any weak or linkonce that is not in an explicit comdat should be output in one with the same name as the global. This unfortunately breaks cases like pr19848 where a weak symbol is not xpected to be part of any comdat. Now that we have explicit comdats in the IR, we can finally get both cases right. This first patch just makes clang give explicit comdats to GlobalValues where t is allowed to. A followup patch to llvm will then stop implicitly producing comdats. llvm-svn: 225705
* Implement the no_split_stack attribute.Peter Collingbourne2014-05-191-0/+33
This is a GNU attribute that allows split stacks to be turned off on a per-function basis. Differential Revision: http://reviews.llvm.org/D3817 llvm-svn: 209167
OpenPOWER on IntegriCloud