llvm-project/clang/test
Arthur Eubanks 9181ce623f [Windows] Put init_seg(compiler/lib) in llvm.global_ctors
Currently we treat initializers with init_seg(compiler/lib) as similar
to any other init_seg, they simply have a global variable in the proper
section (".CRT$XCC" for compiler/".CRT$XCL" for lib) and are added to
llvm.used. However, this doesn't match with how LLVM sees normal (or
init_seg(user)) initializers via llvm.global_ctors. This
causes issues like incorrect init_seg(compiler) vs init_seg(user)
ordering due to GlobalOpt evaluating constructors, and the
ability to remove init_seg(compiler/lib) initializers at all.

Currently we use 'A' for priorities less than 200. Use 200 for
init_seg(compiler) (".CRT$XCC") and 400 for init_seg(lib) (".CRT$XCL"),
which do not append the priority to the section name. Priorities
between 200 and 400 use ".CRT$XCC${Priority}". This allows for
some wiggle room for people/future extensions that want to add
initializers between compiler and lib.

Fixes #56922

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D131910
2022-08-16 08:16:18 -07:00
..
APINotes
ARCMT
AST [clang] SIGSEGV fix at clang::ASTContext::getRawCommentForDeclNoCacheImpl 2022-08-12 00:05:59 +01:00
ASTMerge
Analysis [analyzer] Fix a crash on copy elided initialized lambda captures 2022-08-13 00:22:01 +02:00
C Update the implementation status of some C11 features 2022-08-13 10:17:47 -04:00
CXX [clang] fix missing initialization of original number of expansions 2022-08-15 17:39:38 +02:00
ClangScanDeps [clang][deps] Always generate module paths 2022-08-10 11:58:28 -07:00
CodeCompletion
CodeGen [c++] implements DR692, DR1395 and tentatively DR1432, about partial ordering of variadic template partial specialization or function template 2022-08-14 14:37:40 -07:00
CodeGenCUDA [CUDA][FIX] Make shfl[_sync] for unsigned long long non-recursive 2022-07-21 12:36:54 -05:00
CodeGenCUDASPIRV [CUDA/SPIR-V] Force passing aggregate type byval 2022-07-22 20:30:15 +00:00
CodeGenCXX [Windows] Put init_seg(compiler/lib) in llvm.global_ctors 2022-08-16 08:16:18 -07:00
CodeGenCoroutines [Coroutines] Maintain the position of final suspend 2022-08-12 13:05:08 +08:00
CodeGenHIP Revert "Revert "[Clang][Attribute] Introduce maybe_undef attribute for function arguments which accepts undef values"" 2022-07-29 19:07:07 +00:00
CodeGenHLSL [HLSL] clang codeGen for HLSLShaderAttr. 2022-08-04 21:23:57 -07:00
CodeGenObjC Fix crash in ObjC codegen introduced with 5ab6ee7599 2022-07-24 13:59:45 +01:00
CodeGenObjCXX [WinEH] Apply funclet operand bundles to nounwind intrinsics that lower to function calls in the course of IR transforms 2022-07-26 17:52:43 +02:00
CodeGenOpenCL [AMDGPU] Add amdgcn_sched_group_barrier builtin 2022-07-28 10:43:14 -07:00
CodeGenOpenCLCXX
CodeGenSYCL
Coverage
CoverageMapping
Driver [clang][Darwin] Re-apply "Always set the default C++ Standard Library to libc++" 2022-08-16 09:27:18 -04:00
ExtractAPI [clang][ExtractAPI] Fix objc_property.m reference output 2022-07-27 11:34:17 +01:00
FixIt [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
Format [clang-format] Fix an assertion failure on -lines=0:n 2022-07-08 23:41:16 -07:00
Frontend [AMDGPU] Add remarks to output some resource usage 2022-07-15 11:01:53 -07:00
Headers [clang][Darwin] Re-apply "Always set the default C++ Standard Library to libc++" 2022-08-16 09:27:18 -04:00
Import
Index Revert "[clang] Pass FoundDecl to DeclRefExpr creator for operator overloads" 2022-08-04 12:14:43 +02:00
Integration
InterfaceStubs
Interpreter Handles failing driver tests of clang 2022-08-02 12:29:26 +05:30
Layout [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
Lexer [clang][sema] Print more information about failed static assertions 2022-08-11 08:44:38 +02:00
LibClang
Misc Revert "Revert "[Clang][Attribute] Introduce maybe_undef attribute for function arguments which accepts undef values"" 2022-07-29 19:07:07 +00:00
Modules [AST] [Modules] Introduce Decl::getNonTransparentDeclContext to handle exported friends 2022-08-12 11:50:35 +08:00
OpenMP [OpenMP] Fix segmentation fault when data field is used in is_device_pt 2022-08-12 17:10:26 -07:00
PCH [clang][Darwin] Re-apply "Always set the default C++ Standard Library to libc++" 2022-08-16 09:27:18 -04:00
Parser [clang][sema] Print more information about failed static assertions 2022-08-11 08:44:38 +02:00
ParserHLSL
ParserSYCL
Preprocessor [clang][X86] Add RDPRU predefined macro tests for znver2/znver3 targets 2022-08-11 15:48:39 +01:00
Profile
Refactor
Rewriter Fix -Wbitfield-constant-conversion on 1-bit signed bitfield 2022-08-09 11:43:50 -04:00
Sema [clang][sema] Print more information about failed static assertions 2022-08-11 08:44:38 +02:00
SemaCUDA
SemaCXX [Sema] fix false -Wcomma being emitted from void returning functions 2022-08-16 20:44:38 +08:00
SemaHLSL [HLSL] Support -E option for HLSL. 2022-08-04 16:54:19 -07:00
SemaObjC Default implicit function pointer conversions diagnostic to be an error 2022-08-10 13:54:17 -04:00
SemaObjCXX [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
SemaOpenCL Fixed a number of typos 2022-08-01 13:13:18 -04:00
SemaOpenCLCXX
SemaSYCL [clang] Implement ElaboratedType sugaring for types written bare 2022-07-27 11:10:54 +02:00
SemaTemplate MSVC compatibility mode: fix error on unqualified templated base class initialization in case of partial specialization 2022-08-16 17:09:55 +02:00
TableGen
Templight
Tooling Revert "[clang-diff] Fix assertion error when dealing with wide strings" 2022-06-07 14:58:10 -07:00
Unit
VFS [clang][modules] Don't depend on sharing FileManager during module build 2022-08-05 12:24:40 -07:00
clang-rename
utils/update_cc_test_checks Disable update_cc_test_checks.py tests in stand-alone builds 2022-08-11 20:53:37 -07:00
.clang-format Disable clang-format entirely for test directories 2022-07-08 07:34:18 -04:00
CMakeLists.txt Disable update_cc_test_checks.py tests in stand-alone builds 2022-08-11 20:53:37 -07:00
TestRunner.sh
lit.cfg.py [clang][Darwin] Re-apply "Always set the default C++ Standard Library to libc++" 2022-08-16 09:27:18 -04:00
lit.site.cfg.py.in Disable update_cc_test_checks.py tests in stand-alone builds 2022-08-11 20:53:37 -07:00