This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Variable LONG_TYPE_SIZE and MAX_LONG_TYPE_SIZE
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: Variable LONG_TYPE_SIZE and MAX_LONG_TYPE_SIZE
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 15 Aug 2001 01:05:30 -0300
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20010812221312.A3016@lucon.org>
On Aug 13, 2001, "H . J . Lu" <hjl@lucon.org> wrote:
> Apparently, we have to define MAX_LONG_TYPE_SIZE as a constant.
Yep, it must be a compile-time constant since it's used to compute the
length of some arrays.
> What is the best way to fix it?
Rely on LONG_TYPE_SIZE, not on MAX_LONG_TYPE_SIZE, to issue the
warning?
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me