diff options
author | pfg <pfg@FreeBSD.org> | 2013-12-06 02:19:58 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-12-06 02:19:58 +0000 |
commit | 681c6ef3ecabd11a13f4d291b100c0d036aa650f (patch) | |
tree | 79ad4332349324d8cef37f82064848496302c7d2 /contrib/gcc/c-common.c | |
parent | f8a9c7a9ee55b09ea40c2b41421cada96ed40621 (diff) | |
download | FreeBSD-src-681c6ef3ecabd11a13f4d291b100c0d036aa650f.zip FreeBSD-src-681c6ef3ecabd11a13f4d291b100c0d036aa650f.tar.gz |
gcc: Include types in error message for build_binary_op.
Mostly cosmetic change, again to reduce differences with Apple's gcc.
Obtained from: gcc 4.3 (rev. 125239; GPLv2)
MFC after: 3 weeks
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 d358a79..b97bb72 100644 --- a/contrib/gcc/c-common.c +++ b/contrib/gcc/c-common.c @@ -2019,10 +2019,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; @@ -2073,7 +2073,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. |