From: Kaveh R. Ghazi Date: Sat, 28 Feb 1998 07:34:12 +0000 (+0000) Subject: pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated case... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5feca98414e6dfd82e6bf2315478443004bc21b1;p=gcc.git pa.h (CONST_COSTS): When checking the CONST_DOUBLE enumerated case... * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index afd589e7756..301711c4096 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ Sat Feb 28 07:54:03 1998 Kaveh R. Ghazi + * 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. diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index cfbbb468f4e..4fd25f8ff73 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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) \