From: Kaveh R. Ghazi Date: Fri, 26 Mar 2004 00:29:25 +0000 (+0000) Subject: * builtins.c (fold_builtin): Fix error in last change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3a048383383a3290611f64fcf6fb4453c3728e71;p=gcc.git * builtins.c (fold_builtin): Fix error in last change. From-SVN: r79975 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 46e5a6c9181..c83ca7cf0e2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-03-25 Kaveh R. Ghazi + + * builtins.c (fold_builtin): Fix error in last change. + 2004-03-25 Richard Sandiford * config/mips/mips.h: Formatting fix. diff --git a/gcc/builtins.c b/gcc/builtins.c index f0ac04f89f9..0622014bd45 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -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,