]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[analyzer] another function name that returns a pointer to errno
authorAlexandre Oliva <oliva@adacore.com>
Mon, 15 Sep 2025 23:14:45 +0000 (20:14 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Mon, 15 Sep 2025 23:14:45 +0000 (20:14 -0300)
Add __get_errno_ptr() as yet another synonym for __errno_location.

for  gcc/analyzer/ChangeLog

* kf.cc (register_known_functions): Add __get_errno_ptr.

gcc/analyzer/kf.cc

index 2a7c3570315337643e267ab4f5d415e48babedf7..5c54b55644869a8fb59536e969eb7b61dfc3d75b 100644 (file)
@@ -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.  */