diff options
Diffstat (limited to 'gcc/rust/backend')
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.cc | 12 | ||||
-rw-r--r-- | gcc/rust/backend/rust-compile-intrinsic.cc | 2 | ||||
-rw-r--r-- | gcc/rust/backend/rust-compile-pattern.cc | 8 | ||||
-rw-r--r-- | gcc/rust/backend/rust-constexpr.cc | 22 | ||||
-rw-r--r-- | gcc/rust/backend/rust-mangle.cc | 8 | ||||
-rw-r--r-- | gcc/rust/backend/rust-tree.cc | 22 | ||||
-rw-r--r-- | gcc/rust/backend/rust-tree.h | 4 |
7 files changed, 39 insertions, 39 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc index b6f92bb..80cc608 100644 --- a/gcc/rust/backend/rust-compile-expr.cc +++ b/gcc/rust/backend/rust-compile-expr.cc @@ -1117,7 +1117,7 @@ sort_tuple_patterns (HIR::MatchExpr &expr) else /* TuplePatternItemType::RANGED */ { // FIXME - gcc_unreachable (); + rust_unreachable (); } } @@ -1430,25 +1430,25 @@ CompileExpr::visit (HIR::MatchExpr &expr) else { // FIXME: There are other cases, but it better not be a Tuple - gcc_unreachable (); + rust_unreachable (); } } break; case HIR::Expr::ExprType::Path: { // FIXME - gcc_unreachable (); + rust_unreachable (); } break; default: - gcc_unreachable (); + rust_unreachable (); } } else { // FIXME: match on other types of expressions not yet implemented. - gcc_unreachable (); + rust_unreachable (); } // setup the end label so the cases can exit properly @@ -2856,7 +2856,7 @@ CompileExpr::generate_closure_fntype (HIR::ClosureExpr &expr, else { // FIXME error message? - gcc_unreachable (); + rust_unreachable (); return error_mark_node; } diff --git a/gcc/rust/backend/rust-compile-intrinsic.cc b/gcc/rust/backend/rust-compile-intrinsic.cc index 0034f1e..0521d85 100644 --- a/gcc/rust/backend/rust-compile-intrinsic.cc +++ b/gcc/rust/backend/rust-compile-intrinsic.cc @@ -627,7 +627,7 @@ op_with_overflow_inner (Context *ctx, TyTy::FnType *fntype, tree_code op) break; default: - gcc_unreachable (); + rust_unreachable (); break; } rust_assert (overflow_builtin != error_mark_node); diff --git a/gcc/rust/backend/rust-compile-pattern.cc b/gcc/rust/backend/rust-compile-pattern.cc index 6d7678d..c655690 100644 --- a/gcc/rust/backend/rust-compile-pattern.cc +++ b/gcc/rust/backend/rust-compile-pattern.cc @@ -199,7 +199,7 @@ CompilePatternBindings::visit (HIR::TupleStructPattern &pattern) { case HIR::TupleStructItems::RANGE: { // TODO - gcc_unreachable (); + rust_unreachable (); } break; @@ -284,13 +284,13 @@ CompilePatternBindings::visit (HIR::StructPattern &pattern) { case HIR::StructPatternField::ItemType::TUPLE_PAT: { // TODO - gcc_unreachable (); + rust_unreachable (); } break; case HIR::StructPatternField::ItemType::IDENT_PAT: { // TODO - gcc_unreachable (); + rust_unreachable (); } break; @@ -467,7 +467,7 @@ CompilePatternLet::visit (HIR::TuplePattern &pattern) return; } default: { - gcc_unreachable (); + rust_unreachable (); } } } diff --git a/gcc/rust/backend/rust-constexpr.cc b/gcc/rust/backend/rust-constexpr.cc index 0eed918..a80cfd7 100644 --- a/gcc/rust/backend/rust-constexpr.cc +++ b/gcc/rust/backend/rust-constexpr.cc @@ -1131,7 +1131,7 @@ base_field_constructor_elt (vec<constructor_elt, va_gc> *v, tree ref) if (ce->index == field) return ce; - gcc_unreachable (); + rust_unreachable (); return NULL; } @@ -1617,7 +1617,7 @@ eval_array_reference (const constexpr_ctx *ctx, tree t, bool lval, /* We can't do anything with other tree codes, so use VERIFY_CONSTANT to complain and fail. */ VERIFY_CONSTANT (ary); - gcc_unreachable (); + rust_unreachable (); } bool found; @@ -1854,7 +1854,7 @@ label_matches (const constexpr_ctx *ctx, tree *jump_target, tree stmt) break; default: - gcc_unreachable (); + rust_unreachable (); } return false; } @@ -2694,7 +2694,7 @@ eval_store_expression (const constexpr_ctx *ctx, tree t, bool lval, if (TREE_CODE (probe) == ARRAY_REF) { // TODO - gcc_unreachable (); + rust_unreachable (); // elt = eval_and_check_array_index (ctx, probe, false, // non_constant_p, overflow_p); if (*non_constant_p) @@ -3371,7 +3371,7 @@ eval_call_expression (const constexpr_ctx *ctx, tree t, bool lval, { // return cxx_eval_internal_function (ctx, t, lval, // non_constant_p, overflow_p); - gcc_unreachable (); + rust_unreachable (); return error_mark_node; } @@ -3875,7 +3875,7 @@ build_data_member_initialization (tree t, vec<constructor_elt, va_gc> **vec) // goto found; // // default: -// gcc_unreachable (); +// rust_unreachable (); // } // found: // @@ -4142,7 +4142,7 @@ array_index_cmp (tree key, tree index) return 0; } default: - gcc_unreachable (); + rust_unreachable (); } } @@ -4434,7 +4434,7 @@ get_array_or_vector_nelts (const constexpr_ctx *ctx, tree type, else if (VECTOR_TYPE_P (type)) nelts = size_int (TYPE_VECTOR_SUBPARTS (type)); else - gcc_unreachable (); + rust_unreachable (); /* For VLAs, the number of elements won't be an integer constant. */ nelts @@ -4786,7 +4786,7 @@ eval_bit_field_ref (const constexpr_ctx *ctx, tree t, bool lval, } if (fld_seen) return fold_convert (TREE_TYPE (t), retval); - gcc_unreachable (); + rust_unreachable (); return error_mark_node; } @@ -4875,7 +4875,7 @@ eval_loop_expr (const constexpr_ctx *ctx, tree t, bool *non_constant_p, count = -1; break; default: - gcc_unreachable (); + rust_unreachable (); } auto_vec<tree, 10> save_exprs; new_ctx.save_exprs = &save_exprs; @@ -6431,7 +6431,7 @@ potential_constant_expression_1 (tree t, bool want_rval, bool strict, bool now, default: sorry ("unexpected AST of kind %s", get_tree_code_name (TREE_CODE (t))); - gcc_unreachable (); + rust_unreachable (); return false; } #undef RECUR diff --git a/gcc/rust/backend/rust-mangle.cc b/gcc/rust/backend/rust-mangle.cc index 83aefa7..8a1a73c 100644 --- a/gcc/rust/backend/rust-mangle.cc +++ b/gcc/rust/backend/rust-mangle.cc @@ -193,7 +193,7 @@ v0_simple_type_prefix (const TyTy::BaseType *ty) return ""; } - gcc_unreachable (); + rust_unreachable (); } // Add an underscore-terminated base62 integer to the mangling string. @@ -262,7 +262,7 @@ v0_type_prefix (const TyTy::BaseType *ty) return ty_prefix; // FIXME: We need to fetch more type prefixes - gcc_unreachable (); + rust_unreachable (); } static std::string @@ -291,7 +291,7 @@ v0_mangle_item (const TyTy::BaseType *ty, const Resolver::CanonicalPath &path) v0_add_identifier (mangled, crate_name); v0_add_disambiguator (mangled, 62); - gcc_unreachable (); + rust_unreachable (); } std::string @@ -305,7 +305,7 @@ Mangler::mangle_item (const TyTy::BaseType *ty, case Mangler::MangleVersion::V0: return v0_mangle_item (ty, path); default: - gcc_unreachable (); + rust_unreachable (); } } diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc index 1a1e5a5..d1277ff 100644 --- a/gcc/rust/backend/rust-tree.cc +++ b/gcc/rust/backend/rust-tree.cc @@ -382,7 +382,7 @@ convert_to_void (tree expr, impl_conv_void implicit) type); break; default: - gcc_unreachable (); + rust_unreachable (); } } /* Don't load the value if this is an implicit dereference, or if @@ -438,7 +438,7 @@ convert_to_void (tree expr, impl_conv_void implicit) type); break; default: - gcc_unreachable (); + rust_unreachable (); } } else if (is_volatile && TREE_ADDRESSABLE (type)) @@ -493,7 +493,7 @@ convert_to_void (tree expr, impl_conv_void implicit) type); break; default: - gcc_unreachable (); + rust_unreachable (); } } if (is_reference || !is_volatile || !is_complete @@ -571,7 +571,7 @@ convert_to_void (tree expr, impl_conv_void implicit) expr, type); break; default: - gcc_unreachable (); + rust_unreachable (); } break; @@ -1309,7 +1309,7 @@ type_memfn_quals (const_tree type) else if (TREE_CODE (type) == METHOD_TYPE) return rs_type_quals (class_of_this_parm (type)); else - gcc_unreachable (); + rust_unreachable (); } // forked from gcc/cp/pt.cc find_parameter_pack_data @@ -1880,7 +1880,7 @@ rs_tree_equal (tree t1, tree t2) case VOID_CST: /* There's only a single VOID_CST node, so we should never reach here. */ - gcc_unreachable (); + rust_unreachable (); case INTEGER_CST: return tree_int_cst_equal (t1, t2); @@ -2047,7 +2047,7 @@ rs_tree_equal (tree t1, tree t2) return same_type_p (t1, t2); default: - gcc_unreachable (); + rust_unreachable (); } /* We can get here with --disable-checking. */ @@ -3643,7 +3643,7 @@ fold_offsetof (tree expr, tree type, enum tree_code ctx) return fold_offsetof (t, type); default: - gcc_unreachable (); + rust_unreachable (); } if (!POINTER_TYPE_P (type)) @@ -3920,7 +3920,7 @@ retry: break; default: - gcc_unreachable (); + rust_unreachable (); } } @@ -4814,7 +4814,7 @@ fold_builtin_source_location (location_t loc) else if (strcmp (n, "_M_column") == 0) val = build_int_cst (TREE_TYPE (field), LOCATION_COLUMN (loc)); else - gcc_unreachable (); + rust_unreachable (); CONSTRUCTOR_APPEND_ELT (v, field, val); } @@ -5940,7 +5940,7 @@ lvalue_error (location_t loc, enum lvalue_use use) error_at (loc, "lvalue required in %<asm%> statement"); break; default: - gcc_unreachable (); + rust_unreachable (); } } diff --git a/gcc/rust/backend/rust-tree.h b/gcc/rust/backend/rust-tree.h index b4c058f..605d0dd 100644 --- a/gcc/rust/backend/rust-tree.h +++ b/gcc/rust/backend/rust-tree.h @@ -1958,7 +1958,7 @@ struct named_decl_hash : ggc_remove<tree> /* Nothing is deletable. Everything is insertable. */ static bool is_deleted (value_type) { return false; } - static void mark_deleted (value_type) { gcc_unreachable (); } + static void mark_deleted (value_type) { rust_unreachable (); } }; // forked from gcc/cp/cp-tree.h lang_decl_selector @@ -2168,7 +2168,7 @@ struct named_label_hash : ggc_remove<named_label_entry *> /* Nothing is deletable. Everything is insertable. */ inline static bool is_deleted (value_type) { return false; } - inline static void mark_deleted (value_type) { gcc_unreachable (); } + inline static void mark_deleted (value_type) { rust_unreachable (); } }; // forked from gcc/cp/cp-tree.h |