X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fcgraphunit.c;h=04a69f34d2484b3b2427de752ad7728f3c313c17;hb=0d9d5d6900d769815e0a2421fa83894d5664e35f;hp=c2bc071e7cda22ca3affa842aeb17568f809bc02;hpb=b96c136c396a3a8cf37758ecd2ba705005542044;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index c2bc071e7cd..04a69f34d24 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -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);