From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18170 invoked by alias); 21 Jun 2017 15:18:24 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Received: (qmail 18157 invoked by uid 89); 21 Jun 2017 15:18:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Craig, joel, Joel, H*r:sk:mail01. X-HELO: mail01.lgsinnovations.com Received: from mail01.lgsinnovations.com (HELO mail01.lgsinnovations.com) (184.75.234.233) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Jun 2017 15:18:22 +0000 Subject: Re: Importing cacoshl.c and its dependent methos, To: References: <0205aa55-7b80-245d-0af6-4fe67c15429f@embedded-brains.de> <20170621082825.GD6658@calimero.vinschen.de> <356dfbd5-08e0-e8e9-6c7e-b9bb8c2b0cef@oarcorp.com> From: Craig Howland Message-ID: <9802b69e-a379-f17c-4c1d-2dd309d165b2@LGSInnovations.com> Date: Wed, 21 Jun 2017 15:18:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <356dfbd5-08e0-e8e9-6c7e-b9bb8c2b0cef@oarcorp.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LGS-EX05.lgsdirect.com (135.22.48.227) To LGS-EX01.lgsdirect.com (135.22.77.164) X-IsSubscribed: yes X-SW-Source: 2017/txt/msg00449.txt.bz2 On 06/21/2017 11:09 AM, Joel Sherrill wrote: > > > On 6/21/2017 10:02 AM, Craig Howland wrote: >> Wait. Isn't stdbool.h available in gcc for ages? When building newlib, >>>> shouldn't we be able to rely on c99 being available? >>>> >>>> >>>> Corinna >>>> >> Yes, we can, and should. That's because complex.h and stdbool.h were added in >> C99, making C99 required for these functions. I did a quick check on some older >> cross-compiler installs that I have, and GCC 4.1.1 has stdbool.h (and 4.6.4 has >> complex.h). > > Just to clarify, I did a test and added include to printf.c. > It worked and picked up the gcc version. Can we rely on this being present > or does newlib need to have its own? > > I want to make sure the direction is quite clear. :) > > --joel We can rely on it being present in GCC. (stdbool.h is required in all implementations, unlike some headers which are only required in hosted implementations.) I just checked and 4.1.1 is from about May 2006, so it's been present at least 11 years.