summaryrefslogtreecommitdiff
path: root/debian/patches/mips-cxa-demangle.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/mips-cxa-demangle.diff')
-rw-r--r--debian/patches/mips-cxa-demangle.diff21
1 files changed, 21 insertions, 0 deletions
diff --git a/debian/patches/mips-cxa-demangle.diff b/debian/patches/mips-cxa-demangle.diff
new file mode 100644
index 00000000..81a5cbac
--- /dev/null
+++ b/debian/patches/mips-cxa-demangle.diff
@@ -0,0 +1,21 @@
+From: Benjamin Barenblat <bbaren@google.com>
+Subject: Allow __cxa_demangle on MIPS
+Origin: backport, https://github.com/abseil/abseil-cpp/commit/519ef3b3f1927972bce669d775abb9b512dd590d
+
+Both libstdc++ and libc++abi currently ship a __cxa_demangle on MIPS;
+there’s no reason to avoid using it.
+
+--- a/absl/base/config.h
++++ b/absl/base/config.h
+@@ -902,9 +902,8 @@
+ #error ABSL_INTERNAL_HAS_CXA_DEMANGLE cannot be directly set
+ #elif defined(OS_ANDROID) && (defined(__i386__) || defined(__x86_64__))
+ #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 0
+-#elif defined(__GNUC__) && defined(__GNUC_MINOR__) && \
+- (__GNUC__ >= 4 || (__GNUC__ >= 3 && __GNUC_MINOR__ >= 4)) && \
+- !defined(__mips__)
++#elif defined(__GNUC__) && defined(__GNUC_MINOR__) && \
++ (__GNUC__ >= 4 || (__GNUC__ >= 3 && __GNUC_MINOR__ >= 4))
+ #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 1
+ #elif defined(__clang__) && !defined(_MSC_VER)
+ #define ABSL_INTERNAL_HAS_CXA_DEMANGLE 1