]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Check __ILP32__ instead of __LP64__
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 13 Apr 2012 23:24:17 +0000 (16:24 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 13 Apr 2012 23:24:17 +0000 (16:24 -0700)
* elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
* elf/tst-auditmod3b.c: Likewise.
* elf/tst-auditmod4b.c: Likewise.
* elf/tst-auditmod5b.c: Likewise.
* elf/tst-auditmod6b.c: Likewise.
* elf/tst-auditmod6c.c: Likewise.
* elf/tst-auditmod7b.c: Likewise.
* sysdeps/x86_64/ffsll.c (ffsl): Likewise.
* sysdeps/x86_64/preconfigure.in: Likewise.
* sysdeps/x86_64/preconfigure: Regenerated.

ChangeLog
elf/tst-auditmod1.c
elf/tst-auditmod3b.c
elf/tst-auditmod4b.c
elf/tst-auditmod5b.c
elf/tst-auditmod6b.c
elf/tst-auditmod6c.c
elf/tst-auditmod7b.c
sysdeps/x86_64/ffsll.c
sysdeps/x86_64/preconfigure
sysdeps/x86_64/preconfigure.in

index 718824dcd5ceca5fdbe5eada79a91a1ea2f59194..77e60af0864e80e6bc735f011c44231679d07cfd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
+       * elf/tst-auditmod3b.c: Likewise.
+       * elf/tst-auditmod4b.c: Likewise.
+       * elf/tst-auditmod5b.c: Likewise.
+       * elf/tst-auditmod6b.c: Likewise.
+       * elf/tst-auditmod6c.c: Likewise.
+       * elf/tst-auditmod7b.c: Likewise.
+       * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
+       * sysdeps/x86_64/preconfigure.in: Likewise.
+       * sysdeps/x86_64/preconfigure: Regenerated.
+
 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
index 67fc758ac32a77273167df143c81d63cc3358dda..108d6ded59bcbc4e40829909f78f54b2d0461d8d 100644 (file)
@@ -109,7 +109,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
 # define La_retval La_i86_retval
 # define int_retval lrv_eax
 #elif defined __x86_64__
-# ifdef __LP64__
+# ifndef __ILP32__
 #  define pltenter la_x86_64_gnu_pltenter
 #  define pltexit la_x86_64_gnu_pltexit
 #  define La_regs La_x86_64_regs
index 921eaca55ae0272abc39cbdd76da778ca7485b50..a9bb0e22c3451cc8b409e53e5e201cb67b2a3430 100644 (file)
@@ -105,7 +105,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
   return sym->st_value;
 }
 
-#ifdef __LP64__
+# ifndef __ILP32__
 # define pltenter la_x86_64_gnu_pltenter
 # define pltexit la_x86_64_gnu_pltexit
 # define La_regs La_x86_64_regs
index 75e85582bd41a6b5f9e128a46d001293b3269472..7778d6a172d9e7f902fd5e4fee6295cb3f3a3e4d 100644 (file)
@@ -94,7 +94,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
   return sym->st_value;
 }
 
-#ifdef __LP64__
+# ifndef __ILP32__
 # define pltenter la_x86_64_gnu_pltenter
 # define pltexit la_x86_64_gnu_pltexit
 # define La_regs La_x86_64_regs
index d2443c8d208cde251a8090c088d848899b93ba11..3a4221536c644a79d70fb79ef9e16838f19be2dd 100644 (file)
@@ -95,7 +95,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
   return sym->st_value;
 }
 
-#ifdef __LP64__
+# ifndef __ILP32__
 # define pltenter la_x86_64_gnu_pltenter
 # define pltexit la_x86_64_gnu_pltexit
 # define La_regs La_x86_64_regs
index b00dcd7c2e210c2244cd1c6d1e62946eed01a853..a9fe5dcadcfb9b31570cb272ab03de72f404b843 100644 (file)
@@ -94,7 +94,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
   return sym->st_value;
 }
 
-#ifdef __LP64__
+# ifndef __ILP32__
 # define pltenter la_x86_64_gnu_pltenter
 # define pltexit la_x86_64_gnu_pltexit
 # define La_regs La_x86_64_regs
index a78c9139636802df917cc2b8b8c34b0dd0eac974..9b1063b23f9633e2863029ef0939f70989367e0f 100644 (file)
@@ -94,7 +94,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
   return sym->st_value;
 }
 
-#ifdef __LP64__
+# ifndef __ILP32__
 # define pltenter la_x86_64_gnu_pltenter
 # define pltexit la_x86_64_gnu_pltexit
 # define La_regs La_x86_64_regs
index d761149a2fe2ac8eca33083aa2050a5ba31443a8..1ae9e727691ec00018b6f371da2fc5f2bcb7aa48 100644 (file)
@@ -94,7 +94,7 @@ la_symbind64 (Elf64_Sym *sym, unsigned int ndx, uintptr_t *refcook,
   return sym->st_value;
 }
 
-#ifdef __LP64__
+#ifndef __ILP32__
 # define pltenter la_x86_64_gnu_pltenter
 # define pltexit la_x86_64_gnu_pltexit
 # define La_regs La_x86_64_regs
index a7a5dc85834ce5e82873f7537f8b583abaa5f5b6..0c07dcec02f72cd1a706c7576ac4e581facea59d 100644 (file)
@@ -36,7 +36,7 @@ ffsll (long long int x)
   return cnt + 1;
 }
 
-#ifdef __LP64__
+#ifndef __ILP32__
 #undef ffsl
 weak_alias (ffsll, ffsl)
 #endif
index 48ba6a1516b5fa227601514bfe1ac123dffe15f1..ca9de75843d3eda541cbe6a3399cf9b2f051e4d2 100644 (file)
@@ -133,7 +133,7 @@ if ${libc_cv_x32+:} false; then :
 else
     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
-#ifdef __LP64__
+#ifndef __ILP32__
 # error not x32
 #endif
 int
index 1f049c7a047031a1ef901c2abbe3845ee6a58916..600700ea1a6a423994fd039c5d9ef06e8e1de43b 100644 (file)
@@ -8,7 +8,7 @@ x86_64)
   AC_CACHE_CHECK(whether $CC compiles in -mx32 mode by default,
                 libc_cv_x32, [dnl
   AC_TRY_COMPILE(dnl
-[#ifdef __LP64__
+[#ifndef __ILP32__
 # error not x32
 #endif], [], libc_cv_x32=yes, libc_cv_x32=no)])
   if test $libc_cv_x32 = yes; then