public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1917] go-gcc: set DECL_NAMELESS for temporary variables
@ 2021-06-29 19:14 Ian Lance Taylor
  0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2021-06-29 19:14 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cca7eb8f7cc157ed1b351cbaa10a4066f8065c3a

commit r12-1917-gcca7eb8f7cc157ed1b351cbaa10a4066f8065c3a
Author: Ian Lance Taylor <iant@golang.org>
Date:   Tue Jun 29 12:12:16 2021 -0700

    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.

Diff:
---
 gcc/go/go-gcc.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc
index 41f309e7294..f812796c959 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;
     }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-29 19:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 19:14 [gcc r12-1917] go-gcc: set DECL_NAMELESS for temporary variables Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).