From patchwork Mon Feb 13 13:55:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 64894 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 1155A388B694 for ; Mon, 13 Feb 2023 13:58:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1155A388B694 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676296691; bh=UikypltsBW9EQv2i6Q9kmDGEzAhzKIIaZkGxyrzI6ew=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=MefAsfHhlP6zNWHpte6lk/cqruN2muTM7M7FmmexUsiG+WzPXfTKI3Dhzg4oeIH/6 l/5mWgRBqdap42hcI2Aa4PAreLUF9JngT1npiNHhFo7VbIZaPW6yfMDEB2vOxxxI3t 1Y9Dky6akoYlyufatKz2y9ZFtmnIEq82X9vAgUng= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-oo1-xc34.google.com (mail-oo1-xc34.google.com [IPv6:2607:f8b0:4864:20::c34]) by sourceware.org (Postfix) with ESMTPS id 12B00382E6AB for ; Mon, 13 Feb 2023 13:56:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 12B00382E6AB Received: by mail-oo1-xc34.google.com with SMTP id k15-20020a4adfaf000000b00517450f9bd7so1186591ook.8 for ; Mon, 13 Feb 2023 05:56:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UikypltsBW9EQv2i6Q9kmDGEzAhzKIIaZkGxyrzI6ew=; b=jAe1x5A0o5hWQNwKB55imigRM39aAHzscrDfV/UQSKegfR7n1m+pv4MeGwIlnlBE6h AnZjZkspK3K9fjWjDEZaw5d5P027igTygAAm4DkSjo7G/EslRJVnDbNAsPfTustQf+8L 94feo8eqEyo+pUAdnbgjAbIUI+pE+Z9Xa8TTpKiZGcoP01tRmjJ7ZA4fSbAlSmnDl/iA nYKQBn0hKntGZ8RI4S6vuWrzvTG49wHhwvrm5fOSYjbMEt5KThKGc/WeqPY/2qhZ6xAw LxcVypuoLWrxjJPpc/HRs1QqfAIuNsFMZd/5jygWco0by9MHdgHCJmiK9BUbB12LXeOG HRQg== X-Gm-Message-State: AO0yUKUPEF+pxXhshAD0DhV4U3TA1DrvBLh04jKnaYZbmcxZRndJBZjE wXeHOUtlKNvuEEVDjdHxxAZZ8Rl35ftiJAWK06U= X-Google-Smtp-Source: AK7set91xe8SkienO1bXtUVSoqWThjcrYplfMm43r2FHn8YfnCTYNF8Q/ZkN8OibOzpA2Goc5hfkOA== X-Received: by 2002:a4a:255b:0:b0:51a:cab:cbef with SMTP id v27-20020a4a255b000000b0051a0cabcbefmr11041453ooe.4.1676296575692; Mon, 13 Feb 2023 05:56:15 -0800 (PST) Received: from mandiga.. ([2804:1b3:a7c2:f662:138b:cd0c:7b7a:8860]) by smtp.gmail.com with ESMTPSA id y11-20020a4ade0b000000b0051762a73553sm4797168oot.18.2023.02.13.05.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 05:56:15 -0800 (PST) To: libc-alpha@sourceware.org, Wilco Dijkstra Subject: [PATCH 7/7] string: Remove string_private.h Date: Mon, 13 Feb 2023 10:55:58 -0300 Message-Id: <20230213135558.3328727-8-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230213135558.3328727-1-adhemerval.zanella@linaro.org> References: <20230213135558.3328727-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_ASCII_DIVIDERS, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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" Now that _STRING_ARCH_unaligned is not used anymore. Reviewed-by: Wilco Dijkstra --- include/string.h | 3 --- sysdeps/aarch64/string_private.h | 20 -------------------- sysdeps/generic/string_private.h | 21 --------------------- sysdeps/m68k/m680x0/m68020/string_private.h | 21 --------------------- sysdeps/s390/string_private.h | 20 -------------------- sysdeps/x86/string_private.h | 20 -------------------- 6 files changed, 105 deletions(-) delete mode 100644 sysdeps/aarch64/string_private.h delete mode 100644 sysdeps/generic/string_private.h delete mode 100644 sysdeps/m68k/m680x0/m68020/string_private.h delete mode 100644 sysdeps/s390/string_private.h delete mode 100644 sysdeps/x86/string_private.h diff --git a/include/string.h b/include/string.h index a9120ff37c..673cfd7272 100644 --- a/include/string.h +++ b/include/string.h @@ -55,9 +55,6 @@ extern char *__strerror_l (int __errnum, locale_t __loc); extern const char *__sigdescr_np (int __errnum); libc_hidden_proto (__sigdescr_np) - -/* Get _STRING_ARCH_unaligned. */ -#include #endif #include diff --git a/sysdeps/aarch64/string_private.h b/sysdeps/aarch64/string_private.h deleted file mode 100644 index 8fdfcdf44b..0000000000 --- a/sysdeps/aarch64/string_private.h +++ /dev/null @@ -1,20 +0,0 @@ -/* Define _STRING_ARCH_unaligned. AArch64 version. - Copyright (C) 2016-2023 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 - . */ - -/* AArch64 implementations support efficient unaligned access. */ -#define _STRING_ARCH_unaligned 1 diff --git a/sysdeps/generic/string_private.h b/sysdeps/generic/string_private.h deleted file mode 100644 index a1a62b3a46..0000000000 --- a/sysdeps/generic/string_private.h +++ /dev/null @@ -1,21 +0,0 @@ -/* Define _STRING_ARCH_unaligned. Generic version. - Copyright (C) 2016-2023 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 - . */ - -/* Define to 1 if architecture can access unaligned multi-byte - variables. */ -#define _STRING_ARCH_unaligned 0 diff --git a/sysdeps/m68k/m680x0/m68020/string_private.h b/sysdeps/m68k/m680x0/m68020/string_private.h deleted file mode 100644 index 04c4800244..0000000000 --- a/sysdeps/m68k/m680x0/m68020/string_private.h +++ /dev/null @@ -1,21 +0,0 @@ -/* Define _STRING_ARCH_unaligned. m680x0 version, x >= 2. - Copyright (C) 2016-2023 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 - . */ - -/* Tell the generic inline macros that unaligned memory access is - possible. */ -#define _STRING_ARCH_unaligned 1 diff --git a/sysdeps/s390/string_private.h b/sysdeps/s390/string_private.h deleted file mode 100644 index 3591f83878..0000000000 --- a/sysdeps/s390/string_private.h +++ /dev/null @@ -1,20 +0,0 @@ -/* Define _STRING_ARCH_unaligned. S/390 version. - Copyright (C) 2016-2023 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 - . */ - -/* The s390 processors can access unaligned multi-byte variables. */ -#define _STRING_ARCH_unaligned 1 diff --git a/sysdeps/x86/string_private.h b/sysdeps/x86/string_private.h deleted file mode 100644 index c6a9d9bef9..0000000000 --- a/sysdeps/x86/string_private.h +++ /dev/null @@ -1,20 +0,0 @@ -/* Define _STRING_ARCH_unaligned. i486/x86-64 version. - Copyright (C) 2016-2023 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 - . */ - -/* The ix86 processors can access unaligned multi-byte variables. */ -#define _STRING_ARCH_unaligned 1