This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR8715 '~' operator for unsigned char and conversion to bool
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 4 Aug 2008 19:46:21 +0000 (UTC)
- Subject: Re: PR8715 '~' operator for unsigned char and conversion to bool
- References: <6c33472e0808040901g102e1094yb6e9441fa6e9989c@mail.gmail.com>
On Mon, 4 Aug 2008, Manuel López-Ibáñez wrote:
> 2008-08-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
>
> PR 8715
> * c-common.c (warn_for_sign_compare): New. Handle separately the
> case that 'constant' is zero.
> * c-typeck.c (build_binary_op): Move code to c-common.c
>
> cp/
> * typeck.c (cp_build_binary_op): Move code to c-common.c.
>
> testsuite/
> * gcc.dg/pr8715.c: New.
> * g++.dg/warn/pr8715.C: New.
The C parts of this patch are OK if the C++ parts are approved.
--
Joseph S. Myers
joseph@codesourcery.com