From patchwork Thu Dec 23 14:43:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 49211 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A9B16385841C for ; Thu, 23 Dec 2021 14:43:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9B16385841C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1640270638; bh=vGtgpalsVqm1/2AJpDc/6czZuasQoOg4RCVkaRv62hw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=JorVu9f4h3DGpEI8tcqXdsoBaSpa24XSbhB5EEi3B+/Z4qkKSbghlcYsCt23f2a6+ /kvbxgEdT2aSvA/GtknUXiE8QHZfp9jBv7xmKbf+8jV1+bNIogypMPorcwEh5HtQq8 QBC5n0erNDusFGBxotZUnAQjlB5cemr5kHfztVtk= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by sourceware.org (Postfix) with ESMTPS id DFB40385843E for ; Thu, 23 Dec 2021 14:43:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DFB40385843E Received: by mail-qv1-xf33.google.com with SMTP id kk22so5418245qvb.0 for ; Thu, 23 Dec 2021 06:43:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=vGtgpalsVqm1/2AJpDc/6czZuasQoOg4RCVkaRv62hw=; b=53WdcvNI0cvCUeGz/BisRe7SsGAjwZXO3eu5Ri20uR2RXRWkCVieyAlCLssBZRkbwb gDijI7T1PvfCvS3JJenCqlirJTZqDW0OuoFSLUHrMjSDzAWOJpup6iyhWwS42bZcFtSy OuEUnUqj4zfWWnjlGxMFkOSrJ6d5q4F2tpZqSX2XfSAfYoq7ohy3tAWz9qxQ5Hz6w5dO kjRGPgcTdOWKYpfw8eIJOkAZJq/+Zmr6jzJRfDd/+3E2IzIPa4F1dFq7r2pNMv8xIubl KnblVuPYA2CgFA5DkpP1YJ0nCeWFs6Wjz+FMzf3Y4HshYI9SbCu/BB7zDd36Ix4rCftU kP4Q== X-Gm-Message-State: AOAM532GI1jer9xLXDcL0D9ckQOpBAN+5v2WPGNBkfQa1Zn1H6Zw8tyg vi9I1hjSwgWkDOinTVQmVKmFEY78HINnmg== X-Google-Smtp-Source: ABdhPJxTqwxgBXAMZPKdvmwjTegpiGNbGX1+Yy1rEwpgg7xq5x9w97dHkAIPaYtlEO2/R+NRjQEGdA== X-Received: by 2002:a05:6214:20e2:: with SMTP id 2mr2006370qvk.48.1640270602932; Thu, 23 Dec 2021 06:43:22 -0800 (PST) Received: from birita.. ([2804:431:c7cb:3b1e:1fd1:c581:58d8:4df2]) by smtp.gmail.com with ESMTPSA id e7sm4347530qtx.72.2021.12.23.06.43.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Dec 2021 06:43:22 -0800 (PST) To: libc-alpha@sourceware.org Subject: [COMMITTED] Set default __TIMESIZE default to 64 Date: Thu, 23 Dec 2021 11:43:19 -0300 Message-Id: <20211223144319.3093308-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" This is expected size for newer ABIs. --- bits/timesize.h | 4 +--- .../linux/arc => mach/hurd}/bits/timesize.h | 11 ++++----- sysdeps/unix/sysv/linux/arm/bits/timesize.h | 20 ++++++++++++++++ sysdeps/unix/sysv/linux/csky/bits/timesize.h | 20 ++++++++++++++++ sysdeps/unix/sysv/linux/hppa/bits/timesize.h | 20 ++++++++++++++++ sysdeps/unix/sysv/linux/m68k/bits/timesize.h | 20 ++++++++++++++++ .../sysv/linux/microblaze/bits/timesize.h | 20 ++++++++++++++++ sysdeps/unix/sysv/linux/mips/bits/timesize.h | 24 +++++++++++++++++++ .../linux/{riscv => nios2}/bits/timesize.h | 10 ++++---- .../linux/powerpc/powerpc32/bits/timesize.h | 20 ++++++++++++++++ .../sysv/linux/s390/s390-32/bits/timesize.h | 20 ++++++++++++++++ sysdeps/unix/sysv/linux/sh/bits/timesize.h | 20 ++++++++++++++++ .../sysv/linux/sparc/sparc32/bits/timesize.h | 20 ++++++++++++++++ sysdeps/unix/sysv/linux/x86/bits/timesize.h | 2 ++ 14 files changed, 216 insertions(+), 15 deletions(-) rename sysdeps/{unix/sysv/linux/arc => mach/hurd}/bits/timesize.h (74%) create mode 100644 sysdeps/unix/sysv/linux/arm/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/csky/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/m68k/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/microblaze/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/mips/bits/timesize.h rename sysdeps/unix/sysv/linux/{riscv => nios2}/bits/timesize.h (77%) create mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc32/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/s390/s390-32/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/sh/bits/timesize.h create mode 100644 sysdeps/unix/sysv/linux/sparc/sparc32/bits/timesize.h diff --git a/bits/timesize.h b/bits/timesize.h index 11a9c9a499..2b85c51560 100644 --- a/bits/timesize.h +++ b/bits/timesize.h @@ -16,7 +16,5 @@ License along with the GNU C Library; if not, see . */ -#include - /* Size in bits of the 'time_t' type of the default ABI. */ -#define __TIMESIZE __WORDSIZE +#define __TIMESIZE 64 diff --git a/sysdeps/unix/sysv/linux/arc/bits/timesize.h b/sysdeps/mach/hurd/bits/timesize.h similarity index 74% rename from sysdeps/unix/sysv/linux/arc/bits/timesize.h rename to sysdeps/mach/hurd/bits/timesize.h index 44fea80ca4..bf94764d98 100644 --- a/sysdeps/unix/sysv/linux/arc/bits/timesize.h +++ b/sysdeps/mach/hurd/bits/timesize.h @@ -1,5 +1,5 @@ -/* Bit size of the time_t type at glibc build time, general case. - Copyright (C) 2020-2021 Free Software Foundation, Inc. +/* Bit size of the time_t type at glibc build time, Hurd. + Copyright (C) 2021 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 @@ -14,8 +14,7 @@ You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see - . */ + . */ -#include - -#define __TIMESIZE 64 +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/arm/bits/timesize.h b/sysdeps/unix/sysv/linux/arm/bits/timesize.h new file mode 100644 index 0000000000..4d3e7c2259 --- /dev/null +++ b/sysdeps/unix/sysv/linux/arm/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/ARM. + Copyright (C) 2021 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 + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/csky/bits/timesize.h b/sysdeps/unix/sysv/linux/csky/bits/timesize.h new file mode 100644 index 0000000000..1a299269f0 --- /dev/null +++ b/sysdeps/unix/sysv/linux/csky/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/csky. + Copyright (C) 2021 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 + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/hppa/bits/timesize.h b/sysdeps/unix/sysv/linux/hppa/bits/timesize.h new file mode 100644 index 0000000000..ec57054979 --- /dev/null +++ b/sysdeps/unix/sysv/linux/hppa/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/HPPA. + Copyright (C) 2021 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 + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/m68k/bits/timesize.h b/sysdeps/unix/sysv/linux/m68k/bits/timesize.h new file mode 100644 index 0000000000..9da243eb04 --- /dev/null +++ b/sysdeps/unix/sysv/linux/m68k/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/m68k. + Copyright (C) 2021 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 + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/microblaze/bits/timesize.h b/sysdeps/unix/sysv/linux/microblaze/bits/timesize.h new file mode 100644 index 0000000000..2f0214790a --- /dev/null +++ b/sysdeps/unix/sysv/linux/microblaze/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/MicroBlaze. + Copyright (C) 2021 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 + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/mips/bits/timesize.h b/sysdeps/unix/sysv/linux/mips/bits/timesize.h new file mode 100644 index 0000000000..95a27ad5b6 --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/bits/timesize.h @@ -0,0 +1,24 @@ +/* Bit size of the time_t type at glibc build time, Linux/MIPS. + Copyright (C) 2021 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 + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#if _MIPS_SIM == _ABI64 +# define __TIMESIZE 64 +#else +# define __TIMESIZE 32 +#endif diff --git a/sysdeps/unix/sysv/linux/riscv/bits/timesize.h b/sysdeps/unix/sysv/linux/nios2/bits/timesize.h similarity index 77% rename from sysdeps/unix/sysv/linux/riscv/bits/timesize.h rename to sysdeps/unix/sysv/linux/nios2/bits/timesize.h index 1843ad57d8..29d1730d39 100644 --- a/sysdeps/unix/sysv/linux/riscv/bits/timesize.h +++ b/sysdeps/unix/sysv/linux/nios2/bits/timesize.h @@ -1,5 +1,5 @@ -/* Bit size of the time_t type at glibc build time, RISC-V case. - Copyright (C) 2020-2021 Free Software Foundation, Inc. +/* Bit size of the time_t type at glibc build time, Linux/NIOS2. + Copyright (C) 2021 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 @@ -16,7 +16,5 @@ License along with the GNU C Library; if not, see . */ -#include - -/* RV32 and RV64 both use 64-bit time_t */ -#define __TIMESIZE 64 +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/bits/timesize.h b/sysdeps/unix/sysv/linux/powerpc/powerpc32/bits/timesize.h new file mode 100644 index 0000000000..33a8bf9862 --- /dev/null +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/PowerPC 32-bits. + Copyright (C) 2021 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 + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/bits/timesize.h b/sysdeps/unix/sysv/linux/s390/s390-32/bits/timesize.h new file mode 100644 index 0000000000..a3eb9455cd --- /dev/null +++ b/sysdeps/unix/sysv/linux/s390/s390-32/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/s390 32-bits. + Copyright (C) 2021 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 + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/sh/bits/timesize.h b/sysdeps/unix/sysv/linux/sh/bits/timesize.h new file mode 100644 index 0000000000..a9ad07b823 --- /dev/null +++ b/sysdeps/unix/sysv/linux/sh/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/sh. + Copyright (C) 2021 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 + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/bits/timesize.h b/sysdeps/unix/sysv/linux/sparc/sparc32/bits/timesize.h new file mode 100644 index 0000000000..586f4d9fdc --- /dev/null +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/bits/timesize.h @@ -0,0 +1,20 @@ +/* Bit size of the time_t type at glibc build time, Linux/sparc 32-bits. + Copyright (C) 2021 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 + . */ + +/* Size in bits of the 'time_t' type of the default ABI. */ +#define __TIMESIZE 32 diff --git a/sysdeps/unix/sysv/linux/x86/bits/timesize.h b/sysdeps/unix/sysv/linux/x86/bits/timesize.h index 17e943a787..e8f5cd8190 100644 --- a/sysdeps/unix/sysv/linux/x86/bits/timesize.h +++ b/sysdeps/unix/sysv/linux/x86/bits/timesize.h @@ -16,6 +16,8 @@ License along with the GNU C Library; if not, see . */ +#include + #if defined __x86_64__ && defined __ILP32__ /* For x32, time is 64-bit even though word size is 32-bit. */ # define __TIMESIZE 64