This patch by Chris Manghane fixes the location of function parameters in the Go frontend. Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu. Committed to mainline.
Ian
Index: gcc/go/gofrontend/MERGE =================================================================== --- gcc/go/gofrontend/MERGE (revision 225752) +++ gcc/go/gofrontend/MERGE (working copy) @@ -1,4 +1,4 @@ -c8cb74e70fbe87b14bbd083730f52a68c79ec6bb +83191e8e2cb9f47f7c1e6bcb9997f21163292612 The first line of this file holds the git revision number of the last merge done from the gofrontend repository. Index: gcc/go/gofrontend/gogo.cc =================================================================== --- gcc/go/gofrontend/gogo.cc (revision 225750) +++ gcc/go/gofrontend/gogo.cc (working copy) @@ -1694,7 +1694,7 @@ Gogo::start_function(const std::string& ++p) { Variable* param = new Variable(p->type(), NULL, false, true, false, - location); + p->location()); if (is_varargs && p + 1 == parameters->end()) param->set_is_varargs_parameter();