* c-typeck.c (parser_build_binary_op): Don't call the function
commitceda77d2d2e3b85e3c12be175d6f0e3aa9a10773
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 May 2006 16:51:19 +0000 (1 16:51 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 May 2006 16:51:19 +0000 (1 16:51 +0000)
tree5fe7571023d4ea5ca8d0e554a9a317466e1d435f
parent55c1bfb1a91171e5e94d9d6009e5225a3cea4079
* c-typeck.c (parser_build_binary_op): Don't call the function
unsigned_conversion_warning to spot operand/result type overflow.
(build_binary_op): Instead, call convert_and_check instead of
convert to report the problem when the operands are promoted.
* c-common.c (unsigned_conversion_warning): Make static.
* c-common.h (unsigned_conversion_warning): Delete prototype.

* gcc.dg/Wconversion-3.c: New test case.
* gcc.dg/Wconversion-4.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113418 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wconversion-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wconversion-4.c [new file with mode: 0644]