diff options
author | Joseph Myers <joseph@codesourcery.com> | 2004-11-15 22:13:21 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2004-11-15 22:13:21 +0000 |
commit | 37b2f2904b3320e3775a2bbd219623c15b6a974e (patch) | |
tree | 7edbe1acfb8a5b45701a916a2cd65e6e7107fae2 /gcc/c-common.c | |
parent | d134f39eeb50933428755e3c01779aa3991a6ef7 (diff) | |
download | gcc-37b2f2904b3320e3775a2bbd219623c15b6a974e.zip gcc-37b2f2904b3320e3775a2bbd219623c15b6a974e.tar.gz gcc-37b2f2904b3320e3775a2bbd219623c15b6a974e.tar.bz2 |
c-common.c (binary_op_error): Don't allow LROTATE_EXPR, RROTATE_EXPR or unknown code.
* c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
RROTATE_EXPR or unknown code.
* c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
or unknown code.
From-SVN: r90697
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index ba77501..81bdbbf 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -1863,11 +1863,8 @@ binary_op_error (enum tree_code code) opname = "||"; break; case BIT_XOR_EXPR: opname = "^"; break; - case LROTATE_EXPR: - case RROTATE_EXPR: - opname = "rotate"; break; default: - opname = "unknown"; break; + gcc_unreachable (); } error ("invalid operands to binary %s", opname); } |