| From d21634d54081e2a8cb7e21caacf6e647f7313672 Mon Sep 17 00:00:00 2001 |
| From: Dan Padgett <dpadgett@google.com> |
| Date: Thu, 24 Mar 2016 17:09:05 -0700 |
| Subject: [PATCH 12/17] Enable long double on mips for C++11 functions |
| |
| --- |
| .../uclibc-0074-allow-long-double-on-mips.patch | 26 ++++++++++++++++++++++ |
| 1 file changed, 26 insertions(+) |
| create mode 100644 package/uclibc/uclibc-0074-allow-long-double-on-mips.patch |
| |
| diff --git a/package/uclibc/uclibc-0074-allow-long-double-on-mips.patch b/package/uclibc/uclibc-0074-allow-long-double-on-mips.patch |
| new file mode 100644 |
| index 0000000..0fa17e6 |
| --- /dev/null |
| +++ b/package/uclibc/uclibc-0074-allow-long-double-on-mips.patch |
| @@ -0,0 +1,26 @@ |
| +--- a/extra/Configs/Config.in.arch 2012-05-15 03:20:09.000000000 -0400 |
| ++++ b/extra/Configs/Config.in.arch 2016-01-08 11:16:53.007031385 -0500 |
| +@@ -189,7 +189,7 @@ |
| + config UCLIBC_HAS_LONG_DOUBLE_MATH |
| + bool "Enable long double support" |
| + depends on DO_C99_MATH |
| +- depends on TARGET_aarch64 || TARGET_alpha || TARGET_i386 || TARGET_ia64 || TARGET_m68k || TARGET_powerpc || TARGET_s390 || TARGET_sparc || TARGET_tile || TARGET_x86_64 |
| ++ depends on TARGET_aarch64 || TARGET_alpha || TARGET_i386 || TARGET_ia64 || TARGET_m68k || TARGET_powerpc || TARGET_s390 || TARGET_sparc || TARGET_tile || TARGET_x86_64 || TARGET_mips |
| + default y |
| + help |
| + If you want the uClibc math library to contain the full set of C99 |
| + |
| +--- a/libc/sysdeps/linux/mips/bits/mathdef.h 2012-05-15 03:20:09.000000000 -0400 |
| ++++ b/libc/sysdeps/linux/mips/bits/mathdef.h 2016-02-03 16:09:21.976717193 -0500 |
| +@@ -39,10 +39,6 @@ |
| + |
| + #endif /* ISO C99 */ |
| + |
| +-#if ! defined __NO_LONG_DOUBLE_MATH && _MIPS_SIM == _ABIO32 |
| +-/* Signal that we do not really have a `long double'. This disables the |
| +- declaration of all the `long double' function variants. */ |
| +-# define __NO_LONG_DOUBLE_MATH 1 |
| +-#elif !defined __NO_LONG_DOUBLE_MATH && !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ |
| ++#if !defined __NO_LONG_DOUBLE_MATH && !defined __UCLIBC_HAS_LONG_DOUBLE_MATH__ |
| + # define __NO_LONG_DOUBLE_MATH 1 |
| + #endif |
| -- |
| 2.8.0.rc3.226.g39d4020 |
| |