OSDN Git Service

* cgraphunit.c (process_function_and_variable_attributes): Fix
authordavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Nov 2010 16:52:47 +0000 (16:52 +0000)
committerdavek <davek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 30 Nov 2010 16:52:47 +0000 (16:52 +0000)
cut'n'pasteo.

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

gcc/ChangeLog
gcc/cgraphunit.c

index cda7a12..4734707 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       * cgraphunit.c (process_function_and_variable_attributes): Fix
+       cut'n'pasteo.
+
 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
 
        * hwint.c:  New.  Extracted from toplev.c.
index c2bc071..04a69f3 100644 (file)
@@ -844,7 +844,7 @@ process_function_and_variable_attributes (struct cgraph_node *first,
        }
       if (TARGET_DLLIMPORT_DECL_ATTRIBUTES
          && lookup_attribute ("dllexport", DECL_ATTRIBUTES (decl))
-         && TREE_PUBLIC (node->decl))
+         && TREE_PUBLIC (vnode->decl))
        {
          if (vnode->finalized)
            varpool_mark_needed_node (vnode);