From d6eec0802a0b9a4e86d6ca0193f92931133179f7 Mon Sep 17 00:00:00 2001
From: Yuao Ma <c8ef@outlook.com>
Date: Tue, 24 Jun 2025 00:06:16 +0800
Subject: [PATCH] gcc: remove atan from edom_only_function

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 | 2 --
 1 file changed, 2 deletions(-)

diff --git a/gcc/tree-call-cdce.cc b/gcc/tree-call-cdce.cc
index 9ca5fda5126..712ec7c8920 100644
--- a/gcc/tree-call-cdce.cc
+++ b/gcc/tree-call-cdce.cc
@@ -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):
-- 
2.43.0

