]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* builtins.c (fold_builtin): Fix error in last change.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 26 Mar 2004 00:29:25 +0000 (00:29 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 26 Mar 2004 00:29:25 +0000 (00:29 +0000)
From-SVN: r79975

gcc/ChangeLog
gcc/builtins.c

index 46e5a6c91813c89b7b8733091b5ef365a830cf1d..c83ca7cf0e2e897c366c48da72879582b2e6c5f6 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * builtins.c (fold_builtin): Fix error in last change.
+
 2004-03-25  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/mips/mips.h: Formatting fix.
index f0ac04f89f9aa85c14bf136194199ca8ba4929a1..0622014bd458e8865efb1bdd23589b9680342e46 100644 (file)
@@ -6704,7 +6704,7 @@ fold_builtin (tree exp)
                    BUILTIN_SQRT_P (fcode) ? dconsthalf : dconstthird;
                  
                  /* Adjust for the outer root.  */
-                 dconstroot.exp--;
+                 SET_REAL_EXP (&dconstroot, REAL_EXP (&dconstroot) - 1);
                  dconstroot = real_value_truncate (TYPE_MODE (type), dconstroot);
                  tree_root = build_real (type, dconstroot);
                  arglist = tree_cons (NULL_TREE, arg0,
@@ -6769,7 +6769,7 @@ fold_builtin (tree exp)
                  tree tree_root;
                  REAL_VALUE_TYPE dconstroot = dconstthird;
 
-                 dconstroot.exp--;
+                 SET_REAL_EXP (&dconstroot, REAL_EXP (&dconstroot) - 1);
                  dconstroot = real_value_truncate (TYPE_MODE (type), dconstroot);
                  tree_root = build_real (type, dconstroot);
                  arglist = tree_cons (NULL_TREE, arg0,