OSDN Git Service

2006-11-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
authormanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Nov 2006 01:50:33 +0000 (01:50 +0000)
committermanu <manu@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Nov 2006 01:50:33 +0000 (01:50 +0000)
commitd31d55f0c3199621e0317574d9a156c933c26db3
tree5f5522ac3829784d28af2cccffb6ea3878cf5875
parent44a2bb4a172e461a7bd99e12eef4d0d0d2f829cf
2006-11-24  Manuel Lopez-Ibanez <manu@gcc.gnu.org>

PR c/2707
PR c++/26167
* c-common.c (conversion_warning): New.
(convert_and_check): Call conversion_warning unless there is an
overflow warning.
* doc/invoke.texi (-Wconversion): Update description.

testsuite/

* gcc.dg/Wconversion-integer.c: New. Supersedes
Wconversion-negative-constants.c
* gcc.dg/Wconversion-real.c: New.
* gcc.dg/Wconversion-real-integer.c: New.
* gcc.dg/Wconversion-negative-constants.c: Deleted.
* g++.dg/warn/Wconversion1.C: Modified.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119143 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/c-common.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wconversion1.C
gcc/testsuite/gcc.dg/Wconversion-integer.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wconversion-negative-constants.c [deleted file]
gcc/testsuite/gcc.dg/Wconversion-real-integer.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Wconversion-real.c [new file with mode: 0644]