From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id BCDB0385AC2B for ; Thu, 17 Feb 2022 13:05:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BCDB0385AC2B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embedded-brains.de Received: from sslproxy06.your-server.de ([78.46.172.3]) by dedi548.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1nKgTU-000GQ4-Ek for newlib@sourceware.org; Thu, 17 Feb 2022 14:05:32 +0100 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nKgTU-0000HN-Bl for newlib@sourceware.org; Thu, 17 Feb 2022 14:05:32 +0100 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 122A148012D for ; Thu, 17 Feb 2022 14:05:32 +0100 (CET) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id hNBKynSvTg1Q; Thu, 17 Feb 2022 14:05:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id C6A9248012C; Thu, 17 Feb 2022 14:05:31 +0100 (CET) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 4al-HHh-PiWM; Thu, 17 Feb 2022 14:05:31 +0100 (CET) Received: from joyce-tux.eb.localhost (unknown [10.10.171.62]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 968D1480109; Thu, 17 Feb 2022 14:05:31 +0100 (CET) From: Matthew Joyce To: newlib@sourceware.org Subject: [PATCH 0/1] Make __sdidinit unused Date: Thu, 17 Feb 2022 14:05:19 +0100 Message-Id: <20220217130520.27919-1-matthew.joyce@embedded-brains.de> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.103.5/26456/Thu Feb 17 10:25:48 2022) X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Feb 2022 13:05:36 -0000 From: Matt Joyce Remove dependency on __sdidinit member of struct _reent to check object initialization. Like __sdidinit, the __cleanup member of struct _reent is initialized in the __sinit() function. Checking initialization against __cleanup serves the same purpose and will reduce overhead in the __sfp() function in a follow up patch. Matt Joyce (1): Make __sdidinit unused libgloss/aarch64/syscalls.c | 2 +- libgloss/arm/syscalls.c | 2 +- newlib/libc/include/sys/reent.h | 10 +++++++--- newlib/libc/machine/spu/c99ppe.h | 2 +- newlib/libc/machine/spu/stdio.c | 1 - newlib/libc/reent/reent.c | 2 +- newlib/libc/stdio/findfp.c | 11 ++--------- newlib/libc/stdio/local.h | 6 +++--- newlib/libc/stdio/setvbuf.c | 2 +- newlib/libc/sys/arm/syscalls.c | 2 +- winsup/cygwin/cygtls.cc | 4 ++-- winsup/cygwin/dcrt0.cc | 10 ++++------ winsup/cygwin/thread.cc | 4 ++-- 13 files changed, 26 insertions(+), 32 deletions(-) --=20 2.31.1