diff options
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/builtins.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 46e5a6c..c83ca7c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/builtins.c b/gcc/builtins.c index f0ac04f..0622014 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, |
