Fix bug with taking address of a variable when address does not escape.
authorIan Lance Taylor <iant@google.com>
Thu, 12 May 2011 18:35:05 +0000 (18:35 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 12 May 2011 18:35:05 +0000 (18:35 +0000)
commitacf98146054a121b1da2d76d76bc2c77e03dd301
tree82ff0959989caa861c84bff4e6205b529671db90
parent1d15f620aa4e68f6298491d52ca8cc8d496457a6
Fix bug with taking address of a variable when address does not escape.

* go-gcc.cc (Gcc_backend::local_variable): Add is_address_taken
parameter.
(Gcc_backend::parameter_variable): Likewise.

From-SVN: r173712
gcc/go/ChangeLog
gcc/go/go-gcc.cc
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/gogo.h