delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/16/06:17:38

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4AB0BE8A.6060707@gmail.com>
Date: Wed, 16 Sep 2009 11:31:38 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 1.7/1.5 C99 conformance (GCC, libc)
References: <op DOT u0ak2ujy1e62zd AT balu DOT cs DOT uni-paderborn DOT de>
In-Reply-To: <op.u0ak2ujy1e62zd@balu.cs.uni-paderborn.de>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Matthias Andree wrote:

> Now, Cygwin 1.5 and 1.7 appear to lack long double library support in
> libc/libm -- which is required for a hosted C99 implementation however,
> but not for a freestanding C99 implementation.
> 
> Trying to solve this, I found another Cygwin issue: GCC 3.4.4 sets
> __STDC_HOSTED__ to 1 by default (that's a GCC factory default).

  Just FTR, Cygwin-1.5 and gcc-3.4.4 are end-of-life and will never be updated
again.

> I propose that this gets overridden to 0 in Cygwin-ported GCC compilers
> until the library support for a C99-conforming full hosted
> implementation is in place, so that applications can safely check

  Sorry, I don't think that's a good idea.  There are a whole world of other
differences implied by the freestanding-vs-hosted distinction that I think it
would not be wise for the compiler to lie about.  It is indeed unfortunate
that our C library support (which derives from newlib) is incomplete, and this
gap between theory and practice is what autoconf was invented to bridge.
(Autoconf is of course a compromise born of necessity which in an ideal world
wouldn't exist.  But at least it means these problems can be dealt with in a
practical and systematic fashion.)

  It mightn't be too hard to get long double support into newlib, but it's all
a matter of someone having the time and wherewithal to actually do it.

    cheers,
      DaveK

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019