diff options
author | pfg <pfg@FreeBSD.org> | 2013-12-27 16:06:08 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-12-27 16:06:08 +0000 |
commit | 020ad1f282db55011d51031eb05015f0e3fb1161 (patch) | |
tree | 97d253bb94f5309a98dbf5dac4b79832c559f8ad /contrib/gcc/c-common.c | |
parent | 285471a802bf8879f872192d04afdc581490d121 (diff) | |
download | FreeBSD-src-020ad1f282db55011d51031eb05015f0e3fb1161.zip FreeBSD-src-020ad1f282db55011d51031eb05015f0e3fb1161.tar.gz |
gcc: Merge upstream changes.
Include types in error message for build_binary_op.
Mostly cosmetic changes, to reduce differences with Apple's gcc.
Obtained from: gcc 4.3 (rev. 120611, 124839, 125239; GPLv2)
Diffstat (limited to 'contrib/gcc/c-common.c')
-rw-r--r-- | contrib/gcc/c-common.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/gcc/c-common.c b/contrib/gcc/c-common.c index fa89614..c2f0d4e 100644 --- a/contrib/gcc/c-common.c +++ b/contrib/gcc/c-common.c @@ -1988,10 +1988,10 @@ min_precision (tree value, int unsignedp) } /* Print an error message for invalid operands to arith operation - CODE. */ + CODE with TYPE0 for operand 0, and TYPE1 for operand 1. */ void -binary_op_error (enum tree_code code) +binary_op_error (enum tree_code code, tree type0, tree type1) { const char *opname; @@ -2042,7 +2042,8 @@ binary_op_error (enum tree_code code) default: gcc_unreachable (); } - error ("invalid operands to binary %s", opname); + error ("invalid operands to binary %s (have %qT and %qT)", opname, + type0, type1); } /* Subroutine of build_binary_op, used for comparison operations. |