5de29b
Upstream patches to allow older compilers to use link.h:
5de29b
5de29b
commit 30477995dc8a680283b4d6e02039bca09de83cf9
5de29b
Author: Marko Myllynen <myllynen@redhat.com>
5de29b
Date:   Fri May 30 10:50:21 2014 -0700
5de29b
5de29b
    Replace __int128 with __int128_t
5de29b
    
5de29b
        * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
5de29b
        with __int128_t.
5de29b
5de29b
commit 48332d822090e41253692053a00dfe224d3ebec0
5de29b
Author: H.J. Lu <hjl.tools@gmail.com>
5de29b
Date:   Fri Apr 25 09:33:41 2014 -0700
5de29b
5de29b
    Replace __int128 with __int128_t in bits/link.h
5de29b
    
5de29b
    __int128 was added in GCC 4.6 and __int128_t was added before x86-64
5de29b
    was supported.  This patch replaces __int128 with __int128_t so that
5de29b
    the installed bits/link.h can be used with older GCC.
5de29b
    
5de29b
        * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
5de29b
        with __int128_t.
5de29b
        (La_x86_64_retval): Likewise.
5de29b
5de29b
diff -urN glibc-2.17-c758a686/sysdeps/x86/bits/link.h glibc-2.17-c758a686.mod/sysdeps/x86/bits/link.h
5de29b
--- glibc-2.17-c758a686/sysdeps/x86/bits/link.h	2014-11-05 13:39:09.888988366 -0500
5de29b
+++ glibc-2.17-c758a686.mod/sysdeps/x86/bits/link.h	2014-11-05 13:39:52.800863646 -0500
5de29b
@@ -94,7 +94,7 @@
5de29b
   La_x86_64_xmm lr_xmm[8];
5de29b
   La_x86_64_vector lr_vector[8];
5de29b
 #ifndef __ILP32__
5de29b
-  __int128 lr_bnd[4];
5de29b
+  __int128_t lr_bnd[4];
5de29b
 #endif
5de29b
 } La_x86_64_regs;
5de29b
 
5de29b
@@ -110,8 +110,8 @@
5de29b
   La_x86_64_vector lrv_vector0;
5de29b
   La_x86_64_vector lrv_vector1;
5de29b
 #ifndef __ILP32__
5de29b
-  __int128 lrv_bnd0;
5de29b
-  __int128 lrv_bnd1;
5de29b
+  __int128_t lrv_bnd0;
5de29b
+  __int128_t lrv_bnd1;
5de29b
 #endif
5de29b
 } La_x86_64_retval;
5de29b
 
5de29b
diff -urN glibc-2.17-c758a686/sysdeps/x86_64/link-defines.sym glibc-2.17-c758a686.mod/sysdeps/x86_64/link-defines.sym
5de29b
--- glibc-2.17-c758a686/sysdeps/x86_64/link-defines.sym	2014-11-05 13:39:09.889988363 -0500
5de29b
+++ glibc-2.17-c758a686.mod/sysdeps/x86_64/link-defines.sym	2014-11-05 13:39:52.800863646 -0500
5de29b
@@ -6,7 +6,7 @@
5de29b
 XMM_SIZE		sizeof (La_x86_64_xmm)
5de29b
 YMM_SIZE		sizeof (La_x86_64_ymm)
5de29b
 ZMM_SIZE		sizeof (La_x86_64_zmm)
5de29b
-BND_SIZE		sizeof (__int128)
5de29b
+BND_SIZE		sizeof (__int128_t)
5de29b
 
5de29b
 LR_SIZE			sizeof (struct La_x86_64_regs)
5de29b
 LR_RDX_OFFSET		offsetof (struct La_x86_64_regs, lr_rdx)