This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Handle BOOLEAN_TYPEs in c_common_type


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]