From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.zytor.com (unknown [IPv6:2607:7c80:54:3::138]) by sourceware.org (Postfix) with ESMTPS id 2163E3858C5E for ; Fri, 3 Feb 2023 03:51:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2163E3858C5E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=zytor.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=zytor.com Received: from [172.27.0.16] ([73.223.250.219]) (authenticated bits=0) by mail.zytor.com (8.17.1/8.17.1) with ESMTPSA id 3133pbd62232267 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Thu, 2 Feb 2023 19:51:37 -0800 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.zytor.com 3133pbd62232267 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2023010601; t=1675396297; bh=NkYhHbkNiHd9yP50OUh1i91bonA6cSiQdegCW4Ai8/Y=; h=Date:To:From:Subject:From; b=addjQ/fawkQRHzlUmn7gX3ugFKyUYqK8Wsj5tHhKRRMqfZT7eQFqsbor7GMET/o18 tCtMfwsRrv1Ln7Ph8MCGlBPacTA8DLiwrnY8BIjkheSLo7JtzA9/U3c7tvAhQcREb+ op/tfj7DP7y1MvFhw6GaUoyFixKwAxO8b/M7uGCgr9cl/FQxwQW2zNLrd9igWW9+w7 1Axl9ozCjwz8zRA0XTPTInzor4M9sHlfpdpC76WXtal7f91dj2eItLJXUZWcXq8BnO AyY+5wS7PsUfa6drNDgoEthrhGZsW6Eyu1yhGwODRF+6EvmTdoVH5VrVumFQ5Qgw7I Ybk3OYqeO0ieg== Message-ID: <23548fc0-b5cb-8c3c-4a52-15a58c1da395@zytor.com> Date: Thu, 2 Feb 2023 19:51:36 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Content-Language: en-US To: newlib@sourceware.org From: "H. Peter Anvin" Subject: malloc() fails to compile with --enable-newlib-reent-thread-local Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 List-Id: Hi, as of newlib-4.3.0 (git 9e09d6ed83cce4777a5950412647ccc603040409) malloc() fails to compile with the following options set: --disable-newlib-fseek-optimization \ --disable-newlib-fvwrite-in-streamio \ --disable-newlib-mb \ --disable-newlib-reent-check-verify \ --disable-newlib-register-fini \ --disable-newlib-supplied-syscalls \ --disable-newlib-unbuf-stream-opt \ --disable-newlib-wide-orient \ --enable-lite-exit \ --enable-target-optspace \ --enable-newlib-multithread \ --enable-newlib-global-atexit \ --enable-newlib-nano-formatted-io \ --enable-newlib-io-c99-formats \ --enable-newlib-reent-thread-local \ --enable-newlib-nano-malloc (same effect without --enable-newlib-nano-malloc). The reason is that the malloc() routines appear to hard-code the use of "reent_ptr->_errno" instead of using _REENT_ERRNO(), but if I'm not completely out to sea it really shouldn't be using "reent_ptr" at all, similar to the !_LIBC case? -hpa