summaryrefslogtreecommitdiff
path: root/gcc/sdbout.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-20 23:42:47 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-20 23:42:47 +0000
commiteddf13561e664e28da16efdb673415413a6ef4a5 (patch)
tree4a7512785fe4c195497287d6f79a3d991b37d072 /gcc/sdbout.c
parentc1daa18066c5bb9fed737d9c5ae39b0f43b2782d (diff)
downloadgcc-eddf13561e664e28da16efdb673415413a6ef4a5.tar.gz
* sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32655 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sdbout.c')
-rw-r--r--gcc/sdbout.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/gcc/sdbout.c b/gcc/sdbout.c
index dfe84c8a5de..cb677520ec9 100644
--- a/gcc/sdbout.c
+++ b/gcc/sdbout.c
@@ -1251,16 +1251,17 @@ sdbout_one_type (type)
/* output the individual fields */
if (TREE_CODE (type) == ENUMERAL_TYPE)
- for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem))
- if (host_integerp (TREE_VALUE (tem), 0))
- {
- PUT_SDB_DEF (IDENTIFIER_POINTER (TREE_PURPOSE (tem)));
- PUT_SDB_INT_VAL (tree_low_cst (TREE_VALUE (tem), 0));
- PUT_SDB_SCL (C_MOE);
- PUT_SDB_TYPE (T_MOE);
- PUT_SDB_ENDEF;
- }
-
+ {
+ for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem))
+ if (host_integerp (TREE_VALUE (tem), 0))
+ {
+ PUT_SDB_DEF (IDENTIFIER_POINTER (TREE_PURPOSE (tem)));
+ PUT_SDB_INT_VAL (tree_low_cst (TREE_VALUE (tem), 0));
+ PUT_SDB_SCL (C_MOE);
+ PUT_SDB_TYPE (T_MOE);
+ PUT_SDB_ENDEF;
+ }
+ }
else /* record or union type */
for (tem = TYPE_FIELDS (type); tem; tem = TREE_CHAIN (tem))
/* Output the name, type, position (in bits), size (in bits)