[PATCH] D11483: [mips] Correct float_data::mangled_size for all ABI's.
Daniel Sanders
daniel.sanders at imgtec.com
Fri Jul 24 03:56:07 PDT 2015
dsanders created this revision.
dsanders added subscribers: cfe-commits, hans, nitesh.jain, jaydeep, mclow.lists.
Patch by Nitesh Jain and Jaydeep Patil with a small revision to use ABIs rather
than Architecture Revisions (which currently imply particular ABIs).
Fixes test_demangle.pass.cpp (PR24149).
http://reviews.llvm.org/D11483
Files:
src/cxa_demangle.cpp
Index: src/cxa_demangle.cpp
===================================================================
--- src/cxa_demangle.cpp
+++ src/cxa_demangle.cpp
@@ -156,7 +156,9 @@
template <>
struct float_data<long double>
{
-#if defined(__arm__)
+#if defined(__mips__) && defined(__mips_n64)
+ static const size_t mangled_size = 32;
+#elif defined(__arm__) || defined(__mips__)
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11483.30568.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150724/88941123/attachment.bin>
More information about the cfe-commits
mailing list