guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: gcc-boot0, cross-base: Enable 128-bit long double for POWER9


From: guix-commits
Subject: 03/03: gnu: gcc-boot0, cross-base: Enable 128-bit long double for POWER9.
Date: Thu, 26 Nov 2020 17:40:20 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 4a914de930a8317cab5bc11bdb608e3a3da3d1ad
Author: dftxbs3e <dftxbs3e@free.fr>
AuthorDate: Sat Dec 7 20:26:51 2019 +0100

    gnu: gcc-boot0, cross-base: Enable 128-bit long double for POWER9.
    
    * gnu/packages/cross-base.scm (cross-gcc-arguments): Add
    "--with-long-double-128" when TARGET is "powerpc64le-linux-gnu".
    * gnu/packages/commencement.scm (gcc-boot0): Likewise for (boot-triplet).
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 gnu/packages/commencement.scm | 6 ++++++
 gnu/packages/cross-base.scm   | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 0938bc3..432910d 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -2818,6 +2818,12 @@ exec " gcc "/bin/" program
                            "--disable-shared"
                            "--enable-languages=c,c++"
 
+                           ,@(if (equal? "powerpc64le-linux-gnu" 
(boot-triplet))
+                                 ;; On POWER9 (little endian) glibc needs the
+                                 ;; 128-bit long double type.
+                                 '("--with-long-double-128")
+                                 '())
+
                            ;; libstdc++ cannot be built at this stage
                            ;; ("Link tests are not allowed after
                            ;; GCC_NO_EXECUTABLES.").
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index c1e5f2e..bea2d69 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -153,6 +153,12 @@ base compiler and using LIBC (which may be either a libc 
package or #f.)"
                                "--disable-decimal-float" ;would need libc
                                "--disable-libcilkrts"
 
+                              ,@(if (equal? "powerpc64le-linux-gnu" target)
+                                   ;; On POWER9 (little endian) glibc needs
+                                   ;; the 128-bit long double type.
+                                   '("--with-long-double-128")
+                                   '())
+
                                ;; When target is any OS other than 'none' these
                                ;; libraries will fail if there is no libc
                                ;; present. See



reply via email to

[Prev in Thread] Current Thread [Next in Thread]