From patchwork Wed Jul 6 22:11:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 71493 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp1091644qgy; Wed, 6 Jul 2016 15:12:13 -0700 (PDT) X-Received: by 10.66.25.43 with SMTP id z11mr41579312paf.63.1467843133620; Wed, 06 Jul 2016 15:12:13 -0700 (PDT) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id j10si1737522pax.283.2016.07.06.15.12.13 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Jul 2016 15:12:13 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-71588-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org; spf=pass (google.com: domain of libc-alpha-return-71588-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=libc-alpha-return-71588-patch=linaro.org@sourceware.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type; q=dns; s=default; b=PTxmKCSdT0V8YE5L 9ZsnxoxJeSbSGrlnSi1WILoZxBHJyr/AKZTKSkhaCysPATWTfukJgrblASOcxb6r PKK0yrqny/tD5191swFkCJhSvsSHcUWi2tSKc9Mey9yz2Id58cHtM/IHeLP6G1gN 9/085grPb+bgr9ZIJkSTy2d0tIU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:message-id :mime-version:content-type; s=default; bh=5qN/X1KONbs9b3kiP1qdqR UWaTw=; b=qMzDaIIo/yRwIecFbEEo5Bozg+ppsEYW0KeRMRI1Lm2Jt7tRUEU1pI brk51AwcB+ufVAolkP6ZGz18xQ872coqpQzI/CYuh6DgZeCJV6dCHmRGfN7iU+qG XT9Q9EkNTmFf+CWHmfIYUHI01qYt9Nzq8/1vc7oEqQV+IxL61WmSo= Received: (qmail 28594 invoked by alias); 6 Jul 2016 22:12:02 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 28572 invoked by uid 89); 6 Jul 2016 22:12:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=HX-HELO:sk:NAM03-D, H*r:sk:mail-dm, H*r:104.47.41, H*r:sk:NAM03-D X-HELO: NAM03-DM3-obe.outbound.protection.outlook.com Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; From: Yury Norov To: , CC: , , , , , , , , , , , Andrew Pinski , Yury Norov Subject: [PATCH] all: #define __WORDSIZE32_SIZE_ULONG and __WORDSIZE32_PTRDIFF_LONG everywhere Date: Thu, 7 Jul 2016 01:11:34 +0300 Message-ID: <1467843094-2914-1-git-send-email-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-ClientProxiedBy: VI1PR0901CA0055.eurprd09.prod.outlook.com (10.167.203.151) To BN4PR07MB2243.namprd07.prod.outlook.com (10.164.63.149) X-MS-Office365-Filtering-Correlation-Id: 290eb3b5-c32c-458d-0013-08d3a5ea85b0 X-Microsoft-Exchange-Diagnostics: 1; BN4PR07MB2243; 2:Sj1ODbD22E97yuXkaYreOJELFSROE0MzYf/ORKmESQ3CURuPGO9FT/mx9AQxTl8VDrLYRILnAfPKlfaQ27NVR8OmLI0CZxgl8oh1l5qXs5bT4z85nbCmmE5tHlHzZICAQxe0f2+XD+62CRSb6f5yoFEFGMtdUX2nPjgIsmyzyM+nTPqeupLK5rEe+gRTfAzG; 3:CELdZZrEhRqbqRyTvLh9/PbpSLyaHwifvzk/T9Cdds34Bb6rEo4akTylIGI21X1pg8hsLMt59ZTkP1m2JJ9yDSHFGOPs5T8DGwf2GGqHhEwfNctZgctvUgs/Jo0TUyko; 25:OWSrUgEgAob4mqZ3NObryKCujcCuPpMpAodwdGdsDrbYkrU3vNEpSmJiEF2lQuN+rWNhTnDmCO1CfklfagU5oC5yAJtLR3pRUaKYE8iTxkXnRZaI9zvTQfXcfbINkPWqT4X/9Laen1eCmdN3fDQXpRb74It3FUVmRdh8RSNjta7yCVu3f81a+ZBS+xQUdolvI2oQfSu9ozEj5ZXTM+cWsyOHNtC87oU1cPInT5mARYzgfQfhC5/MZV/PDV7h4GPldUSmQh2TeBtnqRDUfm5O/2g2aTSycTamynb61Xpb6KEJdUuCVuv5tLuDZiNw7SiAAXPT/6MT/5+Dq7IvXlFj4O79RrMjW2tAh5FTGHAYuZa39t4oiZU1ToUF3ZW0ihj4hN913U4bdQ9O12sm4oFSia9NjPpYvViQqX0f6Vjd324=; 31:rZ41NBM6ZK1Xx1gTuWEyQbDQ0bCfMNcKCaclm5CjOudmWbfToegO3cl3jT3a1QonIgPLnwaOAS3AdZxaZYxnbF0JSYNWaxsCQTdlZxxw4iIw2NBkxE6pwXl7zSMbpHAtaGQD+cxMkuEeG+WDOWF/f8+HJTuU/djocP4vrx+ndTtzpbwVVkNTK0d9ijrM5yBFX8Wc/5VqQcHnG78Y9vLcQA== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN4PR07MB2243; X-Microsoft-Exchange-Diagnostics: 1; BN4PR07MB2243; 20:PoZ+9XmxT16isEHK3sZJUJAYAYgNXu3GVJiNSnllHmipOblYfj75KCXaZztpQc5+lvPnz7Rip6sdwD2cyMbsIC54K/eVRVzWkunFBh2LwvqQ78XKPKimMwx5VYcjq4HxX/0BWXcFvpKDLvsrXU1yMF+fdCWeB3DB/hqlfU9chGA5f7/HUdkbjEKgJOaoCWHQg5CZ4kmmm6G5f8sAVa8PYtysU9HsDY48WM907kJNLF4PKZj3f5pKbYGTdLPn2gNQ0onI8Zn3A2ccHD7huceaOXudK7N1hgS5Bwa/YHZSvu6szl41pCoK9P9l5rHOvINoxDuauUpjJXjjJB0vLILfgRgayYgRyrMODC+o49FVLGOPl5OTFwYlinTvLxXj+fTsyEsNw5KL2PEJA7oH/trcISQNfPZYog0ZdhTG9/bNDM+9QPOOouYUzZwT1/pDX2SUEKv2Z7VmXvTnr4VAjTkZx/8qkoybBacwRY6E5D0Gh0liYEdjC9d6CsVkwjNLXiS1b/o7YyZDfGh3aur/rTNpgvGbpxG6caRhZqZnoQFITzOC1je22m6ZaKK/qu0RGiN05nOU3WwJE+gH0JMH76KuqzDQhffBCXQuhwVxKmZ9bUU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(250305191791016)(22074186197030); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001); SRVR:BN4PR07MB2243; BCL:0; PCL:0; RULEID:; SRVR:BN4PR07MB2243; X-Microsoft-Exchange-Diagnostics: 1; BN4PR07MB2243; 4:VjejtHSN48JIqzsYsQ6Tiu1l3ytUjT2418B29pSfz7BdmQbgoSObs7lUOlsnIsSGlX2V2GDcDBMnDs98BJ5zhPoVVJQ5Wti/4f/Op0EaBMU5zgCb14aqaSNx0o+beqmsZdkBw3hm4d7N6RhrOG5H0ezUnvLvp4JykEnp2zTnIqPwz3WaH4l2QcNjeFGDLoJ8aDBDIJqjR2YQB+Am6X0zMlyWX7d8PTJGguJZrIztYMqBmdLRAKQnto9pZJKAfPhgOul9ErmXcJ1mm1lz1604XtvcSe9TDssa+4R/ggKD9mzCAO9c3rM6RVv7FRb+12Iz5XHb4ptdiLqCDjIfllfD3RX4ulrkt8/gish0y+0CFVJRjjZdxrMscs9/ob10QdGVfiFnzun7OFn3NVT0qgPfR+6Ix1UF/8UDfFX3THuVXRJIigdCqnBDkcMC7WGwJiNn X-Forefront-PRVS: 0995196AA2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(4001430100002)(106356001)(33646002)(5001770100001)(4326007)(15975445007)(92566002)(8676002)(76506005)(97736004)(229853001)(81156014)(5003940100001)(81166006)(68736007)(66066001)(36756003)(575784001)(101416001)(3846002)(7736002)(7846002)(305945005)(48376002)(189998001)(50226002)(42186005)(19580405001)(6116002)(77096005)(19580395003)(50986999)(2906002)(586003)(50466002)(105586002)(47776003)(107886002)(15760500001)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN4PR07MB2243; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: caviumnetworks.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN4PR07MB2243; 23:3wFvAYVToEdgWL0VU3Kx39q7n1r+alP2PsxHkHNrT?= =?us-ascii?Q?0j6ihDLXzf4YZc6fybq0ODAJ1W4R87uyU0o9RIiU2YLG6ViLvMe6s6nC3t2b?= =?us-ascii?Q?FlM+LKZ/vGVcgvmYAmPktbdMpjfis8ESyn/2srl3X0nPFY+Bizkls1AxHxup?= =?us-ascii?Q?LuSoZ+ZIwnHkGcluFnJJpqyxuYpikEXMD14vDj9/W/Hh8NE8BY5H2pd3ArK5?= =?us-ascii?Q?eceYnaS4SdBlpa05RexQO0Kr5eWGbudT4cTaFbBxTJpD8wytPpwATBNhZm3k?= =?us-ascii?Q?V6kRRZkhVBEumbCcr6oUWbXj92ev6AVrtMgpJgbFmcGty6XDQtaGU4K7Z960?= =?us-ascii?Q?88cMYBCM8vzP08uJl5xD0LqNQ/BOUGczAYW+HzEZ28XQTHyMC4Rf8HXzLZCy?= =?us-ascii?Q?UspuHuZCOOt3IV6EK0NPYftV/VHlK2ZHBxMNnmjIzVRViOQeSbpIrat8Crv1?= =?us-ascii?Q?E27QMd4d3ynyzzxo+uATz96bEx27hBRgR7CMqay5ww3Y9zRu03yE8EHz2j8r?= =?us-ascii?Q?HDRT2CgysG/eQ2HZFdQt3RpciYMTFEz07dw13AZnFVQdpoDAKFFdhMzlEdRh?= =?us-ascii?Q?xYTGweQTLSRnBrUmDIw9cijyOoMmFaRYLyAke5tPNTTgbSOvdhWNnM46jtjK?= =?us-ascii?Q?9pzYWtYvmcUogzdBsdMX1vutx59VTrQTSXaguYubtpthQuSwnq0/EMvNXnNh?= =?us-ascii?Q?4ikMecyMPqQCJ+iRG6dOLS9sIGdPi/L+gJgcfqH3K9jwDC4CBAZHjMYYgnit?= =?us-ascii?Q?x+CSAqCssJYdyVT0muO9it+ZIaqDYMDpOaLtv3yiQzTg2o+AL0CQ4qT/HWux?= =?us-ascii?Q?tV457mKX2EtBSu5sO6Ad011i2F9ZetUyX5zGKsi/2UEo9KeWB0wMtb5E5mUk?= =?us-ascii?Q?H4t5j3L7bSckdg17EuLzpfm+IwEHTK4SpuOdDznRgb84PEaZgLkv5EhNJU9Y?= =?us-ascii?Q?g7PoOCt0lB33BcwAaxNYUPneY5mnDo5AJ+X1c79cbA0437o4mu3Y6UpGf46P?= =?us-ascii?Q?kKa9QsdpAY0J8totPLDyNjEsAerM1EoSo+fUVnbXB6umUWfRevBU/t0zXQez?= =?us-ascii?Q?ufgF2lb+lYaDrpPUwxtDLfOy7/hyX1bGBgQRzhFm0Ga+JxjI1LCJ6tUoS97A?= =?us-ascii?Q?gRhEySygKhrKtBXGuUvjxKk3CR/fEECOoVI4IIeabxZX8xSrIMwLpY1f06gq?= =?us-ascii?Q?QeIrfHxbcZLcr0=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN4PR07MB2243; 6:AxXb6BxMaF4YFPM5ubM5ZWL4laj6Hn6Ep2+KapJCieXA7C4Blu4b3gqtDPj/q2fQnrqRejUp/lU70t3X9+AHD1VO3SGfoHHRIre/6nrOCn9O4YiylgY/dFAahxtOs0Jm2PuHrIjl7UeCRgpbXdWmbG8H4maEpO97GT6SS8pAzFw2CM6qX1tbFMQs0o+4/kO66Qrg0v7Hov7wsnv5M9j7eRrTt0WTAsxaP0fJM4vgF4p9XgdIkWPrZKg0sK15DJFm+XBcV3T915IkTtPKtv0ao4llTsD+fdgwA2euHSJfzyI=; 5:RyccSdljCZFNTOKrQnRyvwiexyIWuYReQeEqCKwtbk/9FKjvDXH3i4Aj3fCk8Mubwnd1at0KBvJBXTKQlFVSmj7ru+6I34KD7+SPBSqPGUz4sc+M9AGkjf9endg9MlgV0UgDsI//90BoXPFPrbkRPQ==; 24:m2B1FUId00jxycmzRyP9n9+wltWZHMBNIsQc2J0BYHCOwE0Zikm4cMJQTtUpR3UEoyXwZr1DOuiseDihYFrsQsANJeGaoK6JBMYVARPpH6c=; 7:677Eqfn0UOrMLbjqxNAAHdbeM7AYFeeMNvXVVEkShtIco59oO8WQHcamYZ542rO/Sv6UR2sxdLKHPmy4kQYlOMi02077fxmHFpQN0erBBialkf5mxeZSOVnc/fOAi84b2+Nj9N6FkSg9qLFMDL/8N4BlSgY1isUN/nTfoZAwsChJPizSZ0uUrjWN31mjHFj8YhJAHClGhifZOLgUPKzV/hL5Mj+ktrm2Oa3z39pL6as6crfR3OdYlKDg92eVT0E6 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2016 22:11:46.9423 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN4PR07MB2243 From: Andrew Pinski __WORDSIZE32_SIZE_ULONG should be defined to 0 but it's not defined at all for many targets. __WORDSIZE32_PTRDIFF_LONG is introduced for aarch64/ilp32, and also defined for all other ports as well. This patch is the part of aarch64/ilp32 work but it can be applied separately as it fixes inconsistency in GLIBC. * sysdeps/aarch64/bits/wordsize.h : New file (__WORDSIZE32_SIZE_ULONG): Define. (__WORDSIZE32_PTRDIFF_LONG): New define. * sysdeps/mips/bits/wordsize.h: Likewise. * sysdeps/powerpc/powerpc32/bits/wordsize.h: Likewise. * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise. * sysdeps/s390/s390-32/bits/wordsize.h: Likewise. * sysdeps/s390/s390-64/bits/wordsize.h: Likewise. * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise. * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise. * sysdeps/tile/tilegx/bits/wordsize.h: Likewise. * sysdeps/tile/tilepro/bits/wordsize.h: Likewise. * sysdeps/unix/sysv/linux/alpha/bits/wordsize.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/wordsize.h: Likewise. * sysdeps/wordsize-32/bits/wordsize.h: Likewise. * sysdeps/wordsize-64/bits/wordsize.h: Likewise. * sysdeps/x86/bits/wordsize.h: Likewise. * sysdeps/generic/stdint.h: Use #if instead of #ifdef for that macros. Signed-off-by: Andrew Pinski Signed-off-by: Yury Norov --- sysdeps/aarch64/bits/wordsize.h | 29 +++++++++++++++++++++++++ sysdeps/generic/stdint.h | 11 +++++++--- sysdeps/mips/bits/wordsize.h | 4 ++++ sysdeps/powerpc/powerpc32/bits/wordsize.h | 4 ++++ sysdeps/powerpc/powerpc64/bits/wordsize.h | 4 ++++ sysdeps/s390/s390-32/bits/wordsize.h | 3 +++ sysdeps/s390/s390-64/bits/wordsize.h | 3 +++ sysdeps/sparc/sparc32/bits/wordsize.h | 4 ++++ sysdeps/sparc/sparc64/bits/wordsize.h | 4 ++++ sysdeps/tile/tilegx/bits/wordsize.h | 4 ++++ sysdeps/tile/tilepro/bits/wordsize.h | 4 ++++ sysdeps/unix/sysv/linux/alpha/bits/wordsize.h | 4 ++++ sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h | 4 ++++ sysdeps/unix/sysv/linux/sparc/bits/wordsize.h | 4 ++++ sysdeps/wordsize-32/bits/wordsize.h | 4 ++++ sysdeps/wordsize-64/bits/wordsize.h | 4 ++++ sysdeps/x86/bits/wordsize.h | 3 +++ 17 files changed, 94 insertions(+), 3 deletions(-) create mode 100644 sysdeps/aarch64/bits/wordsize.h -- 2.7.4 diff --git a/sysdeps/aarch64/bits/wordsize.h b/sysdeps/aarch64/bits/wordsize.h new file mode 100644 index 0000000..8bcbea9 --- /dev/null +++ b/sysdeps/aarch64/bits/wordsize.h @@ -0,0 +1,29 @@ +/* Determine the wordsize from the preprocessor defines. + + Copyright (C) 2016 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C 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 C 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 C Library; if not, see + . */ + +#ifdef __LP64__ +# define __WORDSIZE 64 +# define __WORDSIZE32_SIZE_ULONG 0 +# define __WORDSIZE32_PTRDIFF_LONG 0 +#else +# define __WORDSIZE 32 +# define __WORDSIZE32_SIZE_ULONG 1 +# define __WORDSIZE32_PTRDIFF_LONG 1 +#endif + diff --git a/sysdeps/generic/stdint.h b/sysdeps/generic/stdint.h index 4427627..3d26d0b 100644 --- a/sysdeps/generic/stdint.h +++ b/sysdeps/generic/stdint.h @@ -248,8 +248,13 @@ typedef unsigned long long int uintmax_t; # define PTRDIFF_MIN (-9223372036854775807L-1) # define PTRDIFF_MAX (9223372036854775807L) # else -# define PTRDIFF_MIN (-2147483647-1) -# define PTRDIFF_MAX (2147483647) +# if __WORDSIZE32_PTRDIFF_LONG +# define PTRDIFF_MIN (-2147483647L-1) +# define PTRDIFF_MAX (2147483647L) +# else +# define PTRDIFF_MIN (-2147483647-1) +# define PTRDIFF_MAX (2147483647) +# endif # endif /* Limits of `sig_atomic_t'. */ @@ -260,7 +265,7 @@ typedef unsigned long long int uintmax_t; # if __WORDSIZE == 64 # define SIZE_MAX (18446744073709551615UL) # else -# ifdef __WORDSIZE32_SIZE_ULONG +# if __WORDSIZE32_SIZE_ULONG # define SIZE_MAX (4294967295UL) # else # define SIZE_MAX (4294967295U) diff --git a/sysdeps/mips/bits/wordsize.h b/sysdeps/mips/bits/wordsize.h index bc90435..896e6ce 100644 --- a/sysdeps/mips/bits/wordsize.h +++ b/sysdeps/mips/bits/wordsize.h @@ -21,3 +21,7 @@ #if _MIPS_SIM == _ABI64 # define __WORDSIZE_TIME64_COMPAT32 1 #endif + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/powerpc/powerpc32/bits/wordsize.h b/sysdeps/powerpc/powerpc32/bits/wordsize.h index f31ac9a..5d4bfcc 100644 --- a/sysdeps/powerpc/powerpc32/bits/wordsize.h +++ b/sysdeps/powerpc/powerpc32/bits/wordsize.h @@ -6,3 +6,7 @@ #else # define __WORDSIZE 32 #endif + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/powerpc/powerpc64/bits/wordsize.h b/sysdeps/powerpc/powerpc64/bits/wordsize.h index f31ac9a..5d4bfcc 100644 --- a/sysdeps/powerpc/powerpc64/bits/wordsize.h +++ b/sysdeps/powerpc/powerpc64/bits/wordsize.h @@ -6,3 +6,7 @@ #else # define __WORDSIZE 32 #endif + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/s390/s390-32/bits/wordsize.h b/sysdeps/s390/s390-32/bits/wordsize.h index da791fa..d9307dc 100644 --- a/sysdeps/s390/s390-32/bits/wordsize.h +++ b/sysdeps/s390/s390-32/bits/wordsize.h @@ -17,3 +17,6 @@ # define __NO_LONG_DOUBLE_MATH 1 # endif #endif + +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/s390/s390-64/bits/wordsize.h b/sysdeps/s390/s390-64/bits/wordsize.h index da791fa..d9307dc 100644 --- a/sysdeps/s390/s390-64/bits/wordsize.h +++ b/sysdeps/s390/s390-64/bits/wordsize.h @@ -17,3 +17,6 @@ # define __NO_LONG_DOUBLE_MATH 1 # endif #endif + +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/sparc/sparc32/bits/wordsize.h b/sysdeps/sparc/sparc32/bits/wordsize.h index d8fd1a5..1e53e9b 100644 --- a/sysdeps/sparc/sparc32/bits/wordsize.h +++ b/sysdeps/sparc/sparc32/bits/wordsize.h @@ -6,3 +6,7 @@ #else # define __WORDSIZE 32 #endif + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/sparc/sparc64/bits/wordsize.h b/sysdeps/sparc/sparc64/bits/wordsize.h index d8fd1a5..1e53e9b 100644 --- a/sysdeps/sparc/sparc64/bits/wordsize.h +++ b/sysdeps/sparc/sparc64/bits/wordsize.h @@ -6,3 +6,7 @@ #else # define __WORDSIZE 32 #endif + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/tile/tilegx/bits/wordsize.h b/sysdeps/tile/tilegx/bits/wordsize.h index 5d4e4b4..03b2e06 100644 --- a/sysdeps/tile/tilegx/bits/wordsize.h +++ b/sysdeps/tile/tilegx/bits/wordsize.h @@ -6,3 +6,7 @@ #else # define __WORDSIZE 32 #endif + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/tile/tilepro/bits/wordsize.h b/sysdeps/tile/tilepro/bits/wordsize.h index da587a2..e3319cc 100644 --- a/sysdeps/tile/tilepro/bits/wordsize.h +++ b/sysdeps/tile/tilepro/bits/wordsize.h @@ -1,3 +1,7 @@ /* Determine the wordsize from the preprocessor defines. */ #define __WORDSIZE 32 + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/unix/sysv/linux/alpha/bits/wordsize.h b/sysdeps/unix/sysv/linux/alpha/bits/wordsize.h index 51fc433..fd8670b 100644 --- a/sysdeps/unix/sysv/linux/alpha/bits/wordsize.h +++ b/sysdeps/unix/sysv/linux/alpha/bits/wordsize.h @@ -27,3 +27,7 @@ # define __NO_LONG_DOUBLE_MATH 1 # endif #endif + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h b/sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h index 3e8a1e0..326c389 100644 --- a/sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h +++ b/sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h @@ -17,3 +17,7 @@ # define __NO_LONG_DOUBLE_MATH 1 # endif #endif + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/unix/sysv/linux/sparc/bits/wordsize.h b/sysdeps/unix/sysv/linux/sparc/bits/wordsize.h index 2d958d2..baed304 100644 --- a/sysdeps/unix/sysv/linux/sparc/bits/wordsize.h +++ b/sysdeps/unix/sysv/linux/sparc/bits/wordsize.h @@ -18,3 +18,7 @@ # endif # endif #endif + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/wordsize-32/bits/wordsize.h b/sysdeps/wordsize-32/bits/wordsize.h index 2aa16bc..63f6af5 100644 --- a/sysdeps/wordsize-32/bits/wordsize.h +++ b/sysdeps/wordsize-32/bits/wordsize.h @@ -16,3 +16,7 @@ . */ #define __WORDSIZE 32 + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/wordsize-64/bits/wordsize.h b/sysdeps/wordsize-64/bits/wordsize.h index 0944f9e..6e2dfdd 100644 --- a/sysdeps/wordsize-64/bits/wordsize.h +++ b/sysdeps/wordsize-64/bits/wordsize.h @@ -16,3 +16,7 @@ . */ #define __WORDSIZE 64 + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0 + diff --git a/sysdeps/x86/bits/wordsize.h b/sysdeps/x86/bits/wordsize.h index e25af28..66d9abf 100644 --- a/sysdeps/x86/bits/wordsize.h +++ b/sysdeps/x86/bits/wordsize.h @@ -11,3 +11,6 @@ /* Both x86-64 and x32 use the 64-bit system call interface. */ # define __SYSCALL_WORDSIZE 64 #endif + +#define __WORDSIZE32_SIZE_ULONG 0 +#define __WORDSIZE32_PTRDIFF_LONG 0