i386.c (output_387_binary_op): Add some braces to avoid warnings.
authorJeffrey A Law <law@cygnus.com>
Wed, 6 May 1998 17:53:18 +0000 (17:53 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 6 May 1998 17:53:18 +0000 (11:53 -0600)
        * i386.c (output_387_binary_op): Add some braces to avoid warnings.
        * i386.h (REG_CLASS_CONTENTS): Similarly.

From-SVN: r19592

gcc/ChangeLog
gcc/config/i386/i386.c
gcc/config/i386/i386.h

index 2c6153fe9310cb056869e0c1a37aaa07f4e7cd66..1ff2d2cfd14ddca2fb58b38425a5f5663bb502c2 100644 (file)
@@ -18,6 +18,9 @@ Wed May  6 15:51:39 1998  Jim Wilson  <wilson@cygnus.com>
 
 Wed May  6 16:46:01 1998  Jeffrey A Law  (law@cygnus.com)
 
+       * i386.c (output_387_binary_op): Add some braces to avoid warnings.
+       * i386.h (REG_CLASS_CONTENTS): Similarly.
+
        * toplev.c (-fsched-max): Delete flag.
        (-fsched-interblock-max-blocks,-fsched-interblock-max-insns): Likewise.
        * haifa-sched.c: Remove -fsched-max-N, -fsched-interblock-max-blocks-N
index b1b8ab802d03ca7b662b2dce0bf1c5f40247e8ab..38d5e2b5429a2d2ab87d97fb313629c5fa941999 100644 (file)
@@ -3876,10 +3876,12 @@ output_387_binary_op (insn, operands)
        }
 
       if (find_regno_note (insn, REG_DEAD, REGNO (operands[2])))
-       if (STACK_TOP_P (operands[0]))
-         return strcat (buf, AS2 (p,%0,%2));
-       else
-         return strcat (buf, AS2 (p,%2,%0));
+       {
+         if (STACK_TOP_P (operands[0]))
+           return strcat (buf, AS2 (p,%0,%2));
+         else
+           return strcat (buf, AS2 (p,%2,%0));
+       }
 
       if (STACK_TOP_P (operands[0]))
        return strcat (buf, AS2C (%y2,%0));
@@ -3910,16 +3912,20 @@ output_387_binary_op (insn, operands)
        abort ();
 
       if (find_regno_note (insn, REG_DEAD, REGNO (operands[2])))
-       if (STACK_TOP_P (operands[0]))
-         return strcat (buf, AS2 (p,%0,%2));
-       else
-         return strcat (buf, AS2 (rp,%2,%0));
+       {
+         if (STACK_TOP_P (operands[0]))
+           return strcat (buf, AS2 (p,%0,%2));
+         else
+           return strcat (buf, AS2 (rp,%2,%0));
+       }
 
       if (find_regno_note (insn, REG_DEAD, REGNO (operands[1])))
-       if (STACK_TOP_P (operands[0]))
-         return strcat (buf, AS2 (rp,%0,%1));
-       else
-         return strcat (buf, AS2 (p,%1,%0));
+       {
+         if (STACK_TOP_P (operands[0]))
+           return strcat (buf, AS2 (rp,%0,%1));
+         else
+           return strcat (buf, AS2 (p,%1,%0));
+       }
 
       if (STACK_TOP_P (operands[0]))
        {
index 00ae6bb644a51dbb09ad217f8558ca8806098896..7d01e5921c98cd70b3e63038a11d8bb4ef1ef6bd 100644 (file)
@@ -710,7 +710,7 @@ enum reg_class
    of length N_REG_CLASSES.  */
 
 #define REG_CLASS_CONTENTS \
-{      0,                                                      \
+{{      0,                                                     \
      0x1,    0x2,  0x4,         0x8,   /* AREG, DREG, CREG, BREG */    \
      0x3,                      /* AD_REGS */                   \
      0xf,                      /* Q_REGS */                    \
@@ -719,7 +719,7 @@ enum reg_class
  0x100ff,                      /* GENERAL_REGS */              \
   0x0100, 0x0200,              /* FP_TOP_REG, FP_SECOND_REG */ \
   0xff00,                      /* FLOAT_REGS */                \
- 0x1ffff }
+ 0x1ffff }}
 
 /* The same information, inverted:
    Return the class number of the smallest class containing