This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR/25259: configure macro to make a stdint.h file
- From: Roger Sayle <roger at eyesopen dot com>
- To: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 4 Jan 2006 09:59:27 -0700 (MST)
- Subject: Re: PR/25259: configure macro to make a stdint.h file
Hi Paolo,
On Tue, 3 Jan 2006, Paolo Bonzini wrote:
> Since the generated stdint.h file is not complete anyway (as far as the
> C99 standard mandates) I think a simpler solution is to just delete the
> definition of the fast/least types. Can you do it?
What do you think of my follow-up patch that addresses the real
underlying cause of these type conflicts? It turns out that we
test the system headers without -std=gnu99, but #include gstdint.h
at compile-time with -std=gnu99, where its no suprise that many
of the ISO C99 types that we thought we needed to provide are already
available.
The change to libfortran/configure.ac is sufficient for autoconf's
AC_TYPE_CHECK to report that the header files already define
int_fast32_t (and friends) when compiling in C99 mode, so these types
no longer appear in gstdint.h on IRIX.
I think this is a better approach, as ideally gstdint.h should
evolve to provide more and more of the ISO C99 manadated functionality
thats missing on some systems, rather than just give up on that goal
and slowly start removing bits due to some teething problems.
Roger
--