aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-05-06 17:53:18 +0000
committerJeff Law <law@gcc.gnu.org>1998-05-06 11:53:18 -0600
commit6b28fd639d66b1a0d476c9552a53c977df594cd2 (patch)
treedd25e4e85cec55792f7c2902afbc3c202133483e /gcc
parent71ebb3b81ee7b246e37aede4e672771a6d494159 (diff)
downloadgcc-6b28fd639d66b1a0d476c9552a53c977df594cd2.zip
gcc-6b28fd639d66b1a0d476c9552a53c977df594cd2.tar.gz
gcc-6b28fd639d66b1a0d476c9552a53c977df594cd2.tar.bz2
i386.c (output_387_binary_op): Add some braces to avoid warnings.
* i386.c (output_387_binary_op): Add some braces to avoid warnings. * i386.h (REG_CLASS_CONTENTS): Similarly. From-SVN: r19592
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/i386/i386.c30
-rw-r--r--gcc/config/i386/i386.h4
3 files changed, 23 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2c6153f..1ff2d2c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index b1b8ab8..38d5e2b 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -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]))
{
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
index 00ae6bb..7d01e59 100644
--- a/gcc/config/i386/i386.h
+++ b/gcc/config/i386/i386.h
@@ -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