This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Handle BOOLEAN_TYPEs in c_common_type
- From: Richard Henderson <rth at redhat dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Sun, 15 May 2005 23:33:55 -0700
- Subject: Re: [PATCH] Handle BOOLEAN_TYPEs in c_common_type
- References: <Pine.LNX.4.44.0505152241520.3874-100000@www.eyesopen.com>
On Sun, May 15, 2005 at 10:59:28PM -0600, Roger Sayle wrote:
> + /* Prefer the native Boolean type. */
> + if (code1 == BOOLEAN_TYPE && code2 == BOOLEAN_TYPE)
> + return truthvalue_type_node;
You realize this will promote to int in C?
r~