]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc: remove atan from edom_only_function
authorYuao Ma <c8ef@outlook.com>
Mon, 23 Jun 2025 16:06:16 +0000 (00:06 +0800)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 24 Jun 2025 13:26:38 +0000 (15:26 +0200)
According to the man page, atan does not produce an error. According to the C23
standard draft (N3088), a range error occurs for atan if a nonzero x is too
close to zero. Neither of them mentions that atan will result in a domain error.

gcc/ChangeLog:

* tree-call-cdce.cc (edom_only_function): Remove atan.

Signed-off-by: Yuao Ma <c8ef@outlook.com>
gcc/tree-call-cdce.cc

index 9ca5fda5126d54a2d0b49869e2f2bea96eb09b3f..712ec7c8920d4247e869b5ab565f05b84c3b94e8 100644 (file)
@@ -353,8 +353,6 @@ edom_only_function (gcall *call)
     CASE_FLT_FN_FLOATN_NX (BUILT_IN_ACOS):
     CASE_FLT_FN (BUILT_IN_ASIN):
     CASE_FLT_FN_FLOATN_NX (BUILT_IN_ASIN):
-    CASE_FLT_FN (BUILT_IN_ATAN):
-    CASE_FLT_FN_FLOATN_NX (BUILT_IN_ATAN):
     CASE_FLT_FN (BUILT_IN_COS):
     CASE_FLT_FN_FLOATN_NX (BUILT_IN_COS):
     CASE_FLT_FN (BUILT_IN_SIGNIFICAND):