projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5816134
)
[libunwind] Don't include cet.h/immintrin.h unconditionally
author
Benjamin Kramer
<benny.kra@googlemail.com>
Thu, 26 Aug 2021 09:37:07 +0000
(11:37 +0200)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Thu, 26 Aug 2021 09:37:07 +0000
(11:37 +0200)
These may not exist when CET isn't available.
libunwind/src/cet_unwind.h
patch
|
blob
|
history
diff --git
a/libunwind/src/cet_unwind.h
b/libunwind/src/cet_unwind.h
index
eac0bf1
..
482e0c8
100644
(file)
--- a/
libunwind/src/cet_unwind.h
+++ b/
libunwind/src/cet_unwind.h
@@
-11,8
+11,6
@@
#define LIBUNWIND_CET_UNWIND_H
#include "libunwind.h"
-#include <cet.h>
-#include <immintrin.h>
// Currently, CET is implemented on Linux x86 platforms.
#if defined(_LIBUNWIND_TARGET_LINUX) && defined(__CET__) && defined(__SHSTK__)
@@
-20,6
+18,9
@@
#endif
#if defined(_LIBUNWIND_USE_CET)
+#include <cet.h>
+#include <immintrin.h>
+
#define _LIBUNWIND_POP_CET_SSP(x) \
do { \
unsigned long ssp = _get_ssp(); \