From: Yuao Ma Date: Mon, 23 Jun 2025 16:06:16 +0000 (+0800) Subject: gcc: remove atan from edom_only_function X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0606d2b979f4014b1dd6a1e6b030630ec5586fd3;p=thirdparty%2Fgcc.git 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 --- 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):