OSDN Git Service

oops
authormerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Apr 1995 23:16:19 +0000 (23:16 +0000)
committermerrill <merrill@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Apr 1995 23:16:19 +0000 (23:16 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9308 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/c-typeck.c

index 20c653a..b6e9a6b 100644 (file)
@@ -2455,6 +2455,9 @@ build_binary_op (code, orig_op0, orig_op1, convert_p)
                 all the values of the unsigned type.  */
              if (! TREE_UNSIGNED (result_type))
                /* OK */;
+              /* Do not warn if both operands are unsigned.  */
+              else if (op0_signed == op1_signed)
+                /* OK */;
              /* Do not warn if the signed quantity is an unsuffixed
                 integer literal (or some static constant expression
                 involving such literals) and it is non-negative.  */