[libcxxabi] r258313 - [libcxxabi] Teach cxa_demangle about Hexagon's long double size

Ben Craig via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 20 06:10:23 PST 2016


Author: bcraig
Date: Wed Jan 20 08:10:23 2016
New Revision: 258313

URL: http://llvm.org/viewvc/llvm-project?rev=258313&view=rev
Log:
[libcxxabi] Teach cxa_demangle about Hexagon's long double size

cxa_demangle's default size for a long double is 10 bytes. Hexagon
only has an 8 byte long double though.

Modified:
    libcxxabi/trunk/src/cxa_demangle.cpp

Modified: libcxxabi/trunk/src/cxa_demangle.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_demangle.cpp?rev=258313&r1=258312&r2=258313&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_demangle.cpp (original)
+++ libcxxabi/trunk/src/cxa_demangle.cpp Wed Jan 20 08:10:23 2016
@@ -168,7 +168,7 @@ struct float_data<long double>
 #if defined(__mips__) && defined(__mips_n64) || defined(__aarch64__) || \
     defined(__wasm__)
     static const size_t mangled_size = 32;
-#elif defined(__arm__) || defined(__mips__)
+#elif defined(__arm__) || defined(__mips__) || defined(__hexagon__)
     static const size_t mangled_size = 16;
 #else
     static const size_t mangled_size = 20;  // May need to be adjusted to 16 or 24 on other platforms




More information about the cfe-commits mailing list