public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/46155] New: Bug with generation of float.h header file on AIX
@ 2010-10-24  3:48 david.kirkby at onetel dot net
  2010-10-24  3:51 ` [Bug c/46155] " david.kirkby at onetel dot net
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: david.kirkby at onetel dot net @ 2010-10-24  3:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46155

           Summary: Bug with generation of float.h header file on AIX
           Product: gcc
           Version: 4.2.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: david.kirkby@onetel.net


Hi, 
I first posted this on the gcc-help mailing list, and was advised by  Ian Lance
Taylor to post this as a bug. 

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 

-bash-4.1$ find /opt/pware -name float.h
/opt/pware/include/c++/4.2.4/tr1/float.h
/opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/float.h
/opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/install-tools/include/float.h
-bash-4.1$ grep fprnd_t /opt/pware/include/c++/4.2.4/tr1/float.h
-bash-4.1$ grep fprnd_t
/opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/float.h
-bash-4.1$ grep fprnd_t
/opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/install-tools/include/float.h

This is from a gcc 4.2.4 binary downloaded from pware. I've run the 'mkheaders'
file, but that does not solve the problem.

Clearly this problem has existed for some time, as it has caused problems with
the GNU Scientific library for years. (just Google gsl aix). I found a
reference going back as far as 2002, but here's a more recent (and hopefully
useful) post on the matter. 

http://www.mail-archive.com/bug-gsl@gnu.org/msg01301.html

As  you can see, I'm trying to work around this in gsl with autoconf in GSL,
but ultimately it seems to be a GCC bug and not a GSL bug, so should be fixed
in GCC and not in GSL.

I'm attaching a copy of the IBM system header file:

/usr/include/float.h

as well as the float.h from 

/opt/pware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.4/include/float.h

If gcc developers do not have easy access to an AIX system, I can provide
access to AIX hardware.  

Dave


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-02-06 17:32 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-24  3:48 [Bug c/46155] New: Bug with generation of float.h header file on AIX david.kirkby at onetel dot net
2010-10-24  3:51 ` [Bug c/46155] " david.kirkby at onetel dot net
2010-10-24  3:54 ` david.kirkby at onetel dot net
2010-10-24  4:17 ` david.kirkby at onetel dot net
2010-10-24  4:25 ` david.kirkby at onetel dot net
2010-10-24 14:07 ` joseph at codesourcery dot com
2010-10-24 14:12 ` joseph at codesourcery dot com
2010-10-24 15:06 ` david.kirkby at onetel dot net
2010-10-24 15:21 ` joseph at codesourcery dot com
2010-10-24 16:10 ` david.kirkby at onetel dot net
2010-10-24 17:50 ` joseph at codesourcery dot com
2010-10-24 19:47 ` kon at iki dot fi
2010-10-26 17:59 ` david.kirkby at onetel dot net
2010-11-18  8:30 ` kon at iki dot fi
2015-02-06 17:32 ` dje at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).