From patchwork Fri Nov 13 16:58:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 41071 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 62C963945062; Fri, 13 Nov 2020 16:59:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62C963945062 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1605286763; bh=0u0pfD6b99iORjlEl2Ln+4CbMUMqK1l8QD6i+cGM8b8=; 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=XOZk4mvPx9tE1VdSLI/hbaCrdVios/flKg1eY6N0hD3tjCi6ifFTUQIM7iSAL+vtk 53QkPK/ZZ3eKnHwGSGs3HYv+WRyfpqDnzgHAUy83QheyEQRdvHuLqh9kiCvAgDg6LO /WRgILk0pF2F02+qiSzSD7qMRzI4gyBaI4IHVyKU= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf42.google.com (mail-qv1-xf42.google.com [IPv6:2607:f8b0:4864:20::f42]) by sourceware.org (Postfix) with ESMTPS id 92E483947C0D for ; Fri, 13 Nov 2020 16:59:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 92E483947C0D Received: by mail-qv1-xf42.google.com with SMTP id v20so1624545qvx.4 for ; Fri, 13 Nov 2020 08:59:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0u0pfD6b99iORjlEl2Ln+4CbMUMqK1l8QD6i+cGM8b8=; b=Lk6qQnK1HcgEzYnTutx9bavznxTUwiaqQ48cGY594FI2QqXEv2LLKmVQMsdS5LjuT4 doYK7xvkt9KcnXs1vANdZe/+Xa8Yac7fCQwGFYztzBsJ9zBix65jLgVq8/gv4WQhzMlv URGIQGzbh3wdhAI+6PA4FzQrSxB8DcbPDU8ZNdjnWQ3Nzl/8VqVtiHlgxYUy68m4rnmb ETGLKaU41ovTiFPItsZgfH8EXee3oEFZdygm9Q6zmI9Mbw872SUf0iP3SlYKM819q0kS wqkIRciyQLEqXz+b6N/3Xg0a7Zb7IHpn1zan8TXC7Nfy7Vt/EKYhS/uvvoqFOJyH9YSp /Oiw== X-Gm-Message-State: AOAM531ptLSIQyroMigfvnshhJyV34dnP6z7F+4BUjpsWhGkcWFL9yUW zdlHIgcIOeMW0HlzWhnVLh/lrCb6BxgiHA== X-Google-Smtp-Source: ABdhPJxwC9Dr5KWgf7Gafy94Q+2p8OkKbdtfid54EDamin8SMMg1Gqe4fsLpjDfQbLF6FFIl3xaG9g== X-Received: by 2002:ad4:47b0:: with SMTP id a16mr3257317qvz.22.1605286754920; Fri, 13 Nov 2020 08:59:14 -0800 (PST) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id s16sm7363931qkg.5.2020.11.13.08.59.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 08:59:14 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH v2 23/23] linux: Make SYSCALL_ERROR_FUNC as default Date: Fri, 13 Nov 2020 13:58:37 -0300 Message-Id: <20201113165837.121629-24-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113165837.121629-1-adhemerval.zanella@linaro.org> References: <20201113165837.121629-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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@sourceware.org Sender: "Libc-alpha" It is the more common option overall, only alpha, ia64, mips, and x86_64 inline the __syscall_erro call. --- .../unix/sysv/linux/aarch64/syscall_error.h | 25 ------------------- .../sysv/linux/{arm => alpha}/syscall_error.h | 4 +-- sysdeps/unix/sysv/linux/arc/syscall_error.h | 25 ------------------- sysdeps/unix/sysv/linux/i386/syscall_error.h | 25 ------------------- .../sysv/linux/{hppa => ia64}/syscall_error.h | 4 +-- .../sysv/linux/microblaze/syscall_error.h | 25 ------------------- .../sysv/linux/{m68k => mips}/syscall_error.h | 4 +-- sysdeps/unix/sysv/linux/nios2/syscall_error.h | 25 ------------------- .../unix/sysv/linux/powerpc/syscall_error.h | 25 ------------------- sysdeps/unix/sysv/linux/riscv/syscall_error.h | 25 ------------------- sysdeps/unix/sysv/linux/sh/syscall_error.h | 25 ------------------- sysdeps/unix/sysv/linux/sparc/syscall_error.h | 25 ------------------- sysdeps/unix/sysv/linux/syscall_error.h | 4 +-- .../linux/{csky => x86_64}/syscall_error.h | 4 +-- 14 files changed, 10 insertions(+), 235 deletions(-) delete mode 100644 sysdeps/unix/sysv/linux/aarch64/syscall_error.h rename sysdeps/unix/sysv/linux/{arm => alpha}/syscall_error.h (90%) delete mode 100644 sysdeps/unix/sysv/linux/arc/syscall_error.h delete mode 100644 sysdeps/unix/sysv/linux/i386/syscall_error.h rename sysdeps/unix/sysv/linux/{hppa => ia64}/syscall_error.h (90%) delete mode 100644 sysdeps/unix/sysv/linux/microblaze/syscall_error.h rename sysdeps/unix/sysv/linux/{m68k => mips}/syscall_error.h (90%) delete mode 100644 sysdeps/unix/sysv/linux/nios2/syscall_error.h delete mode 100644 sysdeps/unix/sysv/linux/powerpc/syscall_error.h delete mode 100644 sysdeps/unix/sysv/linux/riscv/syscall_error.h delete mode 100644 sysdeps/unix/sysv/linux/sh/syscall_error.h delete mode 100644 sysdeps/unix/sysv/linux/sparc/syscall_error.h rename sysdeps/unix/sysv/linux/{csky => x86_64}/syscall_error.h (90%) diff --git a/sysdeps/unix/sysv/linux/aarch64/syscall_error.h b/sysdeps/unix/sysv/linux/aarch64/syscall_error.h deleted file mode 100644 index a45e02dbe4..0000000000 --- a/sysdeps/unix/sysv/linux/aarch64/syscall_error.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Linux wrappers for setting errno. AArch64 version. - Copyright (C) 2020 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 - . */ - -#ifndef _SYSCALL_ERROR_H -#define _SYSCALL_ERROR_H - -#define SYSCALL_ERROR_FUNC 1 -#define SYSCALL_ERROR_FUNC_ATTR - -#endif diff --git a/sysdeps/unix/sysv/linux/arm/syscall_error.h b/sysdeps/unix/sysv/linux/alpha/syscall_error.h similarity index 90% rename from sysdeps/unix/sysv/linux/arm/syscall_error.h rename to sysdeps/unix/sysv/linux/alpha/syscall_error.h index 71f74e2bd3..28ca78de91 100644 --- a/sysdeps/unix/sysv/linux/arm/syscall_error.h +++ b/sysdeps/unix/sysv/linux/alpha/syscall_error.h @@ -1,4 +1,4 @@ -/* Linux wrappers for setting errno. ARM version. +/* Linux wrappers for setting errno. Alpha version. Copyright (C) 2020 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -19,7 +19,7 @@ #ifndef _SYSCALL_ERROR_H #define _SYSCALL_ERROR_H -#define SYSCALL_ERROR_FUNC 1 +#define SYSCALL_ERROR_FUNC 0 #define SYSCALL_ERROR_FUNC_ATTR #endif diff --git a/sysdeps/unix/sysv/linux/arc/syscall_error.h b/sysdeps/unix/sysv/linux/arc/syscall_error.h deleted file mode 100644 index a45e02dbe4..0000000000 --- a/sysdeps/unix/sysv/linux/arc/syscall_error.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Linux wrappers for setting errno. AArch64 version. - Copyright (C) 2020 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 - . */ - -#ifndef _SYSCALL_ERROR_H -#define _SYSCALL_ERROR_H - -#define SYSCALL_ERROR_FUNC 1 -#define SYSCALL_ERROR_FUNC_ATTR - -#endif diff --git a/sysdeps/unix/sysv/linux/i386/syscall_error.h b/sysdeps/unix/sysv/linux/i386/syscall_error.h deleted file mode 100644 index 0b63c07a4e..0000000000 --- a/sysdeps/unix/sysv/linux/i386/syscall_error.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Linux wrappers for setting errno. i386 version. - Copyright (C) 2020 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 - . */ - -#ifndef _SYSCALL_ERROR_H -#define _SYSCALL_ERROR_H - -#define SYSCALL_ERROR_FUNC 1 -#define SYSCALL_ERROR_FUNC_ATTR __attribute__ ((__regparm__ (1))) - -#endif diff --git a/sysdeps/unix/sysv/linux/hppa/syscall_error.h b/sysdeps/unix/sysv/linux/ia64/syscall_error.h similarity index 90% rename from sysdeps/unix/sysv/linux/hppa/syscall_error.h rename to sysdeps/unix/sysv/linux/ia64/syscall_error.h index f5947ccd7c..82d37a0d35 100644 --- a/sysdeps/unix/sysv/linux/hppa/syscall_error.h +++ b/sysdeps/unix/sysv/linux/ia64/syscall_error.h @@ -1,4 +1,4 @@ -/* Linux wrappers for setting errno. HPPA version. +/* Linux wrappers for setting errno. IA64 version. Copyright (C) 2020 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -19,7 +19,7 @@ #ifndef _SYSCALL_ERROR_H #define _SYSCALL_ERROR_H -#define SYSCALL_ERROR_FUNC 1 +#define SYSCALL_ERROR_FUNC 0 #define SYSCALL_ERROR_FUNC_ATTR #endif diff --git a/sysdeps/unix/sysv/linux/microblaze/syscall_error.h b/sysdeps/unix/sysv/linux/microblaze/syscall_error.h deleted file mode 100644 index 3632dfddd7..0000000000 --- a/sysdeps/unix/sysv/linux/microblaze/syscall_error.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Linux wrappers for setting errno. Microblaze version. - Copyright (C) 2020 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 - . */ - -#ifndef _SYSCALL_ERROR_H -#define _SYSCALL_ERROR_H - -#define SYSCALL_ERROR_FUNC 1 -#define SYSCALL_ERROR_FUNC_ATTR - -#endif diff --git a/sysdeps/unix/sysv/linux/m68k/syscall_error.h b/sysdeps/unix/sysv/linux/mips/syscall_error.h similarity index 90% rename from sysdeps/unix/sysv/linux/m68k/syscall_error.h rename to sysdeps/unix/sysv/linux/mips/syscall_error.h index 4ea7cbdad5..2e3536c0ab 100644 --- a/sysdeps/unix/sysv/linux/m68k/syscall_error.h +++ b/sysdeps/unix/sysv/linux/mips/syscall_error.h @@ -1,4 +1,4 @@ -/* Linux wrappers for setting errno. m68k version. +/* Linux wrappers for setting errno. MIPS version. Copyright (C) 2020 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -19,7 +19,7 @@ #ifndef _SYSCALL_ERROR_H #define _SYSCALL_ERROR_H -#define SYSCALL_ERROR_FUNC 1 +#define SYSCALL_ERROR_FUNC 0 #define SYSCALL_ERROR_FUNC_ATTR #endif diff --git a/sysdeps/unix/sysv/linux/nios2/syscall_error.h b/sysdeps/unix/sysv/linux/nios2/syscall_error.h deleted file mode 100644 index c13958a07d..0000000000 --- a/sysdeps/unix/sysv/linux/nios2/syscall_error.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Linux wrappers for setting errno. NIOS2 version. - Copyright (C) 2020 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 - . */ - -#ifndef _SYSCALL_ERROR_H -#define _SYSCALL_ERROR_H - -#define SYSCALL_ERROR_FUNC 1 -#define SYSCALL_ERROR_FUNC_ATTR - -#endif diff --git a/sysdeps/unix/sysv/linux/powerpc/syscall_error.h b/sysdeps/unix/sysv/linux/powerpc/syscall_error.h deleted file mode 100644 index 924f12435d..0000000000 --- a/sysdeps/unix/sysv/linux/powerpc/syscall_error.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Linux wrappers for setting errno. PowerPC version. - Copyright (C) 2020 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 - . */ - -#ifndef _SYSCALL_ERROR_H -#define _SYSCALL_ERROR_H - -#define SYSCALL_ERROR_FUNC 1 -#define SYSCALL_ERROR_FUNC_ATTR - -#endif diff --git a/sysdeps/unix/sysv/linux/riscv/syscall_error.h b/sysdeps/unix/sysv/linux/riscv/syscall_error.h deleted file mode 100644 index 932f34aa0f..0000000000 --- a/sysdeps/unix/sysv/linux/riscv/syscall_error.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Linux wrappers for setting errno. RISCV version. - Copyright (C) 2020 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 - . */ - -#ifndef _SYSCALL_ERROR_H -#define _SYSCALL_ERROR_H - -#define SYSCALL_ERROR_FUNC 1 -#define SYSCALL_ERROR_FUNC_ATTR - -#endif diff --git a/sysdeps/unix/sysv/linux/sh/syscall_error.h b/sysdeps/unix/sysv/linux/sh/syscall_error.h deleted file mode 100644 index 5b75619168..0000000000 --- a/sysdeps/unix/sysv/linux/sh/syscall_error.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Linux wrappers for setting errno. SH version. - Copyright (C) 2020 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 - . */ - -#ifndef _SYSCALL_ERROR_H -#define _SYSCALL_ERROR_H - -#define SYSCALL_ERROR_FUNC 1 -#define SYSCALL_ERROR_FUNC_ATTR - -#endif diff --git a/sysdeps/unix/sysv/linux/sparc/syscall_error.h b/sysdeps/unix/sysv/linux/sparc/syscall_error.h deleted file mode 100644 index 6a9fac278a..0000000000 --- a/sysdeps/unix/sysv/linux/sparc/syscall_error.h +++ /dev/null @@ -1,25 +0,0 @@ -/* Linux wrappers for setting errno. SPARC version. - Copyright (C) 2020 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 - . */ - -#ifndef _SYSCALL_ERROR_H -#define _SYSCALL_ERROR_H - -#define SYSCALL_ERROR_FUNC 1 -#define SYSCALL_ERROR_FUNC_ATTR - -#endif diff --git a/sysdeps/unix/sysv/linux/syscall_error.h b/sysdeps/unix/sysv/linux/syscall_error.h index 6523eb5269..3c9737b734 100644 --- a/sysdeps/unix/sysv/linux/syscall_error.h +++ b/sysdeps/unix/sysv/linux/syscall_error.h @@ -20,9 +20,9 @@ #define _SYSCALL_ERROR_H /* Each architecture might how __syscall_error is called, either by defining - an inline function (default) or by calling a hidden function. Check the + an inline function or by calling a hidden function (default). Check the sysdep.h file for the implementation. */ -#define SYSCALL_ERROR_FUNC 0 +#define SYSCALL_ERROR_FUNC 1 /* Any function attribute used to define the __syscall_error in case of __SYSCALL_ERROR_FUNC (for instance by using a different calling covention diff --git a/sysdeps/unix/sysv/linux/csky/syscall_error.h b/sysdeps/unix/sysv/linux/x86_64/syscall_error.h similarity index 90% rename from sysdeps/unix/sysv/linux/csky/syscall_error.h rename to sysdeps/unix/sysv/linux/x86_64/syscall_error.h index dbdd6ab44f..94ae05cf58 100644 --- a/sysdeps/unix/sysv/linux/csky/syscall_error.h +++ b/sysdeps/unix/sysv/linux/x86_64/syscall_error.h @@ -1,4 +1,4 @@ -/* Linux wrappers for setting errno. CSKY version. +/* Linux wrappers for setting errno. x86_64 version. Copyright (C) 2020 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -19,7 +19,7 @@ #ifndef _SYSCALL_ERROR_H #define _SYSCALL_ERROR_H -#define SYSCALL_ERROR_FUNC 1 +#define SYSCALL_ERROR_FUNC 0 #define SYSCALL_ERROR_FUNC_ATTR #endif