compiler: mark global variables whose address is taken
authorIan Lance Taylor <iant@golang.org>
Sun, 23 May 2021 02:19:13 +0000 (19:19 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 24 May 2021 20:24:45 +0000 (13:24 -0700)
commit358832c46a378e5a0b8a2fa3c2739125e3e680c7
tree9217b12417ae68331c8efd66fd230414b12b98dd
parent2c43f5ec9db163696de8691eb529df06c4999bcc
compiler: mark global variables whose address is taken

To implement this, change the backend to use flag bits for variables.

Fixes https://gcc.gnu.org/PR100537

PR go/100537
* go-gcc.cc (class Gcc_backend): Update methods that create
variables to take a flags parameter.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/322129
gcc/go/go-gcc.cc
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/backend.h
gcc/go/gofrontend/expressions.cc
gcc/go/gofrontend/gogo.cc
gcc/go/gofrontend/statements.cc
gcc/go/gofrontend/types.cc