https://gcc.gnu.org/g:413a987bbfb602e967e8fa8759e55e9ef01e68de

commit 413a987bbfb602e967e8fa8759e55e9ef01e68de
Author: Alexandre Oliva <[email protected]>
Date:   Tue Sep 9 23:10:35 2025 -0300

    [analyzer] another function name that returns a pointer to errno
    
    Add __get_errno_ptr() as yet another synonym for __errno_location.
    
    for  gcc/analyzer/ChangeLog
    
            * kf.cc (register_known_functions): Add __get_errno_ptr.

Diff:
---
 gcc/analyzer/kf.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/analyzer/kf.cc b/gcc/analyzer/kf.cc
index 2a7c35703153..5c54b5564486 100644
--- a/gcc/analyzer/kf.cc
+++ b/gcc/analyzer/kf.cc
@@ -2373,6 +2373,7 @@ register_known_functions (known_function_manager &kfm,
     kfm.add ("___errno", std::make_unique<kf_errno_location> ());
     kfm.add ("__error", std::make_unique<kf_errno_location> ());
     kfm.add ("__errno", std::make_unique<kf_errno_location> ());
+    kfm.add ("__get_errno_ptr", std::make_unique<kf_errno_location> ());
   }
 
   /* Language-specific support functions.  */

Reply via email to