From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13088 invoked by alias); 24 Oct 2010 16:10:42 -0000 Received: (qmail 13080 invoked by uid 22791); 24 Oct 2010 16:10:41 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 24 Oct 2010 16:10:36 +0000 From: "david.kirkby at onetel dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/46155] Bug with generation of float.h header file on AIX X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.kirkby at onetel dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sun, 24 Oct 2010 16:10:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-10/txt/msg02033.txt.bz2 Message-ID: <20101024161000.gZQ6dprCfRk_o-_miOIIR0OVYs-Kt8ohl4FgqLJO8-Y@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46155 --- Comment #9 from Dr. David Kirkby 2010-10-24 16:10:30 UTC --- (In reply to comment #8) > On Sun, 24 Oct 2010, david.kirkby at onetel dot net wrote: > > > I don't have a copy of the C standard. Is there one publicly available? In your > > opinion, are IBM wrong to define fprnd_t in /usr/include/float.h? AIX 5.3 is a > > POSIX certified operating system. > > http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf Thank you. Do you happen to have one for the C++ standards too? > > According to > > > > http://www.gnu.org/software/gnulib/manual/html_node/fesetround.html > > > > fegetround() is not very portable, so I doubt the GSL developers would want to > > use that. I've found GSL to be very portable. It seems to build on just about > > anything - except AIX, unless one makes a few changes to a source file. > > All the systems listed there are old systems. ISO C99 was published on 1 > December 1999 - nearly 11 years ago. Solaris 10 was only introduced in 2005, so Solaris 9 is not that old. To my knowledge Cygwin does not support C99, though I know the GSL builds on Cygwin. It should also be noted that gcc is still not fully C99 compliant! http://gcc.gnu.org/c99status.html 11 years after the standard! > It appears that GSL has code that uses the C99 interfaces (fp-gnuc99.c). I'm a bit puzzled by that. Perhaps it only uses that when it knows the compiler supports C99. > I'd advise using that in preference to all the other pre-C99 OS-specific > interfaces, whenever the C99 interfaces are available, rather than as the > very last alternative. If AIX supports the C99 interfaces, that solves > your problem. AIX 5.3 (released in 2004) fully supports the C99 standard, but earlier AIX versions do not. However, I believe 5.2 supported most of it, so there may be some argument here for using C99 code on AIX. I'm not a GSL developer, so the GSL developers would have to make the final decision on that. But given GSL is very portable, I can imagine the developers might be reluctant to change that. Dave