-2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
+2006-10-29 Dirk Mueller <dmueller@suse.de>
+
+ PR c++/29033
+ * typeck.c (build_binary_op): Duplicate warning message
+ for better translation.
+
+2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
* decl.c (builtin_function_1): Move common code to
add_builtin_function.
if (TREE_CODE (op1) == INTEGER_CST)
{
if (tree_int_cst_lt (op1, integer_zero_node))
- warning (0, "%s rotate count is negative",
- (code == LROTATE_EXPR) ? "left" : "right");
+ warning (0, (code == LROTATE_EXPR) ? "left rotate count is negative" :
+ "right rotate count is negative");
else if (compare_tree_int (op1, TYPE_PRECISION (type0)) >= 0)
- warning (0, "%s rotate count >= width of type",
- (code == LROTATE_EXPR) ? "left" : "right");
+ warning (0, (code == LROTATE_EXPR) ? "left rotate count >= width of type" :
+ "right rotate count >= width of type");
}
/* Convert the shift-count to an integer, regardless of
size of value being shifted. */