Date: Wed, 16 Jun 2021 18:28:38 GMT From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: f336b45e943c - main - Undefine HAVE_(DE)REGISTER_FRAME in llvm's config.h on arm Message-ID: <202106161828.15GISc8p068857@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=f336b45e943c7f9a90ffcea1a6c4c7039e54c73c commit f336b45e943c7f9a90ffcea1a6c4c7039e54c73c Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2021-06-16 18:27:33 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2021-06-16 18:27:39 +0000 Undefine HAVE_(DE)REGISTER_FRAME in llvm's config.h on arm Otherwise, the lli tool (enable by WITH_CLANG_EXTRAS) won't link on arm, stating that __register_frame is undefined. This function is normally provided by libunwind, but explicitly not for the ARM Exception ABI. Reported by: oh PR: 255570 MFC after: 6 weeks --- lib/clang/include/llvm/Config/config.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/clang/include/llvm/Config/config.h b/lib/clang/include/llvm/Config/config.h index d00cb511c9a8..ab8be211be67 100644 --- a/lib/clang/include/llvm/Config/config.h +++ b/lib/clang/include/llvm/Config/config.h @@ -59,11 +59,13 @@ /* Define if dladdr() is available on this platform. */ #define HAVE_DLADDR 1 +#if !defined(__arm__) || defined(__USING_SJLJ_EXCEPTIONS__) || defined(__ARM_DWARF_EH__) /* Define to 1 if we can register EH frames on this platform. */ #define HAVE_REGISTER_FRAME 1 /* Define to 1 if we can deregister EH frames on this platform. */ #define HAVE_DEREGISTER_FRAME 1 +#endif // !arm || USING_SJLJ_EXCEPTIONS || ARM_DWARF_EH_ /* Define to 1 if you have the <errno.h> header file. */ #define HAVE_ERRNO_H 1
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106161828.15GISc8p068857>