pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated case...
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sat, 28 Feb 1998 07:34:12 +0000 (07:34 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sat, 28 Feb 1998 07:34:12 +0000 (07:34 +0000)
       * pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated
       case, add parentheses to specify the proper order of precedence in
       the if-statement.

From-SVN: r18291

gcc/ChangeLog
gcc/config/pa/pa.h

index afd589e7756effabbb050a2d39cbaaf41d4450da..301711c4096e6bef333c22545129e70300c0c369 100644 (file)
@@ -1,5 +1,10 @@
 Sat Feb 28 07:54:03 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
+       * pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated
+       case, add parentheses to specify the proper order of precedence in
+       the if-statement.
+       
+
        * c-aux-info.c: Include string.h/strings.h.
 
        * pa.c: Include stdlib.h.
index cfbbb468f4eb5ccf83cfa520b913295cd50df24d..4fd25f8ff73ab358fc828e90a9d861665dd989be 100644 (file)
@@ -1826,20 +1826,20 @@ while (0)
    return it with a return statement.  Otherwise, break from the switch.  */
 
 #define CONST_COSTS(RTX,CODE,OUTER_CODE) \
-  case CONST_INT:                                              \
-    if (INTVAL (RTX) == 0) return 0;                           \
-    if (INT_14_BITS (RTX)) return 1;                           \
-  case HIGH:                                                   \
-    return 2;                                                  \
-  case CONST:                                                  \
-  case LABEL_REF:                                              \
-  case SYMBOL_REF:                                             \
-    return 4;                                                  \
-  case CONST_DOUBLE:                                           \
-    if (RTX == CONST0_RTX (DFmode) || RTX == CONST0_RTX (SFmode)\
-       && OUTER_CODE != SET)                                   \
-      return 0;                                                        \
-    else                                                       \
+  case CONST_INT:                                                      \
+    if (INTVAL (RTX) == 0) return 0;                                   \
+    if (INT_14_BITS (RTX)) return 1;                                   \
+  case HIGH:                                                           \
+    return 2;                                                          \
+  case CONST:                                                          \
+  case LABEL_REF:                                                      \
+  case SYMBOL_REF:                                                     \
+    return 4;                                                          \
+  case CONST_DOUBLE:                                                   \
+    if ((RTX == CONST0_RTX (DFmode) || RTX == CONST0_RTX (SFmode))     \
+       && OUTER_CODE != SET)                                           \
+      return 0;                                                                \
+    else                                                               \
       return 8;
 
 #define ADDRESS_COST(RTX) \