OSDN Git Service

* cgraph.c (cgraph_function_body_availability): Fix test of externally
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Nov 2008 22:31:58 +0000 (22:31 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 16 Nov 2008 22:31:58 +0000 (22:31 +0000)
visible.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141930 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraph.c

index d98ff8a..1c8085e 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 43659cb..b1eea0b 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