OSDN Git Service

* sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Mar 2000 23:42:47 +0000 (23:42 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Mar 2000 23:42:47 +0000 (23:42 +0000)
        warning.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32655 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/sdbout.c

index 69a2a70..14826fb 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-20  Andreas Jaeger  <aj@suse.de>
+
+       * sdbout.c (sdbout_one_type): Add braces to avoid "ambigous else"
+       warning.
+
 2000-03-20  Richard Henderson  <rth@cygnus.com>
 
        * regmove.c (stack_memref_p): Fix typo, reorg for readability.
index dfe84c8..cb67752 100644 (file)
@@ -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)