This is the mail archive of the
mailing list for the GCC project.
Re: Patches: Squelch `U' suffix warnings from md5.h and getext.h
- To: dave at hiauly1 dot hia dot nrc dot ca, gcc-patches at gcc dot gnu dot org
- Subject: Re: Patches: Squelch `U' suffix warnings from md5.h and getext.h
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Tue, 5 Sep 2000 23:56:57 -0400 (EDT)
> From: John David Anglin <email@example.com>
> These two patches modify md5.h and gettext.h to use INT_MAX instead
> of UINT_MAX to determine the appropriate type to use for an
> unsigned 32 bit integer. This avoids using the `U' suffix. Tested
> with a complete bootstrap and check.
So you're effectively checking the size of the signed types to
determine which unsigned type to use as the unsigned 32bit type. This
is only valid if we can assume sizeof(type) == sizeof(unsigned type).
Does the C standard conveniently guarantee this for us?
(Also, you'll want to provide a ChangeLog entry.)
Kaveh R. Ghazi Engagement Manager / Project Services
firstname.lastname@example.org Qwest Internet Solutions