aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-03-09 22:21:36 -0800
committerFangrui Song <i@maskray.me>2021-03-09 22:21:36 -0800
commit9d117e7b2a399a9b2bcf53fb9b9c0946e82dc75c (patch)
treef67b01afcc8a2f064ae6206927c85894585517ed /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parentbcb53999a4ce9a8236295a6abf8b3a3e8916a0f5 (diff)
downloadllvm-9d117e7b2a399a9b2bcf53fb9b9c0946e82dc75c.zip
llvm-9d117e7b2a399a9b2bcf53fb9b9c0946e82dc75c.tar.gz
llvm-9d117e7b2a399a9b2bcf53fb9b9c0946e82dc75c.tar.bz2
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
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions