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: PR8715 '~' operator for unsigned char and conversion to bool


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

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