diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-06-29 12:12:16 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-06-29 12:13:35 -0700 |
commit | cca7eb8f7cc157ed1b351cbaa10a4066f8065c3a (patch) | |
tree | 37e4452c8ee7b927f8b7e4058f001e76ec4cd7ff /gcc/go | |
parent | a96d8d67d0073a7031c0712bc3fb7759417b2125 (diff) | |
download | gcc-cca7eb8f7cc157ed1b351cbaa10a4066f8065c3a.zip gcc-cca7eb8f7cc157ed1b351cbaa10a4066f8065c3a.tar.gz gcc-cca7eb8f7cc157ed1b351cbaa10a4066f8065c3a.tar.bz2 |
go-gcc: set DECL_NAMELESS for temporary variables
* go-gcc.cc (Gcc_backend::static_chain_variable): Set
DECL_NAMELESS on the new decl.
(Gcc_backend::temporary_variable): Likewise.
(Gcc_backend::function): Set DECL_NAMELESS on the result decl.
Diffstat (limited to 'gcc/go')
-rw-r--r-- | gcc/go/go-gcc.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index 41f309e..f812796 100644 --- a/gcc/go/go-gcc.cc +++ b/gcc/go/go-gcc.cc @@ -2853,6 +2853,7 @@ Gcc_backend::static_chain_variable(Bfunction* function, const std::string& name, TREE_USED(decl) = 1; DECL_ARTIFICIAL(decl) = 1; DECL_IGNORED_P(decl) = 1; + DECL_NAMELESS(decl) = 1; TREE_READONLY(decl) = 1; struct function *f = DECL_STRUCT_FUNCTION(fndecl); @@ -2912,6 +2913,7 @@ Gcc_backend::temporary_variable(Bfunction* function, Bblock* bblock, type_tree); DECL_ARTIFICIAL(var) = 1; DECL_IGNORED_P(var) = 1; + DECL_NAMELESS(var) = 1; TREE_USED(var) = 1; DECL_CONTEXT(var) = decl; @@ -3290,6 +3292,7 @@ Gcc_backend::function(Btype* fntype, const std::string& name, build_decl(location.gcc_location(), RESULT_DECL, NULL_TREE, restype); DECL_ARTIFICIAL(resdecl) = 1; DECL_IGNORED_P(resdecl) = 1; + DECL_NAMELESS(resdecl) = 1; DECL_CONTEXT(resdecl) = decl; DECL_RESULT(decl) = resdecl; } |