diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-04-23 00:04:44 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-04-23 00:04:44 +0000 |
commit | 8c0d18659be4271377c1114c0cb7e225811ac914 (patch) | |
tree | 13b0a0e73206179dcaddcf97d209e13da1d114ff /gcc/go/gofrontend/parse.cc | |
parent | 632b4f8e8bf2de1177605fe274e11dc411d8be7b (diff) | |
download | gcc-8c0d18659be4271377c1114c0cb7e225811ac914.zip gcc-8c0d18659be4271377c1114c0cb7e225811ac914.tar.gz gcc-8c0d18659be4271377c1114c0cb7e225811ac914.tar.bz2 |
Define go_unreachable to replace gcc_unreachable.
From Evan Shaw.
From-SVN: r172882
Diffstat (limited to 'gcc/go/gofrontend/parse.cc')
-rw-r--r-- | gcc/go/gofrontend/parse.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/go/gofrontend/parse.cc b/gcc/go/gofrontend/parse.cc index b2a17156..eeb4f5d 100644 --- a/gcc/go/gofrontend/parse.cc +++ b/gcc/go/gofrontend/parse.cc @@ -35,7 +35,7 @@ Parse::Enclosing_var_comparison::operator()(const Enclosing_var& v1, // If we get here it means that a single nested function refers to // two different variables defined in enclosing functions, and both // variables have the same name. I think this is impossible. - gcc_unreachable(); + go_unreachable(); } // Class Parse. @@ -362,7 +362,7 @@ Parse::type_name(bool issue_error) else if (named_object->is_unknown() || named_object->is_type_declaration()) return Type::make_forward_declaration(named_object); else - gcc_unreachable(); + go_unreachable(); } // ArrayType = "[" [ ArrayLength ] "]" ElementType . @@ -2323,10 +2323,10 @@ Parse::operand(bool may_be_sink) case Named_object::NAMED_OBJECT_UNKNOWN: return Expression::make_unknown_reference(named_object, location); default: - gcc_unreachable(); + go_unreachable(); } } - gcc_unreachable(); + go_unreachable(); case Token::TOKEN_STRING: ret = Expression::make_string(token->string_value(), token->location()); @@ -3068,7 +3068,7 @@ Parse::expression_may_start_here() case Token::TOKEN_IMAGINARY: return true; default: - gcc_unreachable(); + go_unreachable(); } } @@ -3493,7 +3493,7 @@ Parse::inc_dec_stat(Expression* exp) else if (token->is_op(OPERATOR_MINUSMINUS)) this->gogo_->add_statement(Statement::make_dec_statement(exp)); else - gcc_unreachable(); + go_unreachable(); this->advance_token(); } @@ -4858,7 +4858,7 @@ Parse::break_stat() else if (enclosing->classification() == Statement::STATEMENT_SELECT) label = enclosing->select_statement()->break_label(); else - gcc_unreachable(); + go_unreachable(); this->gogo_->add_statement(Statement::make_break_statement(label, location)); @@ -4907,7 +4907,7 @@ Parse::continue_stat() else if (enclosing->classification() == Statement::STATEMENT_FOR_RANGE) label = enclosing->for_range_statement()->continue_label(); else - gcc_unreachable(); + go_unreachable(); this->gogo_->add_statement(Statement::make_continue_statement(label, location)); |