From 6b28fd639d66b1a0d476c9552a53c977df594cd2 Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Wed, 6 May 1998 17:53:18 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 3 +++ gcc/config/i386/i386.c | 30 ++++++++++++++++++------------ gcc/config/i386/i386.h | 4 ++-- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c6153fe9310..1ff2d2cfd14d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -18,6 +18,9 @@ Wed May 6 15:51:39 1998 Jim Wilson 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 b1b8ab802d03..38d5e2b5429a 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 00ae6bb644a5..7d01e5921c98 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 -- 2.43.5