aboutsummaryrefslogtreecommitdiff
path: root/gcc/ch/expr.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-09-29 18:41:05 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-09-29 18:41:05 +0000
commit1f6b0ce0c5a368d88decdbfb9344cc2f325673fe (patch)
treeee5b90b6b11d949d33f62b144171d815cf8b87de /gcc/ch/expr.c
parent98e48780cff38dc8ab91a5e445c462da7b4a29b9 (diff)
downloadgcc-1f6b0ce0c5a368d88decdbfb9344cc2f325673fe.zip
gcc-1f6b0ce0c5a368d88decdbfb9344cc2f325673fe.tar.gz
gcc-1f6b0ce0c5a368d88decdbfb9344cc2f325673fe.tar.bz2
ch-tree.h (build_compare_expr): Change first argument's type from `enum chill_tree_code' to `enum tree_code'.
* ch-tree.h (build_compare_expr): Change first argument's type from `enum chill_tree_code' to `enum tree_code'. (build_compare_discrete_expr): Likewise. * expr.c (build_compare_set_expr): Likewise. (build_compare_string_expr): Likewise. (build_compare_expr): Likewise. (build_compare_discrete_expr): Likewise. Also add default case in switch statement. (compare_int_csts): Add default case in switch statement. From-SVN: r22643
Diffstat (limited to 'gcc/ch/expr.c')
-rw-r--r--gcc/ch/expr.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ch/expr.c b/gcc/ch/expr.c
index 3326eea..acc1bc7 100644
--- a/gcc/ch/expr.c
+++ b/gcc/ch/expr.c
@@ -3125,7 +3125,7 @@ fold_set_expr (code, op0, op1)
*/
static tree
build_compare_set_expr (code, op0, op1)
- enum chill_tree_code code;
+ enum tree_code code;
tree op0, op1;
{
tree result_type = NULL_TREE;
@@ -3380,7 +3380,7 @@ build_concat_expr (op0, op1)
*/
static tree
build_compare_string_expr (code, op0, op1)
- enum chill_tree_code code;
+ enum tree_code code;
tree op0, op1;
{
if (op0 == NULL_TREE || TREE_CODE (op0) == ERROR_MARK)
@@ -3539,6 +3539,8 @@ compare_int_csts (op, val1, val2)
if (op == NE_EXPR)
result = !result;
break;
+ default:
+ abort();
}
return result;
}
@@ -3549,7 +3551,7 @@ compare_int_csts (op, val1, val2)
tree
build_compare_discrete_expr (op, val1, val2)
- enum chill_tree_code op;
+ enum tree_code op;
tree val1, val2;
{
tree type1 = TREE_TYPE (val1);
@@ -3617,6 +3619,8 @@ build_compare_discrete_expr (op, val1, val2)
case NE_EXPR:
tmp = build_compare_expr (EQ_EXPR, val1, val2);
return build_chill_unary_op (TRUTH_NOT_EXPR, tmp);
+ default:
+ abort();
}
}
if (TYPE_PRECISION (type1) > TYPE_PRECISION (type2))
@@ -3628,7 +3632,7 @@ build_compare_discrete_expr (op, val1, val2)
tree
build_compare_expr (op, val1, val2)
- enum chill_tree_code op;
+ enum tree_code op;
tree val1, val2;
{
tree tmp;