diff options
author | Dirk Mueller <mueller@gcc.gnu.org> | 2006-10-28 22:34:06 +0000 |
---|---|---|
committer | Dirk Mueller <mueller@gcc.gnu.org> | 2006-10-28 22:34:06 +0000 |
commit | 85f37826c69cda5ca54fea63962b46ccd9f15c1b (patch) | |
tree | 0baa781bb8541b8030f82c58aa97fe5cbf4539b8 /gcc/cp | |
parent | e7457c3eacf65a90b11d084434c20cd58ebbdb27 (diff) | |
download | gcc-85f37826c69cda5ca54fea63962b46ccd9f15c1b.zip gcc-85f37826c69cda5ca54fea63962b46ccd9f15c1b.tar.gz gcc-85f37826c69cda5ca54fea63962b46ccd9f15c1b.tar.bz2 |
re PR c++/29033 (%s substituted with "left"/"right" can't be properly translated)
2006-10-29 Dirk Mueller <dmueller@suse.de>
PR c++/29033
* typeck.c (build_binary_op): Duplicate warning message
for better translation.
From-SVN: r118117
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/cp/typeck.c | 8 |
2 files changed, 11 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 0ea7e09..7e4b378 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,4 +1,10 @@ -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. diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index b9ee1f2..1faf142 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -3226,11 +3226,11 @@ build_binary_op (enum tree_code code, tree orig_op0, tree orig_op1, 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. */ |