From d7bb07d436591cec82202cc252a3950d37dd7758 Mon Sep 17 00:00:00 2001 From: ian Date: Tue, 2 Oct 2012 22:22:39 +0000 Subject: compiler: Fix parse of (<- chan <- chan <- int)(x). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@192012 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/go/gofrontend/parse.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/go/gofrontend/parse.h') diff --git a/gcc/go/gofrontend/parse.h b/gcc/go/gofrontend/parse.h index 3139f7e8908..fb5c1f16411 100644 --- a/gcc/go/gofrontend/parse.h +++ b/gcc/go/gofrontend/parse.h @@ -14,6 +14,7 @@ class Named_object; class Type; class Typed_identifier; class Typed_identifier_list; +class Channel_type; class Function_type; class Block; class Expression; @@ -229,6 +230,7 @@ class Parse bool expression_may_start_here(); Expression* unary_expr(bool may_be_sink, bool may_be_composite_lit, bool* is_type_switch); + Type* reassociate_chan_direction(Channel_type*, Location); Expression* qualified_expr(Expression*, Location); Expression* id_to_expression(const std::string&, Location); void statement(Label*); -- cgit v1.2.1 From a5a357376d73fc6cd9009e059376d649d6ffeb26 Mon Sep 17 00:00:00 2001 From: ian Date: Wed, 3 Oct 2012 05:03:33 +0000 Subject: compiler: Fix a, b, c := b, a, 1 when a and b already exist. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@192023 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/go/gofrontend/parse.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/go/gofrontend/parse.h') diff --git a/gcc/go/gofrontend/parse.h b/gcc/go/gofrontend/parse.h index fb5c1f16411..a355b7d2b3b 100644 --- a/gcc/go/gofrontend/parse.h +++ b/gcc/go/gofrontend/parse.h @@ -206,8 +206,11 @@ class Parse Expression*, bool is_coloneq, Location); Named_object* init_var(const Typed_identifier&, Type*, Expression*, - bool is_coloneq, bool type_from_init, bool* is_new); + bool is_coloneq, bool type_from_init, bool* is_new, + Expression_list* vars, Expression_list* vals); Named_object* create_dummy_global(Type*, Expression*, Location); + void finish_init_vars(Expression_list* vars, Expression_list* vals, + Location); void simple_var_decl_or_assignment(const std::string&, Location, bool may_be_composite_lit, Range_clause*, Type_switch*); -- cgit v1.2.1