Commit 3eb9e389 by Ian Lance Taylor Committed by Ian Lance Taylor

godump.c (find_dummy_types): Output a dummy type if we couldn't output the real type.

	* godump.c (find_dummy_types): Output a dummy type if we couldn't
	output the real type.

From-SVN: r194181
parent b56ba885
2012-12-04 Ian Lance Taylor <iant@google.com>
* godump.c (find_dummy_types): Output a dummy type if we couldn't
output the real type.
2012-12-04 Steven Bosscher <steven@gcc.gnu.org> 2012-12-04 Steven Bosscher <steven@gcc.gnu.org>
* rtl.h (print_insn_with_notes): Remove prototype. * rtl.h (print_insn_with_notes): Remove prototype.
/* Output Go language descriptions of types. /* Output Go language descriptions of types.
Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
Written by Ian Lance Taylor <iant@google.com>. Written by Ian Lance Taylor <iant@google.com>.
This file is part of GCC. This file is part of GCC.
...@@ -1164,9 +1164,11 @@ find_dummy_types (const void *ptr, void *adata) ...@@ -1164,9 +1164,11 @@ find_dummy_types (const void *ptr, void *adata)
struct godump_container *data = (struct godump_container *) adata; struct godump_container *data = (struct godump_container *) adata;
const char *type = (const char *) ptr; const char *type = (const char *) ptr;
void **slot; void **slot;
void **islot;
slot = htab_find_slot (data->type_hash, type, NO_INSERT); slot = htab_find_slot (data->type_hash, type, NO_INSERT);
if (slot == NULL) islot = htab_find_slot (data->invalid_hash, type, NO_INSERT);
if (slot == NULL || islot != NULL)
fprintf (go_dump_file, "type _%s struct {}\n", type); fprintf (go_dump_file, "type _%s struct {}\n", type);
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment