blob: 68226edcbcfb29d883ed128d2269fdf11b5c3c16 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- interpreter/cling/lib/Interpreter/Interpreter.cpp.orig 2024-05-30 18:23:48 UTC
+++ interpreter/cling/lib/Interpreter/Interpreter.cpp
@@ -465,8 +465,17 @@ namespace cling {
const char* Attr = LangOpts.CPlusPlus ? " throw () " : "";
#else
const char* LinkageCxx = Linkage;
+#ifdef __FreeBSD__
+// atexit-like commands need 'throw()' specifier on FreeBSD 15 aarch64
+#if defined(__aarch64__) && __FreeBSD_cc_version >= 1500000
+ const char* Attr = " throw () ";
+#else
const char* Attr = "";
#endif
+#else
+ const char* Attr = "";
+#endif // __FreeBSD__
+#endif // __GLIBC__
#if defined(__GLIBCXX__)
const char* cxa_atexit_is_noexcept = LangOpts.CPlusPlus ? " noexcept" : "";
|