aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2003-02-11 21:15:26 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2003-02-11 21:15:26 +0000
commitda52a0694bbe198dc9cf8d2977374bda2e812e60 (patch)
tree1064be970a17897c936184f584d00dfbac240a48 /gcc
parentd58f65843b7c7c21dd75e49796dcf1c90be591b6 (diff)
downloadgcc-da52a0694bbe198dc9cf8d2977374bda2e812e60.zip
gcc-da52a0694bbe198dc9cf8d2977374bda2e812e60.tar.gz
gcc-da52a0694bbe198dc9cf8d2977374bda2e812e60.tar.bz2
* builtins.c: Fix failures caused by commit of the wrong patch.
From-SVN: r62727
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/builtins.c8
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e87383a..e8ccf06 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-02-11 Roger Sayle <roger@eyesopen.com>
+
+ * builtins.c: Fix failure caused by commiting wrong patch.
+
2003-02-11 Dale Johannesen <dalej@apple.com>
* ra-build.c (compare_and_free_webs): Relax checking.
* config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
diff --git a/gcc/builtins.c b/gcc/builtins.c
index 9478808..cdb9bb2 100644
--- a/gcc/builtins.c
+++ b/gcc/builtins.c
@@ -1668,7 +1668,7 @@ expand_errno_check (exp, target)
{
rtx lab;
- if (flag_errno_math && errno_set && HONOR_NANS (GET_MODE (target)))
+ if (flag_errno_math && HONOR_NANS (GET_MODE (target)))
{
lab = gen_label_rtx ();
@@ -1806,7 +1806,8 @@ expand_builtin_mathfn (exp, target, subtarget)
return 0;
}
- expand_errno_check (exp, target);
+ if (errno_set)
+ expand_errno_check (exp, target);
/* Output the entire sequence. */
insns = get_insns ();
@@ -1903,7 +1904,8 @@ expand_builtin_mathfn_2 (exp, target, subtarget)
return 0;
}
- expand_errno_check (exp, target);
+ if (errno_set)
+ expand_errno_check (exp, target);
/* Output the entire sequence. */
insns = get_insns ();