summaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend/types.h
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-01 00:23:22 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2013-02-01 00:23:22 +0000
commit617af2a04a8e871a4179bee7833dc2ae40b44db4 (patch)
treebdb7b11102b400b214f9255ea3a43456dc0c1373 /gcc/go/gofrontend/types.h
parentbb4e1c9586d71f4ad731be6424b37a7197049fde (diff)
downloadgcc-617af2a04a8e871a4179bee7833dc2ae40b44db4.tar.gz
compiler: Don't emit multiple methods for identical unnamed structs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195638 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go/gofrontend/types.h')
-rw-r--r--gcc/go/gofrontend/types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/go/gofrontend/types.h b/gcc/go/gofrontend/types.h
index ba918c96023..3922a634f59 100644
--- a/gcc/go/gofrontend/types.h
+++ b/gcc/go/gofrontend/types.h
@@ -2184,6 +2184,12 @@ class Struct_type : public Type
do_export(Export*) const;
private:
+ // Used to merge method sets of identical unnamed structs.
+ typedef Unordered_map_hash(Struct_type*, Struct_type*, Type_hash_identical,
+ Type_identical) Identical_structs;
+
+ static Identical_structs identical_structs;
+
// Used to avoid infinite loops in field_reference_depth.
struct Saw_named_type
{