cgraph.c (cgraph_function_body_availability): Fix test of externally visible.

* cgraph.c (cgraph_function_body_availability): Fix test of externally
	visible.

From-SVN: r141930
This commit is contained in:
Jan Hubicka 2008-11-16 23:31:58 +01:00 committed by Jan Hubicka
parent 304b14b107
commit d3ea650c44
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-11-16 Jan Hubicka <jh@suse.cz>
* cgraph.c (cgraph_function_body_availability): Fix test of externally
visible.
2008-11-16 Joshua Kinard <kumba@gentoo.org>
* config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=r1[0246]000

View File

@ -1427,7 +1427,7 @@ cgraph_function_body_availability (struct cgraph_node *node)
avail = AVAIL_NOT_AVAILABLE;
else if (node->local.local)
avail = AVAIL_LOCAL;
else if (node->local.externally_visible)
else if (!node->local.externally_visible)
avail = AVAIL_AVAILABLE;
/* If the function can be overwritten, return OVERWRITABLE. Take