This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.0.1 Freeze
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: 3.0.1 Freeze
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Mon, 06 Aug 2001 21:37:42 -0400
- cc: Gabriel Dos_Reis <gdosreis at sophia dot inria dot fr>, Gabriel Dos_Reis <Gabriel dot Dos_Reis at sophia dot inria dot fr>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
Mark,
Is your proposal to define all of the values now extracted from
the system limits.h and float.h, e.g., LONG_MAX? My patch already
corrected the digits values for normal targets. You can get the normal
values for INT_MAX and LONG_MAX for 32-bit and 64-bit targets from any
standard system.
limits_generic.h is a perfectly good starting point. Your
proposal seems to collect the ifdef's at the top of the file to define all
of the values.
The real work seems to be not defining __glibcpp_int_bits, etc.,
but determining the appropriate macro(s) to test in the OS configs for
sizes that change in different multilibs. Many can be found in
gcc/glimits.h or in the definition of the CPP_SPEC macro for each target.
David