OSDN Git Service

Install proper change
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Nov 1999 23:02:14 +0000 (23:02 +0000)
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 29 Nov 1999 23:02:14 +0000 (23:02 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30715 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fold-const.c

index 8766eb8..021a7d0 100644 (file)
@@ -4367,14 +4367,15 @@ extract_muldiv (t, c, code, wide_type)
       if (t1 != 0 && t2 != 0)
        return fold (build (tcode, ctype, convert (ctype, t1),
                            convert (ctype, t2)));
-      else if (TREE_CODE (op1) != INTEGER_CST)
-       break;
 
       /* If this was a subtraction, negate OP1 and set it to be an addition.
         This simplifies the logic below.  */
       if (tcode == MINUS_EXPR)
        tcode = PLUS_EXPR, op1 = negate_expr (op1);
 
+      if (TREE_CODE (op1) != INTEGER_CST)
+       break;
+
       /* If either OP1 or C are negative, this optimization is not safe for
         some of the division and remainder types while for others we need
         to change the code.  */