From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by sourceware.org (Postfix) with ESMTPS id 5E107384CBBA for ; Thu, 15 Feb 2024 17:37:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5E107384CBBA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=foss.st.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5E107384CBBA Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=91.207.212.93 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708018628; cv=none; b=GyElYHljIRPW970vXo0JeMS2vhOM6SMy2Mq8Y6HeWbVyi1g+8XhEeGnjLoxaaHMpP0EQSOAn+yjDJVWVQy7d5IKoCwqs/idNUnV8elWmupfqNP2NBeX9vwlSjj3mHIjKYaP+KQorPvIQw0e6f/imJa68RzR/TqlyE5ApeYycjiY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708018628; c=relaxed/simple; bh=ah+TXZzSMFdN6fu/x/65D+0nF1wCyNRToUU/702ifb0=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=UontB6p1t0rhj1Bpg9F8yAsFseRhQP+EWLx1xR25mUbR0H1m3VtmoJWJt0MOkxdssTEpEFevTRlJ/VoBRBE52EzC/P+KdX1GSFOXzRGVp7OoTBpNm/6Fm6qtQdxZUULyPYxHUu0SIzB97u7kp5OFnjO4MbjPr8biyS+Fzb9ziLQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41FGr8Ju017077; Thu, 15 Feb 2024 18:37:01 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=K+hUfj+Jfbka0njRlwxUsxeQPKgEPxk9GYOyBAC759k=; b=xO RcLyqn6pqmZa6kj9DtT8EmL7KoIrNl5mFEPcAhdoNBgcN8vkgGW5tzf6HXG+0BJy /GAf+iUJQQ4csrSf+NuYKrmAE2QfJtvGQJfpeS5QVNxfu3sDZYoOEnEQco+Nd0F5 kbbHO00f35LThvgpQq8/o9jqlAYDnTAH3JZgcA54ov59DjcC82wvD5yzjOUHGwnk dUTtJSZTsvEzQMdY3Zs5mYIn0YhlWc59hwKyHx3jgrj0BZxoJMh3c069WRC7PK8S Xjq9FivzrMykfwdk9omTQiJmnsUqyHLQ1Z4vw0ZhpVN+8onUIi1VoNsk7kS22El4 Pzh+OBN+X7MzOju0Ml8Q== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3w62sj4em8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Feb 2024 18:37:01 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 53C7A40049; Thu, 15 Feb 2024 18:36:52 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EC4F129AE80; Thu, 15 Feb 2024 18:36:40 +0100 (CET) Received: from [10.74.18.1] (10.74.18.1) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Thu, 15 Feb 2024 18:36:40 +0100 Message-ID: <7de14786-e033-4182-9d2c-1c59f5e46c33@foss.st.com> Date: Thu, 15 Feb 2024 18:36:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Mismatch between newlib and glibc regarding fileno Content-Language: en-US To: Joseph Myers , Newlib , Andrew Pinski , Yvan Roux References: <52858367-f116-413e-b107-61c8afce156b@foss.st.com> <42f199ba-8905-4846-9768-54342244610e@foss.st.com> <56b3303c-2634-6fc6-4d3b-c6e788962451@redhat.com> From: Torbjorn SVENSSON In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.74.18.1] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-15_16,2024-02-14_01,2023-05-22_02 X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KAM_SHORT,RCVD_IN_DNSWL_LOW,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 List-Id: On 2024-02-12 20:40, Corinna Vinschen wrote: > On Feb 12 20:27, Torbjorn SVENSSON wrote: >> >> >> On 2024-02-12 19:14, Joseph Myers wrote: >>> On Mon, 12 Feb 2024, Corinna Vinschen wrote: >>> >>>> How is it possible that with -std=c++98, everything and the kitchen sink >>>> is enabled? Is that really correct?!? >>> >>> See (though >>> is older). Much of >>> the standard C++ library implementation is in the headers, which makes it >>> tricky to implement without _GNU_SOURCE when the C++ library wants to use >>> (internally) lots of features not in ISO C. >>> >> >> So, based on this, is it correct that newlib includes the check for >> __STRICT_ANSI__? >> >> I.e., should GCC tests be updated to add -D_POSIX_SOURCE or should the check >> for __STRICT_ANSI__ be removed from the newlib features.h file? Or maybe >> both should be done? > > glibc's feature.h performs the same __STRICT_ANSI__ checks, afaics. I've pushed a patch on GCC14 that defines _POSIX_SOURCE. https://gcc.gnu.org/pipermail/gcc-patches/2024-February/645731.html Don't know if someone will look more into why newlib has a different set of defines than newlib, but I'm happy with that the test cases no longer produces fails in the log. Kind regards, Torbjörn