From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3832 invoked by alias); 24 Oct 2010 14:07:38 -0000 Received: (qmail 3822 invoked by uid 22791); 24 Oct 2010 14:07:37 -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 14:07:30 +0000 From: "joseph at codesourcery dot com" 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: joseph at codesourcery dot com 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 14:07: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/msg02026.txt.bz2 Message-ID: <20101024140700.-UQx6pUFN8NTB5Vqjo5xzBIBkySQ_JR055Qs4ZC08_w@z> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46155 --- Comment #5 from joseph at codesourcery dot com 2010-10-24 14:07:25 UTC --- On Sun, 24 Oct 2010, david.kirkby at onetel dot net wrote: > On an IBM server running AIX 5.3, 'fprnd_t' is clearly defined in the IBM > system header file /usr/include/float.h > > -bash-4.1$ grep fprnd_t /usr/include/float.h > typedef unsigned short fprnd_t; > fprnd_t fp_read_rnd(); > fprnd_t fp_swap_rnd(); > fprnd_t fp_read_rnd(void); > fprnd_t fp_swap_rnd(fprnd_t rnd); > > as an unsigned short. > > But when gcc is built, it creates several files called 'float.h', but all of > these lack any references at all to fprnd_t Indeed, fprnd_t is not a type that ISO C permits to be declared in float.h, and nor are the other identifiers in a reserved namespace. So certainly in ISO C mode GCC's float.h must not include those declarations. I haven't seen documentation for those functions and types, but they sound rather like they should be obsoleted by the standard facilities such as fegetround and fesetround.