OSDN Git Service

* pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Feb 1998 07:34:12 +0000 (07:34 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 28 Feb 1998 07:34:12 +0000 (07:34 +0000)
       case, add parentheses to specify the proper order of precedence in
       the if-statement.

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

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

index afd589e..301711c 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 cfbbb46..4fd25f8 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) \