OSDN Git Service

gcc/:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jan 2012 00:22:14 +0000 (00:22 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 14 Jan 2012 00:22:14 +0000 (00:22 +0000)
commit3637bb872f0c42002c4802c5676bfcb1aabc6ca7
tree65cee32b0b18592f5aa5a416fb63c7ceeca865bc
parentb60e122b5d626b3b9905ae36c1e40d7d164cd34b
gcc/:
PR c++/50012
* tree.h (TYPE_QUALS): Add cast to int.
(TYPE_QUALS_NO_ADDR_SPACE): Likewise.
gcc/cp:
PR c++/50012
* typeck.c (enum_cast_to_int): New static function.
(cp_build_binary_op): When handling warn_sign_compare, don't test
for TREE_NO_WARNING.  Do call enum_cast_to_int.
* call.c (avoid_sign_compare_warnings): Remove static function.
(build_new_op_1): Don't call avoid_sign_compare_warnings.
gcc/testsuite/:
PR c++/50012
* g++.dg/warn/Wsign-compare-4.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183178 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wsign-compare-4.C [new file with mode: 0644]
gcc/tree.h