Skip to content

Commit 1343812

Browse files
mstorsjovar-const
authored andcommitted
[libcxxabi] Fix the long double demangling for PowerPC (llvm#135332)
PowerPC uses a slightly different type of floats for their 128 bit long doubles, as "double-double", with __LDBL_MANT_DIG__ == 106 rather than __LDBL_MANT_DIG__ == 113 for IEEE 128 bit floats. This fixes compiling libcxxabi for PowerPC after 3b70715.
1 parent c4c1b4a commit 1343812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxxabi/src/demangle/ItaniumDemangle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5741,7 +5741,7 @@ struct FloatData<double>
57415741
template <>
57425742
struct FloatData<long double>
57435743
{
5744-
#if __LDBL_MANT_DIG__ == 113
5744+
#if __LDBL_MANT_DIG__ == 113 || __LDBL_MANT_DIG__ == 106
57455745
static const size_t mangled_size = 32;
57465746
#elif __LDBL_MANT_DIG__ == 53 || defined(_MSC_VER)
57475747
// MSVC doesn't define __LDBL_MANT_DIG__, but it has long double equal to

0 commit comments

Comments
 (0)