diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-11-21 16:44:07 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-11-23 09:19:29 -0800 |
commit | 9b1698ccf239883bba6e000301c20dc93313eca7 (patch) | |
tree | fe48319646edc02d51f57a2757d99e326ee3334e | |
parent | ce04fd4c17043a88568614a068dfe342186bc1bd (diff) | |
download | glibc-9b1698ccf239883bba6e000301c20dc93313eca7.tar.gz |
Add misc x32 support.
2011-11-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/x86_64/x32/divdi3.c: New.
* sysdeps/x86_64/x32/ffs.c: Likewise.
* sysdeps/x86_64/x32/gmp-mparam.h: Likewise.
* sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
-rw-r--r-- | ChangeLog.x32 | 7 | ||||
-rw-r--r-- | sysdeps/x86_64/x32/divdi3.c | 1 | ||||
-rw-r--r-- | sysdeps/x86_64/x32/ffs.c | 1 | ||||
-rw-r--r-- | sysdeps/x86_64/x32/gmp-mparam.h | 33 | ||||
-rw-r--r-- | sysdeps/x86_64/x32/symbol-hacks.h | 1 |
5 files changed, 43 insertions, 0 deletions
diff --git a/ChangeLog.x32 b/ChangeLog.x32 index 151ea30661..f212e9ea88 100644 --- a/ChangeLog.x32 +++ b/ChangeLog.x32 @@ -1,5 +1,12 @@ 2011-11-21 H.J. Lu <hongjiu.lu@intel.com> + * sysdeps/x86_64/x32/divdi3.c: New. + * sysdeps/x86_64/x32/ffs.c: Likewise. + * sysdeps/x86_64/x32/gmp-mparam.h: Likewise. + * sysdeps/x86_64/x32/symbol-hacks.h: Likewise. + +2011-11-21 H.J. Lu <hongjiu.lu@intel.com> + * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP. (stackinfo_sub_sp): Likewise. diff --git a/sysdeps/x86_64/x32/divdi3.c b/sysdeps/x86_64/x32/divdi3.c new file mode 100644 index 0000000000..bc7b4c4441 --- /dev/null +++ b/sysdeps/x86_64/x32/divdi3.c @@ -0,0 +1 @@ +/* Fortunately nothing to do. */ diff --git a/sysdeps/x86_64/x32/ffs.c b/sysdeps/x86_64/x32/ffs.c new file mode 100644 index 0000000000..393f501e0a --- /dev/null +++ b/sysdeps/x86_64/x32/ffs.c @@ -0,0 +1 @@ +#include <sysdeps/i386/i686/ffs.c> diff --git a/sysdeps/x86_64/x32/gmp-mparam.h b/sysdeps/x86_64/x32/gmp-mparam.h new file mode 100644 index 0000000000..33cb36edfd --- /dev/null +++ b/sysdeps/x86_64/x32/gmp-mparam.h @@ -0,0 +1,33 @@ +/* gmp-mparam.h -- Compiler/machine parameter header file. + +Copyright (C) 2011 Free Software Foundation, Inc. + +This file is part of the GNU MP Library. + +The GNU MP Library is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or (at your +option) any later version. + +The GNU MP Library is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public License +along with the GNU MP Library; see the file COPYING.LIB. If not, write to +the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + +#if defined __GMP_H__ && ! defined _LONG_LONG_LIMB +#error "Included too late for _LONG_LONG_LIMB to take effect" +#endif + +#define _LONG_LONG_LIMB +#define BITS_PER_MP_LIMB 64 +#define BYTES_PER_MP_LIMB 8 +#define BITS_PER_LONGINT __WORDSIZE +#define BITS_PER_INT 32 +#define BITS_PER_SHORTINT 16 +#define BITS_PER_CHAR 8 +/* Prefer long long. */ +#define PREFER_LONG_LONG diff --git a/sysdeps/x86_64/x32/symbol-hacks.h b/sysdeps/x86_64/x32/symbol-hacks.h new file mode 100644 index 0000000000..bc7b4c4441 --- /dev/null +++ b/sysdeps/x86_64/x32/symbol-hacks.h @@ -0,0 +1 @@ +/* Fortunately nothing to do. */ |