aboutsummaryrefslogtreecommitdiff
path: root/gcc/godump.c
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2017-01-04 00:58:34 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-01-04 00:58:34 +0000
commite4d02f5277072c691de079b3b8aa9b862e070a9e (patch)
tree65d8ececca5939b302ec9388044e162352a58d89 /gcc/godump.c
parente7b0a53c68561db594a084bb4725c09721789bcd (diff)
downloadgcc-e4d02f5277072c691de079b3b8aa9b862e070a9e.zip
gcc-e4d02f5277072c691de079b3b8aa9b862e070a9e.tar.gz
gcc-e4d02f5277072c691de079b3b8aa9b862e070a9e.tar.bz2
godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
gcc/: * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE. gcc/testsuite/: * gcc.misc-tests/godump-1.c: Update for accurate representation of enums. From-SVN: r244041
Diffstat (limited to 'gcc/godump.c')
-rw-r--r--gcc/godump.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/godump.c b/gcc/godump.c
index 65a8b39..4884dee 100644
--- a/gcc/godump.c
+++ b/gcc/godump.c
@@ -722,10 +722,6 @@ go_format_type (struct godump_container *container, tree type,
switch (TREE_CODE (type))
{
- case ENUMERAL_TYPE:
- obstack_grow (ob, "int", 3);
- break;
-
case TYPE_DECL:
{
void **slot;
@@ -741,6 +737,7 @@ go_format_type (struct godump_container *container, tree type,
}
break;
+ case ENUMERAL_TYPE:
case INTEGER_TYPE:
{
const char *s;