This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Non-standard test?
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: YuGr <tetra2005 at googlemail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 18 Jan 2010 13:19:23 +0000 (UTC)
- Subject: Re: Non-standard test?
- References: <201001181424.21815.tetra2005@gmail.com>
On Mon, 18 Jan 2010, YuGr wrote:
> But according to C99 Standard (see Usual arithmetic conversions, 6.3.1.8):
First the integer promotions are applied, so you need UCHAR_MAX not to be
representable as int (not just as short).
As previously discussed at length, many changes are needed in various
parts of GCC to work well for targets where char is wider than 8 bits;
they never worked well even when GCC used to have such ports. If adding
such a port, many substantial code changes will be needed as well as
substantial testsuite changes; not just patching one test.
--
Joseph S. Myers
joseph@codesourcery.com