diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-07-30 08:30:32 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-07-30 08:30:32 +0000 |
commit | 6715192c06501e2bc1ee1a2670697dbe5d0efd41 (patch) | |
tree | 9f9fa0bd313bb28619e5203904c17f871a84a669 /gcc/final.c | |
parent | 473e10621f06ef6cfd82f3875224c4b82c2eb7cf (diff) | |
download | gcc-6715192c06501e2bc1ee1a2670697dbe5d0efd41.zip gcc-6715192c06501e2bc1ee1a2670697dbe5d0efd41.tar.gz gcc-6715192c06501e2bc1ee1a2670697dbe5d0efd41.tar.bz2 |
re PR c/34389 (-Wconversion produces wrong warning)
2008-07-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR 34389
* c-typeck.c (build_binary_op): Encapsulate code into...
* c-common.c (shorten_binary_op): ...this new function.
(conversion_warning): Use the new function. Handle non-negative
constant in bitwise-and.
* c-common.h (shorten_binary_op): Declare.
cp/
* typeck.c (build_binary_op): Encapsulate code into
shorten_binary_op.
testsuite/
* gcc.dg/Wconversion-pr34389.c: New.
* g++.dg/warn/Wconversion-pr34389.C: New.
From-SVN: r138296
Diffstat (limited to 'gcc/final.c')
0 files changed, 0 insertions, 0 deletions