Skip to content
Snippets Groups Projects
Commit 7c9717fc authored by David Malcolm's avatar David Malcolm
Browse files

analyzer: fix 'errno' on Solaris and OS X [PR107807]


gcc/analyzer/ChangeLog:
	PR analyzer/107807
	* region-model-impl-calls.cc (register_known_functions): Register
	"___errno" and "__error" as synonyms  for "__errno_location".

gcc/testsuite/ChangeLog:
	PR analyzer/107807
	* gcc.dg/analyzer/errno-___errno.c: New test.
	* gcc.dg/analyzer/errno-__error.c: New test.
	* gcc.dg/analyzer/errno-global-var.c: New test.

Signed-off-by: default avatarDavid Malcolm <dmalcolm@redhat.com>
parent 6bd31b33
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment