From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.axis.com (smtp1.axis.com [195.60.68.17]) by sourceware.org (Postfix) with ESMTPS id 1AA013857C49 for ; Tue, 7 Jun 2022 23:30:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1AA013857C49 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1654644615; x=1686180615; h=from:to:cc:in-reply-to:subject:mime-version: content-transfer-encoding:references:message-id:date; bh=g5uA+gpROvIIsxqueuMBl5d0JfE958OnzQcjB0guJl0=; b=p3VJMg6++e8VKlhkPC8XHVAoAIvXaNW5V/BYKwk1VyHdS3avXXIFhl7Q NrLW0fTJ5BfnqefyGGSWt0cXyLpUHXSvrvQbiEpzEJnHnMMCzG0MYtpdi UWSzJFT8xRWS3dQum/PjLgXO8j1V0i7TSSTCt4GupMkP9GX7t8+Xwxk2c U0WpYKctifmY20DroBoh7iQbi8awjlkHKFndE20VzELNYIYmfq4TBxf23 P2iAeQ73fB4A6TNRrSxMoX6PapzA3cPTRMKhkiCYCK4LATQ9MQUZKglMa gKtfzKKyBnu1u68uP7PG1aOrx3KsJyxAHSi4iRbsaH/VBNmJNsBssZ1si A==; From: Hans-Peter Nilsson To: Sebastian Huber CC: In-Reply-To: <5ee6a38c-d7f5-ed62-970d-b25aedee3a25@embedded-brains.de> (message from Sebastian Huber on Tue, 7 Jun 2022 08:18:49 +0200) Subject: Re: [PATCH] Fix stdio init handling MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT References: <20220606182003.DB8A72041A@pchp3.se.axis.com> <5ee6a38c-d7f5-ed62-970d-b25aedee3a25@embedded-brains.de> Message-ID: <20220607233013.542EC20417@pchp3.se.axis.com> Date: Wed, 8 Jun 2022 01:30:13 +0200 X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, 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: Tue, 07 Jun 2022 23:30:17 -0000 > From: Sebastian Huber > Date: Tue, 7 Jun 2022 08:18:49 +0200 > sorry for breaking your Newlib configuration. (A point I tried to make was that it wasn't just "mine", but most "*-elf" ones. A "real" CI bot for a stable *-elf simulator target with newlib, gcc, binutils, updating only each at a time would be nice, and JFTR, no I don't consider mine "real".) > Could you please try the attached > patch? Aha; yes it works; I regtested gcc for cris-elf as with my patch. Thanks for attending to this. I hope the other points I raised in my submission will eventually be handled. > We would like to introduce a configuration option for Newlib to use > thread-local storage for the members of struct _reent: > > https://sourceware.org/pipermail/newlib/2022/018855.html Ok, I see, thanks for clarifying. > We also would like to make the _REENT_GLOBAL_STDIO_STREAMS option the > default Newlib behaviour: > > https://sourceware.org/pipermail/newlib/2022/019735.html Thanks; FWIW, I don't have a strong opinion about that. As long as it still works, I'm happy. (Not actually using newlib for production here, AFAIK.) brgds, H-P