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 1A8063886C47 for ; Mon, 16 May 2022 15:53:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1A8063886C47 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 sslproxy01.your-server.de ([78.46.139.224]) by dedi548.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nqd2N-00037W-Up for newlib@sourceware.org; Mon, 16 May 2022 17:53:35 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqd2N-000FzK-S4 for newlib@sourceware.org; Mon, 16 May 2022 17:53:35 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 957754800B7 for ; Mon, 16 May 2022 17:53:35 +0200 (CEST) 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 3l96ig1pgeiR for ; Mon, 16 May 2022 17:53:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id E9D2E4800A8 for ; Mon, 16 May 2022 17:53:32 +0200 (CEST) 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 JTVbu_9QjRfG for ; Mon, 16 May 2022 17:53:32 +0200 (CEST) Received: from zimbra.eb.localhost (unknown [192.168.96.242]) by mail.embedded-brains.de (Postfix) with ESMTPSA id C685748006F for ; Mon, 16 May 2022 17:53:32 +0200 (CEST) From: Sebastian Huber To: newlib@sourceware.org Subject: [PATCH v3 0/7] Add --enable-newlib-reent-binary-compat configure option Date: Mon, 16 May 2022 17:53:22 +0200 Message-Id: <20220516155329.29458-1-sebastian.huber@embedded-brains.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.103.5/26543/Mon May 16 10:03:34 2022) X-Spam-Status: No, score=-5.5 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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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: Mon, 16 May 2022 15:53:41 -0000 This patch set adds the --enable-newlib-reent-binary-compat configure opt= ion which may be used to define the new Newlib configuration option _REENT_BACKWARD_BINARY_COMPAT. This option is used to provide binary bac= kward compatibility for struct _reent by preserving unused members in struct _r= eent to keep the structure layout. Make _REENT_GLOBAL_ATEXIT the default and = remove this option. v2: * Rename --enable-newlib-backward-binary-compat in --enable-newlib-reent-= binary-compat. * Do not enable option for Cygwin. * Adjust code in libgloss. v3: * Enable struct _reent backward binary compatibility for Cygwin. * Rename unused struct _reent members in _reserved_*. Sebastian Huber (7): Add --enable-newlib-reent-binary-compat Cygwin: Enable backward binary compatibility Optional struct _reent::__unused_sdidinit Optional struct _reent::_unspecified_locale_info Optional struct _reent::_new::_reent::_unused_rand Optional struct _reent::_new::_unused Use global atexit data for all configurations libgloss/arc/crt0.S | 11 ++-- libgloss/epiphany/crt0.S | 26 ++++---- libgloss/sparc_leon/locore_atexit.c | 4 +- newlib/README | 12 ++-- newlib/configure | 30 ++++++--- newlib/configure.ac | 25 +++++-- newlib/libc/include/sys/config.h | 7 +- newlib/libc/include/sys/reent.h | 93 ++++++++++++++------------- newlib/libc/reent/reent.c | 19 ------ newlib/libc/stdlib/__atexit.c | 15 ++--- newlib/libc/stdlib/__call_atexit.c | 8 +-- newlib/newlib.hin | 6 +- winsup/cygwin/include/cygwin/config.h | 1 + 13 files changed, 131 insertions(+), 126 deletions(-) --=20 2.35.3