]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cgraph.c (cgraph_function_body_availability): Fix test of externally visible.
authorJan Hubicka <jh@suse.cz>
Sun, 16 Nov 2008 22:31:58 +0000 (23:31 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 16 Nov 2008 22:31:58 +0000 (22:31 +0000)
* cgraph.c (cgraph_function_body_availability): Fix test of externally
visible.

From-SVN: r141930

gcc/ChangeLog
gcc/cgraph.c

index d98ff8a0b8368ceaa202fb05407e98173849bd8b..1c8085e0ba45dd0c7f4c5d1c9cec2b193820713e 100644 (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
index 43659cbdc6f1c1ec6b418bc9481dd7f899025beb..b1eea0b080fe7946352a5917e28fa60436d705ad 100644 (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