https://gcc.gnu.org/g:bdcfa92ca37212bc2a78443ab73f7adda1efcacd
commit bdcfa92ca37212bc2a78443ab73f7adda1efcacd 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..8acc28e4fd7a 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", make_unique<kf_errno_location> ()); } /* Language-specific support functions. */
