llvm-project/clang/lib
Fangrui Song 9d117e7b2a Define __GCC_HAVE_DWARF2_CFI_ASM if applicable
In -fno-exceptions -fno-asynchronous-unwind-tables -g0 mode,
GCC does not emit `.cfi_*` directives.

```
% diff <(gcc -fno-asynchronous-unwind-tables -dM -E a.c) <(gcc -dM -E a.c)
130a131
> #define __GCC_HAVE_DWARF2_CFI_ASM 1
```

This macro is useful because code can decide whether inline asm should include `.cfi_*` directives.
`.cfi_*` directives without `.cfi_startproc` can cause assembler errors
(integrated assembler: `this directive must appear between .cfi_startproc and .cfi_endproc directives`).

Differential Revision: https://reviews.llvm.org/D97743
2021-03-09 22:21:36 -08:00
..
APINotes [clang][APINotes] Fix gcc Wunused-function warning (NFC) 2021-03-10 11:47:00 +08:00
ARCMigrate ARCMigrate: Migrate ObjCMT.cpp over to FileEntryRef 2020-12-09 14:16:05 -08:00
AST PR49465: Disallow constant evaluation of a call to operator delete(nullptr). 2021-03-09 15:06:06 -08:00
ASTMatchers Add code complete support for mapAnyOf 2021-02-07 16:03:05 +00:00
Analysis [MacroExpansionContext] Fix a warning. 2021-02-22 16:54:57 -08:00
Basic [cfe][M68k](7/8) Clang basic support 2021-03-08 12:30:57 -08:00
CodeGen [NFC] Use llvm::SmallVector to workaround XL compiler problem on AIX 2021-03-09 13:03:52 -05:00
CrossTU [analyzer][CTU] API for CTU macro expansions 2021-02-22 11:12:22 +01:00
DirectoryWatcher Revert "ADT: Migrate users of AlignedCharArrayUnion to std::aligned_union_t, NFC" 2020-12-14 17:04:06 -08:00
Driver Define __GCC_HAVE_DWARF2_CFI_ASM if applicable 2021-03-09 22:21:36 -08:00
Edit [clang] Use SourceLocation as key in hash maps, NFCI 2020-10-20 16:24:09 +01:00
Format clang-format: use `pb` as a canonical raw string delimiter for google style 2021-03-09 09:07:14 +01:00
Frontend Revert D97743 "Define __GCC_HAVE_DWARF2_CFI_ASM if applicable" 2021-03-09 12:14:12 -08:00
FrontendTool [NFC] Refactor Registry loops to range for 2020-06-19 00:40:10 +01:00
Headers [PowerPC] Add missing double precision vec_all overloads to altivec.h 2021-03-05 18:42:12 -06:00
Index [Clang][RISCV] Define RISC-V V builtin types 2021-02-18 10:17:31 +08:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Lex Improve static_assert/_Static_assert diagnostics 2021-03-03 08:48:27 -05:00
Parse [clang][OpenMP] Use OpenMPIRBuilder for workshare loops. 2021-03-04 22:52:59 -06:00
Rewrite [clang] DeltaTree::AddDelta - fix "initialization is never read" clang-tidy warning. NFCI. 2021-03-02 15:01:34 +00:00
Sema [clang][ObjC] allow the use of NSAttributedString * return type with format_arg attribute 2021-03-09 13:36:57 -08:00
Serialization [clang][modules] Use extensible RTTI for ModuleFileExtension 2021-03-05 11:11:05 +01:00
StaticAnalyzer [clang][StaticAnalyzer] Compilation fix. 2021-03-04 23:23:58 -06:00
Testing Fix MSVC "not all control paths return a value" warning. NFC. 2020-06-05 10:45:59 +01:00
Tooling [clangd] Use flags from open files when opening headers they include 2021-03-01 09:43:59 +01:00
CMakeLists.txt APINotes: add APINotesYAMLCompiler 2020-11-05 18:55:13 +00:00