summaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-16 22:31:58 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2008-11-16 22:31:58 +0000
commit0b0816a00f00903585250fecdf1a60bb62204022 (patch)
tree51082b986a91bdac0b8ded691e076e75b1572755 /gcc/cgraph.c
parent271ed4b096c831f8c18989b9d16e3f969d913b9d (diff)
downloadgcc-0b0816a00f00903585250fecdf1a60bb62204022.tar.gz
* cgraph.c (cgraph_function_body_availability): Fix test of externally
visible. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141930 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 43659cbdc6f..b1eea0b080f 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -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